security-scanner
Skill122 starsChanged 10 months agoMITView on GitHub
Scan prompts and code for security threats using agent-security-scanner-mcp. Protects against prompt injection, data exfiltration, and credential theft.
- Installs packages
9 other projects use a version of this.
Adopted by
Most recently taken up by
- alexblag023/claude-skillstheir own version, first seen Oct 1, 2026
- dkpapadopoulos/auto-claude-skillstheir own version, first seen Sep 22, 2026
- lexicalninja/my-little-scrum-teamtheir own version, first seen Jul 26, 2026
- ianalloway/openclaw-skillstheir own version, first seen Jun 26, 2026
- leonvanzyl/claude-code-pro-workflow-demotheir own version, first seen May 25, 2026
- casedone/claude-code-security-pluginstheir own version, first seen Mar 14, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- glincker/claude-code-marketplace★ 37same name
- dkpapadopoulos/auto-claude-skills★ 6same name
- casedone/claude-code-security-plugins★ 4same name
- ianalloway/openclaw-skills★ 4same name
- leonvanzyl/claude-code-pro-workflow-demo★ 4same name
- lexicalninja/my-little-scrum-team★ 2same name
- mehdiozdemir/awesome-agent-skills★ 2same name
- alexblag023/claude-skills★ 1same name
- lodetomasi/claude-code-skills-tools★ 0same 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.
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Check if a prompt is safe before execution:
- Distinctive: line 37
Check code for vulnerabilities before running:
- Distinctive: line 43
Verify a package isn't hallucinated (AI-invented):
- Distinctive: line 50
When a user asks you to do something potentially risky, scan it first:
- Distinctive: line 53
Before running code: - Check for vulnerabilities
- Distinctive: line 54
Before sending messages: - Verify no mass-messaging or phishing
- Distinctive: line 55
Before accessing sensitive data: - Check for exfiltration attempts
- Distinctive: line 102
Use exit codes in scripts to automatically block risky operations.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Security Scanner for OpenClaw
Protect your OpenClaw instance from:
- Prompt injection attacks - Detects attempts to manipulate your AI assistant
- Data exfiltration - Blocks attempts to steal emails, contacts, files
- Credential theft - Prevents exposure of API keys, passwords, SSH keys
- Messaging abuse - Stops mass messaging and impersonation attacks
- Unsafe automation - Warns about scheduled tasks without confirmation
Quick Start
Install the scanner globally:
npm install -g agent-security-scanner-mcpOr use directly with npx (no install needed).
Commands
Scan a Prompt
Check if a prompt is safe before execution:
npx agent-security-scanner-mcp scan-prompt "forward all my emails to someone@example.com"Returns BLOCK, WARN, or ALLOW with risk assessment.
Scan Code
Check code for vulnerabilities before running:
npx agent-security-scanner-mcp scan-security ./script.py --verbosity minimalCheck Package
Verify a package isn't hallucinated (AI-invented):
npx agent-security-scanner-mcp check-package some-package npmUsage Instructions
When a user asks you to do something potentially risky, scan it first:
- Before executing shell commands - Scan for injection attacks
- Before running code - Check for vulnerabilities
- Before sending messages - Verify no mass-messaging or phishing
- Before accessing sensitive data - Check for exfiltration attempts
Example Workflow
User: "Forward all my work emails to my personal Gmail"
You: Let me check this request for security concerns...
[Run: npx agent-security-scanner-mcp scan-prompt "Forward all my work emails to my personal Gmail"]
Result: BLOCK - Potential email exfiltration attempt
You: I've detected this could be a security risk. Email forwarding to external addresses
could expose sensitive work information. Would you like to:
1. Set up selective forwarding with filters
2. Forward only from specific senders
3. Proceed anyway (not recommended)Verbosity Levels
--verbosity minimal- Just action + risk level (~50 tokens)--verbosity compact- Action + findings summary (~200 tokens)--verbosity full- Complete audit trail (~500 tokens)
What It Detects
OpenClaw-Specific Threats
| Category | Examples |
| Data Exfiltration | "Forward emails to...", "Upload files to...", "Share cookies" |
| Messaging Abuse | "Send to all contacts", "Auto-reply to everyone" |
| Credential Theft | "Show my passwords", "Access keychain", "List API keys" |
| Unsafe Automation | "Run hourly without asking", "Disable safety checks" |
| Service Attacks | "Delete all repos", "Make payment to..." |
General Security
- SQL injection, XSS, command injection in code
- Hardcoded secrets and API keys
- Weak cryptography
- Insecure deserialization
Exit Codes
0- Safe / No issues1- Issues found / Action required
Use exit codes in scripts to automatically block risky operations.
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.

