LS-GCP-004: Google OAuth Access Token¶
| Severity | HIGH |
| Blast radius | Account access until expiry |
| Rotate at | https://myaccount.google.com/permissions |
If this leaks¶
A live bearer token for Google APIs with whatever scopes the user granted, valid until it expires (usually 1 hour).
What to do¶
- Rotate or revoke the credential at https://myaccount.google.com/permissions.
- 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¶
\bya29\.[A-Za-z0-9_\-]{30,}\b
Suppress¶
On one line: # leakscan:ignore LS-GCP-004. For the whole project:
disable_rules: [LS-GCP-004]