Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provides comprehensive security checklist and patterns.
This skill ensures all code follows security best practices and identifies potential vulnerabilities.
const apiKey = "sk-proj-xxxxx" // Hardcoded secret
const dbPassword = "password123" // In source code
const apiKey = process.env.OPENAI_API_KEY
const dbUrl = process.env.DATABASE_URL
if (!apiKey) {
throw new Error('OPENAI_API_KEY not configured')
}
const query = `SELECT * FROM users WHERE email = '${userEmail}'`
const { data } = await supabase
.from('users')
.select('*')
.eq('email', userEmail)
await db.query('SELECT * FROM users WHERE email = $1', [userEmail])
npm audit
npm audit fix
npm update
npm outdated
Before ANY production deployment:
Remember: When in federal context, apply FedRAMP, FISMA, and NIST 800 security controls. Evidence required; no certification claims.