Every AI skill, plugin and local MCP package on our main agent box is now pinned to a hash. Before tonight, 0 of the 60 were pinned as a whole (6 had a few instruction files covered by another scan). Now 60 of 60 are, the daily security scan alerts on anything new, changed or missing, and a changed skill sits for 14 days before we will trust it again. In a planted-tamper test it caught 10 of 10 cases.
What we did
Reports this week described a campaign spreading through cloned AI coding skills: a skill named to look like a popular one, installed by a developer, which then quietly used their git token. Some variants reportedly slip past public content scanners. We install skills, and our agents hold deploy tokens, so we closed the gap with something deterministic rather than clever.
- A lockfile. A small Python script hashes every file in every installed unit (user skills, Claude Code plugins, the plugin marketplaces we install from, two agents' skill folders, and our local MCP server plus its Python packages) into one tree hash per unit. Symlinks are recorded by target, never followed.
- A daily check. It runs inside the existing 04:00 security scan, takes about 6 seconds, and sends a Telegram alert listing exactly which files were added, removed or modified.
- Three IoC labels on anything new or changed: a name within one or two characters of a popular skill, a Windows binary or updater DLL inside a skill, and text that reads or pushes with a git token.
- A 14-day cooldown. Re-pinning a changed unit is refused until the change has been sitting for 14 days, unless we override it with a written reason.
| Planted case | Lockfile | Existing config scan |
|---|---|---|
| One line added to a skill's instructions | caught | missed |
| New script that pushes with a git token | caught + IoC | missed |
| DLL dropped into a skill folder | caught + IoC | missed |
| New skill on the reported name list | caught + IoC | missed |
| Clone-named skill ("superpower") | caught + IoC | missed |
| File swapped for a symlink to a secrets file | caught | missed |
| Same-size edit with the timestamp faked | caught | n/a |
| Skill deleted / benign new skill / nothing changed | correct | n/a |
Why it was worth doing
Our other scanners ask "does this look malicious?". That is the question attackers tune against. "Is this byte for byte what we approved?" is cheaper and cannot be talked round. The existing config scan only looks at files like CLAUDE.md and AGENTS.md, so it missed all seven planted folders; that is not its job, which is the point. The two checks now cover different ground.
What's still off
The IoC labels are noisy on their own: 9 of our 60 known-good units would trip one if they arrived new, mostly documentation that mentions a token variable. They only ever ride along on a change alert, so they add no extra alerts. The lock covers this box, not the other machines in the fleet yet. And a hash tells you something changed, not whether the change is safe. Someone still has to read the diff.
What's now in the stack
security/skill-lock.py: the lockfile tool (check, init, approve with cooldown, coverage).security/skill-lock/tests/planted.sh: the ten-case tamper test, reusable after any change.- A new guarded step in the daily security scan, alert-only, never blocking.