DeepSafe Scan — Claude Code Integration
Description
This directory contains **deepsafe-scan**, a preflight security scanner for AI agent environments.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
Repository README
This is the README for XiaoYiWeio/deepsafe-scan, shared by 3 entries
in this directory. It describes the repository, not this entry specifically.
DeepSafe Scan — Claude Code Integration
This directory contains **deepsafe-scan**, a preflight security scanner for AI agent environments.
What it does
Scans for security risks across 5 dimensions:
| Module | What it checks | Needs API? |
|---|---|---|
| posture | openclaw.json / .env config security | No |
| skill | Installed skills & MCP servers — 15+ static analyzers | No |
| memory | Session data — 27+ secret patterns, 9 PII patterns | No |
| hooks | .claude/settings.json, .cursorrules, .vscode/tasks.json — 12 injection patterns |
No |
| model | 4 behavioral safety probes (persuasion, sandbagging, deception, hallucination) | Yes (ANTHROPIC_API_KEY) |
When to use
Invoke this scanner when the user asks to:
- "Check if this project's AI config is safe"
- "Scan my setup for security issues"
- "Audit my skills/MCP servers"
- "Check for prompt injection in agent configs"
- "Run a security scan before I start using this project"
How to run
# Quick static scan (no API key needed) — posture, skill, memory, hooks
python3 {skill_dir}/scripts/scan.py \
--modules posture,skill,memory,hooks \
--scan-dir . \
--no-llm \
--format markdown
# Full scan with LLM-enhanced analysis (uses ANTHROPIC_API_KEY automatically)
python3 {skill_dir}/scripts/scan.py \
--modules posture,skill,memory,hooks,model \
--scan-dir . \
--format html \
--output /tmp/deepsafe-report.html
# Scan only hooks (fastest — checks agent config files in current directory)
python3 {skill_dir}/scripts/scan.py \
--modules hooks \
--scan-dir . \
--no-llm \
--format markdown
# OpenClaw users (auto-reads gateway config)
python3 {skill_dir}/scripts/scan.py \
--openclaw-root ~/.openclaw \
--format html \
--output /tmp/deepsafe-report.html
Replace `{skill_dir}` with the actual path to this directory.
After scanning
- Present the total score and per-module breakdown
- List CRITICAL and HIGH findings first with clear explanations
- For each finding, explain what the risk is and how to fix it
- Offer to help fix issues
Score interpretation
| Score | Risk Level |
|---|---|
| 85–100 | LOW RISK |
| 65–84 | MEDIUM RISK |
| 40–64 | HIGH RISK |
| 4–39 | CRITICAL RISK |
LLM API auto-detection
The scanner automatically uses `ANTHROPIC_API_KEY` if set (Claude Code users always have this). No manual configuration needed for:
- LLM-enhanced skill semantic analysis
- Model safety probes (persuasion, sandbagging, deception, hallucination)
Related Skills
Defense in Depth
Implement multi-layered testing and security best practices.
Security SecLists Official Repository
[OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/)
Security Threat Hunting with Sigma Rules
Use Sigma detection rules to hunt for threats and analyze security events
Security Maintenance Walkthrough - 2026-03-29
- Re-triaged the full 2026-03-15 security finding set against current `main` and wrote a fresh current-head re
Security Google Workspace Model Armor
Filter user-generated content for safety
Security Google Workspace Alert Center
Manage security alerts
Security Related Agents
Token Auditor
Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates; produces d
Gitnexus Security Boundary Reviewer
GitNexus security and trust-boundary reviewer. Use for auth, permissions, secrets, injection, unsafe parsing,
Accessibility Audit
| You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive tec... | -