一键导入
secure-code-review
Security code review across input validation, auth, injection, crypto, error handling, dependencies, and concurrency with CWE mapping
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Security code review across input validation, auth, injection, crypto, error handling, dependencies, and concurrency with CWE mapping
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Interactive gap analysis against Korea's ISMS-P 102-control certification framework (management, protection, personal information)
Security log analysis and anomaly detection for access, auth, and syslog files
Analyze suspicious files through triage/static/dynamic/code phases to produce IOCs, YARA/Sigma rules, and MITRE ATT&CK mappings
File hash reputation lookup via VirusTotal API v3 for MD5/SHA1/SHA256 detection ratio, threat classification, and vendor results
OWASP Top 10 (2021) checklist-based inspection and compliance matrix generation
Multi-chain smart contract security for Solana, Algorand, Cairo, Cosmos, Substrate, and TON with pre-audit readiness checks
| name | secure-code-review |
| description | Security code review across input validation, auth, injection, crypto, error handling, dependencies, and concurrency with CWE mapping |
| license | MIT |
| metadata | {"category":"code-security","locale":"en","phase":"v1"} |
Performs a structured security-focused code review across 10 domains: Input Validation, Authentication & Session Management, Authorization & Access Control, Injection Prevention, Cryptography, Error Handling & Logging, Data Protection, Dependency Security, Configuration Security, and Race Conditions. Maps findings to CWE identifiers and severity levels, and produces a report with remediation guidance and proof-of-concept notes.
| Item | Description | Example |
|---|---|---|
REPO_PATH | Path to the source code under review | /src/api/ |
LANGUAGE | Primary language(s) of the codebase | Python, TypeScript, Go |
REVIEW_SCOPE | Files, modules, or PR diff to review | auth/, payments/handler.py, PR #342 |
APP_TYPE | Application type | web-api / cli / library / mobile |
DATA_SENSITIVITY | Highest data classification handled | PII / PCI / internal / public |
Before starting the checklist, bound the review to avoid scope creep and ensure thoroughness within the defined boundary.
## Review Scope
- **Repository / Path**: <REPO_PATH>
- **Language(s)**: <LANGUAGE>
- **Files reviewed**: <list each file or PR diff>
- **Review date**: <YYYY-MM-DD>
- **Reviewer**: <name or agent>
- **Total lines reviewed**: <approximate>
Prioritize review order:
Work through each domain systematically. Mark each item as [x] (pass), [ ] (fail / finding), or [-] (not applicable). For each [ ] item, create a finding entry in Step 3.
Reference: See REFERENCE.md for the full 10-domain security checklist with CWE references, severity classification table, and finding detail examples.
Work through each domain systematically. Mark each item as [x] (pass), [ ] (fail / finding), or [-] (not applicable). For each [ ] item, create a finding entry in Step 3.
Reference: See REFERENCE.md for the severity classification table (CRITICAL/HIGH/MEDIUM/LOW/INFO with criteria and examples).
Produce the final report using the templates below.
Summary
## Secure Code Review — Summary
- **System / PR**: <SYSTEM_NAME or PR link>
- **Files reviewed**: <N files, ~X lines>
- **Review date**: <YYYY-MM-DD>
- **Reviewer**: <name or agent>
### Finding Counts
| Severity | Count |
|----------|-------|
| CRITICAL | 0 |
| HIGH | 2 |
| MEDIUM | 3 |
| LOW | 4 |
| INFO | 2 |
| **Total** | **11** |
Reference: See REFERENCE.md for finding detail examples and positive observations/recommendations templates.
[ ]) has a corresponding finding entry with file, line, CWE, impact, PoC, and remediation| Issue | Cause | Solution |
|---|---|---|
| Review scope too broad to complete in one session | Large codebase or PR | Prioritize Domains 1–5 (highest risk) first; schedule remaining domains as a follow-up |
| CWE mapping unclear | Unfamiliarity with CWE taxonomy | Search https://cwe.mitre.org using the vulnerability keyword; use the closest parent CWE if an exact match is not found |
| Finding severity difficult to calibrate | Unclear exploitability | Default to the higher severity when in doubt; document the uncertainty in the finding |
| Static analysis tool produces excessive false positives | Overly broad ruleset | Tune the ruleset; use manual review to confirm or dismiss each flagged item |
| Source code unavailable (black-box context) | Reviewing compiled or obfuscated output | Switch to the owasp-check skill for behavioral testing; note the limitation in the report |
dependency-audit skill to get detailed CVE data and upgrade paths.