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¶
- Rotate or revoke the credential at https://dashboard.ngrok.com/get-started/your-authtoken.
- Check the provider's audit logs for use you don't recognise.
- 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]