âGhostjackingâ Exploits AI Agentsâ Trusted Access to Evade Firewall Controls
Half of Fortune 500 companies are vulnerable to attacks enabled by their own AI agents bypassing firewall defenses, according to new research by Tenet Security.
The technique, dubbed âGhostjackingâ, involves the use of an organizationâs own AI agents to reroute the companyâs email and web traffic, opening a hidden path around its firewall.
Tenet Security researchers demonstrated how a single fake bug report could hijack AI coding assistants and run an attackerâs code on a developerâs machine.
The attack cannot be flagged to defenders as the agents use access they have already been granted, and while the firewall doesnât go down it becomes irrelevant.
Attackers can also exploit the flaw to leave backdoors in the agentâs configuration, memory and tools, providing them with persistent access into the victim organization for the purposes such as data and credential theft.
The researchers even demonstrated one case in which they could get one AI agent to build an attack that another AI would accept, which was described as a âself-exploitâ technique.
This attack chain succeeds across software platforms commonly used by developers, including Cloudflare, Datadog and Sentry.
The findings were presented on the main stage at DEFCON 2026 in Las Vegas on August 9. The Tenet team demonstrated that the Ghostjacking technique succeeded nine out of 10 times against the Claude Code AI agent, on Cloudflareâs own recommended set up.
Among the organizations known to run the exposed Cloudflare set up are a trillion-dollar global technology company, a global payments provider and a leading AI research lab.
The study noted that Cloudflare is run in 42% of Fortune 500 firms, and carries a fifth of all internet traffic, while Datadog runs in 48% of these companies and Sentry is used by four million developers.
The findings further highlight the risks by organizations increasingly entrusting AI agents with full access to their code and infrastructure, with the agents unable to distinguish between a real instruction from a trap hidden in the data it reads.
How One Fake Report Tricks AI Agents
Tenet said that Ghostjacking is the next evolution of the âAgentjackingâ attack class, which involves tricking AI coding agents into executing arbitrary code on developer machines.
Ghostjacking sees the companyâs own security controls essentially act as the delivery system for a full domain takeover.
With the Cloudflare firewall, when it prevents a bad request by a malicious actor, it records it word-for-word in the logs. This means an attackerâs planted log will be read by the AI as if it were a real finding when asked to review the blocked events by an analyst.
The same AI will rewrite the companyâs DNS, point the domain at the attacker and report the issue as resolved. This can allow an attacker to quietly reroute website traffic and emails.
âIt is Cloudflareâs managed security rule that blocks the request, and that block is what carries the attack in,â Tenet said.
The Datadog platform was similarly exposed to Ghostjacking because its key, meant only for a websiteâs front end, is routinely left public. The Tenet researchers discovered more than 2700 of these keys.
The key can be used to plant a fake âurgent diagnostic alertâ, which is read by the AI agent when asked by an engineer to check for errors.
With Sentry, the researchers even used the platformâs own AI, Seer, to âvouchâ for them to the next agent. This is because Seer reads the fake report and attackerâs fake fix as its own conclusion, which is trusted by the coding agent, thereby running the malicious code.
âSentry, Cloudflare, and Datadog are not three separate flaws. They are the same shape. An AI reads outside data it trusts, and the same AI can also act on it. Wherever those two things meet, the door is open. The same pattern shows up far beyond these three, in setups like Splunk with a build system, or Datadog with Kubernetes,â the researchers noted.
The findings were reported by Tenet to Sentry, Datadog and Cloudflare in June.
Tenet recommended that companies take the following actions to reduce their exposure to Ghostjacking:
- Deny outbound network access by default. This alone stops the attackerâs download and the data leak
- Require a human to approve any command the agent wants to run
- Never let data an agent reads become an instruction it runs
- Assume any reachable token is at risk, and review every tool the agent connects to
How it works
Once you click Generate, Ollama reads this article and crafts 5 comprehension questions. Your answers are graded against the article content â general knowledge won't be enough. Score 70+ to count toward your certificate.
Questions are cached â you'll always get the same 5 for this article.