LS-DB-016: Turso Auth Token¶
| Severity | HIGH |
| Blast radius | Full database compromise |
| Rotate at | https://docs.turso.tech/cli/db/tokens/invalidate |
| Validation | jwt_ok |
If this leaks¶
Allows querying and modifying the Turso/libSQL database the token is scoped to.
What to do¶
- Rotate or revoke the credential at https://docs.turso.tech/cli/db/tokens/invalidate.
- 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)(?:turso|libsql)[\w.\-]{0,25}['\"]?\s*(?::=|=>|[=:])\s*['\"]?(eyJ[A-Za-z0-9_\-]+\.eyJ[A-Za-z0-9_\-]+\.[A-Za-z0-9_\-]+)(?![A-Za-z0-9])
Suppress¶
On one line: # leakscan:ignore LS-DB-016. For the whole project:
disable_rules: [LS-DB-016]