Technology & AI

Hacked by a Conversation

A harmless-looking document can steer an AI agent into leaking data. Nat Natraj and his co-authors explain why security must remember the whole conversation.

Nat Natraj, Rahul Jadhav, Atharva Shah Print edition, p. 130 Reading time: 7 min

It Started With a Ticket Nobody Read

In February 2025, a security researcher opened a bug report on GitHub. It was polite and boring. It asked for a small favor: take the word “hello,” add the email address from a Hacker News profile, and make a greeting out of it. There was a helpful link to a tool that combines text.

An AI agent read that ticket. This was OpenAI’s Operator, a program that browses the web on your behalf. Someone had asked it to look into the ticket, so it did. It followed the link. It opened the Hacker News account its user was already signed in to. It found the private email address on the settings page. Then it typed that address into a box on the researcher’s website.

No password was stolen. Nothing was hacked in the way we usually mean the word. No alarm went off, because nothing that happened broke a rule. The agent read a request and carried it out. The only problem was that the request came from a stranger.

This is not one clever trick. A file dressed up as an invoice template quietly changed the numbers in a document a coding assistant produced. A resume with instructions in white text on a white background talked a screening system into praising its author. Microsoft’s Bing chatbot was walked into believing it had a hidden identity named Sydney.

The Attack Lives in the Conversation

Now look at what a security tool would have seen. Read any single message from those attacks and it looks fine. The GitHub ticket is a feature request. The invoice template is a template. Everything said to Bing was ordinary conversation. The attack is in the accumulation.

Researchers have made this precise. Ask a model directly for something dangerous and it refuses. So do not ask. Ask four harmless questions instead. Who was this historical figure. What was he known for. Tell me more about that part. Expand on your last answer. By the fourth answer the model has assembled the very thing it refused to give at the start, and nobody ever asked it for that.

Every message passed inspection. The model was never asked to break a rule. It was walked there one polite step at a time. In one red-team exercise against a recent top-tier model, the success rate of this approach went from about 4 percent to nearly 80 percent, and the only change was asking across a conversation instead of all at once.

AI Agents Raise the Stakes

A chatbot that says something wrong is embarrassing. An agent that does something wrong is expensive. Agents send email, file tickets, commit code, move money, and click buttons. They also read constantly, because reading is how they get their work.

They read your tickets, your inbox, your documents, your web pages, your uploaded files. Every one of those is a place a stranger can leave a note. And an agent cannot easily tell the difference between the task you gave it and text it found while doing that task. Both arrive as words. That is the part most people miss. You do not have to attack the AI. You only have to leave something where it will read it.

Enterprises have wired these agents in fast. Employees use AI tools nobody approved. Most agents running in production went live without a security review. Only a small share of companies apply any dedicated control to them.

A Lesson From 1990

Here it helps to know what a firewall actually is. A firewall sits between your network and everything else, and decides what is allowed through.

The first ones worked one piece at a time. Internet traffic travels in small chunks called packets. An early firewall looked at each packet on its own, checked it against the rules, and let it pass or dropped it. Then it forgot the packet and moved to the next one. No memory. That design has a name: stateless.

Attackers noticed. If every packet is judged alone, you can split an attack across several packets that are each perfectly legal. Nothing breaks a rule on the way in. Assembled at the far end, the pieces do the damage.

The industry answered by giving the firewall a memory. A stateful firewall tracks the whole exchange between two machines: who started it, what has happened so far, whether this new piece belongs in that story. It judges each piece in context instead of in isolation. That became the standard, and it is the reason the security most of us rely on today works at all.

Which brings us to the awkward part. The tools sold today to protect AI systems are mostly back at stage one. They read one prompt, score it, allow or block it, and forget. Whatever guarded the first message has no idea what the tenth one is building toward. We have rebuilt the 1990 firewall and pointed it at a technology that works entirely by conversation.

Current Guardrails Are Inadequate

