A SignalWire API token, used with the project ID, lets whoever holds it call the SignalWire REST APIs as your project: place and control voice calls, send SMS, manage phone numbers and read the logs. Voice and messaging are billed per use, so the usual abuse is toll fraud and SMS pumping, where the attacker sends traffic to destinations that pay them, and you pay the carrier charges. Depending on the scopes granted, the token can also change the configuration of your numbers. Delete the token first, then investigate.
Check your GitHub account for leaked secrets — free
- Provider
- SignalWire
- Severity
- High
- Impact
- SaaS account access and billing
- Checked live by LeakWatch
- No
What a SignalWire API token looks like
SignalWire authentication with the REST APIs uses HTTP basic authentication: the Project ID is the username and the API token is the password. The documentation states that these credentials do not expire, which means they stay valid until you delete them. A space also has its own hostname, of the form YOUR-SPACE.signalwire.com.
Project ID : XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX (UUID, an identifier)
API token : XXXXXXXX…XXXX (long alphanumeric, masked)
Space URL : YOUR-SPACE.signalwire.com
Only the token is the secret in the strict sense, but the three values together tell an attacker where to connect and who to be, so treat the set as one leak. Typical names are SIGNALWIRE_PROJECT_ID, SIGNALWIRE_API_TOKEN, SIGNALWIRE_SPACE and SIGNALWIRE_SPACE_URL. The token is not the same as the short-lived bearer tokens (JWTs) that a server can mint for browser clients: those expire, while the API token does not.
How SignalWire API tokens get leaked
- Environment files. The three
SIGNALWIRE_*variables in a committed.envor Docker configuration. - Sample applications. Quickstarts for voice and messaging that take the project ID, token and space in the source file.
- Telephony configuration. FreeSWITCH or SIP gateway setups that embed the token in a config file or an automation script.
- Client-side code. A web or mobile app that places calls directly with a permanent token, instead of using a server that issues short-lived credentials.
- CI logs and screenshots. Debug output of an authenticated request, or a dashboard capture showing the token when it is created.
What to do in the first hour
- Create a new token. SignalWire’s documentation lists tokens in the API section of your space and describes creating and deleting them. Create a replacement with only the scopes the application needs.
- Deploy the new token to the application and secret store, then place a test call or send a test message.
- Delete the exposed token from the same list (see the link below). The credential has no expiry, so the only way to stop it is to delete it. If the leaked token cannot be told apart from others, delete them in turn and redeploy.
- Review the usage. In the dashboard, open the call logs, message logs and the usage and billing views for the period since the exposure. Look for traffic to destinations you do not serve, calls at unusual hours, large volume and messages you did not send.
- Check the configuration. Look at your phone numbers for changed webhook URLs or forwarding, at new numbers you did not buy, and at the users and other tokens of the project.
- Limit the damage next time. Use narrow scopes, and set a spending alert or limit if the dashboard offers one.
- Clean up the code. Remove the token and look for other secrets in the same files. 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 SignalWire
SignalWire tokens are managed from the API section of your space in the SignalWire dashboard, after you sign in with a user allowed to manage the project. The list shows existing tokens, and each row has a menu with a delete action. The same operation exists in the REST API as a token deletion by identifier, which is useful for scripting. A person has not confirmed the exact menu wording for this guide, and the interface can change, so if the page differs from this description, look for the section where API tokens are listed, and follow the SignalWire documentation on API authorization.
How LeakWatch detects it
Three rules cover SignalWire, each looking for a different value. All three need the word signalwire in the text and all are rated high.
The rule called SignalWire API Key looks for a space hostname: three to sixty-four lowercase letters, digits or dashes, any one character, then signalwire.com, with word boundaries. It is case-sensitive, so an uppercase hostname is not matched. This reports an identifier, not a secret, but it tells you that a SignalWire setup is present in the file.
The rule called SignalWire API Key (2) looks for the word signalwire and, within about 40 characters, a UUID-shaped value (groups of 8, 4, 4, 4 and 12 letters or digits). That is the shape of the project ID.
The rule called SignalWire API Key (3) looks for the word and, within about 40 characters, a standalone string of exactly 50 letters and digits, which is the shape of the API token as the rule is written. A string of 49 or 51 characters, or one far from the word, is refused.
This type is not checked live: LeakWatch does not send any request to SignalWire with the values it found.
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 project ID a secret?
By itself it is an identifier and cannot authenticate. It is used with the token, though, and the two are almost always in the same file, so rotate the token whenever the project ID leaks next to it.
Does a SignalWire API token expire?
No. The documentation says the API credentials do not expire, which is why deleting the token is the only fix. Short-lived bearer tokens do expire, but they are a different credential.
How do I know if the token was used for fraud?
Compare the call and message logs with your real traffic for the period since the exposure. Calls to premium or unusual destinations, or bursts of messages you did not send, are the typical signs.