Key takeaways

  • Two of the year's largest breaches in Japan started outside production. Rakuten Securities lost about 4.4 million records of personal data from a staging environment; ZOZO's attackers started in a development environment and reached production from there.
  • In both cases, the non-production environment held real data: unmasked customer records at Rakuten Securities, and at ZOZO a masked copy of past customer data that still counted as personal data, plus unmasked bank details of 1,506 business partners.
  • Both environments were protected, but less than production: part of Rakuten Securities' staging could be reached without passing through its WAF, and ZOZO's development environment kept credentials for the production cloud on an admin page.
  • Rakuten Securities' own rules required a special approval before using unmasked data in testing. Nobody applied for it. ZOZO says it will now write such rules.
  • In our view, if a business truly needs real data in testing, that environment must be protected as production, and the exception must be approved by someone accountable for the data, not by the team running the test.

Two breaches outside production#

Rakuten Securities ZOZO
Environment Staging: a near-copy of production for final checks before release Development environment for the ZOZOTOWN shopping site; a verification environment for the WEAR app
Why real data was there Testing an update of the core database, mainly to strengthen disaster recovery Copies of past production data kept for development
What the copy held Unmasked customer data Customer data with names and contacts masked; partner data including bank details; employee names and staff numbers
Way in SQL injection through an API supplied by an outside vendor; part of staging reachable without the WAF A vulnerability in a development system behind an authentication restriction
Did it reach production? No intrusion into the production core database found Yes: production cloud credentials on the development admin page led to the production cloud and part of a production database
Detected November 16, by system staff, after data was taken on November 11 and 15 to 16 October 21, by security monitoring
Scale About 4.41 million records of personal data, including about 1.19 million people who never opened an account; login IDs for about 11.98 million accounts Up to about 5.94 million customers (masked data), 3,324 partners taken (1,506 with bank details), up to about 38,000 employees

Rakuten Securities' attack ran for almost three weeks: the probing of the API began on October 27, the attackers got further inside on November 8, and data left on November 11 and 15 to 16. More on the case is in our Rakuten Securities article, and ZOZO's numbers are on our list of 2026's largest breaches.

What went wrong, four times over#

The two cases differ in detail, but the same four weaknesses appear in both.

1. The copy held more than the work needed. Rakuten Securities says it needed unmasked data because the test compared results and performance before and after a database update, and masking would have made the results hard to match. That is a real engineering need. But the copy covered millions of customers, including people who had closed their accounts or only applied. ZOZO masked customers' names and contact details, but the same development database held its partners' company details and bank accounts and its employees' names, which, judging by what ZOZO lists as taken, were not masked. Masking was applied to the data people think of as sensitive, not to everything in the copy.

2. Masked is not anonymous. ZOZO says the masked customer data cannot identify anyone on its own, but because ZOZO can match it with other data it holds, it is still personal data under Japanese law and was reported as a leak. Order histories, point balances, postcodes and shoe sizes for 5.94 million people are what attackers combine with other leaks. We made the same point about KARTE's "no names" data.

3. The environment was easier to reach than production. Rakuten Securities had a web application firewall in front of staging, but part of staging lacked the setting that blocks traffic that does not pass through it. The company itself says staging's security was not at production level, in monitoring frequency and firewall settings. ZOZO's development environment sat behind an authentication restriction, yet a vulnerability in one system was enough; after the breach ZOZO blocked outside access to the environment altogether.

4. It was connected to production, or not watched like it. ZOZO's development admin page held credentials for the cloud service used in production: a development system had the keys to the live one. Rakuten Securities' production systems were not reached, but staging was not monitored as closely; the company is now introducing real-time monitoring of every environment, staging included. ZOZO's development environment kept so few logs that it had to treat all its data as possibly leaked.

The rules were there, at least at one company#

Rakuten Securities says that in principle its test environments, staging included, use dummy or masked data. Using unmasked production data requires an exception application (異例申請) in advance, with safeguards. For this test, only the normal application was filed. The company calls its reporting and management inadequate.

