A Clarifai key lets whoever holds it call the Clarifai platform as you: running models and workflows, and, depending on its scopes, reading or changing your apps, datasets and inputs. The main dangers are consumption of your plan’s operations and exposure of the data you uploaded for training or search. Delete the leaked credential first, then check what it touched.
Check your GitHub account for leaked secrets — free
- Provider
- Clarifai
- Severity
- Medium
- Impact
- SaaS account access and billing
- Checked live by LeakWatch
- No
What a Clarifai API Key looks like
Clarifai authenticates calls with a bearer credential, most often a Personal Access Token (PAT), and older projects may still use app-specific API keys. The leaked value is a plain string of letters and digits with no vendor prefix:
XXXXXXXX…XXXX Clarifai credential (masked, 32 letters and digits)
Because there is no prefix, the string alone says nothing: thousands of unrelated hashes look the same. What identifies it is context. Look for the variable name CLARIFAI_PAT or CLARIFAI_API_KEY, a header written as Authorization: Key …, a call to api.clarifai.com, or the Clarifai client library being configured with a pat argument. A PAT is tied to a user and carries the scopes chosen when it was created, so a narrow token is less damaging than a broad one. Clarifai’s documentation also describes a default PAT created when an account is opened, which is worth checking if you never made one by hand.
How Clarifai API Keys get leaked
- Hardcoded in a notebook or script. A quick model-prediction test with the credential typed into the client call and committed.
- Environment files.
CLARIFAI_PATin a.envor compose file that lands in a repository. - Tutorials and demos. A copied quick-start where the sample token was replaced by a real one, then published as a demo.
- Front-end code. A key placed in a web or mobile bundle so the page can call the API directly, where anyone can extract it.
- Logs and screenshots. A request with its authorization header printed by a debug option, or pasted in an issue.
What to do in the first hour
- Open the token list. Sign in to Clarifai and open the page where personal access tokens are listed. Documentation has described this under the settings area, with the exact menu name changing between versions. Match the exposed token by its description and by its last characters.
- Create a replacement. Make a new token with only the scopes the service needs. Do this before deleting the old one so you can deploy without a gap.
- Deploy the new token to the application or secret store, and run one small prediction to confirm it works.
- Delete the exposed token from the same list, then retry a call with the old value to confirm it is rejected. Clarifai’s documentation tells you to delete a compromised token and create a new one with the same scopes.
- Check your apps and data. Review the apps, datasets, models and workflows on the account for anything you did not create, and look at the inputs for uploads you do not recognize. If the token had write scopes, an attacker could have changed or removed content.
- Check usage. Look at the operations count and usage views since the exposure for spikes or unusual hours.
- Look for neighbours and clean up. Rotate other keys in the same file and clean the code. 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 Clarifai
Clarifai credentials are managed in your Clarifai account, after you sign in with the user that owns the token. Open the page that lists personal access tokens, select the exposed one and delete it. PATs do not expire on their own, so deletion is the only way to end one. A person has not confirmed the exact menu wording for this guide, and the interface can change, so if what you see differs, look for the section where tokens are created and listed, and follow Clarifai’s documentation. If your project uses an app-specific key, it is listed inside the app rather than at account level.
How LeakWatch detects it
The rule is called Clarifai API Key. Because the credential has no prefix, the rule does not match a bare string. It looks for the word clarifai in any letter case, followed within about 40 characters (newlines allowed) by a value of exactly 32 letters and digits with word boundaries. A 32-character string with no such word nearby, or one that is longer or shorter, is not reported. That keeps false alerts down, but a credential pasted far from the word can be missed. The severity is medium. This type is not checked live: LeakWatch does not send any request to Clarifai with the value 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 a Clarifai token as sensitive as a cloud provider key?
Usually less, which is why the severity is medium. But it can expose uploaded data and consume your plan, and a broadly scoped token can modify apps. Treat it as compromised until it is deleted.
Does deleting the token stop the abuse immediately?
Deleting it removes the credential from the account, so later calls with it should be refused. Confirm by retrying a call with the old value, and update every system that used it.
What if my key was an app-specific key and not a PAT?
Treat it the same way. Find it inside the app that owns it, create a replacement, deploy it, then delete the exposed one.