LS-POSTHOG-001: PostHog Personal API Key¶
| Severity | HIGH |
| Blast radius | Product analytics and user data exposure |
| Rotate at | https://us.posthog.com/settings/user-api-keys |
--verify |
GET https://us.posthog.com/api/users/@me/ |
If this leaks¶
Allows querying all analytics events, which often include user identifiers and properties.
What to do¶
- Rotate or revoke the credential at https://us.posthog.com/settings/user-api-keys.
- 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¶
\bphx_[A-Za-z0-9]{43}\b
Suppress¶
On one line: # leakscan:ignore LS-POSTHOG-001. For the whole project:
disable_rules: [LS-POSTHOG-001]