agentsclimarketplace

Secure scan

Skill DrOlu/agent-skills/skills/secure-scan

Open agent skills for the skills.sh ecosystem — browser, docs, mail, media, security, networking, orchestration, and more.

Install
npx -y skills add DrOlu/agent-skills --skill secure-scan

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Comprehensive secure code analysis and vulnerability review using Semgrep, Gitleaks, Trivy, CodeQL, and Horusec in a layered defense approach. Covers secret detection, pattern-based SAST, dependency CVEs, IaC misconfigs, container scanning, deep taint analysis, and multi-engine sweeps. Use when performing security scans, vulnerability assessments, code security reviews, secret detection, dependency audits, or CI/CD security gate setup.

SKILL.md

7.5 KB, as published. Nobody here has run it

Secure Code Analysis & Review

Five-tool layered security scanning: Semgrep (patterns), Gitleaks (secrets), Trivy (deps/IaC/containers), CodeQL (taint analysis), Horusec (multi-engine sweep).

Layered Defense Model

Layer 1: SECRETS      → Gitleaks (API keys, passwords, tokens)
Layer 2: PATTERNS     → Semgrep (known vulnerability patterns)
Layer 3: DEPENDENCIES → Trivy SCA (CVEs in libraries)
Layer 4: MISCONFIGS   → Trivy IaC (Terraform, K8s, Docker)
Layer 5: CONTAINERS   → Trivy Image (base image vulns)
Layer 6: DATA FLOW    → CodeQL (taint analysis, attack chains)
Layer 7: FULL SWEEP   → Horusec (15+ engines, maximum coverage)

Tool Roles

ToolSpeedDepthBest For
Semgrep⚡ SecondsMediumCode-level vulns, custom rules, CI/CD gates
Gitleaks⚡ SecondsShallowHardcoded keys, tokens, passwords
Trivy⚡ Sec–MinMediumDependency CVEs, container misconfigs, IaC drift
CodeQL🐢 MinutesDeepTaint chains, data flow, complex attack paths
Horusec🐢 MinutesBroadMaximum coverage, runs 15+ scanners at once

Quick Start

Full Security Scan (All Layers)

# End-to-end orchestrated scan with results aggregation
bash scripts/secure-scan.sh /path/to/project

# Quick scan — fast layers only (secrets + patterns + deps)
bash scripts/secure-scan.sh /path/to/project --layers quick

# CI gate — fail on any HIGH/CRITICAL finding
bash scripts/secure-scan.sh /path/to/project --ci --severity high,critical

# Specific layers
bash scripts/secure-scan.sh /path/to/project --layers secrets,patterns,deps

# JSON output for downstream processing
bash scripts/secure-scan.sh /path/to/project --format json --output results.json

Individual Tool Quick Commands

# Secrets (always scan first)
gitleaks detect --source /path/to/project -v

# Patterns (fast, catches common vulns)
semgrep --config auto --exclude "node_modules,vendor,.git,dist,build" /path/to/project

# Dependencies + IaC + Secrets
trivy fs --scanners vuln,secret,misconfig /path/to/project

# Deep analysis (slowest, catches data flow)
codeql database create /tmp/codeql-db --language=javascript --overwrite /path/to/project
codeql database analyze /tmp/codeql-db --format=sarif-latest --output=results.sarif

# Full sweep (all engines)
horusec start -p /path/to/project --disable-docker -t 600

Decision Matrix

ScenarioPrimary ToolSecondaryWhy
Quick PR check (<30s)Semgrep + GitleaksFastest, catches most common issues
Pre-merge security gateSemgrep + Gitleaks + TrivyPatterns, secrets, dependencies
Full security auditAll 5 toolsMaximum coverage
Hardcoded secretsGitleaksTrivy --scanners secretPurpose-built for this
Dependency CVEsTrivyBest SCA coverage
Container securityTrivy imagePurpose-built for images
IaC misconfigsTrivy --scanners misconfigBest Terraform/K8s/Docker
Deep taint analysisCodeQLOnly tool tracking data flow across functions
Maximum coverageHorusecRuns 15+ engines
Monorepo 5+ languagesSemgrep + Trivy + HorusecBroad language coverage

Scanning Workflow

Always scan in this order — secrets first because leaked credentials require immediate rotation:

1. Gitleaks    → If secrets found: STOP, rotate credentials, then continue
2. Semgrep     → Fix ERROR-severity findings before merge
3. Trivy       → Update HIGH/CRITICAL dependency CVEs
4. CodeQL      → Run on PRs touching security-sensitive code (auth, input handling)
5. Horusec     → Weekly full sweep to catch what others miss

Per-Project Profiles

Project TypeLayersCommands
Node.js/TSsecrets → patterns → depsgitleaks detect --source . --no-gitsemgrep --config p/javascript --config p/owasp-top-ten --exclude "node_modules,dist" .trivy fs --scanners vuln --skip-dirs node_modules .
Pythonsecrets → patterns → deps → deepgitleaks detect --source . --no-gitsemgrep --config p/python --config p/security-audit --exclude "venv,.venv,__pycache__" .trivy fs --scanners vuln . → CodeQL python-queries:Security
Gosecrets → patterns → deps → deepgitleaks detect --source . --no-gitsemgrep --config p/go --config p/security-audit --exclude "vendor" .trivy fs --scanners vuln . → CodeQL go-queries:Security
Docker/Containersecrets → IaC → imagegitleaks detect --source . --no-gittrivy config --severity HIGH,CRITICAL .trivy image --severity HIGH,CRITICAL myapp:latest
Monoreposecrets → all patterns → all deps → full sweepgitleaks detect --source . --no-gitsemgrep --config auto --exclude "node_modules,vendor,.git" .trivy fs --scanners vuln,secret,misconfig .horusec start -p . --disable-docker

Severity Actions

SeverityAction
CRITICALFix immediately, block deployment
HIGHFix before next release
MEDIUMFix within sprint, add to backlog
LOWFix when convenient
INFOReview, no action required

Safety Rules

  1. NEVER commit real API keys, passwords, or tokens — even in test files
  2. Rotate any credential found by Gitleaks — do not just delete from code
  3. Do not suppress findings without justification — document why in comments or config
  4. Run scans BEFORE merging to main — not after
  5. Do not skip CodeQL because it's slow — it catches what Semgrep misses (taint chains)
  6. Review all CRITICAL/HIGH findings — do not auto-dismiss
  7. Keep rule configs in version control.gitleaks.toml, custom Semgrep YAML, .trivyignore
  8. Run secret detection on git history — not just current code
  9. Never expose scan results publicly — they contain vulnerability details attackers can use

False Positive Suppression

# Semgrep — inline suppression
# nosemgrep: <rule-id>

# Gitleaks — .gitleaks.toml allowlist
# [[allowlist]]
# paths = ['''tests/test_keys.py''']

# Trivy — .trivyignore
# CVE-2024-XXXX # reason for acceptance

# CodeQL — inline suppression
# codeql[python/clear-text-logging] — suppressed: test fixture

# Horusec — .horusec-config.json
# "horusecCliFalsePositiveHashes": ["<hash>"]

References

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.