mlsanityData to 14 Oct 2026

AgentTrap: Measuring Runtime Trust Failures in Third-Party Agent Skills

arXiv 2605.13940 ↗First posted 13 May 2026cs.CR cs.AIcited by 12

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

Third-party skills are becoming the package ecosystem for LLM agents. They package natural-language instructions, helper scripts, templates, documents, and service configuration into reusable workflows. This makes skills useful, but it also introduces a new security problem: a malicious skill does not need to ask the model to perform an obviously harmful action. Instead, it can disguise the harmful behavior as part of a routine workflow, relying on the agent to execute that workflow with high-value permissions and limited human supervision. We introduce AgentTrap, a dynamic benchmark for evaluating whether LLM agents can use third-party skills while resisting malicious runtime behavior. AgentTrap contains 141 tasks: 91 malicious tasks and 50 benign utility tasks, covering 16 security-impact dimensions grounded in agent-skill supply-chain threats. In each task, the agent receives an ordinary user request, runs with installed skills that may contain malicious workflow elements, and is executed in a sandboxed environment. AgentTrap then judges complete trajectories for attack success, blocked or refused behavior, attack-not-triggered cases, and no-attack-evidence outcomes. Our central finding is that the most informative failures are not simple jailbreaks. Models often complete the visible user task while treating unsafe side effects introduced by the skill as part of the normal workflow. This motivates runtime evaluation of the concrete model--framework--workspace environment in which users actually delegate work. Code and data are available at https://github.com/zhmzm/AgentTrap and https://huggingface.co/datasets/zhmzm/AgentTrap.

Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 13 of its 19 references that are in the map. First posted on arXiv 13 May 2026.

Builds on

13 of 19 references.

Closest ancestors · 12

Same direction, newest first

  1. 2026Semia: Auditing Agent Skills via Constraint-Guided Representation Synthesis1 May
  2. 2026HarmfulSkillBench: How Do Harmful Skills Weaponize Your Agents?16 Apr
  3. 2026Your Agent, Their Asset: A Real-World Safety Analysis of OpenClaw6 Apr
  4. 2026How Your Credentials Are Leaked by LLM Agent Skills: An Empirical Study3 Apr
  5. 2026Skill-Inject: Measuring Agent Vulnerability to Skill File Attacks23 Feb
  6. 2026"Do Not Mention This to the User": Detecting and Understanding Malicious Agent Skills in the Wild6 Feb
  7. 2026Agent Skills in the Wild: An Empirical Study of Security Vulnerabilities at Scale15 Jan
  8. 2025MCP Security Bench (MSB): Benchmarking Attacks Against Model Context Protocol in LLM Agents14 Oct
  9. 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents11 Oct
  10. 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul
  11. 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
  12. 2023Identifying the Risks of LM Agents with an LM-Emulated Sandbox25 Sep

Other references · 1

  1. 2026BadSkill: Backdoor Attacks on Agent Skills via Model-in-Skill Poisoningcited by 27

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 12.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Can Agents Trust Their Skills? Uncovering Unsafe Chains of Trust in Skill-Based LLM Agents
  2. 2026Towards Secure Agent Skills: Architecture, Threat Taxonomy, and Security Analysis
  3. 2026OpenSkillRisk: Benchmarking Agent Safety When Using Real-World Risky Third-Party Skills
  4. 2026Agent Skills Can Be Harmful: An Empirical Study of Skill-Induced Failures in LLM Agents
  5. 2026Behavioral Integrity Verification for AI Agent Skills
  6. 2026SKILLLITE: Evidence-Guided Malicious Skill Auditing with Compact LLMs
  7. 2026Proteus: A Self-Evolving Red Team for Agent Skill Ecosystems
  8. 2026Towards a Risk Assessment of Malicious Skill Files in Coding Agents