A Plivo Auth Token is the password of your Plivo API. Paired with the Auth ID, which acts as the username, it lets whoever holds it send SMS, place calls, buy or release phone numbers and read usage on that account or sub-account, and every action is billed to you. The costliest abuse is toll fraud and SMS pumping: calls or messages to premium-rate destinations, which can consume a balance in hours. Regenerate the token first, then read the logs.
Check your GitHub account for leaked secrets — free
- Provider
- Plivo
- Severity
- High
- Impact
- SaaS account access and billing
- Checked live by LeakWatch
- No
What a Plivo Auth Token looks like
Plivo’s credentials come as a pair. The Auth ID is the account identifier and is not secret by itself, and it cannot be changed. The Auth Token is the secret, and it can be regenerated:
MAXXXXXXXXXXXXXXXXXX Auth ID (masked, an account identifier)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Auth Token (masked, 40 characters)
LeakWatch looks for two shapes near the word plivo: a 40-character token that may contain letters, digits, dashes and underscores, and a 20-letter string. The 20-letter shape is the length of an Auth ID, so the second rule often matches an identifier rather than a secret. Names such as PLIVO_AUTH_TOKEN, PLIVO_AUTH_ID, and a basic-auth call to the Plivo API are typical contexts. Sub-accounts have their own pair of credentials. If you find an Auth ID in the leak, look for the matching token as well.
How Plivo Auth Tokens get leaked
- SDK quick-starts. The Auth ID and token typed into the client constructor in an example script and committed.
- Environment files.
PLIVO_AUTH_IDandPLIVO_AUTH_TOKENin a.envor compose file inside a repository. - Voice and IVR projects. Applications that answer calls keep several credentials in one config shared among contractors.
- Mobile and web code. A token put in client code to place a call or send a code directly.
- CI logs and tickets. A basic-auth
curlcommand pasted in a support thread, since the credentials are the username and password.
What to do in the first hour
- Open the Auth settings in the Plivo console (see the link below). Plivo’s documentation describes a page where a new Auth Token is generated.
- Generate a new Auth Token. The documentation says you choose when the old token expires: immediately, or after 48 hours. For a leaked token choose immediate expiry, accepting that an application still using the old value will fail until you deploy the new one.
- Deploy the new token to the application or secret store and send one test message or call.
- Confirm the old token fails by retrying a request with it.
- Check usage. Read the message and call logs and the usage and billing pages for the period since the exposure. Look for destinations you never serve, premium-rate numbers, long calls and bursts at odd hours.
- Review account objects. Check phone numbers, applications, endpoints and sub-accounts for any you did not create. Each sub-account has its own token, so regenerate those that were exposed.
- Set limits. Add a low balance alert and, where supported, geographic permissions limiting the countries you can call or message.
- Clean up the code and rotate neighbouring secrets. See I accidentally pushed an API key to GitHub.
Not sure what else leaked from the same repository? Run a free scan.
Revoke it at Plivo
Plivo documents that the Auth Token is changed from the Auth settings page of the Plivo console, after you sign in: generate a new token and pick when the old one is deleted. Only one Auth Token is active at a time on an account. Older support articles mention a different path (Account, Settings, Credentials), so the navigation has changed over time. A person has not confirmed the exact menu wording for this guide. Look for the page that shows the Auth ID and the option to generate a token, and follow Plivo’s current documentation.
How LeakWatch detects it
Two rules apply, both requiring the word plivo (any case) within 40 characters before the value. The rule called Plivo API Key accepts a 40-character string of letters, digits, dashes and underscores with word boundaries around it: that is the shape of an Auth Token. The rule called Plivo API Key (2) accepts exactly 20 letters: that is the shape of an Auth ID, which is an identifier, so a finding from this rule alone is less serious than a token. Strings of other lengths, or with no plivo nearby, are ignored. Both severities are high.
These types are not checked live: LeakWatch has no validator for Plivo credentials, so a finding means the pattern was seen, not that the token still works.
LeakWatch detects this format but does not check it live: it can tell you the key is exposed, not whether it still works. Assume it does until you have revoked it.
FAQ
Is the Auth ID a secret?
It is an identifier and cannot be changed, but it is half of the credential pair. Treat it as sensitive, and always regenerate the token if the ID was exposed with it.
Does regenerating the token break my application?
It can, if you choose immediate expiry, until the new value is deployed. For a leak that tradeoff is right. Choose the 48-hour option only when you are sure the token was not abused.
Do sub-accounts share the main token?
No. Each sub-account has its own credentials, so regenerate the token for every sub-account named in the leak.