agentleFS
RationalEyesRationalEyes/claude-skills-security-guide/skills/hash-verifier/SKILL.md

hash-verifier

Skill13 starsChanged 9 months agoMITView on GitHub

Skill integrity verifier. Checks that all installed Claude Skills match their known-good cryptographic hashes and alerts on any modifications, new unexpected files, or missing files. Use this skill to detect skill tampering, rug-pull attacks, or unauthorized post-install changes. Invoke with: "verify skill integrity", "check skill hashes", "run hash verification", or "detect skill tampering".

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 1

    1. conjure-3301/skills★ 092% same

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run the verifier before each session: python3 scripts/verify_hashes.py

    line 63
  2. Distinctive:

    PASS: All files match the manifest.

    line 67
  3. Distinctive:

    Read-only for the Claude process during normal operation

    line 83
  4. Distinctive:

    Run hash verification against all discoverable skill locations:

    line 106

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Hash Verifier Skill

This skill detects unauthorized modifications to installed Claude Skills by comparing current file hashes against a known-good manifest (hashes.json). It provides cryptographic integrity verification to detect unauthorized modifications to installed skills.

What This Skill Does

On first run, the verifier creates a hashes.json manifest capturing SHA-256 hashes of every file in every skill directory. On subsequent runs, it compares current state against the manifest and reports:

  • Modified files — existing files whose content has changed
  • New files — files added after the manifest was created
  • Deleted files — files present in the manifest but no longer on disk

This directly addresses the "rug-pull" attack pattern, where a skill appears benign during initial review but is silently modified later to introduce malicious behavior. It also catches supply-chain poisoning where a trusted skill repository pushes an update containing injected content.

Invocation

To verify all installed skills against the stored manifest:

Please run the hash verifier to check skill integrity.

To create or refresh the manifest (do this immediately after installing a skill you have manually reviewed):

Please generate a new skill hash manifest for the current skills.

First-Time Setup

  1. Install and review all skills you want to trust.
  2. Run: python3 scripts/generate_manifest.py --paths ~/.claude/skills .claude/skills
  3. Store hashes.json in a trusted location (or commit it to version control).
  4. Run the verifier before each session: python3 scripts/verify_hashes.py

Interpreting Results

  • PASS: All files match the manifest. No changes detected.
  • MODIFIED: One or more files have changed since the manifest was created. This could be a legitimate update OR tampering. Compare with the upstream source to determine which.
  • NEW FILE: A file was added that was not in the manifest. Inspect it before continuing.
  • MISSING: A file in the manifest is gone. This may indicate a partial update or deletion attack.

Manifest Storage

The manifest is stored at the location specified by --manifest (default: ~/.claude/skill-hashes.json). For maximum security, store it in a location that is:

  • Version-controlled (git tracks changes with attribution)
  • Read-only for the Claude process during normal operation
  • Backed up separately from the skill directories themselves

Running Manually

# Generate initial manifest
python3 ~/.claude/skills/hash-verifier/scripts/generate_manifest.py \
    --paths ~/.claude/skills \
    --manifest ~/.claude/skill-hashes.json

# Verify on subsequent runs
python3 ~/.claude/skills/hash-verifier/scripts/verify_hashes.py \
    --paths ~/.claude/skills \
    --manifest ~/.claude/skill-hashes.json

Part of the Claude Skills Defense Suite.

Execution

Run hash verification against all discoverable skill locations:

python3 "$(dirname "$0")/scripts/verify_hashes.py" \
    --paths ~/.claude/skills ./.claude/skills \
    --manifest ~/.claude/skill-hashes.json

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.