Inside an Exposed Chinese Identity System

Author
Greg Pollock Director of Research and Insights
Category
Data leaks
Publish date
Reading time
10 minutes

1.64B

documents exposed

840M+

distinct national ID numbers

297M

phone numbers in the Alipay index

11.2M

student records

An unauthenticated Elasticsearch server held 1.64 billion records linking Chinese citizens’ names, national ID numbers, mobile numbers, school enrollments and business registrations, organized for one purpose: looking people up.

Every few years a data exposure arrives that is measured not in customers or users, but in fractions of a national population. In 2018, reporting showed that access to India’s Aadhaar identity system, covering more than a billion residents, was being sold for a few dollars. In 2022, a database said to have come from the Shanghai police, holding records on as many as one billion Chinese citizens, was offered for sale on a criminal forum. In 2024, the breach of the American background-check firm National Public Data put Social Security numbers for a large share of the US population into public circulation. Compilations such as the 2024 “Mother of All Breaches” have since shown how stolen datasets are merged, deduplicated and resold, so that each new leak adds to an ever-larger permanent record.

In October 2026, UpGuard identified a publicly accessible database that fits this pattern exactly. With no password or authentication of any kind, the server exposed 99 indices containing 1.64 billion documents (about 259 GB) of personal data on people in mainland China. The records are organized around national ID numbers and mobile phone numbers, divided by province, and labeled with the terminology of China’s commercial identity-verification industry. The database holds roughly 840 million distinct national ID numbers at minimum, alongside nearly 300 million phone-number records, 11 million student enrollment records and 7.8 million business registrations.

Data Analysis

The exposed system was a publicly accessible single-node Elasticsearch 8.13.0 cluster running in a Docker container on a commercial hosting provider. Anyone who knew its address could list its indices, read their structure and query their contents without authenticating.

What the Database Contains

The 99 indices fall into six categories. Three of them (eryaosu, sanyaosu and xueji) are split into one index per province, named with the two-digit province code that begins every Chinese national ID number. The category names themselves are telling. Eryaosu (二要素, “two elements”) and sanyaosu (三要素, “three elements”) are the industry terms for real-name verification checks: a two-element check confirms that a name matches an ID number, and a three-element check adds a mobile number. These are the checks that banks, payment apps, telecom carriers and online platforms in China run to verify identity.

Index CategoryContentsIndicesDocumentsSize
eryaosu_* (二要素)Name and national ID number32839,558,652128.8 GB
sanyaosu_* (三要素)Name, national ID number and mobile number32365,321,22465.4 GB
alipay_v1Mobile number and partial name1297,083,70240.1 GB
person_v1National name and ID master table1118,531,84619.5 GB
xueji_* (学籍)Student enrollment records3211,163,5423.4 GB
enterprise_v1Businesses and their legal representatives17,811,2172.2 GB
Total991,639,470,183259.3 GB

Document counts and sizes as reported by the server’s index metadata, October 2026.

Across these families, the database exposes the following categories of data:

  • Full names and national ID numbers. A Chinese ID is not an arbitrary serial number. Its 18 digits encode the holder’s county of registration, full date of birth and sex, so each number is itself a detailed personal profile.
  • Mobile phone numbers. These are linked to names and ID numbers in the sanyaosu indices and to partial names in alipay_v1.
  • Student records. These include the student’s name and ID number, school, class, a parent’s name, a phone number and an address.
  • Business records. These include company names, unified social credit codes, the legal representative’s name and ID number, up to two email addresses, a street address and map coordinates.
  • Region and address fields. These are populated in some indices.

Who Is Affected?

A raw count of 1.64 billion documents does not mean 1.64 billion people, since the same person can appear in several categories. However, the structure of the database lets us put a firm floor under the number of unique individuals.

