INQUIRING LINE

Agent Skills can bundle scripts and data, not just instructions — so installing one is really installing code you didn't write.

What security risks emerge from bundling large material in Skills?

This explores what security problems come up when Agent Skills carry more than instructions, such as scripts, tool interfaces, documentation and datasets, and why packing more into them can make them harder to check.


This explores what security problems come up when Agent Skills carry more than instructions, such as scripts, tool interfaces, documentation and datasets, and why packing more into them can make them harder to check. The main point in the corpus is that once a Skill can run code and reach system resources, it stops being a fancy prompt. It becomes something closer to a software dependency, with the risks a dependency brings Does bundling code with skills create hidden security risks?. The same packaging that makes Skills easy to reuse and share is what makes them dangerous. You are installing code you didn't write into an agent that can act for you.

Anthropic's design adds a twist. Skills load in stages: the agent reads bundled files only when it needs them, so a Skill can carry large documentation sets and datasets without filling the context window at the start Do unused files in Skills consume context tokens?. That is good for efficiency. It also means much of a Skill's content never sits in front of anyone, human or model, until the moment it is used. Bulk that costs nothing in context is also bulk that is easy to leave unread, so a large bundle gives harmful content plenty of room to hide.

The sharpest finding is about how attacks get past the tools meant to catch them. Skill scanners usually check one Skill at a time. Researchers showed that an attack can be split into pieces that each look harmless, packaged as separate Skills that only do damage when run in order, passing files and context from one to the next Can skill scanners miss attacks hidden across multiple skills?. It gets worse: attackers can use the scanners' own feedback to tone down each piece until it passes, while the plan across the whole chain stays intact. That reached a 96% average attack success rate across six scanners Can attackers evade skill scanners by refining individual skills?. The lesson is that checking each Skill on its own is the wrong unit of review once Skills can work together.

The problem looks familiar next to other parts of the corpus. A Skill's bundled documents are a lot like a RAG corpus: outside content the agent trusts and pulls in on demand. RAG poisoning has lightweight defenses that work at the moment of retrieval Can we defend RAG systems from corpus poisoning without retraining?, which hints that checks at load time could matter more for Skills than checks at install time. Training models to rank instructions by trust level, so that system instructions outrank content from tools or files, made them noticeably more resistant to prompt injection Can training models to rank instructions prevent prompt injection attacks?. That is directly relevant to text hidden inside a bundled file. Once agents have tools and credentials, the environment they run in becomes something they, or a malicious Skill, can exploit Is your evaluation environment actually part of the threat model?.

On the defensive side, one paper argues that Skills should be managed like any other file-based artifact: versioned, open to inspection, correctable and able to be rolled back, rather than kept as hidden prompt state Can person-grounded skills remain auditable without hidden prompt state?. That auditability is what makes large bundles safe to use. The corpus doesn't yet measure size directly, such as whether bigger bundles are attacked more often. What it does show is that loading on demand plus scanning one Skill at a time leaves a gap, and large bundles make that gap wider.


Sources 8 notes

Does bundling code with skills create hidden security risks?

Skills bundle executable scripts, tool interfaces, and external resources beyond text, allowing them to run code and access system resources. This modularity powers scalability but makes skills a security risk comparable to software dependencies rather than simple prompts.

Do unused files in Skills consume context tokens?

Anthropic's Agent Skills docs describe filesystem-based bundles that load in stages, claiming unused files incur no context penalty. The design relies on on-demand file access inside a VM, letting Skills bundle comprehensive documentation and datasets without inflating the context window upfront.

Can skill scanners miss attacks hidden across multiple skills?

Security scanners that inspect skills one at a time miss coordinated attacks where a malicious intent is decomposed into interdependent subpayloads packaged as separate skills. Each skill appears harmless in isolation, but their ordered execution carries out the attack through contextual dependencies and artifact passing.

Can attackers evade skill scanners by refining individual skills?

ColluSkill combines chain planning with scanner-feedback refinement to reach 96% average attack success. The approach works because scanners score skills individually, allowing feedback to reduce suspicion per skill while chain-level semantics remain intact.

Can we defend RAG systems from corpus poisoning without retraining?

RAGPart and RAGMask provide lightweight, retraining-free defenses that operate at the retrieval layer. RAGPart bounds poisoned-document influence via partitioned retriever learning; RAGMask flags suspicious documents through abnormal similarity collapse under token masking.

Show all 8 sources
Can training models to rank instructions prevent prompt injection attacks?

Fine-tuning GPT-3.5 Turbo to rank message types by privilege increased system prompt extraction defense by 63% and jailbreak robustness by 30%, even against unseen attacks, suggesting the approach generalizes beyond training data.

Is your evaluation environment actually part of the threat model?

The review's incident analysis shows that once models access memory, tools, and credentials, the testing environment becomes part of what they can exploit. Measuring capability without securing the environment leaves the mechanisms of action unexamined.

Can person-grounded skills remain auditable without hidden prompt state?

COLLEAGUE.SKILL treats distilled expertise as versioned files subject to inspection, correction, and rollback—not hidden prompt state. Separating capability tracks from behavior tracks enables independent audit of what someone knows versus how they act.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.