AI Agents Weaponize Firewall Logs in 'Ghostjacking'
Tenet Security reveals how trusted AI agents can bypass firewalls to reroute traffic and steal data.
At DEF CON 2026 in Las Vegas, researchers from Tenet Security unveiled a new attack technique that turns an organization's own AI agents into a covert backdoor. Dubbed 'Ghostjacking', the method exploits the trust placed in AI agents to bypass firewall defenses, reroute email and web traffic, and establish persistent access for credential theft.
Trusted Access, Hidden Path
According to Tenet's research, presented on August 9, Ghostjacking leverages the legitimate access that AI agents already hold. The attack cannot be flagged because the agents use permissions they've been granted, and while the firewall doesn't go down, it becomes effectively useless.
Researchers demonstrated how a single fake bug report could hijack AI coding assistants, running attacker-controlled code on a developer's machine. The attack chain was shown to succeed across widely used platforms, including Cloudflare, Datadog, and Sentry.
A Self-Exploiting Loop
In one striking demo, the researchers got one AI agent to build an attack that another AI would accept, a technique they described as a 'self-exploit'. This highlights the cascading potential of the attack, where AI agents can inadvertently collaborate to further the attacker's goals.
Tenet noted that half of Fortune 500 companies are vulnerable to such attacks, with Cloudflare running in 42% of these firms and carrying a fifth of all internet traffic. Datadog is present in 48% of Fortune 500 companies, while Sentry is used by four million developers.
The Log That Bites Back
With Cloudflare's firewall, a blocked malicious request is recorded word-for-word in logs. An attacker can plant a fake log entry that, when an analyst asks the AI to review blocked events, is read as a real finding. The AI then rewrites DNS records, points the domain to the attacker, and reports the issue as resolved, quietly rerouting traffic.
Tenet emphasized that Cloudflare's own managed security rule blocks the request, and that block becomes the vehicle for the attack. The researchers found that Cloudflare's recommended setup, which they tested, succeeded nine out of ten times against the Claude Code AI agent.
Datadog's Exposed Keys
Datadog was similarly vulnerable because its API key, meant only for a website's front end, is routinely left public. Tenet discovered over 2,700 such exposed keys. These keys allow attackers to plant fake 'urgent diagnostic alerts' that AI agents read when engineers ask them to check for errors.
The researchers also used Datadog's integration with Kubernetes to demonstrate how the pattern extends beyond the three platforms, noting that similar exposures appear in setups like Splunk with a build system.
Sentry's AI Vouches for the Attack
With Sentry, Tenet used the platform's own AI, Seer, to vouch for them to a subsequent agent. Seer reads the fake report and the attacker's fake fix as its own conclusion, which the coding agent trusts, thereby executing 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."
— Tenet Security researchers, as quoted in the source article
Disclosure and Response
The findings were reported by Tenet to Sentry, Datadog, and Cloudflare in June. The article does not specify what responses, if any, the vendors provided. Among the organizations known to run the exposed Cloudflare setup are a trillion-dollar global technology company, a global payments provider, and a leading AI research lab.
Key Stats
- Half of Fortune 500 companies are vulnerable to Ghostjacking.
- Cloudflare is used in 42% of Fortune 500 firms and handles a fifth of all internet traffic.
- Datadog runs in 48% of Fortune 500 companies.
- Sentry is used by four million developers.
- The attack succeeded 9 out of 10 times against Claude Code on Cloudflare's recommended setup.
Mitigations for Enterprises
Tenet recommended several actions for companies to reduce exposure: deny outbound network access by default, which alone stops the attacker's download and data leak; require human approval for any command the agent wants to run; never let data an agent reads become an instruction it runs; and assume any reachable token is at risk, reviewing every tool the agent connects to.
Why It Matters
Ghostjacking represents a significant shift in how attackers abuse AI systems. Rather than exploiting a vulnerability in the AI itself, it leverages the very functionality organizations rely on for automation. The ability to turn a company's own security controls into a delivery mechanism for a full domain takeover suggests that the increasing trust placed in AI agents could become a liability. As enterprises integrate these tools deeper into their infrastructure, the attack surface for such indirect methods will likely expand, potentially leading to more sophisticated and hard-to-detect breaches.
Sources
- Infosecurity Magazine Original source
Continue Reading
Hostile SIMs exploit spec-compliant commands
Malicious SIM cards can force phones to leak files, drop to 2G, or crash—by abusing standard SIM commands.
Gray to White: A Hacker's Redemption Arc
Marcus Hutchins, who halted WannaCry, recounts his path from malware author to security researcher.
Cyber Prep Gap Leaves UK Factories Vulnerable
New Make UK report finds half of UK manufacturers lack a formal cyber incident response plan despite rising incidents.