___ _ _
/ __\ _| |_ ___ _ _ | |_
/ / | | | | __/ _ \| | | || __|
/ /__| |_| | || (_) | |_| || |_
\____/\__,_|\__\___/ \__,_| \__| the relay nobody checks
CUTOUT — Cyber Utility & Tradecraft, used Offensively on Untrusted AI Technologies.
An offensive framework for authorized security testing of agentic AI systems — it recons, exercises, persists in, and pivots across MCP servers, agent-to-agent chains, and tool-calling loops the way Metasploit maps onto a network, so defenders can find and fix these weaknesses before attackers do.
⚠️ Authorized use only. Run Cutout against the bundled range, systems you own, or systems you have explicit written permission to test. Every technique is paired with detection/mitigation guidance. See ETHICS.md.
📊 Browse the CTX taxonomy → — the ATT&CK-style technique matrix for agentic systems.
Every existing tool tests a prompt against a model. Nobody treats a deployed multi-agent system as a network to enumerate, pivot through, and persist in.
A cutout is the espionage intermediary that relays between two parties so neither verifies the other. That is the structural flaw in agentic systems: the operator never sees what the agent saw; the agent never verifies who authored the instruction it follows. MCP servers, tool proxies, and sub-agent chains are cutouts — and nobody checks the relay.
Injection is table stakes — it's the easy part. The empty field, and the differentiator, is everything after: persistence, lateral movement, credential access, exfiltration. Cutout models that post-exploitation chain end to end.
Is: an offensive, modular, CLI-driven attack framework + a technique taxonomy (CTX) + a deliberately-vulnerable target range to run it against, all runnable offline in minutes.
Is not: a scanner, a benchmark, a governance/compliance product, or a "responsible AI" evaluator. It exercises real attack chains against a live target; it is not point-in-time scanning.
Python 3.11+. From a clone:
pip install -e . # core: engine, CLI, taxonomy, in-process range
pip install -e ".[range]" # also run the range as networked MCP services (docker/uvicorn)
pip install -e ".[dev]" # ruff + mypy + pytestEverything runs offline by default against a deterministic mock — no external accounts, no network, no LLM keys.
Cutout has an msfconsole-style shell where state (discovered graph, planted payloads, looted secrets) accumulates across commands. Against the built-in in-process range:
cutout consoleIt follows the Metasploit muscle memory — scan the target, look at hosts/services,
then use a module and run. Modules go by memorable aliases (puppet, not
CUT-EXEC-001):
cutout > scan
scan complete — enumerated 10 tools (3 sensitive) across 5 servers; 4 peer agent(s)
cutout > hosts # orchestrator + 5 MCP servers + a 4-agent A2A mesh
cutout > services # every tool, sensitive ones flagged
cutout > use deaddrop
cutout (deaddrop) > run
success — planted poisoned doc a4f94e989978 (anchor='refund')
cutout (deaddrop) > use puppet
cutout (puppet) > run
exec.tool_call {'tool': 'customer-data.get_customer_secret', 'ok': True,
'source': 'retrieved-doc:a4f94e989978'}
success — coerced 1 tool call(s) via injected instructions; harvested 1 secret(s)
cutout (puppet) > use courier
cutout (courier) > run
success — pivoted to billing-agent; coerced 1 privileged call(s)
cutout (courier) > loot
┃ customer-data.get_customer_secret:VIP-001 │ cutrange_FAKE_secret_VIP001_do_not_use ┃
A benign "I'd like a refund" question retrieves the attacker-planted document, the
provenance-blind agent obeys the instruction hidden in it and exfiltrates a secret with
its own credentials, then the foothold pivots into a second agent's trust zone. sessions
shows the chain, graph the discovered topology, replay the evidence timeline.
Full usage — every command, targeting, the CLI, troubleshooting — is in GUIDE.md.
Every command is one process too, if you prefer:
cutout list # registered modules (with aliases)
cutout info CUT-EXEC-001 # metadata + options
cutout run CUT-INJ-002 --opt anchor=refund # run one, write a JSONL transcript
cutout replay runs/CUT-INJ-002-*.jsonl # re-narrate a past run
cutout catalog # technique coverage (implemented vs planned)Every module implements exactly one technique ID from
taxonomy/matrix.yaml — an ATT&CK-for-agents where each cell maps
to runnable code. Browse the full matrix (implemented vs planned across every tactic) as a
page: CTX taxonomy →.
Each module also has a memorable tradecraft alias — in the console you use puppet,
not use CUT-EXEC-001 (the ID stays canonical; the alias is the ergonomic handle).
| Alias | ID | Tactic | Technique |
|---|---|---|---|
casing |
CUT-RECON-001 |
Reconnaissance | Tool & schema enumeration, topology mapping |
recce |
CUT-DISC-001 |
Discovery | Post-access tool discovery — peer-agent tools hidden from initial recon |
frisk |
CUT-DISC-004 |
Discovery | Probe tools for reachable resources: file read, SSRF, command exec |
coax |
CUT-INJ-001 |
Initial Injection | Direct prompt injection — override/roleplay/spoof/encoded payloads at a chat agent |
deaddrop |
CUT-INJ-002 |
Initial Injection | Indirect injection via a poisoned RAG document |
mockingbird |
CUT-INJ-003 |
Initial Injection | Tool-output injection — a directive hidden in a fetched page/API response the agent obeys |
puppet |
CUT-EXEC-001 |
Execution | Coerced tool invocation → credential harvest |
breakout |
CUT-EXEC-004 |
Execution | Weaponize a code-interpreter tool: read files, dump env, run commands, harvest creds |
standin |
CUT-EXEC-005 |
Execution | Confused deputy via token audience confusion (MCP 2026-07-28): replay a token minted for one resource against a server that skips RFC 8707 audience validation |
keyring |
CUT-CRED-003 |
Credential Access | Read .env/config via the agent's delegated token |
shellgame |
CUT-CRED-004 |
Credential Access | MCP OAuth authorization-server mix-up (MCP 2026-07-28): a client that skips RFC 9207 issuer validation leaks the honest AS's code to the attacker, who redeems it for a token |
sleeper |
CUT-PERS-001 |
Persistence | Durable RAG implant that re-triggers on any query |
revenant |
CUT-PERS-002 |
Persistence | Memory implant — re-fires on every agent cycle from one write |
handler |
CUT-PERS-003 |
Persistence | Poisoned instruction file — fires on every future task |
dragnet |
CUT-COLL-003 |
Collection | Bulk-collect records + files, stage one bundle for exfil |
courier |
CUT-LAT-001 |
Lateral Movement | Agent-to-agent propagation (direct A2A message) |
brushpass |
CUT-LAT-002 |
Lateral Movement | Shared-memory pivot (indirect, via a store the peer reads) |
contagion |
CUT-LAT-006 |
Lateral Movement | Self-propagating agent worm — one seed cascades across the A2A mesh, looting each host |
siphon |
CUT-EXFIL-001 |
Exfiltration | Outbound tool-call exfil (data in a URL) |
heist |
CUT-IMP-001 |
Impact | Unauthorized transaction, then verify + quantify via the ledger |
ladder |
CUT-PRIV-002 |
Privilege Escalation | Chain low-scope tools (mint an export handle → redeem it) to reach data a scoped tool gates |
proxy |
CUT-PRIV-001 |
Privilege Escalation | Ride an agent's delegated token past its scope — one requester's ticket reads another principal's secret |
nod |
CUT-PRIV-003 |
Privilege Escalation | Farm a human-in-the-loop approval — a stacked-legitimacy justification wins the yes an honest request is denied |
vouch |
CUT-PRIV-004 |
Privilege Escalation | Cross-agent trust exploitation — relay an untrusted request through a trusted peer to inherit a downstream agent's privilege |
scion |
CUT-PRIV-005 |
Privilege Escalation | Privileged sub-agent spawning — a child spawned for a narrow task inherits the parent's full token + tools |
smuggler |
CUT-EVAS-001 |
Defense Evasion | Encode a directive (base64 / zero-width / homoglyph) past a raw-text guardrail |
rollcall |
CUT-INV-001 |
(plumbing) | Session inventory reference stub |
27 modules, every tactic — cutout catalog shows the live implemented/planned split;
cutout hunt <mcp-target> chains recon → frisk → drafted findings against a real server, and
cutout hunt --targets <file> surveys a whole corpus into an aggregated coverage table + report.
CTX is a kill chain (ATT&CK-style tactics × techniques); the OWASP Top 10 for Agentic
Applications is a risk taxonomy. They're complementary — every
implemented technique carries an asi: tag in taxonomy/matrix.yaml
and a badge on the CTX page mapping it to the ASI risk it
realizes or enables:
| OWASP ASI risk | Cutout techniques |
|---|---|
| ASI01 Agent Goal Hijack | coax · deaddrop · mockingbird · walkin · smuggler |
| ASI02 Tool Misuse & Exploitation | casing · recce · legend · puppet · heist |
| ASI03 Identity & Privilege Abuse | keyring · proxy · ladder · scion · dragnet · siphon · standin · shellgame |
| ASI04 Agentic Supply Chain | deepcover · turncoat |
| ASI05 Unexpected Code Execution (RCE) | frisk · breakout |
| ASI06 Memory & Context Poisoning | sleeper · revenant · handler · brushpass |
| ASI07 Insecure Inter-Agent Communication | cartograph · vouch · courier · letterbox |
| ASI08 Cascading Failures | contagion |
| ASI09 Human-Agent Trust Exploitation | nod (and the approval-farming benchmark) |
| ASI10 Rogue Agents | (planned) |
Cutout's post-exploitation stages (recon, discovery, collection, exfiltration) are the operational steps that carry out these risks — depth the risk list doesn't enumerate.
Modules prove a technique against the deterministic range; the harder question is whether it
lands against a real model — and against a real defense. cutout liveeval answers that for
approval farming (nod / CUT-PRIV-003): it puts a live model in the approver's seat and measures,
over N stochastic trials, how often a farmed justification wins a "yes" the honest request does
not — across three prompt postures (naive, neutral, hardened). The neutral prompt is the
defensible one: it never tells the model to trust apparent legitimacy, so a farmed approval there
is the model socially-engineering itself, not obeying an instruction to.
cutout liveeval --provider ollama --model llama3.2:1b --trials 20 # a real local model (localhost-only)
cutout liveeval --provider openai --model gpt-4o-mini --trials 20 # a frontier model (your own account)It reports a repro matrix (posture × justification → approve rate). Run against real models (N=20, neutral posture = the farmed approval rate under the non-leading prompt):
| model | farmed approval (neutral) | with the hardened prompt |
|---|---|---|
llama3.2:1b (local) |
47% | 0% |
gpt-4o-mini |
95% | 0% |
gpt-4o |
0% | 0% |
The story in one line: approval farming reliably lands on small and mid-tier models used in real
agent stacks (gpt-4o-mini approves the secret release 95% of the time under a plain approval
prompt), a top-tier aligned model (gpt-4o) refuses a clearly-harmful action outright, and a
risk-based hardened system prompt is a working mitigation across the board (→ 0%). A real
technique, a real defense, as a reproducible rate rather than one screenshot. (--provider mock
runs the pipeline offline; cutout trial is the sibling harness for live tool-calling agents over
an MCP endpoint you control. Rates are stochastic — run N.)
This is packaged as an open, reproducible benchmark — a versioned set of borderline actions
and a cutout benchmark runner that scores any model's susceptibility and the mitigation's
efficacy, with published baselines. See benchmarks/approval_farming/.
Across the suite, gpt-4o holds the hard red line (0%) but is farmed to 100% on every one of
five borderline actions, while the risk-based hardened prompt drops all of them to 0%.
Cutout is developed against its own range, but the point is real systems. Vulnerabilities found with it, disclosed coordinately and published as advisories:
| Advisory | Affected | Class | Status |
|---|---|---|---|
| SANKET-2026-001 | postgres-mcp-server (PyPI) |
Arbitrary local file read via a "read-only" query tool | CVE requested (MITRE CNA-LR) |
| SANKET-2026-002 | @safedb/safedb-mcp (npm) |
PII-masking bypass via scalar subquery | Maintainer acknowledged; CVE requested |
| SANKET-2026-003 | universal-db-mcp (PyPI) |
Arbitrary local file read via DuckDB read_text |
CVE requested (MITRE CNA-LR) |
The two file-read issues are the shape cutout hunt <mcp-target> is built to surface —
recon, then frisk, then a drafted finding — and they are the shape the taxonomy predicts:
a tool advertised as read-only that an agent can drive into reading anything the server
process can reach. The masking bypass is the same boundary seen from the other side: the
tool's guarantee holds for the columns it inspects and not for the query that wraps them.
Related research not produced by Cutout, in the same advisories repo: MCP tool annotations as a trust boundary — a manual audit, included because it maps the same data-vs-instructions boundary from the client side.
A deliberately-vulnerable multi-agent stack, shipped with the framework. Its weaknesses each map to a technique:
- an orchestrator agent with no trust boundary between retrieved data and instructions;
- five MCP tool servers —
customer-data(holds secrets),fs-tools,external-fetch,code-exec(an interpreter/RCE surface), andreports(a broad-access export subsystem whose low-scope tools chain into a privilege escalation); - a poisonable, unauthenticated RAG corpus;
- a billing-agent in its own trust zone with a privileged
paymentstool the orchestrator cannot reach — and a world-writable shared memory it reads; - a mesh of peer agents (billing, support, analytics, it-admin) wired to each other by A2A trust edges — including a cycle — that a self-propagating worm cascades across.
Offline, zero-dependency (default): the modules drive the range as in-process Python objects. Nothing to start.
Networked, real MCP (docker compose): the tool servers are genuine MCP servers
(official SDK, streamable-http) with transport-level bearer auth; the orchestrator and
billing-agent are MCP clients. Point any MCP client at them.
docker compose up --build -d
cutout run --target http://127.0.0.1:8600 CUT-RECON-001
cutout run --target http://127.0.0.1:8600 CUT-INJ-002
cutout run --target http://127.0.0.1:8600 CUT-EXEC-001 # exfils a live secret
cutout run --target http://127.0.0.1:8600 CUT-LAT-001 # pivots to billing-agent
docker compose downThe --target URL is the only thing that changes; the same modules hit the live stack, and
the RAG/memory state persists server-side between runs.
delivery ─┐ payloads ─┐ persistence ─┐ lateral ─┐
recon ──▶ (RAG, ├─▶ exec (tool ├─▶ (RAG / ├─▶ (A2A, │
(map) ticket, │ invocation, │ memory │ shared │
A2A…) │ harvest…) │ implants) │ memory…) │
└──────────────────┴──── one Session ─┴─────────────┘
│
evidence (JSONL) ──▶ cutout replay
- Modules are plugins discovered at runtime (decorator + entry points). Each declares
id, name, tactic, targets, optionsand implements a read-onlycheck()and arun(). - Session — a typed, JSON-serializable object (target, a networkx topology graph, artifacts, looted secrets, results) that flows through a chain of modules.
- Evidence — every action emits a
{ts, module_id, phase, action, data}event to a JSONL transcript. A run is a recording, not a report;cutout replayre-narrates it. - Offline mock provider — deterministic, so the whole demo runs with zero external calls.
See ARCHITECTURE.md for the full architecture and the module contract.
pip install -e ".[dev,range]"
ruff check . && ruff format --check .
mypy cutout cutout_range
pytest -qTypes everywhere; CI runs lint + format + types + tests on every push
(.github/workflows/ci.yml). The in-process range doubles as
the integration fixture, so the suite needs no running containers.
Cutout is independent security research for authorized testing and defense. The bundled range is intentionally insecure — do not deploy any part of it. For use against real systems, coordinated disclosure, and scope, see ETHICS.md.
Phase 0 complete, Phase 1 underway — engine, console, 21 modules across every tactic, the published CTX taxonomy page, and the offline + networked-MCP range all landed. See ROADMAP.md.
Apache-2.0. Vendors adopting the CTX technique IDs is a win, not a leak.