Korean PII & Compliance 6 min read Updated

Practical Guide to Masking Korean PII (RRN, Phone, Bank Account, Business Reg No.) for Generative AI

Checksum-validated redaction rules and a repeatable Mask -> Prompt -> Restore workflow for Korean workplace documents.

Key takeaways

  • Korean workplace documents frequently mix RRN, mobile/landline numbers, bank settlement accounts, and 10-digit business registration numbers in free-form text.
  • Checksum validation (Korean RRN, Korean Business Reg No., Credit Card Luhn) prevents ordinary order IDs and dates from being over-masked.
  • Use Custom Terms for employee names, customer organizations, and internal project titles that regex alone cannot detect.
  • Use One-Click Restore to turn masked AI drafts back into final internal documents without uploading a single byte of real PII.

1. Where Korean PII leaks in everyday generative AI work

Teams across HR, finance, customer support, legal ops, and IT service desks routinely ask ChatGPT, Claude, or Gemini to summarize email threads, draft customer responses, or clean up settlement tables. Even when users remember to remove a customer name, structured identifiers buried in signatures, headers, or memo fields often slip through.

Under Korea’s Personal Information Protection Act (PIPA), Resident Registration Numbers (주민등록번호), contact numbers, financial account details, and personally identifiable combinations require strict minimization and transfer controls. Sanitizing documents locally in browser memory before drafting prompts removes accidental third-party transmission at the source.

2. Supported Korean PII patterns and false-positive guards

Generic regex masks often corrupt dates (2026-11-29) or invoice numbers (202611-1234567). MaskPrompt validates each Korean identifier mathematically or contextually before replacing it:

Korean RRN / Foreign Reg No.
Format Examples: 900101-1234568, 900101-5234561
Validation Guard: Valid century, calendar date (including leap years), and official 13th-digit weighted checksum
Output Token: [RRN_1]
Korean Mobile & Landline
Format Examples: 010-4821-9034, +82-10-..., 02-3456-7890, 070-...
Validation Guard: Recognizes 01x mobile, international +82, area codes (02, 031-064), and 070/050x VoIP prefixes
Output Token: [PHONE_1]
Business Registration No.
Format Examples: 123-45-67891
Validation Guard: 10-digit National Tax Service weighted checksum validation (rejects random 3-2-5 numbers)
Output Token: [BIZ_NUM_1]
Korean Bank Account
Format Examples: 신한은행 110-456-789012, 계좌 123-45-678901
Validation Guard: Context keywords (major Korean banks / account terms) plus standalone 11-16 digit multi-hyphen rules excluding phones and ISO dates
Output Token: [BANK_ACCOUNT_1]
Credit Card & Email
Format Examples: 4532-0151-1283-0366, ops@example.kr
Validation Guard: Luhn checksum for 13-19 digit cards; strict RFC-style email boundary matching
Output Token: [CARD_1], [EMAIL_1]

3. End-to-end Mask -> Prompt -> One-Click Restore workflow

Instead of manually retyping customer numbers and settlement accounts into an AI-drafted reply, let MaskPrompt hold an ephemeral token map in browser RAM for the duration of your task:

Settlement inquiry draft (Korean PII Docs preset + Custom Term)
Original internal note (synthetic test data)
Project: AuroraPay Settlement Batch
Contact: minsu.kim@aurorapay-demo.kr / 010-4821-9034 / 02-3456-7890
Customer RRN: 900101-1234568 | Biz Reg No: 123-45-67891
Refund Account: 신한은행 110-456-789012 | Corporate Card: 4532-0151-1283-0366
Masked prompt pasted into ChatGPT / Claude
Project: [CUSTOM_1] Settlement Batch
Contact: [EMAIL_1] / [PHONE_1] / [PHONE_2]
Customer RRN: [RRN_1] | Biz Reg No: [BIZ_NUM_1]
Refund Account: 신한은행 [BANK_ACCOUNT_1] | Corporate Card: [CARD_1]

When the AI returns a polished email or incident summary containing [EMAIL_1], [PHONE_1], and [BANK_ACCOUNT_1], paste it into the Restore tab to re-insert the real values locally in one click.

4. Workplace compliance checklist for Korean teams

Adopt these four habits so PII protection becomes automatic rather than an afterthought:

  1. Select the Korean PII Docs preset for non-engineering text

    Turns on RRN, phone, business registration number, bank account, email, credit card, and Custom Terms while avoiding unnecessary network-pattern noise.

  2. Maintain a local Custom Terms dictionary

    Add recurring Korean personal names, partner company names, and internal service titles. They stay exclusively in your browser localStorage and never sync to any cloud.

  3. Keep AI prompts focused on tokens, not re-identification

    Tell the AI explicitly: "Keep all bracketed placeholders like [RRN_1] and [EMAIL_1] unchanged in your response" so One-Click Restore succeeds with zero unmapped tokens.

  4. Click Wipe session immediately after restoring

    Clears the volatile in-memory mapping table right away, especially important on shared workstations or screen-sharing calls.

Run this workflow locally in your browser

Mask Korean RRN, phone numbers, bank accounts, business numbers, and custom terms locally with One-Click Restore.

Frequently asked questions

Why did a fake 13-digit number not get masked as a Korean RRN?

MaskPrompt validates calendar dates and the official Korean RRN weighted checksum (including foreign resident codes 5-8) so arbitrary 6-7 digit tracking codes are not falsely masked. Valid checksum test numbers such as 900101-1234568 are detected immediately.

Are my Custom Terms uploaded anywhere?

No. Custom Terms are stored only in your browser localStorage under key maskprompt:custom-terms:v1 and processed strictly in browser memory. MaskPrompt enforces Content-Security-Policy connect-src none to block external requests.

More practical guides

All guides