Skip to content

Commit e4a2783

Browse files
committed
Changes to Unicode article #382
1 parent 2f59192 commit e4a2783

1 file changed

Lines changed: 38 additions & 5 deletions

File tree

‎docs/unicode.md‎

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ same visual glyph to be built using entirely different underlying code points. T
1414
while necessary for global computing, introduces a significant challenge for digital forensic
1515
investigations.
1616

17-
### The Problem with Phonetic Symbols and Modifiers
17+
### Phonetic Symbols and Modifiers
1818

1919
The Unicode standard includes a vast array of phonetic extensions and modifier characters designed
2020
to alter the sound or appearance of preceding letters. In a forensic context, these characters
@@ -27,7 +27,7 @@ investigator reviewing an export or a user viewing a file, the text looks normal
2727
forensic tool keyword indexes will completely miss these strings because their binary signatures do
2828
not match the target query.
2929

30-
### The Normalization Chaos: NFC, NFD, and NFKD
30+
### Normalization: NFC, NFD, and NFKD
3131

3232
The core of the Unicode vulnerability lies in how different systems store identical characters.
3333
Unicode allows the same visual character to be represented in multiple ways, leading to the
@@ -45,10 +45,43 @@ creation of four standard normalization forms. Three of the most impactful in fo
4545
like `⁵` is normalized down to a standard `5`, and ligatures or stylistic fractions are broken
4646
into their literal parts.
4747

48-
### The Forensic Impact
48+
### Legacy Encoding Translation
4949

50-
When data moves across different operating systems or normalization boundaries, serious forensic
51-
blind spots emerge:
50+
#### Cross-Codepage Structural Convergence
51+
52+
Cross-Codepage Structural Convergence refers to the phenomenon where entirely different legacy
53+
binary encodings or duplicate code page sequences map down to the exact same Unicode character,
54+
masking the true operational context of the original data.
55+
56+
In multi-byte character sets (MBCs) such as Code Page 932 (Japanese Extended Shift-JIS), design
57+
choices introduced duplicate mappings where completely different raw byte sequences within the same
58+
code page, such as `0x81E0` (a standard JIS X 0208 character) and `0x8790` (an NEC special extension
59+
character), resolve to the exact same Unicode code point (`U+2252`).
60+
61+
When automated processing attempts to parse disk images, log files, or database records without an
62+
explicitly defined parsing priority, the underlying binary divergence is erased. This internal
63+
convergence allows distinct data variants to visually merge, potentially obscuring the specific
64+
software subsystem or systemic origin of an artifact during cross-border timeline correlation.
65+
66+
#### Windows "Best-Fit" Mapping
67+
68+
The reverse of Cross-Codepage Structural Convergence occurs when modern Unicode strings are
69+
downsampled or converted into restrictive ANSI or legacy regional code pages via the Windows API.
70+
71+
When an exact structural match does not exist, the legacy translation system applies an internal
72+
"Best-Fit" lookup table to map the unsupported Unicode character to its closest visual or semantic
73+
counterpart. Malicious actors actively exploit this quirk to execute argument injection and Web
74+
Application Firewall (WAF) bypasses; by inserting specific multi-byte characters or invalid
75+
trailing bytes, they can bypass string filters checking for dangerous command-line control
76+
characters. Once processed downstream by a localized application shell, the Windows API silently
77+
collapses these complex characters back into standard ASCII hyphens (`-`), slashes (`/`), or
78+
quotation marks (`"`), fundamentally mutating the executed command line string away from what was
79+
recorded in application layer logs.
80+
81+
### Caution
82+
83+
When data moves across different operating systems or normalization boundaries, serious blind spots
84+
emerge:
5285

5386
* **Hash Inconsistency:** Because a file named `café.exe` on Windows (NFC) has a different byte
5487
sequence than `café.exe` on Mac OS (NFD), the binary hashes of the filenames, or logs containing

0 commit comments

Comments
 (0)