01Chapter 1: How a coding agent reads, decides, and actsThis chapter assumes you can use git and a code hosting platform (repositories, issues, pull requests), work at the command line, and read basic Python. You should also know in general terms what a large language model (LLM) is and how an AI coding assistant is used.2 min read
04Chapter 4: Indirect prompt injection explainedThis chapter assumes you know git and issues, can read basic Python, and have a general idea of how a large language model (LLM) powers a coding assistant. It builds on the previous chapters: the agent loop, untrusted sources, and why a model cannot cleanly separate instructions from data.3 min read
05Chapter 5: What an agent can do: shell, file writes, network, credentialsThis chapter assumes you know how the agent loop works: the model reads context, picks a tool call, and reads the result. It also assumes you can read basic Python. Here we list what those tool calls can reach, because an injected instruction can only do what the agent is able to do.2 min read
08Chapter 8: How stolen data leaves: URLs, rendered images, commits, comments, and tool callsThis chapter assumes you know how the agent tool loop works and what indirect prompt injection is. An injected instruction only causes harm if the agent can also move data somewhere the attacker can read it. Those routes are called exfiltration channels (exfiltration means sending data out without p2 min read
10Chapter 10: Threat modeling a repository workflowThis chapter assumes you know git and pull requests, can read basic Python and YAML, and understand how a coding agent calls tools. Threat modeling turns the earlier ideas into a short written analysis of one agent workflow. You will list what the agent touches, trace where attacker text can enter, 2 min read
11Chapter 11: Least privilege for agents and tokensThis chapter assumes you know git and a code hosting platform, can read basic Python and YAML, and understand how a coding agent runs tools in a loop. It builds on the idea that an injected instruction can only do what the agent is allowed to do.2 min read
12Chapter 12: Running the agent in a sandboxThis chapter assumes you know the agent tool loop, the idea of indirect prompt injection, and basic Docker commands. Earlier chapters showed that you cannot reliably stop a model from following injected text. A sandbox takes a different approach. It limits what an injected instruction can do once th2 min read
13Chapter 13: Approval gates and their limitsThis chapter assumes you know the agent tool loop, indirect prompt injection, and the idea of least privilege from earlier chapters. You should also be able to read short Python and shell snippets.2 min read
14Chapter 14: Restricting network egressThis chapter assumes you know what an agent's tool loop is, how indirect prompt injection works, and how to read basic Python and Docker commands. Egress means traffic that leaves your environment. Restricting egress removes the outbound channel from the lethal trifecta. An injected instruction can 2 min read
15Chapter 15: Labeling and limiting untrusted inputThis chapter assumes you know the agent tool loop and the idea of indirect prompt injection from earlier chapters. It also assumes you can read basic Python.2 min read
16Chapter 16: Agents in CI and issue automationThis chapter assumes you can read GitHub Actions YAML and Python. It also assumes you know indirect prompt injection, least privilege, and the combination of private data, untrusted input, and an outbound channel from earlier chapters.2 min read
17Chapter 17: Logging and reviewing agent actionsThis chapter assumes you know the agent tool loop, command allowlists, and egress control from earlier chapters. You should also be able to read short Python scripts.2 min read
18Chapter 18: Residual risk and secure defaultsThis chapter assumes you know the agent tool loop, indirect prompt injection, and the defenses covered earlier: least privilege, sandboxing, approval gates, egress allowlists, and logging. Here we look at what those defenses leave behind and how to set defaults that fail safely.2 min read