AiGENTiA InsightsAgent Engineering

Attention and Behaviour Engineering

30 August 2026


Attention engineering was aimed at humans and worked. Turned on agents, the same techniques meet a target with no fatigue, no boredom, and no memory of being manipulated.

In June 2025, researchers at the security company Aim Security described an attack on Microsoft 365 Copilot that they called EchoLeak. It began with an ordinary-looking email. Nobody had to open it, click it or reply to it.

Later, when the recipient asked Copilot an unrelated work question, the assistant searched their mailbox for useful context, found the email, and read the instructions hidden inside it. Those instructions told it to collect sensitive internal data and place it inside the address of an image. When the answer was displayed, the image tried to load, and the data travelled to the attacker’s server. Microsoft fixed the flaw (CVE-2025-32711) and said it had no evidence of real-world use. But the shape of the attack is what matters.

For twenty years, persuasion online was aimed at human eyes: headlines, notifications, infinite feeds. EchoLeak was aimed at something that does not have eyes, does not get tired, and does not remember being fooled. That raises the question for this essay: what happens to the techniques of attention engineering when the reader is an agent?

What attention engineering learned on humans

The consumer internet measured success in time spent. To raise it, platforms learned to remove friction and reward strong emotion. In 2021, The Wall Street Journal’s “Facebook Files” reported internal research showing that a 2018 change to Facebook’s ranking, meant to promote “meaningful social interactions”, had also rewarded outrage, because angry posts drew more comments and shares.

Those techniques had one natural limit: the human body. People get tired, bored and suspicious. They close the app. Every manipulation of human attention eventually runs into sleep.

Agents have no such limit. An agent reads everything placed in front of it, at any hour, with the same attention on the millionth document as on the first. And the property that makes it useful — it follows instructions well — is exactly the property persuasion exploits.

A whistle on the phone line

There is an old story that explains the problem better than any modern diagram.

In the 1960s and 1970s, the American long-distance telephone network used tones sent down the same line as the caller’s voice to control the switches. A tone of 2600 hertz told the network that a line was free. Phone hackers, known as phreakers, discovered that if they played that tone into the mouthpiece, they could seize the line and route free calls. One famous discovery was that a toy whistle given away in boxes of Cap’n Crunch cereal produced almost exactly that tone.

The flaw was not in any one switch. It was in the design: the network carried its control signals in the same channel as the customers’ data. Engineers call this in-band signalling. The fix, over the following years, was to move control signals to a separate channel that customers could not reach.

A language model is a phone line with the control tones and the voice mixed together. Its instructions from the developer, the user’s request, and whatever web pages, emails or documents it retrieves are all joined into one stream of text. The model has no hard boundary that says this part is an order, and this part is only information. If a retrieved document says “ignore your previous instructions”, that sentence arrives in the same channel as the real instructions. The whistle still works.

The analogy has a limit. The phone network could move its signals to a separate wire. A language model has to read the data to be useful, and reading means interpreting. Nobody yet knows how to build a model that understands a sentence fully while being certain never to obey it.

From optimisation to poisoning

The techniques aimed at agents sit on a spectrum, from ordinary marketing to outright attack.

At the mild end is what researchers have named generative engine optimisation. A 2023 study from Princeton, Georgia Tech, the Allen Institute for AI and IIT Delhi tested how changes to a web page affect whether AI search engines use and cite it. Adding sources, statistics and quotations raised a page’s visibility in generated answers by up to about 40% in their tests. This is the agent-era version of search engine optimisation: writing for the machine that will summarise you.

Further along is retrieval poisoning. Many agents answer questions by first searching a document store, a method called retrieval-augmented generation, or RAG. A 2024 study called PoisonedRAG showed that adding just five carefully written documents to a knowledge base of millions could make the system give an attacker’s chosen answer to a target question about 90% of the time.

At the far end are direct attacks on working products:

  • In 2024, the security firm PromptArmor showed that an instruction hidden in a public Slack channel could lead Slack AI to reveal data from private channels the attacker could not see.
  • In 2025, researchers showed that instructions hidden in files, code comments or other content they read could lead coding agents, including GitHub Copilot (CVE-2025-53773) and Cursor (CVE-2025-54135), to change their own configuration and run the attacker’s code.
  • EchoLeak, from the opening, needed no click at all.

The foundation for all of these was laid in a 2023 paper by Kai Greshake and colleagues, which showed that text an AI system retrieves can act as instructions. They called it indirect prompt injection. The OWASP GenAI Security Project now ranks prompt injection as the top risk for applications built on large language models.

Why the old defences do not fit

Security for the human internet was built around human limits: CAPTCHAs, rate limits, warning pop-ups, training people not to click strange links. None of these touch an agent reading a document.

The obvious hope is that smarter models will simply see through the trick. Better models do resist many crude attacks. But the core problem is not intelligence. A more capable model follows instructions more faithfully, and an attacker’s instruction is still an instruction.

Human approval does not solve it either. If an agent asks a person to approve two hundred actions a day, the person soon approves them without reading. The approval button becomes a ritual, not a check.

What works, as far as current evidence goes, is architecture — the same move the phone companies made:

  1. Keep data and orders apart as far as possible. Content from the web, email or shared files is handled by components that cannot take high-privilege actions.
  2. Put the rules outside the model. What an agent may send, spend, delete or change is decided by a fixed policy that the agent’s text cannot rewrite.
  3. Know where knowledge came from. Retrieval systems should rank sources by origin and trust, not only by how relevant they sound.
  4. Ask people about fewer, bigger things. Human approval is reserved for actions where a person can realistically judge the risk.

What we do not know

It is important to be precise about the evidence. Most of the attacks described here are demonstrations by security researchers, reported to the vendor and fixed before any known criminal use. We do not know how often such attacks happen in the wild, partly because a successful one may leave no trace. The defences listed above reduce risk; none of them is proven to remove it, and the research is moving quickly.

What has changed is the target. Persuasion online used to need a human to look. EchoLeak needed only an agent to read. The email nobody opened was the most effective advertisement in this story — because its only audience was a machine that does whatever it reads.

Sources

Keep reading