An NVIDIA API key lets whoever holds it call the hosted models that NVIDIA offers through its API catalog, and every request is charged to the account that issued the key. The key is the whole credential: there is no second factor and no per-user sign-in behind it. Replace the key first, then look at how it was used, because a stolen key can run up usage on your account without anyone noticing for a while.
Check your GitHub account for leaked secrets — free
- Provider
- NVIDIA
- Severity
- High
- Impact
- SaaS account access and billing
- Checked live by LeakWatch
- No
What an NVIDIA API Key looks like
Keys in this format start with the literal prefix nvapi-, followed by exactly 64 letters and digits:
nvapi-…XXXX NVIDIA API key (masked)
The prefix is specific enough that a hit is rarely a false alarm, but the value on its own does not say which account it belongs to. Other NVIDIA credentials, such as the personal keys used for NGC container registry access, may use a different format. If a leaked file contains one of those too, check it separately.
How NVIDIA API Keys get leaked
- Environment files committed by accident. An
.envfile with a variable such asNVIDIA_API_KEYthat was never added to.gitignore. - Notebooks and examples. A key pasted into a notebook cell to test a model, then published with its output or shared in a repository.
- Sample code from tutorials. A quick-start script that someone edited with a real key and then committed.
- Front-end code. A demo page that calls the API directly from the browser, which ships the key to every visitor. Calls should go through your own backend.
- CI and container configuration. A key written into a pipeline definition, a Docker image or a compose file, where it is visible to anyone who can read the repository or pull the image.
What to do in the first hour
- Create a replacement key first. Sign in to the NVIDIA account that owns the leaked key and open the API keys page from the account menu. Create a new key, and give it a name that says where it will be used, so that you can tell the keys apart later.
- Deploy the new key to your secret manager or environment, then confirm that the application still works. Keep one key per application so that the next rotation affects less.
- Disable the exposed key. Use the revocation steps below. Calls with the old value must fail once it is gone, so check that nothing else still depends on it.
- Check usage. Look at the usage and billing views for the account for the period since the exposure. Look for spikes, for models your application never calls, and for traffic at unusual times. Usage figures can lag, so check again a few hours later.
- Review the account. Check which other people have access to the account and to its projects, and remove anyone you do not recognize. Confirm where billing alerts are sent.
- Clean the repository. Remove the value from the files and rewrite history if you want to. See I accidentally pushed an API key to GitHub, and deep scan your whole git history if the value may sit in an older branch.
Not sure what else leaked? Run a free scan.
Revoke it at NVIDIA
Create and manage your API keys on the API keys page of your NVIDIA account, which you can reach from the account menu on the API catalog site. Find the key that matches the leaked value and remove it. The NVIDIA documentation we checked describes creating keys on that page but does not describe the steps for deleting one, so confirm that the option exists in your account before you rely on it. If you cannot find a way to disable the old key, contact NVIDIA support and tell them which key is exposed. If the leaked value was an NGC personal key rather than a key with the nvapi- prefix, manage it in NGC instead, where deleting a key takes effect immediately.
How LeakWatch detects it
The rule is called NVIDIA API Key. It looks for the literal nvapi- prefix at a word boundary, followed by exactly 64 letters and digits, and the match must end at a word boundary too. Because the length is fixed and the prefix is distinctive, the rule does not need a nearby word to fire, and the keyword nvapi- narrows the search. The severity is high. This type is not checked live: LeakWatch does not send any request to NVIDIA with the value it found, so a finding does not tell you whether the key 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
Can someone read my data through this key?
The key authenticates calls to the models. It does not give access to your application’s data. What an attacker can do is send requests as your account, which means they can use your quota and bill your account, and they can see any output returned to them. Check the usage figures for unexpected activity.
I only saw the key for a few minutes. Do I still need to replace it?
Yes. Automated scanners watch public repositories continuously, so a few minutes is enough. Replacing the key takes a few minutes too, and it is far cheaper than an unexpected bill.
Why is there no live check for this type?
LeakWatch checks live only for types where a read-only request can confirm a key is active without spending credits or touching your data. For this rule, that check has not been set up, so the finding is based on the format alone. Treat it as active until you have replaced the key.