ddot  ·  Attack Prevention Shim
Technical white paper  /  MITRE ATLAS™ contribution companion

Wire-Level Mediation of AI Agent Tool Calls

A reproducible, cryptographically verifiable mitigation for the MITRE ATLAS MCP attack cluster.

Michael Dallas Keaton; George David Keaton, CPA

Divinitec, LLC (ddot)

Date: 22 Aug 2026 Target: ATLAS 2026.07 Case studies: 6 / 6 reproduced On-chain proof: Bitcoin mainnet
Abstract

Between late 2025 and 2026 the MITRE ATLAS knowledge base grew a dense band of adversary techniques that share a single pivot point: the tool-calling channel between an AI agent and the tools it invokes, in practice the Model Context Protocol (MCP). ATLAS documents these techniques, records real incidents against them, and lists mitigations. Every listed mitigation, however, is configuration guidance: it tells an operator what to restrict, but names no component that enforces the restriction on every call, at the transport, independent of the agent's cooperation. That enforcement layer is the missing object.

This paper presents ddot, a transparent shim that mediates every MCP tool call at the wire, and proposes three new ATLAS Mitigation objects backed by a battery of six reproducible, clean-room case studies. Each reproduces an ATLAS-documented behavior, demonstrates the attack succeeding with ddot removed, and demonstrates ddot refusing it under enforcement, with every decision recorded in a tamper-evident SHA-256 hash chain that a reviewer can re-verify. As a demonstration of on-chain provenance, the SHA-256 of an approved tool manifest was committed to the Bitcoin main chain; the transaction is public and permanent. Coverage claims are deliberately narrow: prevention is asserted only where ddot enforces at the wire.

1. Motivation: the empty slot in ATLAS

ATLAS release 2026.07 contains the MCP and agent-tool technique cluster, including AI Agent Tool Invocation T0053, Exfiltration via Tool Invocation T0086, Data Destruction T0101, Credential Harvesting T0098, Publish Poisoned Tool T0104, Poisoned Tool T0011.002, Tool Poisoning T0110, Supply Chain Rug Pull T0109, and Context Poisoning T0080. It also contains agent-relevant mitigations such as Tool Permissions Configuration (M0028), human-in-the-loop, restrict-on-untrusted-input, segmentation, and input/output validation.

Each of those mitigations is written as something an operator should configure. None names a live component that enforces the policy on every tool call, at the transport, whether or not the agent has been manipulated. A configuration is only as strong as the willingness and ability of every tool and server to honor it. An agent driven by prompt or context injection to attempt a disallowed action does not consult the configuration; it simply calls the tool. What is missing from ATLAS is the enforcement point that sits in the path of that call.

2. Threat model

We assume an adversary who can influence what an AI agent attempts, but who does not control the host operating system on which the mediation shim runs. The adversary may publish or poison an MCP tool; inject instructions into the agent's context via document or tool output; drive the agent to invoke tools for exfiltration, destruction, or credential access; or swap a previously trusted tool for a malicious version after adoption. The defender controls the transport between the agent and its tools, and the signing and audit infrastructure on the host. The model itself is treated as untrusted with respect to manipulation: the design assumes the agent can be fooled, and places enforcement outside the agent's reasoning.

3. Architecture

ddot interposes a proxy on the MCP stdio channel. Every JSON-RPC tools/call between an agent and a tool passes through it before reaching the tool. Three mechanisms are relevant to this submission.

3.1 Wire-level tool-call mediation

A signed per-server manifest declares the exact tools an agent may call. On each tools/call, the shim evaluates a hot-reloadable policy (global, per-session, and per-client rules) and the manifest allow-list. A call that is not permitted is refused at the wire and never reaches the tool. The decision is independent of the agent's reasoning: a manipulated agent that attempts a disallowed call has that call refused exactly as any other. Every decision, allowed or blocked, is written to a tamper-evident audit chain (section 4.2).

3.2 Cryptographic and on-chain provenance

Each tool is bound to a manifest signed with a hybrid classical and post-quantum scheme (Ed25519 with ML-DSA-65, FIPS 204), so a single broken algorithm does not defeat verification. The shim verifies the manifest signature before a tool is spawned. At approval time the manifest's SHA-256 hash is committed to a public, immutable ledger via an OP_RETURN transaction on the Bitcoin main chain. Because the approved hash lives on an independent public ledger, any post-approval change to a tool is detectable by anyone and cannot be backdated or disputed.

3.3 Prompt-injection airgap firewall

Untrusted tool and document output is structurally separated from trusted instructions before it reaches the model: content is wrapped in explicit untrusted boundaries and marked as data, instructions are anchored redundantly around it, the content is schema-validated upstream, and the model's response is checked against a canary token so a hijacked response is detected. This bounds indirect prompt injection at ingestion, upstream of any tool call, and complements the wire-level mediation that blocks the downstream action.

4. Methodology

4.1 The three-way control

