plaintext-secrets
Sensitive tokens stored without encryption in database schema
Applies to: Prisma, Python, TypeScript
Why this matters
Storing OAuth tokens, API keys, and other secrets in plaintext means a database breach exposes all credentials. Attackers can use these to access user calendars, send emails as users, or make API calls. Use field-level encryption or external secrets management.
Catch it before it ships
pip install stablestack # or: npx stablestackstablestack # scans your project, SEC008 includedstablestack explain SEC008SEC008 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.
False positive in your codebase? Suppress a single line with # noqa: SEC008
More Security checks
hardcoded-secret
Hardcoded secrets in code can be leaked and are hard to rotate
SEC002sql-injection
SQL queries built with string concatenation are vulnerable to injection
SEC003eval-usage
eval() executes arbitrary code and is a security risk
SEC004insecure-random
Non-cryptographic random is predictable and insecure for tokens/passwords
SEC005inner-html-xss
Direct innerHTML assignment can lead to XSS vulnerabilities
SEC006webhook-security-bypass
Webhook signature verification should never be skipped
SEC007oauth-state-validation
OAuth callback missing state parameter validation
SEC009email-header-injection
User input in email headers may allow header injection