Skip to content

LS-NGROK-001: ngrok Authtoken

Severity HIGH
Blast radius Tunnel abuse under your account
Rotate at https://dashboard.ngrok.com/get-started/your-authtoken

If this leaks

Allows opening tunnels on your ngrok account, which can be used to host phishing pages under your domains.

What to do

  1. Rotate or revoke the credential at https://dashboard.ngrok.com/get-started/your-authtoken.
  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)(?:ngrok)[\w.\-]{0,25}['\"]?\s*(?::=|=>|[=:])\s*['\"]?([0-9A-Za-z]{24,27}_[0-9A-Za-z]{17,21})(?![A-Za-z0-9])

Suppress

On one line: # leakscan:ignore LS-NGROK-001. For the whole project:

disable_rules: [LS-NGROK-001]