Stop edge function exploits with AI