Country pack
Japan PII detection: My Number
Short answer
Maskflare's Japan pack has 6 detectors. 2 validate a check digit or letter, 1 tests layout or an embedded date, 3 match on pattern alone.
What the Japan pack covers
The Japan pack holds 6 detectors: Bank account number, Individual Number (My Number), Individual Number (My Number), unformatted, Passport number, Phone number and Postal code. 2 of them recompute a check digit or letter, 1 tests layout or an embedded date only, 3 are pattern-only, and 4 wait for a keyword before they match.
| Detector | Category | Validation | Valid example |
|---|---|---|---|
| Bank account number | bank account number (IBAN) | Pattern only | 1234567 |
| Individual Number (My Number) | national ID number | Checksum | 1234 5678 9018 |
| Individual Number (My Number), unformatted | national ID number | Checksum | 123456789018 |
| Passport number | ID document number | Pattern only | TK1234567 |
| Phone number | phone number | Layout rules | +81 3-1234-5678 |
| Postal code | postal code | Pattern only | 100-0001 |
Every Japan detector in detail
Bank account number
A bank account identifier. Validation: the pattern only, with no checksum or structural validator. It needs one of 7 keywords within 48 characters before the value, such as a/c, account no, account number, acct. Valid example: 1234567.
Individual Number (My Number)
A national identity number. Validation: a weighted modulus 11 check digit. Valid example: 1234 5678 9018; the same shape that fails is 1234 5678 9010.
Individual Number (My Number), unformatted
A national identity number. Validation: a weighted modulus 11 check digit. It needs one of 5 keywords within 48 characters before the value, such as individual number, my number, mynumber, マイナンバー. Valid example: 123456789018; the same shape that fails is 123456789010.
Passport number
An identity document number. Validation: the pattern only, with no checksum or structural validator. It needs one of 9 keywords within 48 characters before the value, such as document number, id card, id no, id number. Valid example: TK1234567.
Phone number
A telephone number in the national format. Validation: between 7 and 15 digits, the range an international number can have. Valid example: +81 3-1234-5678.
Postal code
A postal code, which identifies a place rather than a person on its own. Validation: the pattern only, with no checksum or structural validator. It needs one of 8 keywords within 48 characters before the value, such as post code, postal code, postcode, zip. Valid example: 100-0001.
Local-language context words for Japan
These are the words in the catalogue that confirm a value as belonging to this country's detector. Shared English words such as ID number or tax id are left out here because many packs use them; a word below points at this pack even when other packs are on.
- Bank account number:
a/c,acct,口座,口座番号 - Individual Number (My Number), unformatted:
individual number,my number,mynumber,マイナンバー,個人番号 - Passport number:
document number,パスポート,旅券番号 - Postal code:
〒,郵便番号
How Maskflare masks Japan identifiers
Detections are replaced with a token such as mf_mask_d7e0 before the request goes to the AI provider, and with response restoration turned on the real value is put back in the answer. The other actions are redact, partial, hash, format-preserving encryption, generalize, alert and block.
- Protect now, Finance - Protect now, Healthcare and Developer: mask (a reversible token) when Japan is a primary country.
- Monitor first: alert (counted, forwarded unchanged) when Japan is a primary country.
None of the compliance profiles (HIPAA Safe Harbor, GDPR (EU/EEA), UK GDPR, PCI DSS v4.0, US PII (CCPA/CPRA) and Swiss nDSG health data) includes the Japan pack. Its detectors run when Japan is chosen as a primary country or the pack is enabled directly.
Limits worth knowing
- A passing checksum shows that a value is well formed, not that it was issued to a real person. The examples on this page pass for that reason and are not real.
- 3 of the 6 detectors here match on pattern alone (Bank account number, Passport number and Postal code), so they can match text that merely has the same shape.
- Detectors read the text of the request. A value inside an image is found only after OCR, and a value split across lines is not one match.
- Names, addresses and free-text details are handled by other packs. This page is limited to the Japan identifiers.
Frequently asked questions
What does Maskflare detect for Japan?
6 detectors: Bank account number, Individual Number (My Number), Individual Number (My Number), unformatted, Passport number, Phone number and Postal code.
Are Japan identifiers masked by default?
They are masked when Japan is chosen as a primary country (the default Protect now template uses the action mask), or when the pack is turned on directly. A country pack is not on for organisations that did not choose the country.
Which Japan identifiers have a checksum?
Individual Number (My Number) and Individual Number (My Number), unformatted.
Do the Japan detectors need keywords?
4 of them do: Bank account number, Individual Number (My Number), unformatted, Passport number and Postal code.
Rules on this page describe what Maskflare's detectors and validators check. They are read from the detection catalogue and are not the specification of the body that issues the identifier. Examples are synthetic.