원클릭으로
security-audit-pro
Security audit with SAST, SCA, containers, SBOM, PII detection. Use for comprehensive security reviews.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Security audit with SAST, SCA, containers, SBOM, PII detection. Use for comprehensive security reviews.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Tool-agnostic search — query construction, tool selection, source trust hierarchy.
Auto-continue through todos with idle detection and safety gates. Use for multi-step orchestration.
Level 2 — Pantheon-native context compression with priority scoring, semantic summarization, downstream-aware compression, budget allocation, and cross-references
Automated visual review pipeline — Playwright screenshots, self-analysis, fix loop, escalation. Used by Aphrodite for UI verification.
Multi-agent orchestration with model routing, category delegation, and sprint management. Use for coordinating Pantheon agents.
MCP security hardening — credential leakage prevention, input sanitization, and tool access control. Use for reviewing agent MCP configurations.
| name | security-audit-pro |
| description | Security audit with SAST, SCA, containers, SBOM, PII detection. Use for comprehensive security reviews. |
| context | fork |
| globs | ["**/*.py","**/*.ts","**/*.tsx","**/*.js","**/*.yml","**/*.yaml","**/Dockerfile*","**/docker-compose*"] |
| alwaysApply | false |
Use this skill for professional-grade security auditing. Covers SAST, SCA, container security, SBOM, PII detection, and compliance patterns. Used by Themis during code review.
This skill replaces and expands the basic security-audit skill. It covers:
| Domain | Coverage |
|---|---|
| SAST | SQL injection, XSS, CSRF, path traversal, command injection |
| SCA | Dependencies with known CVEs, outdated packages |
| Container | Non-root user, health checks, secrets, minimal base images |
| SBOM | Software Bill of Materials generation |
| PII | Detection of personal data in code/logs |
| Compliance | GDPR, LGPD, HIPAA patterns |
❌ Vulnerable:
query = f"SELECT * FROM users WHERE email = '{email}'"
await db.execute(query)
✅ Safe:
query = text("SELECT * FROM users WHERE email = :email")
await db.execute(query, {"email": email})
❌ Vulnerable:
return HTMLResponse(content=f"<h1>Welcome, {user.name}</h1>")
✅ Safe:
from markupsafe import escape
return HTMLResponse(content=f"<h1>Welcome, {escape(user.name)}</h1>")
Check:
❌ Vulnerable:
file_path = f"/uploads/{filename}"
return FileResponse(file_path)
✅ Safe:
import os
base_dir = "/uploads"
file_path = os.path.join(base_dir, os.path.basename(filename))
if not file_path.startswith(base_dir):
raise HTTPException(400, "Invalid path")
return FileResponse(file_path)
❌ Vulnerable:
os.system(f"convert {input_file} {output_file}")
✅ Safe:
import subprocess
subprocess.run(["convert", input_file, output_file], check=True)
Run these commands to check for vulnerabilities:
# Python
pip-audit -r requirements.txt
safety check -r requirements.txt
# Node.js
npm audit
npx audit-ci --moderate
| Pattern | Risk | Fix |
|---|---|---|
requests < 2.31.0 | CVE-2023-32681 | Upgrade to >= 2.31.0 |
pydantic < 2.0 | Validation bypass | Upgrade to >= 2.7 |
sqlalchemy < 2.0 | SQL injection risk | Upgrade to >= 2.0 |
express < 4.18.2 | Open redirect | Upgrade to >= 4.18.2 |
USER appuser)HEALTHCHECK)python:3.12-slim not python:3.12).dockerignore presentCOPY . . (copy only needed files).env or vault)deploy.resources)read_only: true)privileged: trueGenerate SBOM for compliance:
# Python
pip install cyclonedx-bom
cyclonedx-py -r requirements.txt -o sbom.json --format json
# Node.js
npm install --save-dev @cyclonedx/cyclonedx-npm
npx cyclonedx-npm --output-file sbom.json
Scan code and logs for personal data:
| Pattern | Example | Severity |
|---|---|---|
| Email in logs | logger.info(f"User {email} logged in") | High |
| SSN/CPF in code | cpf = "123.456.789-00" | Critical |
| Phone numbers | phone = "+55 11 99999-9999" | High |
| Credit cards | card = "4111 1111 1111 1111" | Critical |
| Passwords in code | PASSWORD = "secret123" | Critical |
# ❌ Logging PII
logger.info(f"User {user.email} with CPF {user.cpf} created account")
# ✅ Hashing PII in logs
import hashlib
logger.info(f"User {hashlib.sha256(user.email.encode()).hexdigest()[:8]} created account")
Themis applies this skill during code review:
Themis receives code for review
↓
Applies security-audit-pro skill
↓
Runs SAST checks (manual pattern matching)
↓
Runs SCA checks (pip-audit / npm audit)
↓
Checks container security (Dockerfile, docker-compose)
↓
Scans for PII patterns
↓
Checks compliance patterns
↓
Returns security review results