security-audit
Procedure for analyzing code or dependencies for vulnerabilities
When & Why to Use This Skill
This Claude skill provides a comprehensive procedure for conducting security audits on codebases and dependencies. It automates the identification of critical vulnerabilities such as hardcoded secrets, SQL injection, and Cross-Site Scripting (XSS), while also managing third-party dependency risks through automated auditing tools. By integrating these checks into the development workflow, it helps maintain a high security standard and prevents data breaches.
Use Cases
- Vulnerability Scanning: Automatically running 'npm audit' to detect and report known security flaws in project dependencies.
- Secret Leak Prevention: Using pattern matching to scan files for hardcoded API keys, credentials, or sensitive tokens before code is committed.
- Secure Code Review: Systematically reviewing authentication and authorization logic in pull requests to ensure robust access control.
- Injection Risk Mitigation: Analyzing input handling across the application to identify and fix potential SQL injection and XSS vulnerabilities.
- Security Documentation: Generating structured 'findings.md' reports to track identified risks and document remediation steps for compliance.
| name | security-audit |
|---|---|
| description | Procedure for analyzing code or dependencies for vulnerabilities |
Procedure
- Run
npm audit. - Scan for hardcoded secrets using
grep. - Review authentication/authorization logic in changed files.
- Check for injection risks (SQLi, XSS) in inputs.
- Report findings to
docs/findings.mdor fix if critical.