# Rakuten Securities: WAF bypass in staging led to SQLi implant and 4.41M unmasked records

- **Canonical URL:** https://breachidents.com/incidents/rakuten-securities-oct-2026-staging-waf-bypass-sqli
- **Organization:** Rakuten Securities
- **Incident date:** Oct 27–Nov 16, 2026
- **Disclosed / updated:** Nov 17, 2026
- **Category:** API and secrets
- **Primary source:** Rakuten Securities Third Report (Dec 4) & Second Report (Nov 24) (https://www.rakuten-sec.co.jp/web/company/newsrelease/pdf/press2026120401.pdf)

## In 30 seconds

- **How they got in:** Missing origin-lock rule exposed third-party vendor API in staging to SQLi implant on Oct 27 _[Confirmed]_
- **What leaked / reached:** ~4.41M personal-data records (~3.22M accounts, ~1.19M applicants), ~1.68M asset-balance records, and ~11.98M branch/customer code + login ID records
- **What stayed safe:** Production core DB untouched; no login passwords, trading PINs, or unauthorized trades confirmed

## Summary

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.

## Attack sequence

1. **Oct 27, 2026 — Attackers bypass missing WAF-lock rule on a third-party staging API:** 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.
2. **Nov 8, 2026 — Intruders pivot internally to a verification DB holding unmasked production data:** Twelve days after initial access, the attackers move internally from staging to a verification database loaded with unmasked production customer records without required exception approval.
3. **Nov 11 & Nov 15–16 — ~4.41M personal records and ~11.98M login IDs exfiltrated in two waves:** Customer 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.
4. **Nov 16–Dec 4, 2026 — Staging shut down, FSA/PPC notified, and full root cause published Dec 4:** Rakuten 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.

## 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.

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.

## What it reached

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.

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.

### Staging verification database (unmasked production copy) (~4.41M PII + ~11.98M IDs) _[Confirmed]_

Copied 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.

Technical details:
- Confirmed stolen (Nov 24 2nd report): ~`4.41M` personal-data records (~`3.22M` account holders, ~`1.19M` non-account applicants, incl. ~`1.68M` asset-balance records, ~`2.71M` self-declared asset codes, ~`14,000` income codes).
- Separate branch/customer code + login ID only exposure: ~`11.98M` accounts (distinct from Rakuten ID).

### Third-party vendor API in staging (missing WAF block rule) (WAF bypass & SQLi) _[Confirmed]_

A 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.

Technical details:
- 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 records) _[Observed]_

Rakuten Securities serves its public website behind Akamai, routes corporate email through MessageLabs, and enforces DMARC rejection to blunt spoofed follow-on phishing.

Services: Akamai, Symantec MessageLabs.
Note: Public records show Rakuten Securities uses these services. That does not mean any of them were breached.

Technical details:
- **Akamai:** `www.rakuten-sec.co.jp` CNAME `www.rakuten-sec.co.jp.edgekey.net` (`23.220.113.29`).
- **Symantec MessageLabs:** MX `cluster1/cluster1a.us.messagelabs.com`; `_dmarc.rakuten-sec.co.jp` enforces `p=reject`.

### Production core database, passwords, and customer trades (Production untouched) _[Confirmed]_

Rakuten Securities confirmed zero intrusion into its production core database, zero leaked passwords or trading PINs, and zero confirmed unauthorized logins or trades.

Technical details:
- 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 (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.

## If you are responding to this

Plain view is for everyone. Responder view is for Rakuten Securities customers and engineering teams operating staging or pre-production environments.

### 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.

### In the first hour

1. **Audit every staging, QA, and pre-production origin for direct-to-IP exposure that bypasses your WAF or CDN:** Rakuten Securities confirmed attackers entered staging on Oct 27 because part of staging lacked the rule blocking traffic that did not pass through the WAF.
2. **Inventory every non-production database for unmasked production customer tables and revoke ad-hoc DB-copy permissions:** A policy requiring exception approval failed in practice; only an automated masking gate stops unmasked PII from sitting inside weaker staging networks.
3. **Enable real-time EDR, database activity monitoring, and outbound egress alerting on staging servers equal to production:** Attackers dwelled 20 days in Rakuten’s staging environment (Oct 27 to Nov 16) and exfiltrated ~4.41M records across two waves before staff spotted the activity.
4. **Rakuten Securities customers: turn on passkey login inside the authenticated portal and check in-account breach notices directly without following email or SMS links:** Login IDs, phone numbers, addresses, and asset balances are prime material for voice-phishing and impersonation scams even though passwords stayed safe.

### 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.
  - **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).
- **Look in:** Staging database audit logs and VPC egress flow logs
  - **Signal:** Bulk multi-table `SELECT` dumps 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.
  - **Probably noise if:** Scheduled synthetic performance benchmarks running against anonymized seed data during documented test windows.

