Agent skill
security-scan
Orchestrates SAST, dependency audit, and secrets detection using self-hosted tools (Semgrep, Bandit, pip-audit, Trivy, gitleaks). Integrates with task-monitor and memory.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/security-scan-grahama1970-agent-skills
Metadata
Additional technical details for this skill
- short description
- Security scanning orchestrator (SAST, deps, secrets)
SKILL.md
Security-Scan: Self-Hosted Security Scanning
Orchestrate comprehensive security scanning using self-hosted tools.
Features
-
SAST (Static Application Security Testing)
- Semgrep: Multi-language pattern matching
- Bandit: Python-specific security linting
-
Dependency Audit
- pip-audit: Python package vulnerabilities
- npm audit: Node.js package vulnerabilities (auto-detected)
- Trivy: Container and filesystem scanning
-
Secrets Detection
- gitleaks: Find hardcoded credentials, API keys, tokens
-
Integrations
- Task-monitor: Real-time progress tracking
- Memory: Store and recall scan results across sessions
Commands
| Command | Description |
|---|---|
./run.sh scan --path . |
Run all security scans |
./run.sh sast --path . --language python |
Run SAST only |
./run.sh deps --path . |
Run dependency audit only |
./run.sh secrets --path . |
Run secrets detection only |
./run.sh report --format json |
Generate scan report |
Usage
# Full security scan
./run.sh scan --path /path/to/project
# SAST scan for Python
./run.sh sast --path . --language python
# Dependency audit
./run.sh deps --path .
# Secrets detection
./run.sh secrets --path .
# Store results in memory
./run.sh scan --path . --store-results
Output Format
All commands output structured JSON with:
findings: List of security issuesseverity: critical/high/medium/low/infolocation: File path and line numberrule_id: Scanner rule that triggereddescription: Human-readable descriptionremediation: Suggested fix
Required Tools
| Tool | Purpose | Install |
|---|---|---|
| semgrep | SAST | pip install semgrep |
| bandit | Python SAST | pip install bandit |
| pip-audit | Python deps | pip install pip-audit |
| gitleaks | Secrets | Binary from GitHub releases |
| trivy | Container scan | Binary from GitHub releases |
Integration with Task-Monitor
Scans automatically register with task-monitor for progress tracking:
# View scan progress
.pi/skills/task-monitor/run.sh tui --filter security-scan
Integration with Memory
Store scan results for trend analysis:
# Store results
./run.sh scan --path . --store-results
# Recall previous scans
.pi/skills/memory/run.sh recall "security scan results"
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?