Advent Cybersecurity Research · Paper
Research Paper: Trust Boundary Failures in AI Coding Agents
Three Claude Code MCP configuration and confirmation findings, viewed through an enterprise defensive architecture lens.
This Advent Cybersecurity edition is a substantive account of the research, not the complete deposited paper. The PDF on Zenodo contains the full analysis, tables, examples, and complete citations.
Why the trust boundary matters
AI coding agents can reach files, terminals, and external services through Model Context Protocol (MCP) servers. The paper examines how a human user's consent can be carried forward when an agent later processes attacker-controlled workspace content. It reports three findings observed in Claude Code v2.1.63 and asks what controls an enterprise needs when local configuration and tool descriptions cannot be treated as authoritative merely because an assistant presents them.
All three findings were submitted through Anthropic's HackerOne Vulnerability Disclosure Program and closed as Informative. The paper does not present that disposition as a vendor confirmation of a software vulnerability. Its aim is to analyze the defensive implications of the observed behavior.
Three empirical findings
- Trust persistence after .mcp.json changes. The paper reports that acceptance of an MCP server is cached by server name rather than its full configuration. A modified .mcp.json can therefore run without a fresh prompt on a later launch. The source summary maps this to CWE-78 and CWE-356.
- Blanket trust for future MCP servers. The 'Use this and all future MCP servers' choice extends consent to server definitions added after the original decision. The paper describes the absence of a built-in expiration or revocation boundary for that choice and maps the behavior to CWE-356.
- Server-controlled confirmation text. The confirmation prompt can show a tool name, parameters, and description supplied by the MCP server. The paper explains the resulting gap between what the user thinks is approved and the operation a server performs, and maps it to CWE-451.
Compensating controls
The paper proposes six control areas: isolation through virtual desktop infrastructure or cloud development environments; integrity monitoring for MCP configuration; workspace trust policy enforcement; network segmentation for MCP processes; developer-environment hardening; and detection and response for agent-driven activity.
These controls address different failure modes. Isolation limits damage if a tool runs unexpectedly. Configuration monitoring can reveal changes after a trust decision. Policy and segmentation restrict what a trusted tool can reach. Detection provides a record when an agent's behavior departs from the user's intended workflow. None of them converts server-supplied text into a verified description of what a tool will do.
Disclosure and reproduction
The source summary links three proof-of-concept repositories, one for each finding. They are hosted in the original researcher's GitHub account. The vendor disposition for the submitted reports was Informative; readers should review the paper, source repositories, and current product behavior before applying the findings to a later Claude Code release.