Pretext: Defeating Malicious Skill Detection Frameworks for AI Agents
Pretext builds malicious agent skills that evade SkillSpector-style scanners at up to 97 percent.
Pretext is a white-box attacker that iteratively writes agent skills which evade pre-install scanners while still carrying a payload and completing the benign task. Skills are used by agents such as OpenClaw and Claude Code; defenses like NVIDIA's SkillSpector combine static checks with an LLM semantic judge. Moving the payload into natural language defeats static analysis, and framing it as the skill's purpose while splitting instructions across files keeps the LLM score under the block threshold. Across three open-source models, success reached up to 97% against a frozen detector and 77% against a co-adaptive one.
- Pretext moves malicious skill payloads from code into natural-language instructions.
- Legitimate-purpose framing and cross-file splits keep the LLM judge below its block threshold.
- Evasion reaches 97% against a frozen detector and 77% against a co-adaptive one.
- Evaluated defenses include NVIDIA SkillSpector-style scanners for agents such as Claude Code.
- Vendors
- NVIDIA
- Products
- SkillSpectorClaude CodeOpenClaw
- Organizations
- NVIDIA
From the original article
1 min read at arxiv.orgSkills extend an agent's capabilities by injecting instructions and information into the context, and are widely used by agents such as OpenClaw and Claude Code. Prior work shows third-party marketplaces host malicious skills that give attackers direct influence over the victim's agent.
By Tobias Kaisar · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.