Each hard-prevent case study is run three times against the same harness. (a) ddot off: the attack is sent directly to the tool and succeeds, establishing that the attack is real and the damage is measurable. (b) ddot on with an empty policy: the identical calls pass through the shim, which forwards them, and the attack still succeeds. This proves the shim is a faithful transparent proxy and pre-empts the objection that it simply breaks traffic. (c) ddot on with policy enforced: the identical calls are refused at the wire. Because (a), (b), and (c) differ only in the policy decision, the block is attributable to that decision and nothing else.

4.2 Tamper-evident evidence

Every mediation decision is recorded in a SHA-256 hash chain: entry N includes the hash of entry N-1, anchored to a genesis value. Altering any entry changes its hash and breaks every subsequent link. The shipping verifier recomputes the entire chain and reports intact or tampered. A reviewer verifies the evidence without trusting the authors.

4.3 Clean room

Every case runs under a throwaway home directory with synthetic data only. No network is used, and nothing belonging to the operator is touched. The harness drives the shipping ddot release binaries, not a mock of them.

5. Case studies

All six are built and pass end to end against the shipping binaries. They reproduce with a single command (section 8).

cs01, Exfiltration via tool invocation (T0086 T0053). A tool advertised as a notes backup reads a private secrets file and transmits it to an attacker destination. With ddot off and with an empty policy the secret is exfiltrated; under enforcement the call is refused (blocked by policy) and recorded. Chain verified intact.

cs02, Data destruction via tool invocation (T0101 T0053). A cleanup tool deletes a synthetic project tree. Under enforcement the destructive call is refused and the files survive. Chain intact.

cs03, Credential harvesting (T0098 T0053). A config-reader tool lifts a synthetic credentials file. Under enforcement the call is refused and the secret never leaves via the tool. Chain intact.

cs04, Poisoned tool with benign name (T0110 T0011.002). A tool advertised as a weather lookup secretly reads private notes, a behavior that betrays its description. Under enforcement the poisoned call is refused. Chain intact.

cs05, Supply-chain rug pull (T0109). A trusted, signed tool is swapped for a malicious version after approval while its signature is left stale. Before the swap, verification passes and the tool spawns. After the swap, manifest signature verification fails and the tool is refused before it can spawn. The approved manifest hash is committed to Bitcoin (section 6), so the change is provable against an immutable public ledger.

cs06, Context poisoning weaponized as tool actions (T0080 T0053). A poisoned inbox message instructs the agent that it is now authorized to post to a social platform. The agent obeys and attempts three posting tools. The signed manifest declares only the read capability: the benign read is allowed (the injection lands in the model) but every posting call is refused with "not in manifest." The injection cannot widen the agent's permissions because the capability boundary is enforced at the wire, not in the model's reasoning. This is the clearest demonstration that the architecture, not a patch on top of it, is the mitigation.

6. On-chain provenance demonstration

To demonstrate section 3.2 concretely, the SHA-256 of the cs05 approved manifest was committed to the Bitcoin main chain in ddot's 41-byte OP_RETURN attestation format (a protocol marker, a schema version, an attestation type denoting a skill-signature commitment, a timestamp, and the 32-byte hash).

Manifest SHA-256

2287249f4f9329c90187665a119ebf6ba42efb1d4cbe23098076ad675bae5c25

Bitcoin transaction

569f981174e743697522256fe0862fdcf512e0f797a8ba9c019db3f58cfd2a79

Verify the transaction on mempool.space →

Anyone can retrieve the transaction and read the committed hash. A tool whose manifest no longer matches this anchored hash is demonstrably not the approved tool.

7. Honest scope and limitations

This submission claims prevention only where ddot enforces at the wire. It does not claim coverage of ATLAS techniques that lie outside the tool-call boundary, such as model evasion, training-time poisoning, or inference-API attacks. For context poisoning T0080, ddot does not prevent the injection from reaching the model; it prevents the injected instruction from producing an unauthorized tool action, and it records the attempt. The mitigations are mapped to techniques on this basis. Overclaiming would weaken, not strengthen, the contribution; the narrow claim is the defensible one.

8. Reproducibility

The complete evidence battery is reproducible with one command against the shipping ddot binaries:

./atlas-evidence/lib/run_all.sh

Each case exports its audit chain. Any chain is re-verified with the shipping verifier, which recomputes every SHA-256 link and reports intact or tampered.

9. Proposed ATLAS objects

Three Mitigation objects and six Case Study objects are proposed, authored to the ATLAS contribution schema.

The three cite, and do not duplicate, the existing configuration mitigations (M0028 through M0033): they name the enforcement layers those configurations assume.

10. Conclusion

ATLAS names the MCP attacks, records the incidents, and recommends configurations. What it has lacked is a component that enforces those configurations on every call, at the wire, independent of a manipulable agent. ddot is that component, and this submission supplies not only the mitigation objects but reproducible, cryptographically verifiable, and in one case publicly anchored proof that it works. The proof is designed to be re-run, not believed.