Wild · Adversarial Evasion & Obfuscation Stress Lab · 28.75 MB WASM q8 · Apache-2.0

Obfuscation, Lowercase & Adversarial Evasion Stress Lab

Real users and attackers rarely format PII neatly. Run gravitee-io/bert-small-pii-detection (Apache-2.0) live across 5 synthetic evasion attacks — lowercase chat, [at]/dot spaced emails, stripped-hyphen card/phone runs, and noisy OCR logs — and measure the real recall drop and exact missed entities without sugarcoating.

1. Live 5-Case Adversarial Evasion Benchmark

Clean JSON recall–
Mean evasion recall–
Max recall drop–
Total missed spans–
Total benchmark ms–
Live adversarial evasion recall, recall drop vs clean JSON baseline, latency, and missed entities
Attack Pattern Recall Drop vs Baseline Matched / Expected Missed Entities (Honest) Latency
Initialize the model above to run the 5-case evasion suite live.

2. Interactive Evasion Probe

Click any benchmark row or type your own obfuscated text below to test how BERT-Small uncased WordPiece tokenization reacts.

Detected Highlights

Run a probe to inspect highlighted detections.

Redacted Output ([TYPE_N])

Sanitized text will appear here.
Why evasion breaks pure neural NER: Because bert-small splits unknown spaced tokens like [at] or unhyphenated 16-digit runs into unfamiliar subwords, obfuscated spans often fall below threshold or drop out completely — demonstrating why production gateways pair neural NER with deterministic normalizers.

3. Inspect Redaction & DOM Highlight Code

Show the code · bert-pii-core.mjs — redactText() (3-mode consistent redaction)
Show the code · bert-pii.js — DOM-only renderHighlightedText()