prism-scanner
Skill27 starsChanged 9 months agoApache-2.0View on GitHub
Security scanner for AI Agent skills, plugins, and MCP servers. Use when: user asks to scan a skill, check if a plugin is safe, vet an MCP server, review skill security, detect malicious code, supply chain safety, or says 'is this safe to install', 'scan this skill', 'check this MCP server', 'security scan', 'vetting', 'skill safety', 'prism scan', '安全扫描', '这个插件安全吗', '扫描一下', '检查安全性', '安装前检查', '技能审查'.
- Installs packages
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Before installing any skill from ClawHub, GitHub, npm, or PyPI
- Distinctive: line 104
When the user asks to check a skill's safety:
- Distinctive: line 110
If grade is D or F, strongly warn the user not to install
- Distinctive: line 111
If grade is C, advise reviewing specific findings before proceeding
- Distinctive: line 112
If grade is A or B, confirm it's safe with a brief summary
- Distinctive: line 114
When the user wants to clean up after uninstalling a skill:
- Very specific: line 116
Run prism clean --scan to detect residue
- Very specific: line 118
If cleanup is desired, run prism clean --plan then prism clean --apply
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.
Files
Prism Scanner — Agent Security Scanner
You are a security analyst using Prism Scanner to detect malicious code and security risks in AI Agent skills, plugins, and MCP servers.
When to Use
- User wants to install a new skill and needs a safety check
- User asks "is this skill/plugin/MCP server safe?"
- User wants to scan a directory, repo, or package for security risks
- User mentions supply chain security for agent extensions
- User wants to clean up system residue left by uninstalled skills
- Before installing any skill from ClawHub, GitHub, npm, or PyPI
Prerequisites
Prism Scanner must be installed. If not available, install it:
pip install prism-scannerVerify installation:
prism --versionUsage
Scan a local skill/plugin
prism scan <path-to-skill>Scan a GitHub repository
prism scan <github-url>Scan with specific platform detection
prism scan <target> --platform clawhub|mcp|npm|pipGet machine-readable output
prism scan <target> --format jsonGenerate HTML report
prism scan <target> --format html -o report.htmlSystem residue cleanup (post-uninstall)
prism clean --scan # Report leftover files
prism clean --plan # Show cleanup plan
prism clean --apply # Execute cleanup with backupsCI/CD integration
prism scan <target> --format sarif -o results.sarif --fail-on highUnderstanding Results
Prism assigns a grade from A to F:
| Grade | Meaning | Action |
| A | Safe — no findings or INFO only | Safe to use |
| B | Notice — LOW findings only | Likely safe, minor observations |
| C | Caution — 1-4 MEDIUM findings | Review before use |
| D | Danger — HIGH findings | Use in sandbox only |
| F | Critical — CRITICAL findings | Do not install |
Detection Coverage
Prism runs 39+ detection rules across 3 layers:
- Code Behavior (S1-S14): Shell execution, data exfiltration, persistence, taint tracking
- Metadata (M1-M6, P1-P9): Typo-squatting, hardcoded credentials, obfuscated code, malicious signatures
- System Residue (R1-R10): LaunchAgents, crontab pollution, shell config modifications
Workflow
When the user asks to check a skill's safety:
- Determine the target (local path, GitHub URL, or package name)
- Run
prism scan <target> --format json - Parse the JSON output
- Present the grade, findings summary, and recommendation
- If grade is D or F, strongly warn the user not to install
- If grade is C, advise reviewing specific findings before proceeding
- If grade is A or B, confirm it's safe with a brief summary
When the user wants to clean up after uninstalling a skill:
- Run
prism clean --scanto detect residue - Show the user what was found
- If cleanup is desired, run
prism clean --planthenprism clean --apply
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
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.

