Skip to content

LS-GEN-003: Generic Password

Severity MEDIUM
Blast radius Account or system access (and credential reuse risk)
Rotate at https://vasishta03.github.io/leakscan/rules/

If this leaks

A hardcoded password. If reused, it may grant access to the associated account, database, or admin panel, and possibly to other systems if the password is reused.

What to do

  1. Rotate or revoke the credential at https://vasishta03.github.io/leakscan/rules/.
  2. Check the provider's audit logs for use you don't recognise.
  3. Remove it from git history (leakscan purge --help) and load it from an environment variable or secret manager instead.

Pattern

(?i)(?:password|passwd|pwd)\s*[=:]\s*['\"]([^'\"]{8,})['\"]

Suppress

On one line: # leakscan:ignore LS-GEN-003. For the whole project:

disable_rules: [LS-GEN-003]