security-scanner
Skill4 starsChanged 9 months agoMITView on GitHub
Run automated security scanning tools (Bandit, Semgrep, Trivy, TruffleHog) against a codebase and return structured findings as markdown for LLM consumption. Use this skill whenever a security review requires tool-based scanning — whether invoked by the security-analysis agent or directly by the user. Trigger on any request to: run a security scan, check for vulnerabilities, scan for secrets, audit dependencies, or perform SAST analysis. Also trigger proactively when the security-analysis agent needs automated findings to supplement its manual review.
- Reads credentials
- Installs packages
15 other projects use a version of this.
Adopted by
Most recently taken up by
- alexblag023/llm-skillstheir own version, first seen Nov 22, 2026
- rmichak/claude-skillstheir own version, first seen Nov 8, 2026
- zedarvates/frugal-skillstheir own version, first seen Nov 8, 2026
- kcayme/k-agentstheir own version, first seen Nov 1, 2026
- jazzpujols34/claude-skillstheir own version, first seen Oct 13, 2026
- leonvanzyl/agentic-coding-starter-kittheir own version, first seen Oct 8, 2026
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- leonvanzyl/agentic-coding-starter-kit★ 447same name
- glincker/claude-code-marketplace★ 37same name
- dkpapadopoulos/auto-claude-skills★ 7same name
- ianalloway/openclaw-skills★ 4same name
- leonvanzyl/claude-code-pro-workflow-demo★ 4same name
- mehdiozdemir/awesome-agent-skills★ 2same name
- alexblag023/claude-skills★ 1same name
- alexblag023/llm-skills★ 1same name
- cicoccc/openclaw-security-scanner★ 1same name
- rmichak/claude-skills★ 1same name
5 more not listed
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
11 rules. 0 are common, 11 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
11
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 32
If the calling agent or user specified a path, use it.
- Distinctive: line 43
Before running anything, check availability and version of all four tools:
- Distinctive: line 66
Do not proceed until the user responds: Wait for an explicit choice.
- Distinctive: line 70
Use these install commands (macOS with Homebrew assumed.
- Distinctive: line 79
After installing, re-run the pre-flight check to confirm each tool is now available.
- Distinctive: line 80
If install fails, fall back to asking the user whether to skip that tool or abort.
- Distinctive: line 86
Run tools in this order. Capture the full stdout + stderr of each command.
- Distinctive: line 117
If it is a git repo (exit code 0), scan git history:
- Distinctive: line 123
If it is not a git repo, scan the filesystem instead:
- Distinctive: line 141
Use the following structure for the report.
- Distinctive: line 218
If no overlaps, write: "No cross-tool overlaps detected."
“Common” is measured: kept by at least 6 in 10 of the 11 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
Runs four complementary automated security tools against a target path and assembles a structured markdown report for LLM consumption. Full tool output is always included — do not truncate or summarize tool output before writing the report.
Tools
| Tool | Purpose |
| Bandit | Python SAST — injection, pickle, subprocess, weak crypto |
| Semgrep | Multi-language SAST — OWASP Top 10 + Python-specific rules |
| Trivy | Dependencies, IaC misconfigs, secrets, container images |
| TruffleHog | Secrets in git history with live API verification |
Step 1: Determine Scan Target
If the calling agent or user specified a path, use it. Otherwise default to the current working directory. Confirm with a brief message:
Scan target: <resolved absolute path>Step 2: Pre-flight Tool Check
Before running anything, check availability and version of all four tools:
for tool in bandit semgrep trivy trufflehog; do
if command -v "$tool" &>/dev/null; then
echo "OK $tool $($tool --version 2>&1 | head -1)"
else
echo "MISSING $tool"
fi
doneIf any tools are missing
List the missing tools clearly and ask the user:
"The following tools are not installed: [list]
How would you like to proceed?
- Skip — continue without them (coverage will be incomplete; I'll note the gap in the report)
- Install — I'll attempt to install the missing tools before scanning"
Do not proceed until the user responds. Wait for an explicit choice.
If the user chooses Install
Use these install commands (macOS with Homebrew assumed; adapt if on Linux):
| Tool | Install command |
| Bandit | pip install bandit |
| Semgrep | pip install semgrep |
| Trivy | brew install trivy |
| TruffleHog | brew install trufflehog |
After installing, re-run the pre-flight check to confirm each tool is now available. If install fails, fall back to asking the user whether to skip that tool or abort.
Step 3: Run Each Available Tool
Run tools in this order. Capture the full stdout + stderr of each command. Do not filter, truncate, or interpret output at this stage — raw output goes into the report.
3a. Bandit — Python SAST
bandit -r <path> -f txt 2>&1Skip gracefully if the target has no Python files (check with find <path> -name "*.py" | head -1).
3b. Semgrep — Multi-language SAST
semgrep scan --metrics=off --config p/python --config p/owasp-top-ten <path> 2>&13c. Trivy — Dependencies & Misconfigurations
trivy fs <path> 2>&13d. TruffleHog — Secret Detection
First, check whether the target is a git repository:
git -C <path> rev-parse --git-dir 2>/dev/nullIf it is a git repo (exit code 0), scan git history:
trufflehog git file://<path> --no-update 2>&1If it is not a git repo, scan the filesystem instead:
trufflehog filesystem <path> --no-update 2>&1Step 4: Assemble the Report
Produce the following markdown document. Insert actual tool output verbatim into each fenced code block. Fill in all summary lines from the output before writing — do a quick read of each tool's output to extract counts, then write the report in one pass.
Report Template
Use the following structure for the report. Insert actual tool output verbatim into each fenced code block.
Begin the report with this header:
Automated Security Scan Report
Target: <absolute path>
Scanned at: <ISO 8601 datetime>
Tools run: <comma-separated list of tools that executed>
Tools skipped: <comma-separated list with reason, or "none">
Pre-flight Summary
| Tool | Status | Version |
| Bandit | [OK / SKIPPED] | x.y.z |
| Semgrep | [OK / SKIPPED] | x.y.z |
| Trivy | [OK / SKIPPED] | x.y.z |
| TruffleHog | [OK / SKIPPED] | x.y.z |
For each tool, include a section like this:
Bandit — Python SAST
Summary: <X> issues found — <Y> high, <Z> medium, <W> low
(or "Skipped: <reason>")
<full bandit output>Semgrep — OWASP + Python Rules
Summary: <X> findings across <Y> files
(or "Skipped: <reason>")
<full semgrep output>Trivy — Dependencies & Misconfigurations
Summary: <X> vulnerabilities (<Y> critical, <Z> high), <W> misconfigurations
(or "Skipped: <reason>")
<full trivy output>TruffleHog — Secret Detection
Summary: <X> secrets detected (<Y> verified live, <Z> unverified)
(or "Skipped: <reason>")
<full trufflehog output>End the report with these two sections:
Cross-Tool Observations
List any files or issues flagged by more than one tool — these are higher-confidence signals. Format as a short bulleted list:
<file>:<line>— flagged by Bandit (shell injection) AND Semgrep (command injection rule)<file>— flagged by both Trivy (CVE-XXXX) and Semgrep (insecure deserialization)
If no overlaps, write: "No cross-tool overlaps detected."
Coverage Gaps
List any vulnerability categories NOT covered by the tools that ran, so the calling agent or human reviewer knows what still requires manual analysis:
- Business logic flaws — not detectable by static tools
- IDOR / broken object-level authorization — requires runtime context
<any gap caused by skipped tools>
Operational Rules
- Never read
.envfiles or credential files. Note their presence only. - Never truncate tool output in the report. The calling agent needs the full text.
- Never fabricate counts or summaries — derive them from actual tool output.
- Fail loudly on pre-flight — missing tools must be surfaced before any scanning begins.
- TruffleHog live-verified secrets are Critical by default — flag them prominently even if the overall report tone is mild.
- If a tool crashes or returns a non-zero exit code, include the error output in the report section and note "tool exited with error" in the summary line.
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.

