Skip to content

LS-DB-006: Snowflake Connection String

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

If this leaks

Contains a username and password for a Snowflake account, giving that user's access to warehouses and data.

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://[^\s'\"/:]+:[^\s'\"@]+@[^\s'\"]+

Suppress

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

disable_rules: [LS-DB-006]