TL;DR
Installing third-party "skills" into an LLM agent is a lot like installing browser extensions: marketplaces run automated security checks, assuming a rejected malicious package stays rejected. This paper shows what happens when an attacker reads the auditor's rejection notes, tweaks their code and documentation, and tries again. Meet PROTEUS, a self-evolving red-team agent demonstrating that iterative, feedback-driven attackers can reliably slip lethal exploits past today's top open-source skill auditors.
What Problem Does This Paper Address?
LLM agents become genuinely useful when equipped with third-party skills—bundles containing executable scripts, YAML configurations, and markdown documentation. Together, these create a dual attack surface: scripts run in the agent's environment, while documentation sits in the LLM's context window, subtly steering how the model interprets future tasks.
To keep marketplaces safe, defenders use automated skill auditors that combine static code scanners with LLM-based documentation judges. However, security evaluations usually treat vetting as a single-shot snapshot against a fixed dataset of bad skills. In reality, many auditors are open-source, meaning an attacker can run them locally, inspect the exact reason codes for a rejection, and revise their skill until it passes. The authors formalize this unmeasured reality as adaptive leakage: the probability that an attacker with a fixed iteration budget can evolve a skill that both passes pre-deployment auditing and inflicts verified runtime harm.
Methods
PROTEUS is a closed-loop, graybox red-team framework designed to measure adaptive leakage. Instead of mutating text prompts alone, it searches across a five-axis skill-attack space: attack objective, multi-skill chain topology, executable code, side-effect channel, and documentation.
Every round, a candidate skill must survive a strict audit -> sandbox -> oracle pipeline. Success requires a "joint" victory: bypassing the auditor and triggering a deterministic sandbox sensor (like unauthorized file tampering or data exfiltration) when executed by a target LLM. Crucially, instead of receiving a simple pass/fail score, the LLM mutator agent receives rich, structured feedback—specific audit reason codes, severity pointers, and sandbox runtime traces—acting as a "verbal gradient" to guide its next edit.
PROTEUS evolves attacks across three stages:
- Free Discovery (Phase 1): Iteratively coordinates changes across documentation and code until a seed skill achieves joint success.
- Path Expansion (Phase 2): Searches for alternative technical mechanisms to achieve the same malicious objective (e.g., swapping
cronforsystemdtimers). - Surface Expansion (Phase 2): Transfers a working structural trick (motif) to an entirely new attack objective.
Datasets
Rather than training a model, PROTEUS constructs evaluation cohorts from ClawHub, a public ecosystem of roughly 47,000 agent skills.
- Base Cohort: Using graph-guided composition (matching compatible data sources and sinks across the 47k-skill graph), the authors built 20 malicious seed skills spanning seven harm categories (such as privilege escalation, persistence, and data exfiltration), paired with 10 realistic target repositories (DevOps, RAG, trading, etc.).
- Extensions & Holdouts: They added 30 disjoint public skill seeds to test robustness on select configurations, plus a 20-seed graph-independent holdout selected via random sampling and an independent LLM workflow judge to verify that attacks don't depend on their graph-selection heuristic.
Key Insights and Ideas
- Dual-channel blind spots are fatal under iteration: LLM judges are repeatedly charmed by "purpose-coherent narratives" (e.g., framing a suspicious permission change as routine post-rotation log repair), while static code scanners miss misalignment between what documentation claims and what scripts actually do.
- Structured feedback beats blackbox guessing: Giving the attacker structured audit findings yields an ~11× steeper learning curve slope compared to blackbox attackers that only see binary accept/reject signals, which plateau almost immediately.
- Operational exploits aren't automatically stealthy: An external baseline (
SkillJect) successfully triggered malicious runtime effects in 19 of 25 candidates, yet the auditor caught 17 of them—highlighting why red-teaming must optimize for audit evasion and runtime execution simultaneously. - Multi-skill chains matter: Forcing the attacker to use single skills instead of pairing compatible skills dropped success rates in ablations from 80% to 0%, showing how malicious intent hides across compositional boundaries.
Key Results
PROTEUS was tested across two open-source auditors—SkillVetter (SV) and Tencent's AI-Infra-Guard (AIG)—using two mutator models (DeepSeek-V4-Pro, Kimi-2.6) and two target agent backbones (GLM-5, GPT-5.4-mini).
- Phase-1 Iterative Bypass: Within a 5-round budget (ASR@5), PROTEUS achieved 55–90% joint success against SkillVetter and 46–76% against the stricter AIG auditor across the largest cohorts.
- Crushing Baselines: On a matched 20-seed AIG benchmark, PROTEUS hit 80% ASR@5, outperforming external frameworks PyRIT (25%), SKILL-INJECT (20%), and SkillJect (10%).
- Phase-2 Variant Explosion: Expanding the 160 initial seed–configuration pairs yielded 438 jointly bypassing, lethal variants out of 999 candidates. SkillVetter was bypassed ≥93% of the time in every cell; AIG admitted up to 41.3% joint success. Even seeds that failed in Phase 1 recovered during Phase 2, contributing 91 of those successes.
- Cross-Auditor Transfer: When 57 successful variants evolved against AIG were tested zero-shot against SkillVetter, 87.7% (50/57) passed without a single additional edit.
Limitations and Future Work
In the main text, the authors note that detailed limitations and broader impacts are deferred to Appendices C.1 and C.2 (which are not included in the provided pages). However, they explicitly note in their setup that sandbox evaluations run on an undefended OpenClaw image, isolating auditor and base-model behavior rather than active runtime sandboxing defenses. Looking forward, the authors emphasize that static, one-shot marketplace vetting is insufficient, pointing toward adaptive, runtime-aware defenses as the necessary next step for securing agent-skill ecosystems.
Summary updated