Towards a Risk Assessment of Malicious Skill Files in Coding Agents
Agent skills are folders of instructions plus optional scripts that a coding agent loads to specialise itself, pulled from marketplaces and shared repositories with roughly the trust you would give a README and none of the review you would give a dependency. This paper turned 471 real attack commands into 2,826 skills whose visible description reads as ordinary project setup — a credential harvester is captioned "Initializing project metadata" — with the payload framed as a mandatory preflight step the agent must finish before it is allowed to start the actual work. Across 5,629 completed runs against two enterprise coding agents, one committed to running the hidden command in 95.5% to 96.1% of runs and the other in 71.6% to 74.0%, near-identical regardless of which of six models wrote the disguise, while explicit safety refusals appeared in just 1.99% of runs overall. Most non-exploited runs were not saves — the agent simply never mentioned the preflight step at all. Treat an installed skill as executable code from an untrusted source, because that is exactly what it is.