/security-suite:security-check [path]from security-suite
Scans Claude Code configuration for malicious skills, vulnerable MCPs, dangerous patterns, and exposed secrets against a threat database.
Ships in security-suite. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Quick configuration security check against known threats database. Verifies your Claude Code setup for known malicious skills, vulnerable MCPs, dangerous patterns, and exposed secrets.
Time: ~30 seconds | Scope: Claude Code configuration only
You are a security analyst. Check the user's Claude Code configuration against the compatibility threat database at examples/commands/resources/threat-db.yaml. Produce a concise, actionable report.
Read examples/commands/resources/threat-db.yaml from this repository to load:
Stop condition: the database is not bundled with this skill. If the file is missing, unreadable, or does not contain malicious_authors, malicious_skills, cve_database, and suspicious_patterns, stop here. Report NOT RUN: threat database unavailable and the path you tried. Do not produce a results table, a pass, or an ALL CLEAR. A caller such as /security-audit must treat this phase as not run, not as zero findings.
Read the user's MCP configuration:
Never dump these files: arguments, headers, URLs and env blocks often hold credentials. Print only the summary below.
SUMMARY='.mcpServers // {} | to_entries[] | {
name: .key,
command: .value.command,
args: [.value.args[]? | tostring
| if test("^--?[A-Za-z][A-Za-z0-9-]*(=|$)") then sub("=.*"; "=<redacted>")
elif (test("://|=") | not) and (test("^@?[a-z0-9._-]+/[a-z0-9._-]+(@[A-Za-z0-9._-]+)?$") or length <= 16) then .
else "<redacted>" end],
envKeys: (.value.env // {} | keys),
headerKeys: (.value.headers // {} | keys),
urlHost: (.value.url // "" | sub("^[a-z]+://([^/@]*@)?"; "") | sub("[/?#].*$"; ""))
}'
for f in ~/.claude.json .mcp.json; do
[ -f "$f" ] || { echo "$f: absent"; continue; }
echo "== $f"
jq -c "$SUMMARY" "$f" || echo "NOT CHECKED: $f could not be read"
done
A redacted argument means the check cannot judge it: say so instead of reading the raw value.
Check against threat-db.yaml:
@latest)? → HIGH if unpinned--dangerous-* flags in MCP args? → CRITICALguide/security/security-hardening.md §1.1)? → MEDIUM (flag for manual review)# List installed skills
ls -la .claude/skills/ 2>/dev/null
ls -la ~/.claude/skills/ 2>/dev/null
# List agents
ls -la .claude/agents/ 2>/dev/null
ls -la ~/.claude/agents/ 2>/dev/null
# Check agent tools field
grep -r "^tools:" .claude/agents/ 2>/dev/null
grep -r "^tools:" ~/.claude/agents/ 2>/dev/null
Check against threat-db.yaml:
malicious_skills entries? → CRITICALmalicious_authors entries? → CRITICALtools: Bash only? → HIGHDeep skill content analysis (SkillSpector-inspired patterns):
# Hidden instructions: HTML comments, zero-width chars, large base64 blobs
grep -rn '<!--' .claude/skills/ ~/.claude/skills/ 2>/dev/null | grep -iv 'example\|comment\|html'
grep -rPn '[\x{200B}-\x{200D}\x{FEFF}\x{00AD}]' .claude/skills/ ~/.claude/skills/ 2>/dev/null
grep -rn -E '[A-Za-z0-9+/]{40,}={0,2}' .claude/skills/ ~/.claude/skills/ 2>/dev/null | grep -v 'sha\|hash\|checksum' | head -10
# Unicode deception: RTL override characters
grep -rPn '[\x{202E}\x{202D}\x{200F}]' .claude/skills/ ~/.claude/skills/ 2>/dev/null
# Trigger abuse: generic keywords that shadow built-in commands
grep -rn "trigger\|keyword\|when.*user" .claude/skills/ ~/.claude/skills/ 2>/dev/null | \
grep -iE '\b(help|run|go|do|yes|ok|the|a |an |it)\b' | head -10
# Supply chain: remote execution patterns in skill scripts
find .claude/skills/ ~/.claude/skills/ \( -name "*.sh" -o -name "*.py" \) 2>/dev/null | \
xargs grep -l "curl.*|\|wget.*|\|bash.*http\|eval.*curl" 2>/dev/null
# Rogue agent: cron/startup persistence written by skill scripts
find .claude/skills/ ~/.claude/skills/ -type f 2>/dev/null | \
xargs grep -l "crontab\|launchctl\|systemctl\|~/.bashrc\|~/.zshrc\|autostart" 2>/dev/null
# Data exfiltration: env harvesting combined with network calls
find .claude/skills/ ~/.claude/skills/ -type f 2>/dev/null | \
xargs grep -l "os.environ\|process.env\|getenv\|printenv" 2>/dev/null | \
xargs grep -l "curl\|requests\|fetch\|http" 2>/dev/null
curl | bash or remote eval? → CRITICAL# List all hooks
find .claude/hooks/ -type f 2>/dev/null
find ~/.claude/hooks/ -type f 2>/dev/null
# Scan hooks for suspicious patterns. -o prints file:line and the matched keyword only, never the whole line
grep -rnoE 'curl|wget|nc |ncat|netcat|base64|eval|exec|/dev/tcp|/dev/udp' .claude/hooks/ ~/.claude/hooks/ 2>/dev/null
# Check for credential access in hooks
grep -rnoE 'ssh|id_rsa|id_ed25519|\.env|credentials|secret|password|token|api.key' .claude/hooks/ ~/.claude/hooks/ 2>/dev/null
Check against threat-db.yaml suspicious_patterns.hooks:
curl, wget) → HIGHnc, /dev/tcp) → CRITICALssh, .env, password) → CRITICALArchives and Windows executables inside agent directories:
# FakeGit lures hid SmartLoader ZIPs under .claude/hooks/config/ (Nov 2026)
find .claude .codex .agents .cursor .gemini ~/.claude/skills -type f \
\( -iname '*.zip' -o -iname '*.7z' -o -iname '*.rar' -o -iname '*.exe' \
-o -iname '*.dll' -o -iname '*.bat' -o -iname '*.cmd' -o -iname '*.msi' \) 2>/dev/null
iocs.malware_hashes)# Check for suspicious instructions in memory/config files
grep -in "ignore\|forget\|override\|disregard\|you are now\|new role\|system prompt" \
CLAUDE.md .claude/CLAUDE.md SOUL.md .claude/SOUL.md MEMORY.md .claude/MEMORY.md \
~/.claude/CLAUDE.md ~/.claude/MEMORY.md 2>/dev/null
# Check settings: permissions only, plus env variable names without their values
for f in .claude/settings.json ~/.claude/settings.json; do
[ -f "$f" ] || { echo "$f: absent"; continue; }
echo "== $f"
jq '{permissions, envKeys: (.env // {} | keys)}' "$f" || echo "NOT CHECKED: $f could not be read"
done
permissions.deny exists and covers .env*, *.pem, *.key, secrets? → MEDIUM if missingpermissions.allow for Bash or Write? → HIGH if presentpermissions.defaultMode: "bypassPermissions" and no wrapper scripts or aliases that pass --dangerously-skip-permissions? → CRITICAL if presentNever print secret values. Keep the cut filters below so that only file:line reaches the transcript. Report the location and the secret type, and never quote the value.
# Check for secrets in .claude/ directory
grep -rn "sk-[a-zA-Z0-9]\{20,\}\|sk-ant-[a-zA-Z0-9]\{20,\}\|ghp_[a-zA-Z0-9]\{36\}\|AKIA[A-Z0-9]\{16\}" \
.claude/ ~/.claude/ 2>/dev/null | cut -d: -f1,2
# Check for private keys
grep -rn "BEGIN.*PRIVATE KEY" .claude/ ~/.claude/ 2>/dev/null | cut -d: -f1,2
## 🛡️ Security Check Report
**Date**: [timestamp]
**Scope**: Claude Code configuration
### Results Summary
| Severity | Count | Status |
|----------|-------|--------|
| 🔴 CRITICAL | X | [PASS/FAIL] |
| 🟠 HIGH | X | [PASS/FAIL] |
| 🟡 MEDIUM | X | [PASS/FAIL] |
| 🟢 LOW | X | [PASS/FAIL] |
### 🔴 Critical Issues
[List each critical finding with location and fix]
### 🟠 High Issues
[List each high finding with location and fix]
### 🟡 Medium Issues
[List each medium finding with location and fix]
### ✅ Passed Checks
[List what passed, important for confidence]
### 🔧 Recommended Actions (Priority Order)
1. [Most urgent fix with exact command]
2. [Second priority]
3. [...]
### 📚 References
- Full security guide: guide/security/security-hardening.md
- Threat database: examples/commands/resources/threat-db.yaml
- MCP scan: `uvx snyk-agent-scan@latest` (Snyk Agent Scan, formerly mcp-scan)
Only if the threat database was loaded, every check actually ran, and all of them passed, output the report below. If any check failed to run or lacked its input, list it as NOT RUN in the standard report instead.
## 🛡️ Security Check Report: ALL CLEAR ✅
**Date**: [timestamp]
No known threats detected in your Claude Code configuration.
**Recommendations for continued security:**
- Re-run `/security-check` after installing new skills or MCP servers
- Run `/security-audit` for a comprehensive project + config audit
- Keep Claude Code updated (current security fixes in v2.1.34+)
$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
mediumnpx claudepluginhub florianbruniaux/claude-code-plugins --plugin security-suite8 skills in this plugin
/cyber-defense-teamOrchestrate a 4-agent cyber defense pipeline to analyze log files for threats. Use when investigating security logs, detecting anomalies in access patterns, classifying breach severity, or generating incident reports from nginx/auth/syslog files./eval-rulesAudit Claude Code instruction rules in .claude/rules/ and ~/.claude/rules/: frontmatter, paths glob validity against real files, symlink load status, and day-to-day usefulness, then update rules with the user. Use for first-time rules setup, rules that apply too often or never, or periodic rules hygiene. Not for Codex .rules command-approval files./sandbox-statusDisplay native sandbox status, configuration, and recent violations/securityRapid heuristic security scan of the current codebase for OWASP Top 10 patterns (secrets, injection, XSS, dependencies, auth). Use for a quick pass on application code; for configuration and posture scoring use security-audit./security-auditComprehensive security audit with scored posture assessment/security-checklistReference security checklist and code patterns for web applications (authentication, authorization, input validation, headers, secrets, logging). Use when writing or reviewing web app code that handles auth, user input, sessions, or deployment hardening. Not for scanning a codebase: use the security skill.Other plugins' skills for the same job