Loading...
Loading...
Proactive security assessment with SAST, secrets detection, dependency scanning, and compliance checks. Use for pre-deployment audit. NOT for code review (review) or pen testing.
npx skill4agent add wyattowalsh/agents security-scannerreviewpentest| Term | Definition |
|---|---|
| finding | A discrete security issue with severity, CWE mapping, confidence, and remediation |
| severity | CRITICAL / HIGH / MEDIUM / LOW / INFO classification per CVSS-aligned heuristics |
| confidence | Score 0.0-1.0 per finding; >=0.7 report, 0.3-0.7 flag as potential, <0.3 discard |
| CWE | Common Weakness Enumeration identifier mapping the finding to a known weakness class |
| OWASP | Open Web Application Security Project Top 10 category mapping |
| SAST | Static Application Security Testing — pattern-based source code analysis |
| secret | Hardcoded credential, API key, token, or private key detected in source |
| lockfile | Dependency manifest with pinned versions (package-lock.json, uv.lock, etc.) |
| compliance | Lightweight heuristic scoring against SOC2/GDPR/HIPAA controls |
| triage | Risk-stratify files by security relevance before deep scanning |
| remediation | Specific fix guidance with code examples when applicable |
| SARIF | Static Analysis Results Interchange Format for CI integration |
| false positive | Detection matching a pattern but not an actual vulnerability |
| $ARGUMENTS | Mode | Action |
|---|---|---|
| Empty | — | Show dispatch menu and example invocations; do not start a scan |
| | Full security scan of path (default: cwd) |
| | Targeted security check on specific files |
| | Dependency lockfile analysis |
| | Secrets-only regex scan |
| | SOC2/GDPR/HIPAA heuristic checklist |
| | Dashboard visualization of findings |
| Unrecognized input | — | Ask for clarification |
$ARGUMENTS/security-scanner scan/security-scanner check src/auth//security-scanner deps/security-scanner secrets/security-scanner compliance soc2/security-scanner reportscanfindreferences/owasp-patterns.mduv run python scripts/secrets-detector.py <path>.gitignoreuv run python scripts/dependency-checker.py <path>references/cwe-patterns.mdpackage-lock.jsonyarn.lockpnpm-lock.yamlrequirements.txtuv.lockCargo.lockgo.sumGemfile.lockcomposer.lockuv run python scripts/dependency-checker.py <path>uv run python scripts/secrets-detector.py <path>.gitignoregit log --diff-filter=D -p -- <file><standard>soc2gdprhipaauv run python scripts/compliance-scorer.py <path> --standard <standard>references/compliance-checklists.mduv run python scripts/sarif-formatter.pytemplates/dashboard.html| Scope | Strategy |
|---|---|
| 1-10 files | Direct scan, no triage |
| 11-100 files | Triage + prioritized scan |
| 100-500 files | Triage + sampling (all HIGH, 50% MEDIUM, 10% LOW) |
| 500+ files | Triage + sampling + parallel subagents by risk tier |
| File | Content | Read When |
|---|---|---|
| references/owasp-patterns.md | OWASP Top 10 with code patterns and detection heuristics | During SAST scan (Step 2) |
| references/cwe-patterns.md | Top 50 CWEs with detection patterns and remediation | During CWE mapping (Step 5) |
| references/secrets-guide.md | Secret patterns, false positive hints, triage guidance | During secrets scan |
| references/dependency-audit.md | Dependency audit protocol and CVE lookup workflow | During deps mode |
| references/compliance-checklists.md | SOC2/GDPR/HIPAA control checklists with scoring | During compliance mode |
| references/triage-protocol.md | Risk stratification methodology for security files | During triage (Step 1) |
| references/scope-boundary.md | Boundary with review, pen testing, runtime monitoring | When scope is unclear |
| Script | When to Run |
|---|---|
| scripts/secrets-detector.py | Secrets scan — regex-based detection |
| scripts/dependency-checker.py | Dependency analysis — lockfile parsing |
| scripts/sarif-formatter.py | SARIF conversion — CI integration output |
| scripts/compliance-scorer.py | Compliance scoring — heuristic checklist |
| Template | When to Render |
|---|---|
| templates/dashboard.html | After scan — inject findings JSON into data tag |