Skip to content

LS-AI-017: Kaggle API Key

Severity HIGH
Blast radius Account and private dataset access
Rotate at https://www.kaggle.com/settings/account

If this leaks

Allows downloading private datasets, publishing kernels and datasets as the user.

What to do

  1. Rotate or revoke the credential at https://www.kaggle.com/settings/account.
  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)(?:kaggle)[\w.\-]{0,25}['\"]?\s*(?::=|=>|[=:])\s*['\"]?([a-f0-9]{32})(?![A-Za-z0-9])

Suppress

On one line: # leakscan:ignore LS-AI-017. For the whole project:

disable_rules: [LS-AI-017]