CVE-2021-42574 Bidi forensics · browser local

Bidirectional (Bidi U+202E) & Trojan Source Control Detector

Scan pull requests, config files, and pasted documents for hidden Unicode bidirectional overrides (U+202E RLO, U+202A–U+202D, U+2066–U+2069, LRM/RLM) that visually reorder code or spoof filenames.

Caution for Arabic and Hebrew prose

Bidi marks (LRM/RLM) can be legitimate in mixed-direction Arabic or Hebrew paragraphs, whereas they are almost never legitimate inside source code or English strings. Inspect every flagged offset before stripping.

Bidi directional override & isolate inspector

Detect Trojan Source Bidi controls (U+202E, RLI, LRI, PDF)

100% browser-local scan
Physical Unicode scan4 anomaly code points flagged
Statistical token signalstatistical/vendor watermark unknown
Vendor verifier statusvendor verification unavailable

Detected codepoints in current buffer:

U+2066 LEFT-TO-RIGHT ISOLATE × 2U+202E RIGHT-TO-LEFT OVERRIDE (RLO) × 1U+2069 POP DIRECTIONAL ISOLATE × 1
Inline codepoint highlight map
if (accessLevel !== "user[U+202E] [U+2066]// Check if admin[U+2069] [U+2066]") { grantAdmin(); }
Character-by-character forensic codepoint table
PosUTF-16GlyphHexUTF-8 BytesCategory & Name
#2525∅U+202EE2 80 AERIGHT-TO-LEFT OVERRIDE (RLO) (Cf · Bidi Control)
#2727∅U+2066E2 81 A6LEFT-TO-RIGHT ISOLATE (Cf · Bidi Control)
#4545∅U+2069E2 81 A9POP DIRECTIONAL ISOLATE (Cf · Bidi Control)
#4747∅U+2066E2 81 A6LEFT-TO-RIGHT ISOLATE (Cf · Bidi Control)

Need deeper wording changes or high-volume API cleanup?

Removing invisible Unicode strips literal hidden codepoints, but it never alters statistical token patterns in the visible wording. Run an optional authorized sentence-level rewrite below (numbers, URLs, emails, code spans, and quotes are placeholder-protected), or compare Pro, Scale bearer-API, and one-time character packs.

Checking your session…

Codepoint reference

Bidirectional control codepoints detected by this scanner

Every directional override, embedding, and isolate below is invisible yet alters how editors render character order.

Hex CodepointUnicode NameHow It Enters LLM / Pasted TextEditor, ATS & Code Breakage Impact
U+202ERIGHT-TO-LEFT OVERRIDE (RLO)Used in Trojan Source code spoofing and malicious filename extension tricks.Reverses rendered text order so executable code looks commented out or .exe looks like .pdf.
U+2066 – U+2069DIRECTIONAL ISOLATES (LRI / RLI / FSI / PDI)Used to scope directional runs; abused in CVE-2021-42574 to close visual spoofing cleanly.Hides logic mismatches between human code review and compiler token streams.
U+200E / U+200FLEFT-TO-RIGHT & RIGHT-TO-LEFT MARKS (LRM / RLM)Copied from WhatsApp, Telegram, Excel, or mixed-language CRM exports.Breaks phone number regexes, date parsers, and exact string matching in databases.
U+202A – U+202DBIDI EMBEDDINGS & POP (LRE / RLE / PDF / LRO)Legacy Unicode directional formatting controls still honored by editors and browsers.Causes unpredictable cursor jumping and visual reordering in IDE diff viewers.
Technical FAQ

Frequently asked questions

What is a Trojan Source (CVE-2021-42574) attack?

Trojan Source uses invisible Unicode bidirectional controls like U+202E (RLO) and U+2066–U+2069 isolates to make source code display differently to human reviewers than how the compiler parses it.

Should I strip Bidi controls in Arabic or Hebrew documents?

Review carefully before stripping in RTL languages—LRM (U+200E) and RLM (U+200F) often keep numbers and punctuation ordered properly in Arabic or Hebrew prose. Uncheck the Bidi box to inspect without deleting.

Why did my WhatsApp or Excel phone number paste fail validation?

Messaging apps frequently wrap phone numbers and timestamps with invisible U+200E (LRM) or U+202A/U+202C embeddings. Stripping Bidi controls restores clean ASCII digits immediately.

Is my source code sent to a server during scanning?

No. Codepoint inspection and sanitization run strictly locally inside your browser tab.