> **Financial institutions running BCP or core-database migration rehearsals:** 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.

## Primary receipts

### Receipt 1: Rakuten Securities Third Report: WAF bypass, SQLi implant, and skipped masking approval (Dec 4) _[Confirmed]_

- **Shows:** Confirms the complete chain directly from Rakuten Securities’ archived Dec 4 Japanese notice and press PDF (`press2026120401.pdf`): missing WAF bypass-block on a third-party staging API (Oct 27), SQLi program implant, internal intrusion (Nov 8), exfiltration waves (Nov 11 & 15–16), and skipped exception approval for unmasked production data.
- **Leaves out:** Names neither the external API vendor nor the specific CVE, implant artifact, attacker IP, or Nov 8 lateral path.
- **Source:** Rakuten Securities Official Notice (Third Report, Japanese) (https://www.rakuten-sec.co.jp/web/info/info20261204-02.html), saved 2026-12-05T08:07:41Z
- **SHA-256:** `18cab1ddd61d93343961191480081f7cfeb860582f439039d3117683800f37bc`
- **Command:** `curl -sSL https://www.rakuten-sec.co.jp/web/info/info20261204-02.html -o rakuten-info-dec4.html && sha256sum rakuten-info-dec4.html`

### Receipt 2: Rakuten Securities Second Report: confirmed record totals and untouched credentials (Nov 24) _[Confirmed]_

- **Shows:** Pins the exact victim-confirmed counts from Rakuten’s archived Nov 24 Japanese notice and confirms passwords, trading PINs, and unauthorized trades were not involved.
- **Leaves out:** Whether the stolen records have appeared on criminal markets or been used in targeted phone or mail fraud against customers.
- **Source:** Rakuten Securities Official Notice (Second Report, Japanese) (https://www.rakuten-sec.co.jp/web/info/info20261124-04.html), saved 2026-12-05T08:18:27Z
- **SHA-256:** `32c4bde6192a9ab7f4f61fa9ca450e9d909248c415b7ca7db52cc3ca7542d515`
- **Command:** `curl -sSL https://www.rakuten-sec.co.jp/web/info/info20261124-04.html -o rakuten-info-nov24.html && sha256sum rakuten-info-nov24.html`

### Receipt 3: Passive DNS for www.rakuten-sec.co.jp and _dmarc.rakuten-sec.co.jp _[Observed]_

- **Shows:** Production web traffic sits behind Akamai and `_dmarc.rakuten-sec.co.jp` enforces `p=reject`, reducing exact-domain email spoofing during follow-on social engineering.
- **Leaves out:** Staging hostnames, origin firewall rules, or which third-party API endpoint missed the WAF lockdown.
- **Source:** Passive DNS (Dec 5, 2026) (rakuten-sec.co.jp), saved 2026-12-05T08:08:21Z
- **SHA-256:** `b0a3ea8614457001f27e21e322c0f6cf096258df5acfb0ee165bb6db71a987f8`
- **Command:** `dig +short CNAME www.rakuten-sec.co.jp && dig +short MX rakuten-sec.co.jp && dig +short TXT _dmarc.rakuten-sec.co.jp`

## Evidence log

| Section | Claim | Evidence state | Source |
| --- | --- | --- | --- |
| How they got in | 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 | Confirmed | Rakuten Securities Third Report (press2026120401.pdf & info20261204-02.html, Dec 4, 2026) |
| How they got in | 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 vendor | Withheld by Rakuten Securities during ongoing forensic investigation |
| What it reached | 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 | Rakuten Securities Third Report (Dec 4, 2026) |
| What it reached | 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) | Confirmed | Rakuten Securities Second Report (info20261124-04.html, Nov 24, 2026) |
| What held | 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 | Confirmed | Rakuten Securities Second & Third Reports (Nov 24 & Dec 4, 2026) |
| Observed public posture | 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 | Observed | Passive DNS (Dec 5, 2026) |

## Indicators of compromise

- **url:** `https://www.rakuten-sec.co.jp/web/company/newsrelease/pdf/press2026120401.pdf` (Official 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.)
- **url:** `https://www.rakuten-sec.co.jp/web/info/info20261204-02.html` (Official Rakuten Securities December 4 web notice mirroring the third report.)
- **url:** `https://www.rakuten-sec.co.jp/web/info/info20261124-04.html` (Official Rakuten Securities November 24 second report confirming ~4.41M personal-data records, ~1.68M asset-balance records, and ~11.98M login-ID-only records.)

---
Published by [breachidents](https://breachidents.com). Preserve evidence labels (Confirmed / Inferred / Withheld by vendor / Observed) when citing.
