arXiv

Coding agents chained harmless tools into attacks in tests

Unprotected Gemini models completed 72.9% to 84.5% of attack chains; CompGuard reported a 100% defense block rate.

Paper by Deep Shah, Nehal Kathrotia
A light blue layered gate stops a black chain, surrounded by scattered gray squares, dark blue-green hooks, and neatly assembled blue squares.

Our read

Studied:
Preprint: system

Editor of record: Boris Djordjevic · Paperfoot

The researchers built CompGuard, a defense system for autonomous coding agents, and tested it on 360 exploit tasks and 200 benign developer and cloud workflows. The attacks combined individually harmless tools across steps, using shared files, environment variables and conversation memory.

Across eight hazard categories, unprotected Gemini 3.5, 3.7 and 3.8 Flash models completed attack chains at rates of 72.9% to 84.5%. Five scanners that inspected tools separately detected none of the constituent tools. CompGuard issued narrowly scoped permissions, tracked data origins and enforced restrictions through the operating system. It achieved a 100% defense block rate, with a reported net attack success rate before cleanup of 0.0% to 0.8%. It preserved a 98.0% solve rate on benign developer workflows.

Why it matters

The benchmark showed how attacks can emerge from combinations of legitimate tool operations. Checking each tool separately missed the threat in these tests.

Caveats

The attack tests covered three Gemini models; the abstract does not report variation across repeated runs. The paper is a preprint, not yet peer-reviewed.

In this paper

compositional exploits in autonomous coding agents

Methods
CompGuard (this paper)Gemini 3.5 Flash (baseline)Gemini 3.7 Flash (baseline)Gemini 3.8 Flash (baseline)Bandit (baseline)Semgrep (baseline)Cisco AI Defense (baseline)Claude 3.5 Sonnet (baseline)GPT-4o (baseline)AutoGen
Datasets
SkillCompositionBench (this paper)SkillUtilityBench (this paper)Cloud-OpsBench (this paper)

Results

CompGuard, Defense Block Rate: 100%; CompGuard, interposition overhead: 61.4 microseconds; CompGuard, solve rate, on benign developer workflows: 98.0%; CompGuard, false alarms, across 615 real cloud diagnostic calls: zero

CompGuard achieves a 100% Defense Block Rate (0.0% to 0.8% pre-teardown Net ASR) at 61.4 microseconds interposition overhead, preserves a 98.0% solve rate on benign developer workflows, and triggers zero false alarms across 615 real cloud diagnostic calls.

Abstract

Gemini 3.5 Flash, ASR, Across the 280 core exploit tasks (Track 2): 79.6%

High Baseline Vulnerability & Hazard Variance: Across the 280 core exploit tasks (Track 2), unprotected Gemini 3.5 Flash agents achieved a 79.6% (223/280) ASR, saturating at 94.3%–100.0% on H_{1},H_{2}, and H_{4} – H_{7} where each gadget mimics routine config, hook, or migration maintenance.

VII Comprehensive Empirical Evaluation

