Skip to content
HiddenLayer Research·Indexed by this site · Originally published· Attacks →SelectedAttention42

HiddenLayer discloses that Claude Code skill frontmatter can bypass permissions and poison memory

What’s the ‘Matter’ with Skills?

AI summary

HiddenLayer research finds security gaps in multiple frontmatter fields of Claude Code skill files that can be exploited to hijack coding agents. Attackers use the allowed-tools field to pre-authorize tools such as Bash, Read, Write, Skill, and WebFetch, bypassing the usual tool invocation permission requests; by specifying a weaker model and lower effort level, they carry out downgrade attacks to evade guardrail refusals, while the reverse can inflate costs—in tests, the same URL summarization task rose from $0.0274 with Haiku at low effort to $0.1451 with Opus at high effort. Moving instructions into the when_to_use field and setting user-invocable to false can make a skill invisible in the slash menu yet still triggerable, and skill sites like ClawHub and skills.sh do not display fields other than name and description.

Why it was selected

HiddenLayer breaks down the permission bypass and memory poisoning chain in Claude Code skill frontmatter, providing checkpoints for teams using skill files.

Read originalhiddenlayer.com