LS-OKTA-001: Okta API Token¶
| Severity | HIGH |
| Blast radius | Identity provider compromise |
| Rotate at | https://help.okta.com/en-us/content/topics/security/api.htm |
If this leaks¶
Acts as the admin who created it, able to manage users, groups and applications in the Okta org.
What to do¶
- Rotate or revoke the credential at https://help.okta.com/en-us/content/topics/security/api.htm.
- 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)(?:okta)[\w.\-]{0,25}['\"]?\s*(?::=|=>|[=:])\s*['\"]?(00[A-Za-z0-9_\-]{40})(?![A-Za-z0-9])
Suppress¶
On one line: # leakscan:ignore LS-OKTA-001. For the whole project:
disable_rules: [LS-OKTA-001]