Rakuten Securities: WAF bypass in staging led to SQLi implant and 4.41M unmasked records
On December 4, 2026, Japan’s largest online brokerage, Rakuten Securities, published its third incident report laying out a textbook staging-is-production root cause. Unauthorized access began on October 27 against a third-party vendor API in Rakuten’s staging environment where a firewall rule blocking direct traffic around the Web Application Firewall had been left out. Attackers exploited that API with SQL injection to embed a malicious program, pivoted from staging into the internal network on November 8, and reached a verification database holding unmasked production customer records copied for a core-database upgrade test without the company’s required exception approval. Across November 11 and November 15–16, the attackers exfiltrated roughly 4.41 million personal-information records and roughly 11.98 million login-ID-only records before staff noticed on November 16 and shut down every staging server.
How they got in
Staging environments fail most catastrophically when two quiet shortcuts collide: production data gets copied into a test database while production security controls get left behind. In its December 4, 2026 third report, Rakuten Securities confirmed that exact collision drove a twenty-day intrusion inside its staging environment.
The attack started on October 27 against an API provided by an external vendor inside Rakuten Securities’ staging environment. Although Rakuten had deployed a Web Application Firewall in front of staging, part of the environment was missing the configuration rule blocking direct traffic that did not pass through the WAF. Attackers reached the exposed third-party API around the WAF, exploited a vulnerability using SQL injection, and embedded a malicious program on the staging host, where monitoring frequency and firewall rules were less strict than in production. Twelve days later, on November 8, the intruders pivoted from staging into the internal environment.
Receipt 1, what we ranConfirmedInspect our verified English extraction of Rakuten’s archived Dec 4 Japanese third reportOpenClose
Rakuten Securities has withheld which external vendor supplied the staging API, the exact flaw or CVE exploited, technical details of the implanted program, the attacker’s IP address, and how the November 8 internal pivot worked. Even without those specifics, the vendor’s own root-cause admission pinpoints both halves of the failure cleanly: an unenforced WAF origin lock paired with lower security parity on staging.
Direct traffic bypassing the staging WAF reaches a vulnerable third-party vendor API, where SQL injection embeds a malicious program on a server monitored less strictly than production.
WAF bypassedSQLi implantTwelve days after initial access, the attackers move internally from staging to a verification database loaded with unmasked production customer records without required exception approval.
SQLi implantUnmasked prod copyCustomer names, dates of birth, addresses, phone numbers, ~1.68M asset-balance records, and ~11.98M login IDs are extracted before system staff spot the unauthorized access on Nov 16.
Unmasked prod copy4.41M records stolenRakuten Securities halts all staging servers, blocks the source IP, notifies Japan’s FSA and PPC, audits all environments with Mizuho and external experts, and releases its full third report on Dec 4.
4.41M records stolen
Figure 1. How the attack unfolded, and what stayed isolated. Select any step or box for details.
What they took
Inside the internal staging network sat a verification database holding unmasked production customer data. Rakuten Securities explained that engineers had loaded raw production records there to verify consistent results and performance before and after a core-database software upgrade tied to wide-area business continuity (BCP) testing, judging that masked data would not reproduce performance accurately. Company policy required a formal exception application (irei shinsei) and protective controls before unmasked production data could enter a test environment, but only a standard request was filed, leaving the database without proper reporting or safeguards.
Across two waves (November 11, and November 15 to November 16), the attackers exfiltrated customer data from that verification database. Rakuten’s November 24 second report confirmed the full scope: roughly 4.41 million personal-information records (about 3.22 million account holders and 1.19 million non-account applicants, covering branch and customer codes, login IDs distinct from Rakuten IDs, names, kana names, dates of birth, addresses, phone numbers, gender, nationality, fax numbers, deposit account details, and registration metadata), including roughly 1.68 million accounts with product-level asset balance totals, 2.71 million self-declared asset bracket codes, and 14,000 self-declared income bracket codes. Separately, roughly 11.98 million accounts had branch/customer codes and login IDs alone exposed.
Receipt 2, what we ranConfirmedInspect our verified English extraction of Rakuten’s archived Nov 24 Japanese record-count noticeOpenClose
System staff discovered the unauthorized access on November 16, shut down every staging server, blocked the attacker’s IP address, formed a president-led emergency response headquarters, notified Japan’s Financial Services Agency (FSA) and Personal Information Protection Commission (PPC), and launched an investigation team with Rakuten Bank, Rakuten Group, Mizuho Financial Group, and external specialists.
What Rakuten Securities runs
From the leaked customer records inside Rakuten Securities’ staging verification database down to the WAF-bypassed third-party staging API, observed production Akamai/DMARC controls, and the production core database that stayed safe. Yellow marks confirmed compromised layers; white maps public edge records; green stayed safe.
Hit or went downPart of the setupStayed safeNot known yet
Top: what people use. Lower down: what it runs on.
Staging verification database (unmasked production copy)
~4.41M PII + ~11.98M IDsConfirmedCopied with unmasked production data for a BCP core-database update test without the required internal exception approval, then drained across November 11 and November 15–16.
- Confirmed stolen (Nov 24 2nd report): ~
4.personal-data records (~41M 3.account holders, ~22M 1.non-account applicants, incl. ~19M 1.asset-balance records, ~68M 2.self-declared asset codes, ~71M 14,000income codes). - Separate branch/customer code + login ID only exposure: ~
11.accounts (distinct from Rakuten ID).98M
- Confirmed stolen (Nov 24 2nd report): ~
Third-party vendor API in staging (missing WAF block rule)
WAF bypass & SQLiConfirmedA missing firewall rule allowed direct access around the staging WAF to a vulnerable third-party vendor API, where SQL injection embedded a malicious program on October 27 before internal pivoting on November 8.
- Attack timeline (Dec 4 3rd report): Oct 27 staging API abuse -> SQLi program implant -> Nov 8 internal intrusion -> Nov 11 & 15–16 exfiltration -> Nov 16 detection and full staging shutdown.
- Staging lacked production-equivalent monitoring frequency and strict firewall controls.
Production web delivery and email anti-spoofing
Public recordsObservedRakuten Securities serves its public website behind Akamai, routes corporate email through MessageLabs, and enforces DMARC rejection to blunt spoofed follow-on phishing.
- Akamai
- Symantec MessageLabs
Public records show Rakuten Securities uses these services. That does not mean any of them were breached.
- Akamai:
www.CNAMErakuten- sec. co. jp www.(rakuten- sec. co. jp. edgekey. net 23.).220. 113. 29 - Symantec MessageLabs: MX
cluster1/;cluster1a. us. messagelabs. com _dmarc.enforcesrakuten- sec. co. jp p=reject.
Production core database, passwords, and customer trades
Production untouchedConfirmedRakuten Securities confirmed zero intrusion into its production core database, zero leaked passwords or trading PINs, and zero confirmed unauthorized logins or trades.
- All staging servers halted and source IP blocked on Nov 16; full production and test audit conducted Nov 20–25 with Rakuten Bank, Mizuho Financial Group, and external experts.
- 24/7 dark-web monitoring active; FSA and Personal Information Protection Commission (PPC) notified.
Not known yet
Withheld by vendor- Name of the external vendor supplying the vulnerable staging API, the exact vulnerability or CVE, and technical details of the implanted program.
- How the attackers moved from the staging server into the internal verification environment on November 8, and whether stolen records have surfaced on underground markets.
White layers come from passive DNS checked Dec 5, 2026; Akamai and MessageLabs records map public production posture only and do not identify staging architecture.
What stayed safe
Because the attackers hit a standalone staging verification copy rather than live trading infrastructure, Rakuten Securities’ production core database stayed untouched, with no intrusion or removal of production data confirmed. Equally important, Rakuten confirmed that login passwords and trading PINs were not leaked, product-level asset totals excluded individual stock holdings, trade histories, and Money Bridge balances, and no unauthorized account logins or fraudulent trades tied to the breach have been confirmed.
Rakuten Securities pledged to evaluate individualized compensation if any customer suffers asset harm attributable to the breach, rolled out 24-hour dark-web monitoring, and urged customers to turn on passkey authentication as the brokerage moves toward making passkeys mandatory. Passive DNS on December 5 also confirms that production web traffic sits behind Akamai and that rakuten-sec.co.jp enforces DMARC p=reject, curbing exact-domain email spoofing while customers stay alert for phone, SMS, and postal-mail scams exploiting the leaked contact and balance details.
Receipt 3, what we ranObservedInspect passive DNS confirming Akamai edge delivery, MessageLabs MX, and DMARC p=rejectOpenClose
If you’re responding to this
Plain view is for everyone. Responder view is for Rakuten Securities customers and engineering teams operating staging or pre-production environments.
Showing the plain view
Three things anyone can do
Enable passkey sign-in on your brokerage account right away
Passwords and trading PINs were not leaked, but stolen login IDs, names, addresses, and asset balances make targeted phishing much easier. Rakuten Securities is moving toward mandatory passkey login, so switch passkeys on now in your security settings.
Treat phone calls, SMS messages, and postal mail mentioning your balance as suspect
Rakuten Securities states its emails contain no clickable links and its staff never ask for personal or login details by phone. Because physical addresses, phone numbers, and product-level balances were exposed, verify any contact through the official app or bookmarked website, and use the in-account freeze setting for trading or withdrawals if anything looks off.
Lock down staging environments so they can never hold raw production data or bypass a WAF
If you run staging or pre-production systems, stop treating them as low-risk sandboxes. Require automated masking before production tables can copy into test databases, and make every staging server refuse direct connections that skip your firewall.
Switch to Responder view for the first hour and what to hunt for.
In the first hour
Hunt for it
- Look in
- Staging load-balancer, reverse-proxy, and firewall flow logs
- Signal
- Inbound HTTP(S) requests hitting a staging application or third-party vendor API directly without traversing your WAF/CDN egress IP ranges or carrying your signed origin-auth header. Receipt 1
- A real hit looks like
- Direct-to-origin requests carrying SQL syntax anomalies (
UNION SELECT,xp_,cmdshell INTO OUTFILE, stacked queries) followed by newly written web files or unexpected child processes on the app host. - Probably noise if
- Internal synthetic health checks or private VPC monitoring probes (allowlist those specific internal CIDRs explicitly and deny all other non-WAF sources).
enforce-staging-origin-lock.confFrom the story’s code. Swap in your own values before you run it.
- Look in
- Staging database audit logs and VPC egress flow logs
- Signal
- Bulk multi-table
SELECTdumps from verification or staging databases followed by large outbound transfers to external IP addresses outside CI/backup schedules. - A real hit looks like
- Millions of rows read from customer PII or balance tables by a staging application service account outside scheduled load-test hours, paired with outbound connections to an unfamiliar ASN. Receipt 2
- Probably noise if
- Scheduled synthetic performance benchmarks running against anonymized seed data during documented test windows.
hunt-staging-sqli-and-bulk-select.sqlFrom the story’s code. Swap in your own values before you run it.
If a database upgrade test truly requires production-scale statistical fidelity, run it inside a zero-egress, production-tier enclave with synthetic or tokenized identifiers, strict time-boxed expiry, and real-time SIEM paging rather than a standard staging VPC.
Appendix
Evidence log and all 3 receipts
| Claim and source | How sure |
|---|---|
| Unauthorized access began October 27 against a third-party vendor API in Rakuten Securities’ staging environment where a rule blocking traffic that bypassed the WAF was missing; attackers exploited an API flaw using SQL injection to embed a malicious program, then intruded internally from staging on November 8 Rakuten Securities Third Report (press2026120401.pdf & info20261204-02.html, Dec 4, 2026) | Confirmed |
| Which external vendor supplied the vulnerable staging API, the exact API endpoint or CVE, details of the implanted malicious program, the attacker’s source IP, and the November 8 lateral movement path from staging into the internal verification environment Withheld by Rakuten Securities during ongoing forensic investigation | Withheld by vendor |
| Unmasked production customer data had been loaded into a staging verification database for a BCP core-database upgrade test without filing the required internal exception approval (irei shinsei); attackers exfiltrated data on November 11 and November 15–16 | Confirmed |
| Confirmed stolen totals from the November 24 second report: ~4.41 million personal-information records (~3.22M account holders and ~1.19M non-account applicants, including names, DOB, addresses, phone numbers, ~1.68M product asset-balance records, ~2.71M self-declared asset codes, and ~14,000 income codes) plus ~11.98 million accounts for branch/customer code and login ID only (distinct from Rakuten ID) Rakuten Securities Second Report (info20261124-04.html, Nov 24, 2026) | Confirmed |
| No intrusion or data removal from the production core database; no leak of login passwords or trading PINs; no holdings or trade history inside the leaked balance totals; no unauthorized account logins or fraudulent trades confirmed as of December 4 Rakuten Securities Second & Third Reports (Nov 24 & Dec 4, 2026) | Confirmed |
| Passive DNS on December 5 confirms www.rakuten-sec.co.jp runs behind Akamai (www.rakuten-sec.co.jp.edgekey.net), corporate email uses Broadcom/Symantec MessageLabs, and _dmarc.rakuten-sec.co.jp enforces p=reject Passive DNS (Dec 5, 2026) | Observed |
All 3 receipts
Receipt 1, what we ranConfirmedInspect our verified English extraction of Rakuten’s archived Dec 4 Japanese third reportOpenClose
Receipt 2, what we ranConfirmedInspect our verified English extraction of Rakuten’s archived Nov 24 Japanese record-count noticeOpenClose
Receipt 3, what we ranObservedInspect passive DNS confirming Akamai edge delivery, MessageLabs MX, and DMARC p=rejectOpenClose
Indicators of compromise
https://www.rakuten-sec.co.jp/web/company/newsrelease/pdf/press2026120401.pdfOfficial Rakuten Securities December 4 third report PDF detailing the Oct 27 WAF bypass, third-party staging API SQLi implant, Nov 8 internal pivot, and skipped exception approval.
https://www.rakuten-sec.co.jp/web/info/info20261204-02.htmlOfficial Rakuten Securities December 4 web notice mirroring the third report.
https://www.rakuten-sec.co.jp/web/info/info20261124-04.htmlOfficial Rakuten Securities November 24 second report confirming ~4.41M personal-data records, ~1.68M asset-balance records, and ~11.98M login-ID-only records.
Reproduction lab
Checks your own staging endpoints to verify direct-to-origin HTTP requests without WAF headers are rejected rather than reaching backend APIs.
# Replace 192.0.2.50 and stg-api.example.com with your own staging origin IP and Host header
STATUS=$(curl -s -o /dev/null -w "%{http_code}" --max-time 5 \
-H "Host: stg-api.example.com" "https://192.0.2.50/" -k || echo "BLOCKED")
echo "Direct-to-origin result: $STATUS (expected BLOCKED or 403)"