
PingCAP, the company behind TiDB and TiDB Cloud, reported that an unauthorized party used stolen service account credentials to access certain internal systems between September 9 and October 7, 2026. In its October 2026 security incident report, PingCAP says the attacker copied data and obtained source code. The copied data includes TiDB Cloud account and usage records, business and billing information, and a table of encrypted TiDB Cloud API-key values. PingCAP says there is "no evidence that data stored in TiDB was impacted."
For engineering and security teams, the takeaway is broader than one vendor: a service account credential can be used for weeks without anyone noticing, and its permissions set the blast radius. PingCAP's remediation steps include removing excessive permissions between cloud projects, adding storage access logging, and planning alerts for large data exports. Those steps line up with the controls that limit machine-identity risk.
Adaptive can help teams give workloads scoped identities, rotate and expire their secrets, find excessive access paths, and alert on large exports with query-level evidence. These controls apply to the paths Adaptive governs and complement cloud IAM and secret scanning.
Published November 1, 2026. Incident details are attributed to PingCAP's report. The access design and validation steps below are Adaptive's analysis.
According to PingCAP, an unauthorized party used stolen service account credentials to access certain internal systems, copy data and obtain source code. The report does not say how the credentials were stolen. An external incident response firm "found no evidence that the attacker ran commands or maintained persistent access" in the production systems it reviewed. PingCAP adds: "This finding does not resolve the data exposure above."
| Date (2026) | Event reported by PingCAP |
|---|---|
| September 9 | Unauthorized access window begins |
| October 7 | PingCAP becomes aware and begins disabling or revoking affected accounts and credentials |
| October 10 | Additional compromised credentials deleted, excessive permissions between cloud projects removed, extra cloud storage access logging enabled |
| October 12–13 | External firm reports four vulnerabilities |
| October 14 | All identified compromised credentials invalidated, identified unauthorized access paths blocked, all four vulnerabilities fixed and retested |
| October 19 | Report published; investigation ongoing |
PingCAP did not describe the type of the four vulnerabilities. It says it is checking production logs for any exploitation before they were fixed.
| Category | What PingCAP reported |
|---|---|
| TiDB Cloud accounts and product use | User names, email addresses, organization and project associations, and SQL editor text and errors; some records also contained organization, project and cluster identifiers |
| Business and billing | Customer contacts, contract terms, orders, pricing, payment terms and billing configuration |
| Credentials | An exported table of encrypted TiDB Cloud API-key values; one investigator-owned value could not be used directly as an API key |
| Source code | Obtained by the attacker |
| Data stored in TiDB | No evidence of impact |
PingCAP is still determining whether other usable credentials were exposed. It states that "The attacker's claims about credentials in support materials have not been verified." It also notes that "These findings do not mean that every customer had every category of information exposed." The company says it will notify affected customers directly once customer-specific impact is established.
Service accounts are built to run without a person present, and that makes them attractive to attackers. They usually authenticate without MFA, often use long-lived keys, and may be shared across jobs. Their permissions also tend to grow over time. Automated traffic can look routine, so a bulk export by a service account may not stand out the way an engineer downloading millions of rows would.
| Service account property | Why it raises risk | Control to look for |
|---|---|---|
| Long-lived key | Works until someone notices and revokes it | Short-lived credentials, scheduled rotation and documented revocation |
| No interactive MFA | A stolen key is enough to authenticate | Workload identity bound to a trusted runtime, with network restrictions |
| Accumulated permissions | One key reaches several projects or data stores | Per-task scope, regular access reviews and an access graph |
| Automated access patterns | Bulk reads can blend in | Per-identity baselines and alerts for large exports |
| Shared use | Activity is hard to attribute to one job | One identity per workload with an owner |
PingCAP's own planned improvements follow the same pattern: broader credential rotation, access controls, code and secret scanning, audit logging, and "alerts for unusual access and large data exports."
PingCAP has not asked customers to take specific actions and says it will contact affected customers directly. Questions go to security@pingcap.com.
The following precautions are Adaptive's suggestions, not PingCAP's instructions:
Inventory every service account and key, with an owner, a purpose and a list of the systems it can reach. Remove permissions that cross project boundaries without a documented need. Enable access logging on storage buckets and data stores before an incident, not during one. PingCAP's October 10 change shows how important this visibility becomes during an investigation.
Then test detection. Run a large export with a test service account and measure how long it takes for someone to be alerted. A four-week access window is a detection problem as much as a credential problem.
Adaptive's workload access issues scoped machine tokens to service accounts, pipelines, BI tools and AI agents, and registers trusted clusters. Each workload authenticates as itself instead of borrowing a shared credential, so one key does not quietly cover several systems.
Adaptive stores workload credentials centrally and manages issuance, rotation, renewal and offboarding, so long-lived keys stop living in config files and CI variables. Adaptive's credential rotation can rotate supported database and server credentials on a schedule or on demand, with a history of each change.
Confirm coverage for each credential type. Cloud provider keys, third-party API tokens and application secrets may each need their own rotation process.
Adaptive's audit capabilities include an access matrix and access graph that show which identity can reach which resource, and by which path. Use them in access reviews to find service accounts whose reach has grown beyond their job.
Adaptive's database activity monitoring records queries against the identity that issued them, including machine identities brokered through Adaptive. Detective policies raise alerts on unusual activity, and preventive policies can block or restrict statements in real time. Anomaly detection helps flag volume or access patterns that do not match an identity's baseline.
Integrations such as MySQL and Google Cloud provide authenticated, auditable access without sharing downstream credentials. Validate support for your specific engine, service and version before relying on it.
PingCAP is determining impact customer by customer. That work goes faster with records showing exactly which tables and rows each identity read. Adaptive keeps identity-linked query logs, and SIEM integration streams them to Splunk, Datadog, Coralogix or syslog for correlation with cloud audit logs.
Coverage matters. Access that bypasses the broker, such as a direct cloud storage read with a cloud key, needs its own logging.
Use a non-production project and a test workload:
Q: What happened in the PingCAP security incident?
PingCAP reported that between September 9 and October 7, 2026, an unauthorized party used stolen service account credentials to access certain internal systems, copy data and obtain source code. PingCAP found out on October 7. By October 14, it had invalidated all identified compromised credentials, blocked the identified access paths, and fixed four vulnerabilities reported by an external firm.
Q: Was customer data stored in TiDB affected?
PingCAP says there is no evidence that data stored in TiDB was impacted. Investigators found no evidence that the attacker ran commands or maintained persistent access in the production systems reviewed. However, account, usage, billing and contract records were exported.
Q: Were TiDB Cloud API keys exposed?
An exported table contained encrypted TiDB Cloud API-key values. One investigator-owned value could not be used directly as an API key. PingCAP is still determining whether other usable credentials were exposed.
Q: Should TiDB Cloud customers rotate their API keys?
PingCAP has not asked customers to take specific actions. Rotating TiDB Cloud API keys and reviewing account members is a low-cost precaution while the investigation continues.
Q: How can Adaptive help protect service account credentials?
Adaptive gives workloads scoped machine identities, stores and rotates their secrets centrally, shows excessive access paths, and records query-level activity with alerts for unusual exports. These controls apply to the access paths Adaptive governs.
Q: Does Adaptive replace cloud IAM or secret scanning?
No. Adaptive complements cloud IAM, secret scanning and code security. Cloud keys and storage access outside the broker still need least-privilege IAM policies and their own logging.
Start with your most privileged service account. Map what it can reach, how long its credential lives, and how quickly a large export would be noticed. Request an Adaptive demo to see where scoped workload identities, managed rotation and data activity monitoring can shrink that blast radius.
Download this article as Markdown or plain text for LLMs. Both include publication metadata and source links.

