Search

The 808 Books / Five Floors Up / Chapter 1

What changes when software acts on its own

For twenty years, security assumed software does what its code says. Agents do what their inputs say. That's the shift.

The short version

  1. An agent plans its own steps, holds credentials, reads untrusted content and takes actions. Any text it reads can try to steer it.
  2. The danger peaks when one agent combines three things: access to private data, exposure to untrusted content, and a way to send data out.
  3. Assume the model will sometimes be fooled. Put the hard limits outside the model, where text can't talk its way past them.

By the numbers

9.3 of 10the severity score Microsoft gave EchoLeak (CVE-2025-32711) as of June 2025, a zero-click flaw where a single crafted email could get Microsoft 365 Copilot to leak data (TechRepublic, June 2025)

23%of organizations say their AI agents have been tricked into revealing access credentials ([SailPoint, 2025](https://www.helpnetsecurity.com/2025/05/30/ai-agents-organizations-risk/); vendor research)

100+security experts built OWASP's first Top 10 for agentic applications, released 9 December 2025 (Cycode, summarizing OWASP)

01 Code versus inputs

Here's the shift in one breath. A traditional integration does one thing: when an invoice arrives, post it to the ledger. You can read the code and know what it will do. An agent is given a goal and a set of tools, and it decides the steps. That's what makes it useful. It's also why everything it reads becomes, in effect, part of its instructions. Let that land for a second. Every email in the inbox is now a potential boss.

That's the root of prompt injection: text hidden in an email, a web page, a document or a support ticket that the agent reads and treats as a command. OWASP's agentic list puts this first, as ASI01 Agent Goal Hijack, where malicious content changes an agent's objectives or decision path (TechRepublic).

02 The dangerous combination

Researchers at Invariant Labs showed in May 2025 how a malicious issue posted in a public GitHub repository could hijack an agent connected to GitHub's official MCP server and get it to leak data from the user's private repositories (Invariant Labs). They were clear that this wasn't a bug a patch could fix; it needed architectural controls (UpGuard, quoting Invariant).

The pattern behind it, and behind Omar's leak in the introduction, is one agent session that combines:

Ingredient Omar's agent GitHub example
Private data it can reach Every tenant record The user's private repositories
Untrusted content it reads Inbound email from anyone Issues in a public repository
A way to send data out Outgoing email A public pull request

Any one of these is fine. All three in one agent, with one set of credentials, is the hole. I call it the toxic triangle when I'm drawing it, and once a team sees it, they start spotting it everywhere. Much of this book is about never letting the three meet without a hard control in between.

03 The new risk list

OWASP's Top 10 for Agentic Applications, released in December 2025, is the best single map of what goes wrong (OWASP). The three at the top set the agenda for this book: goal hijack (ASI01), tool misuse (ASI02), and identity and privilege abuse (ASI03), where agents reuse, escalate or leak the credentials and access they inherit (TechRepublic). OWASP's own announcement cites EchoLeak as its example of goal hijack (OWASP).

04 Plan for it to be fooled

The Five Eyes guidance gives the right starting stance: until security practices, testing and standards mature, assume agentic systems may behave unexpectedly, and plan for resilience, reversibility and containment (Tech Insider, quoting the guidance). In practice, that means the controls in this book sit outside the model: identity systems, token scopes, gateways, spend caps and kill switches. A clever prompt can fool a model. It can't fool an expired token. That sentence is the whole philosophy of this book, and it's the one I'd want you to repeat in your next architecture review.

Exercise 1

The three-ingredient scan

Goal
a list of every agent that combines private data, untrusted input and a way out.
Time
two hours with the teams that build or run agents.
  1. List every agent you know about, including those built in low-code tools and personal assistants with connectors.
  2. For each, mark the three ingredients: what private data it reaches, what untrusted content it reads, and how it can send data out (email, chat, web requests, file shares, code commits).
  3. Any agent with all three is high risk. Note which credential it uses.
  4. For each high-risk agent, pick one ingredient to cut or put a hard control on this month.

Done when every known agent is scanned, every high-risk agent has an owner, and each has one control planned with a date.

Template

Three-ingredient scan

Agent Private data Untrusted input Way out All three? Control to add
Tenant service desk agent All tenant records Inbound email Outbound email Yes Replies only to the tenant on file; records limited to that tenant
Lease summary helper Lease documents None (internal uploads only) None No Review quarterly

Chapter check

Three questions before you move on

1What's the core difference between an agent and a traditional integration?

2Which combination makes an agent high risk?

3Where should hard limits sit?

Show all answers

1-B, 2-C, 3-A

Sources

  1. TechRepublic, "First known zero-click AI exploit: Microsoft 365 Copilot's 'EchoLeak' flaw," June 2025. techrepublic.com
  2. Help Net Security, reporting SailPoint, "AI agents have access to key data across the enterprise," 30 May 2025 (vendor research). helpnetsecurity.com
  3. OWASP GenAI Security Project, "OWASP Top 10 for Agentic Applications," 9 December 2025. genai.owasp.org; TechRepublic summary. techrepublic.com; Cycode summary. cycode.com
  4. Invariant Labs, "GitHub MCP exploited: Accessing private repositories via MCP," 26 May 2025. invariantlabs.ai; UpGuard coverage. upguard.com
  5. Tech Insider, on the Five Eyes "Careful adoption of agentic AI services" guidance, May 2026. tech-insider.org

End of chapter 1

Next · Chapter 2One agent, one identityWho is this agent?