Agent Hijacks: How Conversation History Poisoning Can Turn AI Agents Into Attackers
Researchers found that AI coding tools store conversation history without verifying that responses came from the model, allowing attackers to hijack agents.
Overview
Researchers at Darktrace found that AI coding tools from Anthropic, OpenAI, and AWS store conversation history locally without verifying that the responses actually came from the model. This design flaw allows attackers to rewrite that stored history to trick the AI into thinking it is an authorized red-teamer. Once convinced, the agent can execute offensive cyber activities ranging from reconnaissanceThe scouting phase where an attacker gathers details about a target's servers, software, and staff before striking to impact demonstration. The issue affects all models examined, though some have guardrailsSafety rules and filters built around an AI model to block harmful, private, or off-limits outputs that prevent full engagement in attacks. Darktrace proposes that model providers cryptographically sign responses to fix this, but defenders cannot deploy that solution themselves. Users of these agentic harnessesA small wrapper program written to feed test inputs into a software library and watch for crashes are currently exposed to this risk because the tools grant broad powers like shell access without validating the source of the instructions.
Terms in this story
- reconnaissance
- The scouting phase where an attacker gathers details about a target's servers, software, and staff before striking. Before attempting a break-in, an intruder performs reconnaissance by scanning public IP addresses, reading job postings to see what software a company uses, and collecting employee email addresses. Security+ objective 5.5 lists the term
- guardrails
- Safety rules and filters built around an AI model to block harmful, private, or off-limits outputs. Security stories test whether an AI assistant's guardrails hold up when a user or attacker crafts tricky prompts to ask for malware code or private company records.
- harnesses
- A small wrapper program written to feed test inputs into a software library and watch for crashes. Security researchers write a test harness around a file parser or network library so a fuzzing tool can feed it millions of mutated inputs per hour.
- AI Agents
- Artificial intelligence software that can plan steps, call tools, and take actions on its own. Many stories cover agentic AI when companies connect language models to email, browsers, and databases, creating new risks if a hidden prompt tricks the agent into leaking data.
- offensive cyber operations
- Government or military missions that break into, disrupt, or disable an adversary's computer networks. Policy reports discuss offensive cyber operations when military cyber commands dismantle foreign botnets, disrupt ransomware gangs, or target enemy infrastructure during a conflict.
- Disclosure
- The process of reporting and publishing details about a newly discovered security flaw in software or hardware. In security news, disclosure refers either to a researcher privately alerting a vendor about a bug or to a company publicly notifying customers about a breach.
- CLI
- A text-based terminal interface where users type commands instead of clicking buttons in a graphical window. Software teams and administrators manage cloud servers and code repositories through a CLI because text commands are fast and easy to automate in scripts.
- Key
- The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- validation
- Checking that data sent by a user matches the expected format and size before using it. Many injection and overflow vulnerabilities happen because a program skips input validation and trusts whatever string or file size an outside user sends. Security+ objective 4.1 lists the term
- open-source
- Software whose source code is publicly available for anyone to inspect, use, modify, and share. Most websites and apps rely on hundreds of open-source code libraries, so a single security flaw or malicious update in a popular library can affect thousands of companies at once.
- system prompt
- The hidden starting instructions developers give an AI model to define its behavior and safety rules. Companies put rules and tool descriptions inside the system prompt of an AI chatbot, and attackers probe chatbots to leak that prompt or override its instructions.
- server
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Darktrace website. Cite the article, not this page.
Read the full article on Darktrace (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Research and reports
"Darktrace disclosed our findings responsibly to these three organizations..." Found by reading the article; these exact words are in it - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"......Hijacks: How Conversation History Poisoning Can Turn AI Agents Into Attackers..." Found in the headline
How a story is connected to the course, and every objective, week and job role