← Latest papers
💻 computer science

SkillGate: Cost Efficient Runtime Malicious Skill File Detection in Coding Agents

SkillGate is a cost-efficient security gateway that protects AI coding agents from malicious skill file supply-chain attacks by employing a hybrid regex-prefilter and LLM-judge pipeline to achieve high detection accuracy while significantly reducing screening costs and runtime overhead.

Original authors: Rui Yang, Michael Fu, Kla Tantithamthavorn, Chetan Arora, Joey Chua

Published 2026-07-29
📖 4 min read☕ Coffee break read

Original authors: Rui Yang, Michael Fu, Kla Tantithamthavorn, Chetan Arora, Joey Chua

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine your computer is a super-smart, hyper-creative robot assistant that helps you build things, like a digital LEGO master. Recently, people started giving this robot a special "instruction manual" called a skill file. Think of these files like cheat codes or custom recipes that tell the robot exactly how to talk to your specific projects, which buttons to press, and how to follow your company's rules. You can download these manuals from public libraries with a single click, just like downloading a new app.

But here's the catch: because these manuals are written in plain language (like a story or a list of instructions) rather than complex computer code, the usual security guards that check for viruses don't know how to read them. It's like having a bouncer at a club who only checks for metal weapons but lets in someone carrying a hidden knife made of paper. If a bad actor slips a malicious instruction into one of these manuals, your robot assistant might unknowingly follow it, stealing your secret passwords or sneaking a backdoor into your work. This isn't a scary movie plot; it's a real problem happening right now in the world of AI coding.

This is where the researchers come in with a new tool called SkillGate. They realized that the old ways of checking these files were either too clumsy (blocking too many good files by mistake) or too expensive (taking too long and costing too much money to check every single word). So, they built a smart, two-step security checkpoint.

First, they use a super-fast "pattern scanner" (like a metal detector) that looks for specific suspicious phrases, such as commands to steal passwords or hide secret messages. If a file looks perfectly clean, the scanner gives it a quick "thumbs up" and lets it pass instantly without bothering a human or a slow computer brain. This is the "skip" step.

However, if the scanner spots something weird, it doesn't send the whole massive file to the next level. Instead, it acts like a highlighter, cutting out just the tiny, suspicious paragraph and sending only that snippet to a super-smart AI judge (an LLM). This judge then decides if that specific snippet is actually dangerous or just a false alarm. This "snippet" approach saves a ton of time and money because the AI doesn't have to read the entire book to find the bad page.

When they tested this system against a library of 1,650 skill files (where about 9% were known to be malicious), SkillGate did an impressive job. It caught about 77% of the bad files while only mistakenly blocking 1% of the good ones. In comparison, the other tools they tested were either too aggressive (blocking half of the good files) or too slow and expensive. SkillGate managed to do this while using 77% fewer "tokens" (the currency of AI reading) than if they had checked every file from start to finish. It also worked incredibly fast, taking less than a second on average to check a file, which is fast enough to happen instantly while a developer is installing a new tool.

The researchers are careful to note that while their system is a huge improvement, it's not magic. It relies on a specific set of rules and a specific AI model, and there are still some tricky ways bad actors might try to hide their tricks that the system didn't catch in this test. But for now, SkillGate offers a practical, affordable, and fast way to keep our AI assistants from accidentally following dangerous instructions, acting as a reliable gatekeeper before the robot ever sees the new manual.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →