A Kraken API key pair lets whoever holds it act on your Kraken account through the API, within the permissions chosen when the key was created. Depending on those permissions that can mean reading balances and trade history, placing and cancelling orders, and in the worst case requesting withdrawals or funding operations. This is direct financial exposure: money can leave the account or be traded away in minutes. Disable the key first, then investigate what happened.
Check your GitHub account for leaked secrets — free
- Provider
- Kraken
- Severity
- High
- Impact
- Payments and customer data
- Checked live by LeakWatch
- No
What a Kraken API key looks like
A Kraken API credential has two parts: a public API key and a private key, usually called the API secret, which is what signs requests. The private part is a long base64 string, in the range of 80 to 90 characters, and it is the part LeakWatch looks for:
XXXXXXXX…XXXX Kraken private key (masked, base64 text, roughly 80 to 90 characters)
Nothing in the string itself says “Kraken”: there is no vendor prefix. What identifies it is context, for example a variable named KRAKEN_API_SECRET or KRAKEN_PRIVATE_KEY, a configuration block for a trading bot or a library such as krakenex or ccxt, or code that calls api.kraken.com. The public key is shorter and is not sensitive on its own, but it tells you which key to disable. Keys created for different purposes may have different permissions, so check the permissions of the exact key that leaked.
How Kraken API keys get leaked
- Trading bots. A grid, arbitrage or portfolio bot committed with its configuration file and the key pair inside.
- Environment files.
KRAKEN_API_KEYandKRAKEN_API_SECRETin a.envfile or a compose file pushed to a repository. - Notebooks and analysis scripts. A Jupyter notebook that pulls trade history, saved with the key visible in a cell or in its output.
- Shared configuration. Multi-exchange tools such as
ccxtsetups where one file lists the credentials of several exchanges, and the whole file gets shared. - Screenshots and support threads. A key pair pasted into a forum post or an issue when asking why requests are rejected.
What to do in the first hour
- Disable the key now. Sign in to Kraken, open the API key settings and delete or disable the exposed key. Do this before anything else; trading and withdrawals are time-sensitive.
- Secure the account itself. Check that two-factor authentication is on, and consider changing the account password if the same file held other credentials.
- Review recent activity. Look at open orders, order history, trade history and the ledger since the exposure. Cancel any open orders you did not place.
- Check funding and withdrawals. Review deposit and withdrawal history, and the list of saved withdrawal addresses. If an address appears that you did not add, contact Kraken support at once, because withdrawals of crypto cannot be reversed.
- Create a new key with the least permissions. Grant only what the application needs, for example query-only for a portfolio tracker. Never enable withdrawal permission for a bot that has no reason to withdraw.
- Deploy the new key from a secret manager rather than a file in the repository, and test one read call.
- Clean up the code and look for other credentials in the same file. 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 Kraken
Kraken API keys are managed from the API section of your account’s security settings, after you sign in. Open the list of keys, find the one that leaked by its name or its public key, and delete it. Deleting a key stops it from authenticating, so the old private key becomes useless. Kraken’s API key documentation describes how permissions are chosen when a key is created. 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 page where API keys and their permissions are listed, and follow Kraken’s documentation.
How LeakWatch detects it
The rule is called Kraken Access Token. It is context based, because the private key has no prefix. The word kraken must appear in the text, in any letter case, followed by an assignment such as =, : or =>, optionally with quotes, and then a value of 80 to 90 characters made of letters, digits and the symbols / = _ + -. A long base64 string with no kraken name nearby is not reported, and neither is a value that is shorter or longer than that range. This keeps false alerts low, but a key stored under a generic name such as API_SECRET can be missed. The severity is high. This type is not checked live: LeakWatch does not send any request to Kraken 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
Can someone withdraw my funds with a leaked Kraken key?
Only if the key was created with a withdrawal or funding permission. A query-only or trading-only key cannot withdraw, but a trading key can still be used to lose you money through bad trades, so disable every exposed key.
I only leaked the public API key. Is that a problem?
The public key alone cannot sign requests. Still, if it appeared next to the private key, treat the pair as leaked. If only the public part was exposed, rotating is optional but cheap.
Should I wait until I see suspicious activity before deleting the key?
No. Delete it immediately. Checking the order and ledger history takes a few minutes and can be done after the key is disabled.