From Attack Surface to Defense Architecture: Compositional Security for Agentic Coding Harnesses
arXiv:2611.13960
Abstract
AI coding harnesses couple language models to shells, filesystems, and network sockets, turning the harness into an automated Living-off-the-Land (LotL) platform: once an adversary injects instructions into retrieved content, dual-use binaries such as bash, curl, and find become the payload. We argue that security in agentic systems is a structural property of the cognitive architecture and permission composition rather than an emergent property of individual models. Static regex blacklists miss structural evasions, whereas LLM-as-a-Judge guardrails incur high latency while over-blocking benign work. We present ActiveSecHarness, a neurosymbolic reference-monitor architecture built around Separation of Intelligence and Authority. It combines (1) Macaroon-inspired HMAC capability tokens across four Trust and Authority Rings, (2) a 2D product taint lattice and a workspace provenance ledger that prevents secret laundering across disk, (3) deterministic Ring-0 OS/tool guards, and (4) bytecode certificates, split-horizon audit logs, self-healing security test synthesis, and an adaptive UserWikiManager. Across fixtures ( attack, benign, kill chains), a live local LLM judge (qwen3:4b) refuses of benign work at latency, whereas Ring 0 achieves and in ( faster). In a multi-step trajectory ablation, an oracle Conseca-style stateless policy misses kill chains () and coarse Boolean taint blocks of benign workflows, while our 2D product lattice achieves and at per step.
arXiv comment21 pages, 3 figuers, 1 sublement