security-scan
Skill2 starsChanged 4 months agoMITView on GitHub
Hybrid security scanning pipeline that combines static analysis tools with LLM-powered triage. Provides zero-dependency regex fallback for environments without security tooling installed. Use when performing security scans, interpreting scan results, understanding coverage tiers, or triaging vulnerability findings. Triggers on: "security scan", "vulnerability scan", "secret detection", "static analysis", "security pipeline", "SAST".
- Installs packages
49 other projects use a version of this.
Adopted by
Most recently taken up by
- morodomi/dev-crewtheir own version, first seen Oct 5, 2026
- NinjaSln-labs/agent-skillstheir own version, first seen Oct 2, 2026
- openai/codex-securitytheir own version, first seen Oct 2, 2026
- 5throck/ai-workspace-standardstheir own version, first seen Sep 26, 2026
- elfrost/ai-patchlabtheir own version, first seen Sep 22, 2026
- ZeroTokenClaw/agents-skillstheir own version, first seen Sep 21, 2026
Used with
Projects with it also use springboot-security, django-security and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
FaisalAlqarniSkillspringboot-security
Spring Security best practices for authn/authz, validation, CSRF, secrets, headers, rate limiting, and dependency security in Java Spring Boot services.
Also in 5 projects that use this
johnrtiptonSkilldjango-security
This skill should be used when conducting security reviews, auditing Django applications, hardening security settings, implementing OWASP Top 10 protections, managing secrets, or ensuring multi-tenant security isolation. Provides automated security auditor that scans settings, code, dependencies, and multi-tenant configurations with auto-fix capabilities.
Also in 5 projects that use this
JamkrisSkillsecurity-bounty-hunter
Hunt for exploitable, bounty-worthy security issues in repositories. Focuses on remotely reachable vulnerabilities that qualify for real reports instead of noisy local-only findings.
Also in 3 projects that use this
joneqianSkillpostgres-patterns
PostgreSQL database patterns for query optimization, schema design, indexing, and security. Based on Supabase best practices.
Also in 5 projects that use this
Microsoft AzureSkilliterative-retrieval
Max-3-cycle protocol for agent sub-tasks with WHY context and coordinator validation. Use when spawning sub-agents to complete scoped work.
Also in 5 projects that use this
LangChainSkilldocker-patterns
Best practices for Docker containerization and multi-stage builds
Also in 5 projects that use this
Other versions49 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 49
- openai/codex-security★ 11ksame name
- openai/plugins★ 7.3ksame name
- xu-xiang/everything-claude-code-zh★ 2ksame name
- codewithmukesh/dotnet-claude-kit★ 750same name
- loulanyue/awesome-claude-notes★ 272same name
- tpavanipradeep/everything-claude-code★ 134same name
- templetongroup/radiant★ 113same name
- Jamkris/everything-gemini-code★ 87same name
- aws-samples/sample-agent-skills-for-builders★ 51same name
- drvoss/everything-copilot-cli★ 47same name
39 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.
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- config/CLAUDE.mdCLAUDE.md
- dev/CLAUDE.mdCLAUDE.md
- harness-setupSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 43 edited versions we read keep these.
2
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 78
All 5 phases with enhanced scanning
- Distinctive: line 179
Every finding carries a provenance label indicating its source:
“Common” is measured: kept by at least 6 in 10 of the 43 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
Hybrid Security Scanning — Skill Reference
This file is the reference doc. The executable pipeline that actually runs the scan lives at
config/commands/security-scan.mdand is invoked with/security-scan. They are not duplicates; do not delete either.
Architecture Overview
The hybrid security scanner combines automated static analysis tools with LLM-based triage to produce high-signal vulnerability reports. It operates as a 5-phase pipeline:
Phase 0: Recon Detect tools + tech stack
Phase 1: Scan Run tools + regex fallback
Phase 2: Correlate Normalize + deduplicate
Phase 3: Triage LLM classifies findings
Phase 4: Report Markdown report + artifactsDesign Principles
- Graceful degradation — works with zero tools installed via regex fallback
- Provenance tracking — every finding labeled with its source
- Framework-aware triage — suppresses known-safe patterns per framework
- Cross-platform — Windows (Git Bash), macOS, Linux
- Deterministic pipeline — same inputs produce same outputs (excluding LLM triage)
Coverage Tiers
| Tier | Tools Available | Estimated Coverage | Typical Scan Time |
| 0 — Regex Only | None | ~35% | 15-30s |
| 1 — +Semgrep | semgrep | ~55% | 1-3 min |
| 2 — +Secrets | semgrep + gitleaks | ~75% | 2-5 min |
| 3 — Full Stack | semgrep + gitleaks + trivy + bandit/gosec | ~85% | 3-8 min |
Coverage percentages are approximate and represent the proportion of OWASP Top 10 vulnerability classes that can be detected. No automated scanner achieves 100% — manual review is always required for complete coverage.
What Each Tool Covers
| Tool | Detects | Install |
| Regex patterns | Hardcoded secrets, obvious injection patterns, dangerous functions, weak crypto | Built-in (zero-dep) |
| Semgrep | Taint tracking, data flow, framework-specific rules, OWASP patterns | pip install semgrep or brew install semgrep |
| Gitleaks | Secrets in code and git history, entropy-based detection | brew install gitleaks or download binary |
| Trivy | Dependency vulnerabilities (CVEs), misconfigurations, license issues | brew install trivy or download binary |
| Bandit | Python-specific security issues (B1xx-B7xx) | pip install bandit |
| Gosec | Go-specific security issues | go install github.com/securego/gosec/v2/cmd/gosec@latest |
Scan Modes
Quick Mode (--quick)
- Phases 0 + 1 (regex only) + 4
- Skips external tools and LLM triage
- Best for: pre-commit checks, rapid feedback, CI pipelines
Standard Mode (default)
- All 5 phases
- Runs all available tools + regex
- LLM triage by the executing Claude instance
- Best for: regular development workflow, PR reviews
Deep Mode (--deep)
- All 5 phases with enhanced scanning
- Delegates triage to the
semgrep-triageragent for parallel processing - Uses
semgrep-scanneragent for comprehensive ruleset coverage - Best for: pre-release audits, security-sensitive changes
Regex Pattern Library
The scanner includes 53+ regex patterns in config/data/security-regex-patterns.json
organized by vulnerability class:
| Category | Pattern Count | Severity Range |
| Hardcoded Secrets | 18 | CRITICAL-HIGH |
| SQL Injection | 5 | CRITICAL-HIGH |
| Command Injection | 3 | CRITICAL-HIGH |
| XSS | 6 | HIGH-MEDIUM |
| Dangerous Functions | 7 | HIGH |
| Weak Cryptography | 5 | HIGH-MEDIUM |
| TLS Verification | 3 | HIGH |
| Debug/Config | 3 | HIGH-MEDIUM |
| Path Traversal | 2 | HIGH |
| SSRF | 1 | HIGH |
| Authentication | 2 | CRITICAL |
| CORS | 2 | HIGH-MEDIUM |
| Other (NoSQL, SSTI, logging, etc.) | 5+ | CRITICAL-LOW |
Each pattern includes:
- CWE mapping for compliance reporting
- Language applicability for targeted scanning
- Severity classification aligned with CVSS qualitative ratings
Framework-Aware Triage
The LLM triage phase suppresses known-safe patterns:
| Framework | Suppressed Pattern | Reason |
| Django ORM | .filter(), .exclude(), .get() | ORM parameterizes queries automatically |
| Rails ActiveRecord | .where(), .find_by() | ActiveRecord parameterizes by default |
| React JSX | Dynamic values in JSX {} | React escapes by default (not innerHTML) |
| Express + Helmet | Missing security headers | Helmet middleware adds headers |
| SQLAlchemy | .query.filter() | ORM parameterizes queries |
| Prisma | prisma.model.findMany() | Query builder is injection-safe |
Suppression System
Users can suppress known false positives via .security/suppressions.json:
{
"suppressions": [
{
"id": "SECRET-014",
"file": "tests/fixtures/mock-data.ts",
"reason": "Test fixture with fake password",
"author": "developer@example.com",
"date": "2026-03-16"
}
]
}Suppressions are:
- Scoped to specific file + pattern ID
- Require a documented reason
- Tracked in the scan report under "Suppressed Findings"
Artifacts
The scanner writes artifacts to .security/:
.security/
scan-report-YYYY-MM-DD.md # Human-readable report
findings-raw.json # All raw findings before triage
findings-triaged.json # Findings with triage classification
suppressions.json # User-maintained suppressions
tool-inventory.json # Detected tools and versionsInterpreting Results
Finding Classifications
| Classification | Meaning | Action |
TRUE_POSITIVE | Confirmed vulnerability | Fix before merge |
FALSE_POSITIVE | Not actually vulnerable | Optionally add suppression |
NEEDS_REVIEW | Uncertain — requires human judgment | Manual review required |
Severity Levels
| Severity | CVSS Range | SLA Guidance |
| CRITICAL | 9.0-10.0 | Fix immediately, block merge |
| HIGH | 7.0-8.9 | Fix before production deploy |
| MEDIUM | 4.0-6.9 | Fix within current sprint |
| LOW | 0.1-3.9 | Track and fix when convenient |
Provenance Labels
Every finding carries a provenance label indicating its source:
[Static: semgrep]— Semgrep rule match[Static: gitleaks]— Gitleaks secret detection[Static: trivy]— Trivy vulnerability/misconfiguration[Static: bandit]— Bandit Python check[Static: gosec]— Gosec Go check[Static: regex]— Built-in regex pattern match[LLM: triage]— LLM classification annotation
Integration with Other Agents
| Agent | Role in Pipeline |
semgrep-scanner | Deep mode: runs comprehensive semgrep rulesets in parallel |
semgrep-triager | Deep mode: classifies semgrep findings with source context |
security-reviewer | Standalone: manual OWASP review (complementary, not part of pipeline) |
code-reviewer | Can invoke security scan as part of review workflow |
Limitations
- Regex patterns have high false-positive rates — they lack data flow analysis
- No runtime analysis — this is purely static; DAST requires separate tooling
- LLM triage is probabilistic — confidence varies by vulnerability type
- Git history scanning requires gitleaks — regex only scans current files
- Dependency scanning requires trivy — regex cannot detect vulnerable versions
- Coverage gaps in binary formats, minified code, and generated files
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.

