nstung463/kimi-agent-skills/secure-code-review
Claude Code and agent skill by nstung463/kimi-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Systematically reviews code for SQL injection, XSS, SSRF, broken access control, cryptographic failures, and other common OWASP Top 10 vulnerabilities, providing vulnerable code examples and ready-to-use remediation guidance. Trigger this skill when users ask for a security review, vulnerability scan, or penetration testing assistance, or mention keywords like OWASP, SQL injection, XSS, code audit, or security checklist.
Install
npx vskill@latest install nstung463/kimi-agent-skills/secure-code-reviewSKILL.md
The same SKILL.md was published earlier as serejaris/kimi-skills/secure-code-review.
OWASP Top 10 Code Security Review Checklist
A systematic security review based on the OWASP Top 10 (2021) standard. Each item includes: vulnerability description, typical vulnerable code, inspection checkpoints, and remediation examples. Designed for security-focused code review of web applications.
Usage
Provide the code files or code snippets to review, and specify which OWASP categories to check (or request a full review) to receive an item-by-item audit report.
Example prompts:
- "Check this code for SQL injection risks"
- "Run a full OWASP Top 10 security review on this project"
- "Does this API endpoint have any SSRF vulnerabilities?"
Quick Reference
| ID | Category | Key Check | |
|---|---|---|---|
| A01 | Broken Access Control | Does every endpoint verify the current user's identity? Can users access others' data by changing IDs? | |
| A02 | Cryptographic Failures | Are passwords hashed with bcrypt/argon2? Are secrets hardcoded? | |
| A03 | Injection | String-concatenated SQL? shell=True? Unescaped template output? | |
| A04 | Insecure Design | Is rate limiting in place? Can critical workflows be bypassed? | |
| A05 | Security Misconfiguration | DEBUG enabled? Stack traces in error pages? Default credentials? | |
| A06 | Vulnerable Components | Any CVEs from pip audit / npm audit? | |
| A07 | Authentication Failures | Is JWT signature verified? Can tokens be revoked? Is MFA available? | |
| A08 | Integrity Failures | Any pickle.loads deserializing untrusted data? | |
| A09 | Logging & Monitoring Failures | Are plaintext passwords in logs? Are failed logins recorded? | |
| A10 | SSRF | Are user-supplied URLs filtered against internal IPs? |
Review Process SOP
Core principle: prefer false positives over missed true positives.
- Define scope — Identify the files, modules, or code snippets to review
- Full coverage check — Scan through A01-A10 sequentially. Every item must appear in the report (mark items with no findings as pass). The default behavior is to only report issues found — this process requires full coverage to ensure nothing is missed
- Risk classification — Label each finding:
- RED High: Directly exploitable (RCE, SQL injection, SSRF reaching internal networks, plaintext password storage)
- YELLOW Medium: Exploitable under specific conditions (missing rate limiting, weak password policy, static tokens)
- GREEN Low: Defense-in-depth gap with no direct exploitation path (missing security headers, insufficient logging)
- Every finding must include ready-to-use fix code (actual code, not just a description). Reference specific
file:line_number - Output the review report — Use the template below, findings sorted by severity descending, with a prioritized remediation list at the end
A01:2021 — Broken Access Control
Risk: Users can access other users' data or perform unauthorized operations.
Checkpoints:
- [ ] Does every API endpoint enforce authorization?
- [ ] Are there IDOR vulnerabilities (Insecure Direct Object References) — can users access others' data by modifying ID parameters?
- [ ] Do admin interfaces verify roles?
- [ ] Is access control enforced server-side (not just by hiding UI elements)?
- [ ] Is the CORS policy overly permissive?
Vulnerable Code Example
Remediation Example
A02:2021 — Cryptographic Failures
Risk: Sensitive data (passwords, credit card numbers, personal information) is unencrypted or uses weak cryptographic algorithms.
Checkpoints:
- [ ] Are passwords stored using secure hashing (bcrypt/scrypt/argon2) rather than MD5/SHA1?
- [ ] Is HTTPS enforced for sensitive data in transit?
- [ ] Are encryption keys hardcoded in the source code?
- [ ] Are deprecated cryptographic algorithms in use (DES, RC4, MD5)?
- [ ] Are sensitive database fields encrypted at rest?
Vulnerable Code Example
Remediation Example
A03:2021 — Injection
Risk: User input is concatenated directly into SQL, OS commands, LDAP queries, etc., allowing attackers to execute arbitrary queries or commands.
Checkpoints:
- [ ] Do SQL queries use parameterized queries / ORM (not string concatenation)?
- [ ] Are there
os.system()orsubprocess.call(shell=True)calls that concatenate user input? - [ ] Does template rendering properly escape user input (preventing XSS)?
- [ ] Are special characters filtered in LDAP / XPath / NoSQL queries?
- [ ] Are unfiltered user inputs logged directly (log injection)?
SQL Injection — Vulnerable Code
SQL Injection — Remediation
Command Injection — Vulnerable Code
Command Injection — Remediation
A04:2021 — Insecure Design
Risk: Business logic design flaws that cannot be fixed by a perfect implementation.
Checkpoints:
- [ ] Do critical operations have rate limiting?
- [ ] Can the password reset flow be abused (username enumeration, verification code brute-force)?
- [ ] Do sensitive operations (payments, transfers) require secondary confirmation?
- [ ] Are there batch operation endpoints with no upper limit?
- [ ] Can business workflows be executed out of order (e.g., skipping payment to complete an order)?
Vulnerable Code Example
Remediation Example
A05:2021 — Security Misconfiguration
Risk: Applications or servers use default configurations, enable unnecessary features, or expose sensitive information in error messages.
Checkpoints:
- [ ] Is DEBUG mode disabled in production?
- [ ] Do error pages leak stack traces, database versions, etc.?
- [ ] Are default credentials still in use?
- [ ] Do HTTP responses include security headers (X-Frame-Options, Content-Security-Policy, etc.)?
- [ ] Are unnecessary HTTP methods (PUT, DELETE, TRACE) disabled?
- [ ] Is directory listing disabled?
Vulnerable Code Example
Remediation Example
A06:2021 — Vulnerable and Outdated Components
Risk: Using third-party libraries or framework versions with known vulnerabilities.
Checkpoints:
- [ ] Do dependencies have known CVEs (scan with
pip audit,npm audit,snyk, etc.)? - [ ] Are there dependencies that haven't been updated in a long time?
- [ ] Are any unmaintained libraries in use?
- [ ] Are lock files (package-lock.json / requirements.txt) under version control?
- [ ] Is there an automated dependency update mechanism (Dependabot, etc.)?
Scan Commands
Remediation Guidance
A07:2021 — Identification and Authentication Failures
Risk: Authentication mechanisms have flaws that allow brute-force attacks, credential stuffing, or session hijacking.
Checkpoints:
- [ ] Is there a login failure rate limit (account lockout / delay)?
- [ ] Is the password policy reasonable (minimum length, complexity requirements)?
- [ ] Are session tokens invalidated on logout?
- [ ] Are session IDs sufficiently random and unpredictable?
- [ ] Is MFA supported for sensitive operations?
- [ ] Are JWT tokens validated for signature and expiration?
Vulnerable Code Example
Remediation Example
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/secure-code-review/SKILL.md
Popularity
- Repository stars
- 4
- Repository forks
- 1
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nstung463/kimi-agent-skills/secure-code-review)