Every document’s internal key is the SHA-1 hash of its national ID number (or, in alipay_v1, its phone number). Because Elasticsearch allows only one document per key within an index, each index can hold each ID number only once. And because the province indices are split by the ID number’s own province code, no ID number can appear in two of them. The 839.6 million documents in the eryaosu category therefore represent roughly 840 million distinct national ID numbers.

The sanyaosu category adds a further 365 million ID numbers paired with phone numbers, person_v1 adds 118.5 million, and alipay_v1 holds 297 million distinct phone numbers. Some of these certainly overlap with the eryaosu records. The true number of affected people lies somewhere between about 840 million and well over a billion. For comparison, mainland China’s population is about 1.41 billion. The ID-number records also include people who have died, which we will return to below.

Coverage by Province

Comparing each province’s eryaosu index with that province’s population in China’s 2020 census shows how close to complete the data is in many regions. In several provinces the database holds name-and-ID pairs equivalent to 80% or more of the resident population.

Records as a share of each province's population

Selected provinces. An ID number's province code reflects where the holder was first registered, not where they live now, so the comparison is approximate.

Two features of the table reflect how Chinese ID numbers work rather than gaps in the data. Anhui’s figure exceeds its resident population because Anhui is a major source of internal migrants: tens of millions of people carry Anhui ID numbers while living elsewhere. Guangdong’s lower ratio reflects the reverse, since much of its population was registered in other provinces. Similarly, Chongqing’s index is small (8.8 million) because Chongqing was part of Sichuan until 1997 and most of its older residents hold Sichuan-coded IDs.

The student-record category is far more uneven. Of its 11.2 million records, 8.5 million (76%) belong to a single province, Zhejiang. This suggests the student data came from a small number of regional sources rather than a national system.

What the Sample Showed

UpGuard’s 463,600-record sample covered the national master table (person_v1, 211,000 records), the Jiangsu two-element index (eryaosu_32, 56,200), the Xinjiang three-element index (sanyaosu_65, 50,200), a catch-all two-element index (eryaosu_other, 51,100) and the Alipay index (alipay_v1, 95,100). Across the sample there were 333,513 distinct ID numbers that pass the official checksum, plus 95,100 phone-only Alipay records.

IndexRecords sampledValid ID numbersMale / femaleMedian ageUnder 18Aged 100+
person_v1 (national)211,000100.0%54% / 46%453.9%3.8%
eryaosu_32 (Jiangsu)56,200100.0%51% / 49%5811.8%5.4%
sanyaosu_65 (Xinjiang)50,20095.3%58% / 42%430.6%0.3%
eryaosu_other (catch-all)51,10039.1%n/an/an/an/a

Sex and age are derived from the ID number itself and calculated over valid IDs only, as of October 2026.

Important Notes

The core data is genuine. Every sampled ID number in the national master table and the Jiangsu index passed the checksum built into Chinese ID numbers, and none were duplicated. The sex ratios and age distributions are consistent with real populations. This is not fabricated or padded data.

Children are included, some of them infants. Beyond the 11.2 million student records, which link minors to their school, class and a parent’s name, the ID-based indices contain children directly. In the Jiangsu sample, nearly 12% of people were under 18, and across the sample 712 people were born in 2020 or later.

The dead are included too. Almost 4% of the national sample and over 5% of the Jiangsu sample were born before 1926, which would make them over 100 years old today. These birth dates are spread across the calendar rather than clustered on placeholder dates like January 1, so they appear to be real records of people who are almost certainly deceased. This suggests the source data was a historical registration snapshot that was never purged, and it means the database can be used to identify deceased people whose identities are not being monitored by anyone.

Xinjiang and its Uyghur population are specifically represented. The Xinjiang three-element index ties 2.26 million ID numbers to mobile numbers, and a separate Xinjiang two-element index holds a further 8.4 million. In our sample, 18% of names had the length or the ”·” separator typical of Uyghur and other minority names transliterated into Chinese characters.

