Briefing 02 · AI agents · Prompt injection · MCP · AI security

6 Ways Hackers Hijack Your AI Agent

Six real cases where an error log, a contact form, a PDF, a GitHub issue, an email and a browser extension hijacked AI agents, and the five fixes that stop all of them.

An AI agent can’t reliably tell data from instructions. To the model, it’s all just text. So anything the agent reads can carry a hidden command, and the agent runs it with your access. This is called indirect prompt injection.

The six hijacks

  1. The error log. A fake error report tells a coding agent to run a command on the developer’s machine (“agentjacking”, June 2026).
  2. The contact form. Hidden text in a web form makes a CRM agent leak customer accounts (SalesBleed, September 2026, patched).
  3. Invisible text in a PDF. Text a person can’t see, but the AI reads, sends work data to an outside address (Atlassian Rovo, August 2026).
  4. A GitHub issue. An agent reading a public issue uses your token to publish private code (GitHub MCP, May 2025).
  5. The email you never opened. Zero clicks: an assistant leaks data through an image link (EchoLeak, June 2025, fixed).
  6. A browser extension. A malicious extension takes over the AI assistant in your browser (BragJack, September 2026).

The five fixes

  1. Treat everything a tool returns as untrusted.
  2. Require human approval before an agent runs commands, sends data or changes anything.
  3. Give agents short-lived tokens with the least access possible.
  4. Block the way out: no automatic images or links, and an allow-list of where agents can connect.
  5. Audit every MCP server and browser extension you plug in.

Every course, one plan

Move into AI security from the role you have

34 courses, 420+ videos, labs in your browser and on AWS, Azure and Google Cloud, graded capstones and a certificate for each course.

Regular price $49now $15.99a month Or regular price $299 $149.99 once for Lifetime access. Every course, every update. Final price: nothing is added at checkout.

Enroll now Explore our courses

Every TSG course

Enroll: Monthly or Lifetime

Both plans open every course on the platform, with every lab and every future update, the day you join.

  • 34courses
  • 420+videos
  • 3clouds included
  • All 34 courses, from Learn 101 to AI Security Engineer
  • 420+ videos across AI Security Engineer and the cloud courses, plus reading pages, quizzes and handbooks
  • Browser labs, laptop labs and cloud labs on AWS, Azure and Google Cloud
  • A certificate for each course you finish, with a public verify link
  • New courses at no extra cost, and every future update

Already a member? Sign in

Choose your plan
Need an invoice for a company?

Paid by card in US dollars. Final price: nothing is added at checkout. You pay on Razorpay's secure page; we never see your card or bank details.

  • Paid on Razorpay's secure page: Card, in US dollars
  • Refund policy