One Email Hijacked an AI Agent. Build a Tiny Prompt Injection Gate in TypeScript.

Content filters read text. Attackers encode text. Build a tiny Rule of Two gate in TypeScript that decides before the tool runs: mocked inbox, obedient mock model, three guards. No API key.

Read Original

Related