
Prism Scanner
io.github.aidongise-cellPublished by GitHub account aidongise-cellv0.1.1Updated Oct 24, 2026
Security scanner for AI Agent skills, plugins, and MCP servers with A-F grading.
Overview
Prism Scanner statically scans AI agent skills, plugins, npm/pip packages and MCP servers for malicious code and grades them A–F.
- What you can do
- Scan a local directory or remote repository for malicious behavior, metadata red flags and prompt-manipulation patterns, returning findings and an A–F grade
- Check a system for residue left behind by uninstalled agent tools, such as persistence entries, shell config pollution and orphaned credentials
- Produce a non-destructive cleanup plan for that residue
- Run scans in different output formats for reports and CI gating
- When to use it
- Useful when you want an assistant to vet a third-party skill, plugin, package or MCP server before installing it, or to check a machine for leftovers after removing agent tooling. It suits developers who want code-level, rule-by-rule findings rather than a marketplace trust score.
- Requirements
- Runs as a local process on the user's machine (desktop only), installed from the PyPI package with the MCP extra; the MCP entry point is a local command. No authentication, environment variables or headers are declared. Scanning a remote repository needs network access, though an offline mode is available.
Installation
In SourceWeft
- Open Prism Scanner in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
:large_blue_diamond: Prism Scanner
[Python 3.10+] [License: Apache 2.0] [Tests: 40 passed] [Version: 0.2.2] [Awesome]
Security scanner for AI Agent skills, plugins, and MCP servers.
Prism analyzes code for malicious behavior before you install it — and checks your system for leftover threats after you uninstall.
Unlike marketplace-only trust scores, Prism gives you full lifecycle coverage with code-level transparency — pre-install, runtime, and post-uninstall — across every platform, completely open source.
:sparkles: What's new in v0.2.x
- P10 — Agent psychological manipulation detection: detects gaslighting, guilt-tripping, authority impersonation, urgency pressure, and emotional coercion patterns embedded in skill descriptions, prompts, and code strings. Based on Northeastern/Harvard/MIT research on conversational manipulation of AI agents — to our knowledge, the first open-source automated detector for this attack class.
- M7 — Publish hygiene checks: catches source maps,
.envfiles, private keys, IDE configs, and package-manager credentials before they ship. Inspired by Anthropic's April 2026 source-map leak that exposed 512K lines of Claude Code internals via npm. Wire it into your CI: - 47–93% fewer false positives on real-world skills (S1, S4, S8, S12 engine fixes; validated against 3 representative ClawHub skills that previously flooded with false flags).
- 41 detection rules total across S1–S14 (behavior), M1–M7 (metadata + publish hygiene), P1–P10 (patterns + manipulation), and R1–R10 (residue).
- v0.2.2 fixes a cosmetic version-string mismatch (
prism --versionreported0.1.3after upgrading to0.2.1); detection behavior is identical to v0.2.1.
Why Prism?
Quick Start
Homebrew (macOS)
npx (no install needed)
GitHub Action (CI/CD)
Add Prism to your CI pipeline — findings appear in GitHub's Security tab:
MCP Server (Claude Desktop / Cursor / VS Code)
Prism Scanner can run as an MCP server, giving AI assistants direct access to security scanning tools.
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
Or for Claude Code:
This exposes 4 tools: prism_scan, prism_grade, prism_clean_scan, prism_clean_plan.
Docker
Or use the published image:
What It Detects
Prism operates across 3 analysis layers, each targeting a different phase of the agent lifecycle:
Total: 39 detection rules with lightweight intra-file taint analysis.
Example Output
Grading System
Output Formats
HTML Report
Generate a standalone, self-contained HTML report with full findings, grade visualization, and risk breakdown — perfect for sharing with teammates or archiving:
The HTML report features a dark-themed UI with color-coded severity levels, an interactive grade ring, and a complete findings table. No external dependencies — just open the .html file in any browser.
CI/CD Integration
Add Prism to your GitHub Actions workflow to gate deployments on security findings:
The --fail-on flag exits with code 1 if any finding meets or exceeds the specified severity (critical, high, or medium), failing the CI pipeline.
Key Features
- Taint Analysis — Tracks data flow from sources (env vars, user input) to sinks (shell, network) within each file
- Multi-Platform — Scans ClawHub skills, MCP servers, npm packages, and pip packages with platform-aware rules
- Zero Dependencies on Target — Pure static analysis; never executes scanned code
- Residue Scanner — Detects persistence mechanisms, shell config pollution, and credential leaks left by uninstalled tools
- Safe Cleanup — Three-tier workflow (
scan->plan->apply) with automatic backup and--rollback - Suppression — Use
.prismignoreto suppress known findings by rule ID with justification - Offline Mode — Run with
--offlineto skip all external lookups
Adding Custom Rules
Detection rules are defined in YAML files under the rules/ directory:
The pattern engine (P1-P9) and manifest engine (M1-M6) load rules from these files at scan time. Add entries to extend detection without modifying Python code.
Project Structure
Contributing
Contributions are welcome. Please see CONTRIBUTING.md for guidelines on:
- Adding new detection rules
- Writing and running tests
- Code style and commit conventions
License
Apache License 2.0 — free for commercial and personal use.
Prism Verified Badge
Show that your project has been scanned by Prism. Add a badge to your README:
Grade A (Safe):
All grades:
Preview:
[Prism Grade A] [Prism Grade B] [Prism Grade C] [Prism Grade D] [Prism Grade F]
Support
If Prism Scanner helped you catch a security risk or gave you peace of mind, please consider giving it a ⭐ on GitHub — it helps others discover the project and keeps development going.
Acknowledgments
Prism Scanner is developed by Prism Lab to address a gap in the AI agent ecosystem: the lack of transparent, code-level security tooling that works across platforms and covers the full agent lifecycle. We believe developers deserve to understand exactly what a skill or plugin does before trusting it with their system.
Source: README.md at commit 4194331
Tools
0Version history
1- v0.1.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts