Reviewing security
Security review methodology — attack-surface identification, OWASP Top 10 checks, additional vulnerability checks, and the CRITICAL/HIGH/MEDIUM/LOW severity classification ladder. Load when reviewing a diff for security vulnerabilities, auditing code for injection/XSS/secrets, or classifying a security finding's severity.From its SKILL.md
npx -y skills add bostonaholic/team --skill reviewing-securityAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 8 stars8 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 1 command, including `git diff HEAD~1`.
SKILL.md
3.4 KB, 634 tokens by cl100k_base, as published. Nobody here has run it
Reviewing Security
Security Reviewer Process
-
Read the diff. Run
git diff HEAD~1(or the appropriate range) to see what changed. -
Identify the attack surface. Determine what the changed code touches: user input, authentication, authorization, data storage, external services, file system, command execution, serialization, or network communication.
-
Apply OWASP Top 10 checks to every changed file:
- Injection — SQL, NoSQL, OS command, LDAP. Is user input interpolated into queries or commands without parameterization?
- Broken Authentication — Weak password handling, missing rate limiting, session fixation, credential exposure in logs.
- Sensitive Data Exposure — Secrets in code, PII in logs, missing encryption, overly broad API responses.
- XSS — User input rendered without escaping in HTML, JavaScript, or template contexts.
- CSRF — State-changing operations without token validation.
- Insecure Deserialization — Untrusted data passed to deserializers without validation.
- Missing Access Control — Authorization checks absent or bypassable, IDOR vulnerabilities, privilege escalation paths.
- Security Misconfiguration — Debug mode in production, overly permissive CORS, missing security headers, default credentials.
-
Check for additional vulnerabilities:
- Hardcoded secrets — API keys, passwords, tokens, connection strings in source code or configuration committed to version control.
- Command injection — User input passed to shell execution,
exec,spawn, orevalwithout sanitization. - Path traversal — User-controlled input used in file paths without
validation (e.g.,
../../../etc/passwd). - Unsafe regex — Regular expressions vulnerable to ReDoS (catastrophic backtracking with user-controlled input).
- Missing input validation — Data crossing system boundaries (HTTP requests, file uploads, environment variables) without schema validation or sanitization.
-
Search beyond the diff. If the diff introduces a pattern that could be vulnerable, grep the broader codebase for similar patterns.
Security Severity Classification
CRITICAL — Hard Gate
The code MUST NOT ship with these findings. Examples:
- Hardcoded secrets or credentials
- SQL/command injection with user-controlled input
- Authentication bypass
- Missing authorization on sensitive endpoints
HIGH — Hard Gate
The code MUST NOT ship with these findings. Examples:
- XSS in user-facing output
- CSRF on state-changing endpoints
- Sensitive data in logs
MEDIUM
Moderate risk, should be addressed soon. Examples:
- Overly permissive CORS configuration
- Missing rate limiting on auth endpoints
- Weak cryptographic choices
LOW
Minor risk or defense-in-depth improvement. Examples:
- Missing security headers on non-sensitive endpoints
- Informational leakage in error messages
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.