HKUST: SkillCloak Bypasses AI Agent Scanners 90%+ of Time

The 30-Second Skim
- What happened: Researchers at the Hong Kong University of Science and Technology showed that scanners meant to block malicious add-on 'skills' for AI coding agents can be systematically bypassed, with their strongest trick slipping past every tested scanner more than 90% of the time.
- Key facts & numbers: HKUST researchers published a preprint paper titled 'Cloak and Detonate' introducing SKILLCLOAK, a tool that rewrites malicious AI agent 'skills' so they pass pre-installation scanners while behaving identically at runtime. SKILLCLOAK's self-extracting packing technique evaded all eight scanners tested more than 90% of the time across 1,613 real malicious skills pulled from ClawHub, and surpassed 99% evasion on most of them. The lighter text-rewriting method cleared more than 80% on most scanners and 96% on one, while cloaked skills retained full functionality on Claude Code and OpenAI Codex at almost no cost to the attacker.
- What happens next: The defense runs minutes per skill vs. seconds for a static scan, and the paper isn't peer-reviewed yet. But the direction is damning: trust the running skill, not the submitted one.
- HKUST researchers published a preprint paper titled 'Cloak and Detonate' introducing SKILLCLOAK, a tool that rewrites malicious AI agent 'skills' so they pass pre-installation scanners while behaving identically at runtime.
- SKILLCLOAK's self-extracting packing technique evaded all eight scanners tested more than 90% of the time across 1,613 real malicious skills pulled from ClawHub, and surpassed 99% evasion on most of them.
- The lighter text-rewriting method cleared more than 80% on most scanners and 96% on one, while cloaked skills retained full functionality on Claude Code and OpenAI Codex at almost no cost to the attacker.
- The same team built SKILLDETONATE, a runtime behavior checker that watches what a skill reads, writes, and sends at the OS level, catching 97% of attacks with 2% false positives in lab tests and 87% on real-world malicious skills.
Why It Matters
For any team using coding agents like Claude Code or OpenAI Codex, a 'passed the scan' badge is no longer a guarantee — SKILLCLOAK's packing trick evades every tested scanner over 90% of the time while preserving full malicious functionality, and Bitdefender has already found ~17% of marketplace skills carrying hidden malicious code. The paper argues trust has to move from the marketplace gate to runtime behavior monitoring on the machine where the skill actually runs.
Sources Cited
Related Coverage
Ask SkimNews