Install command
Provided
Automated security vulnerability scanning that integrates with development workflow to detect and prevent security issues before deployment.
Open the source and read safety notes before installing.
Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.
Decision playbook
Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.
0
78
—
No baseline selected
No major trust-signal divergence detected in the current selection.
Confirm ownership and provenance before trusting install instructions.
Source link availableRequired
Open the canonical repository and verify ownership.
Source provenance statusRequired
Marked as source-backed.
Metadata reviewed
Registry metadata indicates a reviewed listing.
Validate risk disclosures before installation or API wiring.
Safety notes presentRequired
Review the listed safety guidance before running commands.
Privacy notes presentRequired
Review data handling notes before connecting accounts or secrets.
Trust level risk gateRequired
Trust level does not block evaluation.
Check package metadata and artifact integrity signals.
Install payload available
Install or copy payload is available for review.
Package verification flag
No package verification flag provided.
Checksum metadata
No checksum provided for downloaded artifact.
Use compare context to validate trade-offs before adoption.
Compare tray has multiple entries
Add at least one more entry to compare trust differences.
Baseline comparison available
No baseline peer selected yet.
Diverging trust signals identified
No major trust-signal divergence found.
Setup at a glance
Copy-ready — paste the snippet to get started.
Install command
Provided
Config snippet
Provided
Copy snippet
Provided
Prerequisites
None
Platforms
1 listed
Difficulty
0/100
Adoption plan
Current risk score 16/100. Use staged verification before broader rollout.
Validate source and review signals before any execution.
Confirm source provenanceRequired
Source URL/provenance metadata is present.
Confirm metadata review state
Listing has review metadata.
Verify install payload
Install/config payload exists and can be inspected.
Confirm safety, privacy, and package integrity signals.
Review safety notesRequired
Safety notes are present.
Review privacy notesRequired
Privacy notes are present.
Verify package integrity metadata
No package verification/checksum metadata.
Adopt in controlled steps based on the selected plan.
Run in isolated sandbox firstRequired
Use a constrained sandbox and observe behavior across multiple tasks.
Roll out graduallyRequired
Roll out to a small cohort before wider usage.
Set monitoring and fallback
Define rollback path and monitor errors after adoption.
Evidence readiness
Required evidence gates are covered (5/6 signals complete).
Source repository/provenance is listed.
Required in this preset
Review metadata is present.
Required in this preset
Safety notes are present.
Required in this preset
Privacy notes are present.
Optional in this preset
Package integrity metadata is missing.
Optional in this preset
Install payload is available.
Required in this preset
Required evidence gates are covered for this preset.
Decision timeline
5/6 steps complete with no blocking gaps for this preset.
triage
Source/provenance metadata is available.
triage
Review metadata is available.
verify
Safety notes are available.
verify
Privacy notes are available.
verify
Package integrity metadata is missing.
rollout
Install payload is available.
No required blockers for this timeline preset.
Safety & privacy surface
3 safety and 3 privacy notes across 4 risk areas. Review closely: credentials & tokens.
#!/usr/bin/env bash
# Read the tool input from stdin
INPUT=$(cat)
TOOL_NAME=$(echo "$INPUT" | jq -r '.tool_name')
FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // .tool_input.path // ""')
if [ -z "$FILE_PATH" ]; then
exit 0
fi
echo "🔒 Running security scans on $FILE_PATH..."
# Secrets detection
echo "Scanning for secrets..."
if command -v truffleHog &> /dev/null; then
truffleHog --regex --entropy=False "$FILE_PATH" 2>/dev/null
if [ $? -ne 0 ]; then
echo "⚠️ Potential secrets detected in $FILE_PATH" >&2
fi
fi
# Static analysis with Semgrep
if command -v semgrep &> /dev/null; then
echo "Running static security analysis..."
semgrep --config=auto "$FILE_PATH" 2>/dev/null
if [ $? -eq 0 ]; then
echo "✅ No security issues found with Semgrep" >&2
else
echo "⚠️ Security issues detected with Semgrep" >&2
fi
fi
# Language-specific security checks
EXT="${FILE_PATH##*.}"
case "$EXT" in
js|jsx|ts|tsx)
# Node.js security audit
if [ -f "package.json" ] && command -v npm &> /dev/null; then
echo "Running npm audit..."
npm audit --audit-level=moderate 2>/dev/null || echo "⚠️ Vulnerabilities found in dependencies" >&2
fi
;;
py)
# Python security checks
if command -v bandit &> /dev/null; then
echo "Running Bandit security scan..."
bandit "$FILE_PATH" 2>/dev/null || echo "⚠️ Security issues detected with Bandit" >&2
fi
;;
go)
# Go security checks
if command -v gosec &> /dev/null; then
echo "Running gosec security scan..."
gosec "$FILE_PATH" 2>/dev/null || echo "⚠️ Security issues detected with gosec" >&2
fi
;;
esac
echo "✅ Security scan completed for $FILE_PATH" >&2
exit 0{
"hooks": {
"postToolUse": {
"script": "./.claude/hooks/security-scanner-hook.sh",
"matchers": [
"write",
"edit",
"multiedit"
]
}
}
}.claude/settings.local.json~/.claude/settings.json.claude/settings.json{
"hooks": {
"postToolUse": {
"script": "./.claude/hooks/security-scanner-hook.sh",
"matchers": ["write", "edit", "multiedit"]
}
}
}
#!/usr/bin/env bash
# Read the tool input from stdin
INPUT=$(cat)
TOOL_NAME=$(echo "$INPUT" | jq -r '.tool_name')
FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // .tool_input.path // ""')
if [ -z "$FILE_PATH" ]; then
exit 0
fi
echo "🔒 Running security scans on $FILE_PATH..."
# Secrets detection
echo "Scanning for secrets..."
if command -v truffleHog &> /dev/null; then
truffleHog --regex --entropy=False "$FILE_PATH" 2>/dev/null
if [ $? -ne 0 ]; then
echo "⚠️ Potential secrets detected in $FILE_PATH" >&2
fi
fi
# Static analysis with Semgrep
if command -v semgrep &> /dev/null; then
echo "Running static security analysis..."
semgrep --config=auto "$FILE_PATH" 2>/dev/null
if [ $? -eq 0 ]; then
echo "✅ No security issues found with Semgrep" >&2
else
echo "⚠️ Security issues detected with Semgrep" >&2
fi
fi
# Language-specific security checks
EXT="${FILE_PATH##*.}"
case "$EXT" in
js|jsx|ts|tsx)
# Node.js security audit
if [ -f "package.json" ] && command -v npm &> /dev/null; then
echo "Running npm audit..."
npm audit --audit-level=moderate 2>/dev/null || echo "⚠️ Vulnerabilities found in dependencies" >&2
fi
;;
py)
# Python security checks
if command -v bandit &> /dev/null; then
echo "Running Bandit security scan..."
bandit "$FILE_PATH" 2>/dev/null || echo "⚠️ Security issues detected with Bandit" >&2
fi
;;
go)
# Go security checks
if command -v gosec &> /dev/null; then
echo "Running gosec security scan..."
gosec "$FILE_PATH" 2>/dev/null || echo "⚠️ Security issues detected with gosec" >&2
fi
;;
esac
echo "✅ Security scan completed for $FILE_PATH" >&2
exit 0
Complete hook script that runs security scans on file changes
#!/usr/bin/env bash
INPUT=$(cat)
FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // .tool_input.path // ""')
if [ -z "$FILE_PATH" ]; then
exit 0
fi
echo "🔒 Running security scans on $FILE_PATH..."
if command -v truffleHog &> /dev/null; then
truffleHog filesystem "$FILE_PATH" --results=verified,unknown --fail 2>/dev/null || echo "⚠️ Potential secrets detected" >&2
fi
if command -v semgrep &> /dev/null; then
semgrep --config=auto "$FILE_PATH" 2>/dev/null || echo "⚠️ Security issues detected" >&2
fi
exit 0
Complete hook configuration for .claude/settings.json to enable security scanning
{
"hooks": {
"postToolUse": {
"script": "./.claude/hooks/security-scanner-hook.sh",
"matchers": ["write", "edit", "multiedit"]
}
}
}
Enhanced hook script with language-specific security scanners (npm audit, Bandit, gosec)
#!/usr/bin/env bash
INPUT=$(cat)
FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // .tool_input.path // ""')
EXT="${FILE_PATH##*.}"
case "$EXT" in
js|jsx|ts|tsx)
if [ -f "package.json" ] && command -v npm &> /dev/null; then
npm audit --audit-level=moderate --production 2>/dev/null || echo "⚠️ Vulnerabilities found" >&2
fi
;;
py)
if command -v bandit &> /dev/null; then
bandit "$FILE_PATH" -ll --skip B404 2>/dev/null || echo "⚠️ Security issues detected" >&2
fi
;;
go)
if command -v gosec &> /dev/null; then
gosec "$FILE_PATH" 2>/dev/null || echo "⚠️ Security issues detected" >&2
fi
;;
esac
exit 0
Enhanced hook script with TruffleHog secrets scanning and exclusion patterns for test files
#!/usr/bin/env bash
INPUT=$(cat)
FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // .tool_input.path // ""')
if [[ "$(basename "$FILE_PATH")" == _* ]] || [[ "$FILE_PATH" == *test* ]] || [[ "$FILE_PATH" == *fixture* ]]; then
echo "ℹ️ Skipping test/fixture file: $FILE_PATH"
exit 0
fi
if command -v truffleHog &> /dev/null; then
truffleHog filesystem "$FILE_PATH" --exclude test/ --exclude fixtures/ --results=verified 2>/dev/null || echo "⚠️ Secrets detected" >&2
fi
exit 0
Example security scanner configuration for customizing scan behavior
{
"security": {
"trufflehog": {
"exclude": ["test/**", "**/fixtures/*", "*.test.*"],
"results": ["verified", "unknown"]
},
"semgrep": {
"config": "auto",
"severity": ["ERROR", "WARNING"]
},
"npm_audit": {
"audit_level": "moderate",
"production_only": true
}
}
}
Entropy detection flags dummy data. Create .trufflehogignore: add patterns like 'test/' or '/fixtures/*'. Or use --exclude: 'truffleHog --exclude test/ --regex' filtering paths. Verify exclusion patterns. Test with various test file configurations.
Hook waits for semgrep auto-install timing out. Pre-install: 'pip install semgrep' or 'brew install semgrep'. Add timeout: 'timeout 30 semgrep --config=auto' preventing indefinite hangs. Verify Semgrep installation. Test with various installation methods.
Audit treats dev warnings as errors. Filter severity: 'npm audit --audit-level=high --production' ignoring dev deps. Or suppress exit: 'npm audit || echo "Vulnerabilities logged"'. Verify audit level. Test with various dependency configurations.
Command targets single file but imports scan. Add --skip-imports: 'bandit "$FILE_PATH" -ll --skip B404' focusing on direct code. Or scope: 'bandit -r $(dirname "$FILE_PATH")' directory-level. Verify Bandit configuration. Test with various file scopes.
Sequential scans without caching. Run async: append '&' to each scan, wait at end. Or cache: 'if [ "$(stat -c %Y "$FILE_PATH")" -lt 60 ]; then exit; fi' skipping recent scans. Verify scan caching. Test with various caching strategies.
Configure gosec with severity filters: 'gosec -severity high -confidence high "$FILE_PATH"'. Use --exclude-dirs for test directories. Adjust severity levels based on project needs. Verify gosec configuration. Test with various severity configurations.
TruffleHog primarily scans text files. Use --include-binary for binary file scanning. For archives, extract first or use specialized tools. Verify file type detection. Test with various file types.
Configure Semgrep with custom rules or disable specific rules: 'semgrep --config=auto --disable-rule=rule-id "$FILE_PATH"'. Create .semgrep.yml for project-specific rules. Verify rule configuration. Test with various rule sets.
Security Scanner Hook - Hooks side by side with its closest alternative on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
| Field | Automated security vulnerability scanning that integrates with development workflow to detect and prevent security issues before deployment. Open dossier | Comprehensive Docker image vulnerability scanning with layer analysis, base image recommendations, and security best practices enforcement. This PostToolUse hook automatically scans Docker images for vulnerabilities when Dockerfiles are modified, providing real-time security validation during development. Open dossier |
|---|---|---|
| Next steps | ||
| Trust | ||
| Review status | ReviewedMaintainer reviewed | ReviewedMaintainer reviewed |
| Package trust | Package not verified | Package not verified |
| Source provenance | Source-backed | Source-backed |
| Submitter | — | — |
| Install risk | Review first | Review first |
| Notes | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ |
| Brand | — | |
| Category | hooks | hooks |
| Source | source-backed | source-backed |
| Author | JSONbored | JSONbored |
| Added | 2025-09-16 | 2025-10-19 |
| Platforms | Claude Code | Claude Code |
| Source repo | — | — |
| Safety notes | ✓Runs automatically after write, edit, or multiedit activity and invokes installed security tools against the touched file. May run truffleHog, Semgrep, npm audit, Bandit, or gosec depending on the file type and tools available. Treats scanner findings as warnings and does not guarantee that code is safe or unsafe. | ✓Runs automatically on its configured Claude Code hook event and executes shell logic that can read, modify, or delete files in your project (and may run builds, installs, or network calls); review the script and scope it to expected paths before enabling. |
| Privacy notes | ✓Reads modified file contents for security scanning and prints scanner output to local hook output. Semgrep and package audit commands may contact external rule, registry, or advisory services depending on local tool configuration. Scanner output may include file paths, code snippets, dependency names, and suspected secrets. | ✓Receives Claude Code hook input (session metadata, file paths, and tool output) and reads local project files; review what the script logs or forwards to external services and keep credentials out of its output. |
| Prerequisites | — none listed | — none listed |
| Install | | |
| Config | | |
| Citations | ||
| Claim | Unclaimed | Unclaimed |
Source-backed guides for putting this to work.
Set autoMode.hard_deny rules to block risky actions in auto mode.
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.