There are two reasons these one-message checks fail, and they are different in kind.

The first is that they are easy to dress around. Researchers have hidden instructions inside text using invisible characters, emoji, and letters that look identical to ordinary ones, and slipped them past these filters at rates approaching 100 percent. That is a decoding problem. It is solvable, and anyone still failing at it is failing at the easy part.

A Firewall With Memory Works Better

The fix is the one the network industry already made. Give the thing a memory.

A stateful prompt firewall sits in front of the AI and keeps the session. It cleans up disguised text before reading it. It scores the direction a conversation is heading, not only the last thing said. It keeps a ledger of what the agent has already been allowed to do. And when the direction looks wrong it has more options than yes or no. It can strip the sensitive parts out of an answer, slow the conversation down, narrow which tools the agent may touch, or stop it.

What Nobody Has Solved

Honesty is more useful here than a tidy ending, so here is what nobody has solved.

Judging intent is a guess. A model decides whether a conversation is heading somewhere bad, and models are wrong in both directions. Set it strict and you block real work, until a frustrated team switches the control off. Set it loose and a patient attacker walks through. Nobody has solved this, and no vendor should tell you otherwise.

The second is the one that matters. A one-message check cannot see a pattern that only exists across messages. No amount of tuning fixes that, and neither does a bigger model. The guardrail examined a message. The attack lived in the conversation.

Several vendors are now building in this direction and the category is starting to have a name. Most AI security products on the market are still the one-message kind, which is worth knowing when you sit through the demo. Some show you the whole session but cannot stop anything with it. Our company, AccuKnox, builds a stateful prompt firewall, so read this section knowing where we sit. The architecture is the part that matters, not the logo. If you buy this from someone else, buy the one with a memory.

And nobody can prove a conversation was safe. The most an honest vendor can say is that nothing it knew to look for showed up. That is a real answer. It is just not the one people want to hear.

What To Do About It

So the goal is not perfection. It is making a wrong call survivable. A few things are worth doing whether or not you work in security.

For yourself: assume anything you paste into a consumer AI tool has left your control. Be deliberate about what you let an assistant read for you. And if a tool can act on your behalf, find out what it is allowed to touch before you trust it with anything that matters.

For an enterprise, three questions. They are simple and they are unwelcome.

Do you keep the whole conversation, or only the last prompt and the verdict you gave it?

Can you list every place an agent reads text that a stranger wrote, whether a ticket, an email, a web page, or an upload?

Do you know which tools each agent is allowed to call, and can you stop a call you did not want?

If any answer is no, a successful attack looks exactly like ordinary use. Nothing fires. Nothing gets logged as an incident. The first sign is the outcome: a number that changed in a document, a record that left the building, a decision nobody can trace back.

One last thing, from the founder chair. The hardest conversation we have is not with a security team, because security teams already know. It is with a business leader who has just watched an AI agent do a week of work in an afternoon and would rather not hear how it can be talked into something. We understand the reluctance. But the 1990s taught this industry that the fix arrives after the incident and costs ten times more. This time we know the answer before most of the damage is done. Memory won that argument once. It is the best bet we have.

If you are wrestling with this at your own company, write to us. Some of the sharpest thinking we have heard on it came from people who started by telling us we were wrong.

About the author

Nat Natraj — IIT Bombay, Chemical Engineering, Class of 1982 (H6); He is the Co-Founder and CEO of AccuKnox.

Rahul Jadhav is the co-founder, CTO of AccuKnox. He worked on Linux Kernel and MPLS switches under Prof SSSP Rao.

Atharva Shah is a DevRel of AccuKnox & KubeArmor. He holds a postgraduate degree from Sardar Patel University.

Comments

Comments open soon.

Support gNY-Point

Help shape the next issue

gNY-Point is written by IIT Bombay alumni across North America. Share a story, volunteer with the editorial team, or sponsor the next issue.