agentleFS
RationalEyesRationalEyes/claude-skills-security-guide/skills/security-monitor/SKILL.md

security-monitor

Skill13 starsChanged 9 months agoMITView on GitHub

Runtime security monitor for Claude Skills. Activates automatically when skills are loaded to scan all installed skill files for suspicious patterns including external URL references, credential access, persistence mechanisms, and hidden content. Run this skill before executing any untrusted skill to get a security report. Invoke with: "run security monitor", "scan installed skills", "check skills for threats", or "audit skill security".

2 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 1

    1. conjure-3301/skills★ 095% same

    Wrote their own version · 1

    1. delorenj/skills★ 15same name

    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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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:

    When invoked, this skill runs scripts/scan_skills.py against all skill directories discoverable from standard install locations:

    line 29
  2. Distinctive:

    LOW: No significant indicators found.

    line 65
  3. Distinctive:

    Run the security scanner now against all discoverable skill locations:

    line 97

≈ “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

Security Monitor Skill

This skill scans all installed Claude Skills for indicators of compromise and injection attack patterns. It provides automated static analysis to detect malicious patterns before untrusted skills are executed.

What This Skill Does

When invoked, this skill runs scripts/scan_skills.py against all skill directories discoverable from standard install locations:

  • ~/.claude/skills/ (personal skills)
  • .claude/skills/ (project skills in current working directory)

The scanner checks each SKILL.md and any associated scripts for:

  1. External URL references — C2 callbacks, data exfiltration endpoints
  2. Credential access patterns — environment variable reads of sensitive keys
  3. Persistence indicators — crontab edits, shell RC file writes, skill replication
  4. Trigger hijacking patterns — overly broad or authority-impersonating descriptions
  5. Suspicious tool grants — unrestricted Bash in allowed-tools without audit trail
  6. Hidden content — HTML comments, zero-width characters, base64-encoded blobs

Invocation

To run a full security audit of all installed skills:

Please run the security monitor skill to audit my installed skills.

The skill will execute the scanner and return a structured report. Each skill receives a risk rating: LOW, MEDIUM, HIGH, or CRITICAL.

Scanning a Specific Directory

To scan a skill pack or directory before installing:

Please scan the skills in ./downloaded-skills/ for security issues.

Interpreting Results

  • LOW: No significant indicators found. Normal use.
  • MEDIUM: Patterns present that warrant review (e.g., external URLs in a skill that shouldn't need network access).
  • HIGH: Multiple indicators or a single high-confidence indicator. Do not execute until manually reviewed.
  • CRITICAL: Strong evidence of malicious intent (credential exfiltration, persistence, C2 patterns). Quarantine immediately.

Important Notes

  • This skill itself requires Bash access to run the Python scanner.
  • The scanner is read-only and does not modify any skill files.
  • False positives are possible — a legitimate skill may reference URLs for documentation purposes. Use the report as a starting point for human review, not as a definitive verdict.
  • This skill does NOT prevent execution of other skills — it only reports findings. Enforcement requires a human decision to remove or quarantine flagged skills.

Running the Scanner Manually

python3 ~/.claude/skills/security-monitor/scripts/scan_skills.py \
    --paths ~/.claude/skills .claude/skills \
    --report-format text

Part of the Claude Skills Defense Suite.

Execution

Run the security scanner now against all discoverable skill locations:

python3 "$(dirname "$0")/scripts/scan_skills.py" \
    --paths ~/.claude/skills ./.claude/skills \
    --report-format text

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.