Pretext Evades Security Checks for AI Agent Skills

Paper / preprint arXiv cs.CR · Reported findings, not independently verified by us.

A new arXiv paper shows how screening systems for AI agent skills can be deliberately bypassed. Its method, Pretext, creates skills that carry a harmful payload while still performing their stated benign task. The finding matters because skills add instructions and information to an agent’s context, giving them a way to shape its behavior.

Skills are used by agents including OpenClaw and Claude Code. Earlier work found malicious skills on third-party marketplaces. One emerging defense scans skills before installation, combining deterministic static checks with a language model’s semantic judgment. The paper cites NVIDIA’s SkillSpector as an example of this approach.

Pretext assumes an attacker knows the detector and iteratively modifies a skill until it escapes detection. One tactic moves malicious code into natural-language instructions, which static analysis does not catch. Other instructions are split across files and framed as part of the skill’s legitimate purpose, keeping the language-model stage below its blocking threshold.

In tests using three open-source models, Pretext achieved evasion rates of up to 97 percent against a frozen detector and 77 percent against a co-adaptive one, according to the paper. The source details the attack method and experimental results: arXiv paper

🇬🇧 https://arxiv.org/abs/2609.39607v1

Leave a Comment

The weekly brief: selected developments, projects and videos