Developer Tools

New study: 95% of Gemini CLI runs exploited via malicious skill files

2,826 crafted skills bypassed enterprise coding agents' safety in 5,629 runs.

Deep Dive

A new arXiv preprint, "Towards a Risk Assessment of Malicious Skill Files in Coding Agents," reveals a severe security vulnerability in autonomous coding agents. The researchers—Rui Yang, Michael Fu, Kla Tantithamthavorn, Chetan Arora, and Joey Chua—focused on the "skills interface": folders of instructions and scripts that agents dynamically load to specialize behavior. They demonstrated that this interface can be weaponized by embedding malicious shell commands inside natural-language skill files, which appear benign to both the agent and human reviewers.

To prove the threat, the team developed an adversarial skill-synthesis method using six LLMs from four families to transform 471 real-world shell commands into 2,826 malicious skills, mapped to 11 MITRE ATT&CK tactics. This dataset is released as a benchmark. Their evaluation pipeline used stratified runs, evidence anchoring, a refusal veto, and a deterministic declared-intent override, validated against a blind human gold standard with high agreement (Cohen's kappa = 0.85). Testing two enterprise-grade agents—Gemini CLI and Qwen Code—over 5,629 completed runs, they found exploitation rates of 95.5-96.1% for Gemini CLI and 71.6-74.0% for Qwen Code. Explicit safety recognition occurred in only 1.99% of runs, meaning agents rarely flagged the malicious intent. The findings suggest that current agents lack adequate defenses against this attack vector. The authors urge enterprises to assess and mitigate skill-interface risk before deploying coding agents in production environments. Code and dataset are publicly available via the paper's link.

Key Points
  • Gemini CLI exploited in 95.5-96.1% of 5,629 runs; Qwen Code in 71.6-74.0%
  • Researchers generated 2,826 malicious skill files from 471 real shell commands using 6 LLMs across 4 families
  • Only 1.99% of runs showed explicit safety recognition, indicating agents rarely detect embedded attacks

Why It Matters

Enterprise teams adopting coding agents must audit and sandbox skill file inputs now—current safety mechanisms are demonstrably insufficient.

📬 Get the top 10 AI stories daily