← All Articles 🔑 Secret Detection High By Nishant Kumar Verma

TiDB Cloud Breach: What PingCAP Says and Which Keys to Rotate

PingCAP says an attacker used stolen service account credentials to access its systems from 9 September to 7 October. What was copied and which keys to rotate.

SEC-014 GIT-007 GIT-012

Quick Answer

PingCAP, the company behind the TiDB database, says an unauthorised party used stolen service account credentials to reach some of its internal systems between 9 September and 7 October 2026, copy data and obtain source code. The exported records include account and billing details and encrypted API key values, which PingCAP says it has no evidence were decrypted or used. The attacker, FulcrumSec, claims far more, according to InfoQ and Dark Reading. If you own a TiDB Cloud organisation, PingCAP asks you to replace your active management API keys now in its order (create the new key, move every app to it, then delete the old one), and asks everyone on your team to treat unexpected payment or password requests as possible phishing. The attacker also claims to hold credentials from support materials, which PingCAP says it has not verified, so replace anything you ever pasted into a support ticket too.

What PingCAP Says Happened

PingCAP published a Security Incident Report on 19 October 2026 and a Recommended Customer Actions page on 20 October. According to the report, an unauthorised party used stolen service account credentials to access certain internal systems between 9 September and 7 October, copied data and obtained source code. PingCAP became aware of it on 7 October and began disabling the affected credentials that day. Dark Reading notes the notice came 12 days after that discovery.

An external incident response firm found no evidence that the attacker ran commands or kept persistent access in the production systems it reviewed, and PingCAP says there is no evidence that data stored in TiDB was impacted. By 14 October, PingCAP says, all identified compromised credentials were invalidated, the identified access paths were blocked, and the four vulnerabilities its external firm reported on 12 and 13 October were fixed and retested.

PingCAP has not said how the credentials were stolen, what the four vulnerabilities were, or how many customers are affected. It says it will notify affected customers directly once it has established customer-specific impact.

Category What PingCAP's report confirms Still open, per PingCAP
TiDB Cloud accounts and product use User names, email addresses, organisation and project links, SQL editor text and errors; some records hold organisation, project and cluster IDs Which customers' records
Business and billing Customer contacts, contract terms, orders, pricing, payment terms, billing configuration Scope for each customer
Credentials A table of encrypted TiDB Cloud API key values Whether other usable credentials were exposed
Source code Obtained by the attacker Not described further
Customer clusters and data stored in TiDB No evidence of impact, commands or persistent access in the systems reviewed Logs being checked for use of the four vulnerabilities before they were fixed

Encrypted or Usable? The API Key Dispute

PingCAP's position. The customer actions page says the API key values in the breached data were encrypted, and that PingCAP has so far found no evidence any were decrypted or used. The report adds that the external firm tested one investigator-owned value from the exported table, and it could not be used directly as an API key. A PingCAP spokesperson told Dark Reading the same: the exported key values were encrypted, with no evidence any were decrypted or used.

The attacker's position. PingCAP does not name the attacker. Dark Reading and InfoQ name it as FulcrumSec, an extortion group. InfoQ reports the group claims to have stolen 10.6 TB of data, including control-plane records, customer SQL statements, API keys and 413 private source code repositories. It also reports the group's claim of 115K console API keypairs, over 40K of them active, and its allegation that some exposed credentials could give access to customer systems. Dark Reading reports FulcrumSec says its access lasted nearly two months, not one.

InfoQ says these claims have not been independently verified, and Dark Reading says it did not confirm them. PingCAP, for its part, has not said how the key values were encrypted or where the decryption key is kept, and its report describes a test of one value.

For customers, the next step is the same either way: PingCAP recommends replacing active keys and checking the logs available to you for activity you do not recognise. A deleted key stops working for whoever holds a copy, but it does not undo earlier use.

If You Use TiDB Cloud: What to Do Now