The Alipay data was harvested from the app. In the Alipay index, only 10% of names begin with a common Chinese surname (compared with 85% in the national table), and 22% consist of a single character. This matches the way Alipay masks a recipient’s name on its money-transfer confirmation screen, showing the given name and hiding the surname. The most likely explanation is that someone entered phone numbers into Alipay at scale and recorded the partial names the app returned. The index holds 297 million such phone numbers. About 69% of sampled numbers belong to China Mobile, in line with its national market share.

Whose Database Is This?

We assess with high confidence that this is an illicit aggregation, of the kind known in China as a shegongku (社工库, a “social engineering database”), rather than the system of any legitimate government agency or company. The data comes from sources controlled by entirely separate authorities: ID registration (the Ministry of Public Security), payment app data (Ant Group, a private company), student enrollment (the education system) and business registration (market regulators). No single lawful holder could legally possess all of them. The underlying records almost certainly originated in real government, telecom and corporate systems. What this server represents is the assembly of that stolen material into a working product.

Why It Matters

China operates one of the world’s most comprehensive real-name systems. A national ID number is required to register a SIM card, open a bank account, link a WeChat or Alipay wallet, buy a train ticket, check into a hotel, see a doctor, and play online games. The name, ID number and phone number combination that fills this database is exactly what those systems check, which is why the industry calls them the “two elements” and “three elements.” Whoever holds them can pass a large share of the country’s identity checks as someone else.

Unlike a password or a card number, none of this can be changed. A Chinese ID number is assigned for life and encodes the holder’s birth date, sex and place of registration. A phone number is tied to the holder’s identity by law and is rarely abandoned. Once exposed, these records stay useful to criminals for decades. China’s Personal Information Protection Law classifies ID numbers as sensitive personal information for this reason, and it gives extra protection to data about children under 14.

What It Enables

Telecom and online fraud. Fraud targeting Chinese citizens is an industrial operation, run in part from scam compounds in Southeast Asia that employ thousands of trafficked workers. The most effective scripts depend on personal detail. A caller posing as a police officer who can recite a victim’s full name, ID number and birthplace is far more convincing when warning of a fake criminal investigation or “frozen” bank account. This database supplies those details for most of the adult population.

Account takeover and identity fraud. Matching name, ID and phone records allow criminals to pass verification checks, reset accounts, take out online loans in a victim’s name, and open the “mule” bank and payment accounts used to launder scam proceeds. Records of deceased people are especially useful for this, because no one is watching those identities.

Targeting of families and children. Student records that name a child’s school, class and parent give scammers what they need for one of the cruelest common frauds: calling a parent to say their child has been hurt or detained and needs money urgently. They also put children’s whereabouts in the hands of anyone who queries the system.

Doxxing and harassment. China has a long history of renrou sousuo (人肉搜索, “human flesh search”), where online crowds track down and harass individuals. A database built for instant lookup by phone or ID number makes it trivial to turn a username or phone number into a real identity, home region and family details. Shegongku services sold through messaging apps are already a common tool for this.

Risks to Uyghurs and other minorities. The Xinjiang indices link millions of residents, many of them Uyghur, to their phone numbers. Uyghurs already face intense surveillance, and members of the diaspora have reported harassment of themselves and of relatives still in Xinjiang. Exposed records that connect names, ID numbers and phone numbers for this population create additional avenues for intimidation, impersonation and fraud against an already vulnerable group.

Conclusion

This exposure was not a single company’s customer database left open by mistake. It was a working identity-lookup engine, assembled from stolen government, telecom, education, payment and business data, holding at least 840 million distinct Chinese ID numbers and nearly 300 million phone records. It included children and the deceased and was still being updated in the week before it was discovered.

The people in it cannot change their ID numbers, and in most cases they will never know their data was taken. As long as China’s identity systems rely on facts that are permanent and now widely circulated, every new aggregation like this one weakens the protections that the real-name system was meant to provide. Securing a single server stops one copy. It does not undo the harm of a dataset that has already been assembled, sold and distributed.

The human stories of cybersecurity by UpGuard