Skip to content
Messaging · Secret guide

Leaked ClockworkSMS API key: what to do in the first hour

High severityDetected onlyLast verified · 4 min read

A ClockworkSMS API key lets whoever holds it send text messages through your ClockworkSMS account. Each message is billed to your balance, and the messages go to real phone numbers under your sender name. A leaked key can therefore cost money quickly and can be used to send scam texts to your customers. Revoke the key first, then check the sending history and your balance.

Check your GitHub account for leaked secrets — free

Provider
ClockworkSMS
Severity
High
Impact
SaaS account access and billing
Checked live by LeakWatch
No

What a ClockworkSMS API key looks like

ClockworkSMS keys are plain alphanumeric strings of a fixed length, with no distinctive prefix. That makes them harder to spot than most keys in this list. What identifies one is the word that sits near it: a value next to the names ClockworkSMS or TextAnywhere in a configuration file, a script or a log.

<clockwork key…XXXX>   ClockworkSMS API key (masked)

Because the key has no prefix, a value that looks random next to these words is a candidate, and a manual check is worth doing even when the rule does not report one.

How ClockworkSMS API keys get leaked

  • Configuration files committed to a repository. A settings file for an application that sends SMS alerts, pushed with the key in plain text.
  • Plugin and integration settings. An integration that stores the key in a file in a shared folder or a backup.
  • Scripts and cron jobs. A script that sends reminders, with the key written inline and then copied into a team chat.
  • Shared examples. A snippet posted in a tutorial, forum or support request, with the real key in it.
  • CI logs. A step that prints its configuration or the request it sends.

What to do in the first hour

  1. Revoke the key. Log in to your ClockworkSMS account, open the API keys area and delete the key that leaked. Third-party descriptions place this under the sending menu, but confirm the location on the live page.
  2. Create a replacement and store it in your secret manager. Use one key per application.
  3. Check the sending history. Review the messages sent since the exposure. Look for numbers you do not recognise, unusual volumes and messages with content you did not write.
  4. Check your balance. A sudden drop in credit is a sign of abuse. Ask ClockworkSMS support about any charges you cannot explain.
  5. Warn your customers if scam messages went out under your name.
  6. Clean the repository. Remove the key from files and history, and check the logs. See I accidentally pushed an API key to GitHub.

Not sure what else leaked from the same file? Run a free scan.

Not sure what else leaked? Run a free scan.

Revoke it at ClockworkSMS

Open the account settings in your ClockworkSMS dashboard, find the API keys section and delete the key. Deleting it stops new requests straight away, so have the replacement deployed first if the application is in use. The official ClockworkSMS documentation is the reference for the current steps, and this guide has not confirmed the menu names against the live site. Take care to sign in to the correct account if you run more than one.

How LeakWatch detects it

The rule is called “ClockworkSMS API Key”. It looks for the words clockwork or textanywhere within 40 characters of a 24-character run of letters and digits, with word boundaries around the value. Because the key has no prefix, the rule depends on the nearby word, and a hit may need a manual check to confirm that the value is really a key. The severity is high. This type is not checked live: LeakWatch does not send a text message or call ClockworkSMS with the value.

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

Can someone read my customers' phone numbers with the key?

The key is for sending. It is not documented as a way to read your contact lists, but a sending history can show the numbers you have messaged, so treat that history as sensitive.

Will revoking it stop my alerts?

Only until the new key is deployed. Plan the change so that alerts keep working.

Is a balance drop enough evidence?

It is a strong sign. Confirm it against the sending history, which shows the messages behind the charges.

Get alerted next time a secret leaks — create a free account

LeakWatch is not affiliated with ClockworkSMS.