PingCAP asks all customers to act now, without waiting for a direct notice. Its steps, in its order:

  1. No signs of misuse: create replacement keys, update and verify every dependent application and automation, then promptly revoke the old keys.
  2. Signs of misuse: revoke the key immediately and contact security@pingcap.com, even if that breaks an integration for a while. Do not wait to create a replacement first, and do not put passwords, tokens or private keys in the message.
  3. Review every organisation: list all API keys under Organization Settings, then API Keys, revoke the ones you no longer need, and check the logs available to you for activity you do not recognise.
  4. Watch for targeted phishing: the exported contacts and billing details can make a fake message look credible. Be wary of requests for a password or verification code, a change of payment details, or urgent account action, and verify them through a channel you already trust.

How to rotate a TiDB Cloud API key

Only an organisation owner can create or delete API keys. These steps match PingCAP's page and the TiDB Cloud API documentation.

  1. In the TiDB Cloud console, switch to the target organisation with the combo box in the upper-left corner, then click Organization Settings and API Keys.
  2. Click Create API Key, enter a description, and set the role and scope. Give the key the narrowest role the integration needs (see PingCAP's user roles).
  3. Click Generate API Key and save the public and private keys somewhere safe. The private key is shown only once. Click Done.
  4. Replace the old key in every application, script and automation, and confirm each one works.
  5. On the API Keys page, click ... in the old key's row, click Delete, then I understand, delete it.

Repeat for each organisation you own. The API docs say a request without a correct key gets a 401 error, so a test call with the old key confirms it is dead. Step 4 hurts if the key is written into code:

# BAD: a TiDB Cloud API key written into the script and every clone of the repo
import requests
from requests.auth import HTTPDigestAuth

resp = requests.get(
    "https://api.tidbcloud.com/api/v1beta/projects",
    auth=HTTPDigestAuth("PUBLIC_KEY_VALUE", "PRIVATE_KEY_VALUE"),
)
# GOOD: the key comes from the environment, so rotating it is a config change
import os
import requests
from requests.auth import HTTPDigestAuth

resp = requests.get(
    "https://api.tidbcloud.com/api/v1beta/projects",
    auth=HTTPDigestAuth(os.environ["TIDB_CLOUD_PUBLIC_KEY"], os.environ["TIDB_CLOUD_PRIVATE_KEY"]),
    timeout=30,
)

The Forgotten Secret: Credentials You Gave Support

PingCAP's report says: "The attacker's claims about credentials in support materials have not been verified." InfoQ reports that FulcrumSec alleges PingCAP engineers paste customers' production credentials into Jira tickets, and that the group included such tickets in its first release. PingCAP's customer actions page does not mention support tickets.

When you debug a connection with a vendor, it is easy to paste the full connection string, password included. That ticket then lives in a system you do not control, and is easy to leave off your list of secrets to rotate.

The SQL editor is similar. PingCAP confirms the exported records included SQL editor text and errors, without saying what that text contained. Crystal Morin of Sysdig told Dark Reading that query history and error output are where secrets can build up when someone pastes a connection string to debug. If you ran a statement there that set a password, change it.

  • Search your copies of TiDB Cloud support tickets and emails for passwords, connection strings, cloud keys and tokens, and replace each one.
  • Send support the error, the time in UTC and the cluster ID, not the credential.
  • If support must log in, create a separate user with only the access the task needs, and remove it when the ticket closes.
# BAD: a working production credential in a support ticket
Subject: Cannot connect from our API servers
Our connection string: mysql://<prefix>.app_user:RealPassw0rd@<host>:4000/prod
-- GOOD: a separate, read-only user for the ticket, dropped when it closes
-- On TiDB Cloud Starter and Essential, user names must include the instance prefix
CREATE USER '<prefix>.support_tmp' IDENTIFIED BY '<one-off password>';
GRANT SELECT ON appdb.* TO '<prefix>.support_tmp';

-- after the ticket is closed
DROP USER '<prefix>.support_tmp';

Four Weeks Inside: What Stolen Service Account Credentials Teach

From 9 September to 7 October is 28 days. For four weeks the attacker had access through stolen service account credentials, and PingCAP finished invalidating the compromised credentials it had identified only on 14 October. PingCAP has not said how many service accounts were involved, what they were for, what they could reach, or whether their credentials expired.

PingCAP says it will expand credential rotation, access controls, code and secret scanning, audit logging, and alerts for unusual access and large data exports. That maps onto three controls:

  • Short-lived credentials. AWS's IAM best practices say to require workloads to use temporary credentials with IAM roles. Google Cloud's guidance on service account keys says they can become a security risk if not managed carefully, and to choose a more secure way to authenticate whenever possible.
  • Narrow scope. AWS also says to apply least-privilege permissions and to remove unused credentials regularly. By 10 October PingCAP had removed excessive permissions between cloud projects, but has not said whether the attacker used them.
  • Alerting. FulcrumSec claims, per Dark Reading, that its replication feed pulled fresh copies of PingCAP's internal database every six hours for 22 days. That claim is unverified, and alerts on large data exports are on PingCAP's list.

Ask your own vendors about all three. Morin suggests asking whether their service account credentials are short-lived, how they are scoped, how often they rotate, and which detections fire on unusual use.

How to Fix It on Any Platform

You cannot audit a vendor's service accounts, but you can make its breach cheaper for you:

  • Keep a secrets inventory: every key, where it is stored and where it has been shared, support tickets included. After a breach, that list is your checklist.
  • Prefer temporary, scoped credentials. Where a key must be long-lived, give it the smallest role that works and rotate it on a schedule.
  • Read secrets from the environment, so a rotation is a config change and a redeploy.
  • Scan your code for secrets, private repositories included.
// BAD: the TiDB password sits in the source and in every clone of the repo
import { createConnection } from 'mysql2/promise';

const conn = await createConnection({
  host: '<host>',
  port: 4000,
  user: '<prefix>.root',
  password: 'RealPassw0rd',
  database: 'prod',
  ssl: { minVersion: 'TLSv1.2' },
});
// GOOD: read from the environment, with the variable names from TiDB's node-mysql2 sample
import { createConnection } from 'mysql2/promise';

const conn = await createConnection({
  host: process.env.TIDB_HOST,
  port: Number(process.env.TIDB_PORT || 4000),
  user: process.env.TIDB_USER,
  password: process.env.TIDB_PASSWORD,
  database: process.env.TIDB_DATABASE,
  ssl: process.env.TIDB_ENABLE_SSL === 'true' ? { minVersion: 'TLSv1.2' } : null,
});
# GOOD: find secrets in your files, then in your full git history
gitleaks dir .
gitleaks git .

A password removed from the code can still sit in old commits; our guide to secrets in git history shows how to find and remove them. For another vendor breach where the fix was rotating everything stored on the platform, see the Zeabur breach.

Tools like VibeDoctor's Vibe Check (vibedoctor.io) automatically scan your codebase with Gitleaks and their own secret checks, and flag AWS and Google Cloud keys and hardcoded passwords with specific file paths and line numbers. Free to sign up.

FAQ

Was data inside TiDB Cloud databases accessed?

PingCAP says there is no evidence that data stored in TiDB was impacted, and its external firm found no evidence the attacker ran commands or kept persistent access in the production systems it reviewed. The investigation is still open.

Were the TiDB Cloud API keys usable?

PingCAP says the exported values were encrypted, with no evidence any were decrypted or used. FulcrumSec claims 115K console API keypairs, over 40K of them active, according to InfoQ, which says the claims are unverified. PingCAP recommends replacing active keys either way.

I have not been notified. Do I still need to rotate?

PingCAP advises all customers to take its preventive steps now, without waiting for a direct notice. It will contact affected customers once it has established customer-specific impact.

How did the attacker get the service account credentials?

PingCAP has not said. Its report says stolen service account credentials were used, and that it is still checking whether other credentials were exposed.

Diagnose your codebase - free

VibeDoctor checks for SEC-014, GIT-007, GIT-012 and 148 other issues across 21 diagnostic areas - security, performance, code quality, and more.

SCAN MY APP →