ZOZO's plan is to write such rules now: standards for whether production data may be used in development and verification environments at all, and for masking, access, retention and deletion. It says the rules will consider the re-identification risk of masked data and cover partners' and employees' data as well as customers'.

The government had already pointed at the problem. The National Cybersecurity Office's November 5 warning asks companies to inventory everything exposed to the internet and close what is not needed, naming test environments alongside admin screens and debug endpoints. Test environments, old API versions and forgotten subdomains are also where attackers look first, as NICT described in its A2B analysis.

What we don't know yet#

  • Which vendor supplied the API in Rakuten Securities' staging, and whether the flaw was in the vendor's code or in its configuration
  • When the production data was copied into staging, and how long it was meant to stay
  • The forensic results, and the Financial Services Agency's response; the agency ordered Rakuten Securities to report on November 19
  • Which system and vulnerability let attackers into ZOZO's development environment, and when the intrusion began
  • Why ZOZO's partners' bank details were in a development database, and how old its copies were

Our view#

If the business needs real data, protect it as production. Some tests do need it: Rakuten Securities' comparison of a database before and after an update is a fair example. We do not think the answer is a blanket ban. It is that an environment holding real customer data is a production environment for security purposes, whatever it is called, and gets the same access controls, monitoring, logs and exposure rules as the live service for as long as the data is there. "Non-production" describes a purpose, not a level of protection.

Exceptions must be approved by the right person. Exception processes that become a formality are common in Japanese companies, and Rakuten Securities' case shows where that leads: the rule existed, and the project went ahead on a normal application. Using unmasked customer data outside production is a decision about the company's risk, so it should be approved by someone who is accountable for that data and has the authority to say no, such as the data's owner or the security function, not by the team that wants to run the test. That person should also check that the safeguards are in place, and that the copy is deleted when the test ends.

Mask the whole copy, not just the customers. ZOZO protected customers' names and left partners' bank accounts and employees' names in the clear. The question is not "is this customer data?" but "what would it cost if this table leaked?"

Development must never hold the keys to production. Credentials for the live cloud on a development admin page turn a development breach into a production breach. Separate accounts, separate credentials and no path from one to the other are basic, and they would likely have kept ZOZO's breach inside development.

Vendors are not a separate case. Rakuten Securities' attackers came in through an API supplied by an outside vendor. In our experience, a vendor that runs a company's test environment usually runs its production systems too. Its staff, its processes and its contract should therefore meet the production standard everywhere it touches the company's data, and the same approval should be required before it copies real data into any environment it runs.

What this means for practitioners#

  • Inventory every environment that holds production-derived data: staging, development, verification, analysis and backups, including the ones vendors run for you.
  • Default to synthetic or masked data, and mask every table, not only customer tables. Check whether masked data can be matched back with what you hold elsewhere.
  • Have exceptions approved by the person accountable for the data, not by the team running the test. Any unmasked copy needs a named owner, a scope limited to the records and fields the test needs, and a deletion date that is enforced.
  • Give non-production with real data production-level controls: WAF rules that cannot be bypassed, network exposure as tight as the live service, monitoring and logs you can investigate with.
  • Remove production credentials from development and staging, and check admin pages, configuration files and CI settings for them.
  • Delete old copies. Both companies' environments held data on people who had left or never became customers.
  • Write every environment into vendor contracts: if a vendor runs your staging or test systems, the security standard, the approval for real data and the deletion duty should be the same as for production.

Japanese terms at a glance#

Japanese Reading Meaning
本番環境 honban kankyō Production environment
ステージング環境(STG環境) sutējingu kankyō Staging environment
開発環境 kaihatsu kankyō Development environment
検証環境 kenshō kankyō Verification (test) environment
本番データ honban dēta Production data
マスキング masukingu Masking: replacing names and other values with dummy values
異例申請 irei shinsei Exception application
認証情報 ninshō jōhō Credentials