# From Attack Surface to Defense Architecture: Compositional Security for Agentic Coding Harnesses

arXiv: https://arxiv.org/abs/2611.13960 · HTML: https://mlsanity.com/paper/2611.13960/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use.
- Builds on 17 of its 42 references that are in the map.
- Submitted 10 Nov 2026.

## Placed in

- LLM agents and tool use / [Agent threats, guardrails and governance](https://mlsanity.com/agents/agent-threats-guardrails-and-governance/)

## Builds on (most cited first, 17 of 17)

- [SWE-bench: Can Language Models Resolve Real-World GitHub Issues?](https://mlsanity.com/paper/2310.06770/) (2023)
- [SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering](https://mlsanity.com/paper/2405.15793/) (2024)
- [Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection](https://mlsanity.com/paper/2302.12173/) (2023)
- [OpenHands: An Open Platform for AI Software Developers as Generalist Agents](https://mlsanity.com/paper/2407.16741/) (2024)
- [Identifying the Risks of LM Agents with an LM-Emulated Sandbox](https://mlsanity.com/paper/2309.15817/) (2023)
- [Defeating Prompt Injections by Design](https://mlsanity.com/paper/2503.18813/) (2025)
- [Model Context Protocol (MCP): Landscape, Security Threats, and Future Research Directions](https://mlsanity.com/paper/2503.23278/) (2025)
- [Cybench: A Framework for Evaluating Cybersecurity Capabilities and Risks of Language Models](https://mlsanity.com/paper/2408.08926/) (2024)
- [IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systems](https://mlsanity.com/paper/2403.04960/) (2024)
- [LLM Agents can Autonomously Hack Websites](https://mlsanity.com/paper/2402.06664/) (2024)
- [AirGapAgent: Protecting Privacy-Conscious Conversational Agents](https://mlsanity.com/paper/2405.05175/) (2024)
- [GPTEval: A Survey on Assessments of ChatGPT and GPT-4](https://mlsanity.com/paper/2308.12488/) (2023)
- [Are Large Language Models Really Good Logical Reasoners? A Comprehensive Evaluation and Beyond](https://mlsanity.com/paper/2306.09841/) (2023)
- [Contextual Agent Security: A Policy for Every Purpose](https://mlsanity.com/paper/2501.17070/) (2025)
- [Machine Learning-based Orchestration of Containers: A Taxonomy and Future Directions](https://mlsanity.com/paper/2106.12739/) (2021)
- [Bridging Large-Model Reasoning and Real-Time Control via Agentic Fast-Slow Planning](https://mlsanity.com/paper/2604.01681/) (2026)
- [Co-Recursive Semantic Self-Extension: A Mathematical Foundation for Open-Ended Intelligence](https://mlsanity.com/paper/2610.31097/) (2026)

## Abstract (arXiv)

AI coding harnesses couple language models to shells, filesystems, and network sockets so that agents can resolve issues and run tests. That coupling turns the harness into an automated Living-off-the-Land (LotL) platform: once an adversary can inject instructions into retrieved content, dual-use binaries such as bash, curl, and find become the payload rather than a vulnerability to be separately exploited. We argue that security in agentic systems is not an emergent behavioral property of individual language models, but a structural property of the cognitive architecture and of the composition of permissions across interacting agents and humans. Static regex blacklists miss flag permutations and structural attacks, whereas LLM-as-a-Judge guardrails ask a second model to guess physical invariants at tens to hundreds of milliseconds per call while over-blocking benign work. We present ActiveSecHarness, a neurosymbolic reference-monitor architecture organized around Separation of Intelligence and Authority across four pillars: (1) Macaroon-inspired HMAC capability tokens across four Trust and Authority Rings; (2) a product taint lattice L_trust x L_sens and a compositional Separation-of-Duties ledger over shared workspace provenance; (3) deterministic OS/subprocess guards; and (4) extended bytecode certificates, split-horizon dual-key audit logs, a self-healing verification loop (CodeVerifier, DualModelReviewer, SecurityTestSynthesizer), and a progressive pedagogical UserWikiManager. On N=252 fixtures and a 12+12 multi-step trajectory suite, Ring 0 achieves FPR=0.000 (0.939 unfitted out-of-sample / 0.962 OS-inert; 1.000 post-audit conformance ABR) in 31.5 us median latency (4,517x faster than a live local LLM-judge) and blocks 12/12 multi-step kill chains at 0.000 benign trajectory FPR (266.7 us/step; ~24 us/step O(1) ledger state folding).
