Skip to content

LS-DB-007: Snowflake Password

Severity HIGH
Blast radius Full database compromise
Rotate at https://docs.snowflake.com/en/user-guide/admin-user-management

If this leaks

Allows logging in to Snowflake as the user, with their role's access to data and compute.

What to do

  1. Rotate or revoke the credential at https://docs.snowflake.com/en/user-guide/admin-user-management.
  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)(?:snowflake[_-]?(?:password|pwd))[\w.\-]{0,25}['\"]?\s*(?::=|=>|[=:])\s*['\"]?([^\s'\"]{8,64})(?![A-Za-z0-9])

Suppress

On one line: # leakscan:ignore LS-DB-007. For the whole project:

disable_rules: [LS-DB-007]