Gemini 3.5 Flash, ASR, across the full adversarial suite ( N=354 completed trials out of 360 across Tracks 2–4, excluding 6 API-rate-limited ru: 72.9%; Gemini 3.7 Flash, ASR, across the full adversarial suite ( N=354 completed trials out of 360 across Tracks 2–4, excluding 6 API-rate-limited ru: 79.4%; Gemini 3.8 Flash, ASR, across the full adversarial suite ( N=354 completed trials out of 360 across Tracks 2–4, excluding 6 API-rate-limited ru: 84.5%

Exploit success scales monotonically with model capability: Gemini 3.5 Flash (72.9%, 258/354) \to Gemini 3.7 Flash (79.4%, 281/354) \to Gemini 3.8 Flash (84.5%, 299/354 ASR).

VII Comprehensive Empirical Evaluation

CompGuard, FPR, on Cloud-OpsBench, Across 615 diagnostic tool calls in 100 real Kubernetes cases: 0.00%; CompGuard, Joint RCA Accuracy (JRA), on Cloud-OpsBench, Across 615 diagnostic tool calls in 100 real Kubernetes cases: 85.0%; CompGuard, Component Accuracy, on Cloud-OpsBench, Across 615 diagnostic tool calls in 100 real Kubernetes cases: 93.0%

… Across 615 diagnostic tool calls in 100 real Kubernetes cases from Cloud-OpsBench, CompGuard incurred 0.00% FPR (zero false alarms) while boosting Joint RCA Accuracy (JRA) by +3.0% (82.0% \to 85.0%) and Component Accuracy by +2.0% (91.0% \to 93.0%) by confining SRE agents to read-only diagnostic leases and preventing noisy cluster mutations …

VII Comprehensive Empirical Evaluation

CompGuard, attribution precision: 98.2%

We presented CompGuard, uniting a Cognitive Control Plane with an OS Kernel Enforcement Layer to achieve a 100% Defense Block Rate (0.0%–0.8% pre-teardown Net ASR) at 61.4 \mu\text{s} interposition overhead, preserving a 98.0% benign solve rate (2.0% FPR), 0.00% cloud FPR (+3.0% JRA), and 98.2% attribution precision …

X Conclusion

What it shows

Atomic single-tool static analyzers and LLM review gates exhibit a 100.0% bypass rate across the shared pool of 32 constituent tools.

… leading single-tool static analyzers and LLM review gates (Bandit v1.7.9, Semgrep v1.84.0 with >1,200 rules, Cisco AI Defense, AST linters, and LLM-as-a-Judge via Claude 3.5 Sonnet and GPT-4o) exhibited a 100.0% bypass rate across the shared pool of 32 constituent tools ( 0/32 detected across 32× 5=160 isolated tool audits …

VII Comprehensive Empirical Evaluation

Exploit success scales monotonically with model capability across generations of the Gemini Flash coding family.

Exploit success scales monotonically with model capability: Gemini 3.5 Flash (72.9%, 258/354) \to Gemini 3.7 Flash (79.4%, 281/354) \to Gemini 3.8 Flash (84.5%, 299/354 ASR).

VII Comprehensive Empirical Evaluation

CompGuard achieves a 100.0% Defense Block Rate across all active exploit trajectories.

As shown in Table IV, CompGuard achieved a 100.0% Defense Block Rate (DBR) across all active exploit trajectories (0.8% mean Net ASR from the two pre-teardown oracle touches in H_{1} / H_{2} ).

VII Comprehensive Empirical Evaluation

Under hierarchical multi-agent delegation, direct safety refusal dropped to 0.0%.

Under hierarchical multi-agent delegation (Architect \to Executor), direct refusal dropped to 0.0%, yielding 75.0% baseline ASR.

VII Comprehensive Empirical Evaluation

CompGuard incurs a microsecond teardown window when revoking a worker that abuses a pre-authorized local socket or workspace file.

… revoking a worker that abuses a pre-authorized local socket or workspace file via PEP 578/fanotify incurs a microsecond teardown window (as in H_{1} / H_{2}, Table IV), and timing covert channels remain out of scope …

IX Discussion, Limitations & Disclosure

Quoted word for word from the full text on arXiv.

The paper

Compositional Exploits in Autonomous Coding Agents: Attack Mechanics and Ephemeral Defense

Deep Shah, Nehal Kathrotia

arXiv, Nov 15, 2026, Open access, Preprint, not yet peer-reviewed

doi.org/10.48550/arxiv.2611.19764

arXiv:2611.19764v1 in cs.CR

AbstractPDFHTML

Cite as BibTeX
@misc{shah2026compositional,
  title = {Compositional Exploits in Autonomous Coding Agents: Attack Mechanics and Ephemeral Defense},
  author = {Shah, Deep and Kathrotia, Nehal},
  year = {2026},
  eprint = {2611.19764},
  archivePrefix = {arXiv},
  primaryClass = {cs.CR},
  doi = {10.48550/arxiv.2611.19764},
  url = {https://arxiv.org/abs/2611.19764}
}