Skip to content

LS-AI-018: Modal Token Secret

Severity HIGH
Blast radius Compute billing abuse and code execution
Rotate at https://modal.com/settings/tokens

If this leaks

Combined with the token ID, allows deploying and running code on Modal billed to the workspace.

What to do

  1. Rotate or revoke the credential at https://modal.com/settings/tokens.
  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

\bas-[A-Za-z0-9]{22}\b

Suppress

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

disable_rules: [LS-AI-018]