一键导入
security-audit
Use to perform a security audit of the codebase. Triggers on "보안 점검", "security audit". Delegates to architect agent.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use to perform a security audit of the codebase. Triggers on "보안 점검", "security audit". Delegates to architect agent.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Loaded automatically at session start. Teaches the orchestrator how to route requests to skills and agents. Do not invoke manually.
Use when the user wants to explore an idea, design an approach, or think through a problem before implementing. Triggers on "고민", "논의", "아이디어", "brs".
Use when code review is needed. Triggers on "코드 리뷰", "리뷰해줘", "code review", or at completion of implementation.
Use to harvest `debt:` markers across the repo into a debt ledger and optionally persist it to the Obsidian vault. Triggers on "부채", "기술부채", "debt", "지름길 정리", "/debt". Read-only — does not modify code.
Use when the user wants to run an implementation plan. Triggers on "실행해줘", "구현해줘", "시작해줘", "execute", or after plan approval.
Implement an entire Figma page as Android Jetpack Compose screens by auto-splitting into frames with visual verification. Use whenever a user shares a figma.com/design URL and wants the page built as Compose code. Triggers on '안드로이드 피그마', 'Android Figma', 'Compose 구현'. Covers any multi-frame page. Does NOT apply to Figma asset downloads or single component edits.
| name | security-audit |
| description | Use to perform a security audit of the codebase. Triggers on "보안 점검", "security audit". Delegates to architect agent. |
A read-only security audit across four domains. This skill reports findings only — it does NOT auto-fix anything. All investigation uses local tools (grep, git, file reads); no external security tools (snyk, trivy, etc.) are required.
Delegate the full audit to the agmo:architect agent. Provide the repository root path and the four domain checklists below as context. The architect performs the investigation and returns a structured findings report.
Search git history and the working tree for leaked credentials and sensitive data.
Scan git log for sensitive file commits:
git log --all --full-history -- "*.env" "*.pem" "*.key" "*.p12" "*.pfx" ".env*"
Search commit diffs for high-signal secret patterns:
git log -p --all | grep -iE \
"(api[_-]?key|secret[_-]?key|access[_-]?token|client[_-]?secret|password|passwd|private[_-]?key)\s*[:=]\s*['\"][^'\"]{8,}"
Grep working tree for hardcoded secrets:
grep -rniE \
"(api[_-]?key|secret|token|password|passwd)\s*[:=]\s*['\"][A-Za-z0-9+/=_\-]{16,}" \
--include="*.ts" --include="*.js" --include="*.java" --include="*.kt" \
--include="*.py" --include="*.go" --include="*.yaml" --include="*.yml" \
--exclude-dir=node_modules --exclude-dir=.git
Check for .env files tracked in git:
git ls-files | grep -E "^\.env"
Search for AWS/GCP/Azure key patterns:
grep -rniE "(AKIA[0-9A-Z]{16}|AIza[0-9A-Za-z\-_]{35}|ya29\.[0-9A-Za-z\-_]+)" \
--exclude-dir=node_modules --exclude-dir=.git
Check declared dependencies for known vulnerable or suspicious packages.
Locate dependency manifests:
find . -name "package.json" -not -path "*/node_modules/*" \
-o -name "build.gradle" -o -name "build.gradle.kts" \
-o -name "pom.xml" -o -name "requirements.txt" \
-o -name "go.mod" -o -name "Gemfile"
For each package.json, check for:
* or latest (no version lock)postinstall / preinstall scripts that run shell commandsFor build.gradle / build.gradle.kts, check for:
http:// (not https)SNAPSHOT versions in production configurationsFlag packages with known CVEs by cross-referencing the OSV advisory list (manual lookup — no external tool call). Focus on categories: RCE, SSRF, path traversal, prototype pollution.
Check for package-lock.json or yarn.lock presence. If absent, flag as MEDIUM (reproducible builds at risk).
Audit GitHub Actions workflows for over-privileged permissions and secret exposure.
List all workflow files:
find .github/workflows -name "*.yml" -o -name "*.yaml" 2>/dev/null
Check top-level and job-level permissions blocks:
permissions: write-all → CRITICALcontents: write combined with pull-request triggers → HIGHpermissions block entirely (inherits max permissions) → MEDIUMSearch for secret exposure patterns:
grep -n "secrets\." .github/workflows/*.yml
env: to run: blocks → review each oneCheck for third-party actions pinned to mutable refs:
grep -nE "uses:\s+[^@]+@(main|master|HEAD|v\d+)" .github/workflows/*.yml
Mutable ref (branch name or floating major tag without SHA pin) → HIGH
Check for pull_request_target with ${{ github.event.pull_request.head.sha }} checkout — classic TOCTOU attack vector → CRITICAL
Review on: triggers for workflow_dispatch with unvalidated inputs used in run: steps (injection risk).
Scan the codebase for common vulnerability patterns.
Injection (A03)
grep -rniE "(query|exec|eval|execute)\s*\(\s*['\"].*\+|`[^`]*\$\{" \
--include="*.ts" --include="*.js" --include="*.java" --include="*.kt" \
--exclude-dir=node_modules
Look for raw string concatenation into SQL queries, OS commands, or eval.
XSS (A03)
grep -rniE "(innerHTML|outerHTML|document\.write|dangerouslySetInnerHTML)" \
--include="*.ts" --include="*.tsx" --include="*.js" --include="*.jsx" \
--exclude-dir=node_modules
Broken Auth / Missing Auth Check (A07)
grep -rniE "@(Public|PermitAll|AllowAnonymous|NoAuth)" \
--include="*.ts" --include="*.java" --include="*.kt"
Verify each unauthenticated endpoint is intentional.
Sensitive Data Exposure (A02)
grep -rniE "(console\.(log|debug|info)|System\.out\.print|fmt\.Print)\s*\(.*password" \
--include="*.ts" --include="*.js" --include="*.java" --include="*.kt" \
--exclude-dir=node_modules
Security Misconfiguration (A05)
grep -rniE "(cors\(|Access-Control-Allow-Origin:\s*\*|allowedOrigins\s*=\s*['\"]?\*)" \
--include="*.ts" --include="*.js" --include="*.java" --include="*.kt" \
--exclude-dir=node_modules
Insecure Deserialization (A08)
grep -rniE "(ObjectInputStream|pickle\.loads|unserialize|yaml\.load\s*\()" \
--include="*.ts" --include="*.js" --include="*.java" --include="*.kt" --include="*.py" \
--exclude-dir=node_modules
| Severity | Criteria | Response SLA |
|---|---|---|
| CRITICAL | Direct secret exposure, RCE vector, auth bypass, TOCTOU in CI/CD | Fix before next deploy |
| HIGH | Mutable action refs, wildcard CORS, SQL injection candidates, hardcoded tokens in history | Fix within current sprint |
| MEDIUM | Missing lockfiles, floating dep versions, over-broad CI permissions, console.log of PII | Schedule in next sprint |
| LOW | Informational findings, best-practice gaps, style-only issues | Backlog |
The architect produces one report structured as follows:
## Security Audit Report
Audit Date: YYYY-MM-DD
Repository: <repo root>
---
### Domain 1: Secrets Archaeology
#### Findings
- [SEVERITY] <file or git ref>: <description>
Recommendation: <action>
#### Summary
- CRITICAL: N HIGH: N MEDIUM: N LOW: N
---
### Domain 2: Supply Chain
#### Findings
- [SEVERITY] <package>@<version>: <description>
Recommendation: <action>
#### Summary
- CRITICAL: N HIGH: N MEDIUM: N LOW: N
---
### Domain 3: CI/CD
#### Findings
- [SEVERITY] <workflow file>:<line>: <description>
Recommendation: <action>
#### Summary
- CRITICAL: N HIGH: N MEDIUM: N LOW: N
---
### Domain 4: OWASP Top 10
#### Findings
- [SEVERITY] <file>:<line> (<category>): <description>
Recommendation: <action>
#### Summary
- CRITICAL: N HIGH: N MEDIUM: N LOW: N
---
### Overall Risk Summary
| Domain | CRITICAL | HIGH | MEDIUM | LOW |
|--------|----------|------|--------|-----|
| Secrets Archaeology | N | N | N | N |
| Supply Chain | N | N | N | N |
| CI/CD | N | N | N | N |
| OWASP Top 10 | N | N | N | N |
| **Total** | **N** | **N** | **N** | **N** |
### Top Priority Actions
1. [CRITICAL] <action>
2. [HIGH] <action>
...
Note: This skill reports only. No files are modified. Remediation must be performed separately via a dedicated implementation plan.