# Leaked RunPod API Key? Revoke It and Audit GPU Pods

> RunPod API key exposed in a repo or log? Revoke it on the Credentials page, stop unknown pods, check billing and rotate. Step-by-step guide.

Source: https://leakwatch.net/secrets/runpod-api-key

---

[LeakWatch](/)

[Product](/product)[Live feed](/leaks)[Guides](/secrets)[Blog](/blog)[Free scan](/)

1.  [Home](/)
2.  [Secrets](/secrets)
3.  RunPod API Key

Cloud · Secret guide

# Leaked RunPod API Key: what to do in the first hour

Critical severityDetected onlyLast verified November 5, 2026 · 5 min read

A RunPod API key lets whoever holds it manage your RunPod account from outside the console: create, start and stop GPU pods, read and change serverless endpoints, and manage stored secrets. GPU time is billed by the hour, which makes a leaked key an attractive find for anyone who wants free compute, cryptocurrency mining or a place to run unwanted workloads. The bill is usually the first visible sign, and it can grow quickly. Revoke the key first, then stop what it started.

[Check your GitHub account for leaked secrets — free](/)

Provider

RunPod

Severity

Critical

Impact

Cloud infrastructure access

Checked live by LeakWatch

No

## What a RunPod API Key looks like

RunPod API keys start with `rpa_`, followed by a long string of uppercase letters, digits and a few lowercase characters:

```text
rpa_…XXXX   RunPod API key (masked)
```

The `rpa_` prefix is specific enough that a match in a file is worth taking seriously. It is often found in a `.env` file as `RUNPOD_API_KEY`, in a shell profile, or in a Python or JavaScript client that calls the RunPod API directly. Keys are created for the whole account, so a key does not belong to one pod or one project. Some keys can be limited when they are created, to all permissions, restricted access or read-only, so the scope of a leaked key depends on how it was set up.

Do not confuse this with other secrets that appear in the same places. A RunPod key is not a container registry password, and it is not a cloud provider access key. It is the account-level credential for the RunPod API. If the same file also contains a registry password or a cloud key, treat those as separate leaks to rotate.

## How RunPod API Keys get leaked

-   **Notebooks.** A key typed into a Jupyter cell or a RunPod template to make a training script work, then saved with the notebook and shared.
-   **Startup scripts.** A pod template or entrypoint that exports the key as an environment variable, with the value written into the template itself.
-   **Committed config files.** A `.env` file or a Docker build that copied the key into an image layer, pushed to a public registry or repository.
-   **Shared logs.** A training run that prints its environment or its client configuration, and a log file uploaded to a support ticket.
-   **Copied examples.** A key pasted into a tutorial, forum post or chat message to show how to call the API.

## What to do in the first hour

1.  **Revoke the key.** Open the Credentials page in the RunPod console, go to the API keys tab, find the key and revoke it. Do this before you clean anything else. If you cannot tell which key leaked, revoke all keys that were used by the affected project and create new ones afterwards.
2.  **Stop unknown pods.** Check the list of running pods and serverless endpoints. Stop and remove any pod you did not start. A miner or an unknown workload often runs under a generic name, so compare each pod’s creation time and template with your own records.
3.  **Check billing.** Review the spend and usage for the period since the key may have been exposed. A sudden rise in GPU hours, a new region you do not use, or pods started at night are strong signs of abuse.
4.  **Create a replacement** and store it in your secret manager or CI variables. Give each service or team its own key, and choose a restricted or read-only scope where the job allows it, so one leak does not expose everything.
5.  **Check the other secrets** in the same file. Rotate the cloud keys, registry passwords and webhook secrets that were stored next to the RunPod key.
6.  **Clean the code** after the revocation. Remove the value from the files, and move the key into an environment variable that the pod reads at start. See [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github).

Not sure what else leaked from the same repository? [Run a free scan](/).

[Not sure what else leaked? Run a free scan.](/)

## Revoke it at RunPod

Keys are listed on the Credentials page of the RunPod console, in the API keys tab. Find the key by its name, click the trash icon, and confirm with the revoke action. RunPod’s documentation also describes a toggle that disables a key without deleting it, which can be useful when you want to keep the record and test the effect first. The RunPod documentation on credentials and on leaked keys is at [docs.runpod.io](https://docs.runpod.io/get-started/credentials). The exact labels in the console may change, and this guide could not verify them against the live interface, so look for the same actions in whatever layout you see.

## How LeakWatch detects it

The rule is called “RunPod API Key”. It looks for the prefix `rpa_`, followed by a long run of uppercase letters and digits, then a few more letters and digits, and the match must end at a quote, a space, a semicolon, a line break or the end of the line. The value must therefore be complete to be reported. A different prefix, or a key that is cut short, is not reported by this rule. The severity is **critical**, with the impact class for cloud infrastructure. **This type is not checked live**: LeakWatch does not call the RunPod API with the value it finds.

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 a leaked RunPod key be used to read my data?

It depends on the scope the key was created with. A full-access key can manage pods, endpoints and secrets, and that includes reading any stored environment values in the account. Assume the worst until you have checked the key’s scope and the list of secrets in the console.

Will revoking the key stop my running pods?

Revoking a key stops the API calls that use it. It does not automatically stop a pod that is already running, so you still need to stop pods yourself. Check the pod list after revocation, and remove anything you do not recognize.

Do I need to tell RunPod about the leak?

If you see unexplained charges, contact RunPod support with the time window and the key name, so that the usage can be reviewed. Keep the records of your investigation, including the pod names and the billing lines you checked.

## Related

-   [Replicate API Token](/secrets/replicate-api-token)
-   [Fly.io Access Token](/secrets/flyio-access-token)
-   [DigitalOcean API Token](/secrets/digitalocean-token)
-   [I accidentally pushed an API key to GitHub](/blog/i-accidentally-pushed-an-api-key-to-github)
-   [Which vendors leak most this week](/leaks/trends)
-   [All secret guides](/secrets)

[Get alerted next time a secret leaks — create a free account](/)

LeakWatch is not affiliated with RunPod.

![Gabriel Diyan, founder of LeakWatch](/brand/Photo-Gabriel-Diyan.webp)

Gabriel Diyan (0xCr0c0)

Cybersecurity student, founder of LeakWatch. I built and run the scanner described here — the detection patterns, the false-positive classifier and the provider validators are mine. [More about who I am](/about).

[GitHub](https://github.com/Leakwatch-Scan) · [X](https://x.com/LeakwatchScan) · [LinkedIn](https://www.linkedin.com/in/gabriel-diyan-80a378375) · [GitHub (personal)](https://github.com/crocogab)

LeakWatch

Secrets leak into public commits every minute. This watches the forges for yours. Built and run by [Gabriel Diyan](/about), a cybersecurity student — [why LeakWatch exists](/about).

Scan

-   [Product](/product)
-   [Live feed](/leaks)
-   [Trends](/leaks/trends)
-   [API docs](/docs)
-   [CI/CD](/docs?tab=ci)

Read

-   [Blog](/blog)
-   [Secret guides](/secrets)
-   [Changelog](/changelog)
-   [About](/about)

Verify

-   [Security](/security)
-   [Privacy](/privacy)
-   [Terms](/terms)
-   [Legal](/legal)
-   [Contact](/contact)
-   [Status](https://status.leakwatch.net)

© 2026 LeakWatch

[GitHub](https://github.com/Leakwatch-Scan)[X](https://x.com/LeakwatchScan)
