Trojan Source
Trojan Source is a software vulnerability that abuses Unicode's bidirectional characters to display source code differently than the actual execution of the source code. The exploit utilizes how writing scripts of different reading directions are displayed and encoded on computers. It was discovered by Nicholas Boucher and Ross Anderson at Cambridge University in late 2021.
Trojan Source is a software vulnerability that abuses Unicode's bidirectional characters to display source code differently than the actual execution of the source code. The exploit utilizes how writing scripts of different reading directions are displayed and encoded on computers. It was discovered by Nicholas Boucher and Ross Anderson at Cambridge University in late 2021. CVE-2021-42574 - NIST & CVE (BIDI exploit) CVE-2021-42694 - NIST & CVE (homoglyph attack) UAX 9 from the Unicode Consortium about bidirectional characters and formatting Unicode UTR 36 from the Unicode Consortium, which describes the vulnerability in Unicode CERT/CC vulnerability report
References
- 'Trojan Source' Bug Threatens the Security of All Code – Krebs on Security . · retrieved 2026-06-06 · rev 1358282835
Cite this reference
MLA "'Trojan Source' Bug Threatens the Security of All Code – Krebs on Security ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.
Chicago "'Trojan Source' Bug Threatens the Security of All Code – Krebs on Security ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.
APA encyclopegia.org. (2026). 'Trojan Source' Bug Threatens the Security of All Code – Krebs on Security . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835
- Warning Options (Using the GNU Compiler Collection (GCC)) . · retrieved 2026-06-06 · rev 1358282835
Cite this reference
MLA "Warning Options (Using the GNU Compiler Collection (GCC)) ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.
Chicago "Warning Options (Using the GNU Compiler Collection (GCC)) ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.
APA encyclopegia.org. (2026). Warning Options (Using the GNU Compiler Collection (GCC)) . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835
- Security advisory for rustc (CVE-2021-42574) ! . · retrieved 2026-06-06 · rev 1358282835
Cite this reference
MLA "Security advisory for rustc (CVE-2021-42574) ! ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.
Chicago "Security advisory for rustc (CVE-2021-42574) ! ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.
APA encyclopegia.org. (2026). Security advisory for rustc (CVE-2021-42574) ! . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835
- October 2021 (version 1.62) : Unicode directional formatting characters . · retrieved 2026-06-06 · rev 1358282835
Cite this reference
MLA "October 2021 (version 1.62) : Unicode directional formatting characters ." October 2021 (version 1. 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.
Chicago "October 2021 (version 1.62) : Unicode directional formatting characters ." October 2021 (version 1. 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.
APA October 2021 (version 1. (2026). October 2021 (version 1.62) : Unicode directional formatting characters . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835
- RHSB-2021-007 Trojan source attacks (CVE-2021-42574, CVE-2021-42694) . · retrieved 2026-06-06 · rev 1358282835
Cite this reference
MLA "RHSB-2021-007 Trojan source attacks (CVE-2021-42574, CVE-2021-42694) ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.
Chicago "RHSB-2021-007 Trojan source attacks (CVE-2021-42574, CVE-2021-42694) ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.
APA encyclopegia.org. (2026). RHSB-2021-007 Trojan source attacks (CVE-2021-42574, CVE-2021-42694) . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835
- Warning about bidirectional Unicode text ! . · retrieved 2026-06-06 · rev 1358282835
Cite this reference
MLA "Warning about bidirectional Unicode text ! ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.
Chicago "Warning about bidirectional Unicode text ! ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.
APA encyclopegia.org. (2026). Warning about bidirectional Unicode text ! . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835
- VU#999008 - Compilers permit Unicode control and homoglyph characters . · retrieved 2026-06-06 · rev 1358282835
Cite this reference
MLA "VU#999008 - Compilers permit Unicode control and homoglyph characters ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.
Chicago "VU#999008 - Compilers permit Unicode control and homoglyph characters ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.
APA encyclopegia.org. (2026). VU#999008 - Compilers permit Unicode control and homoglyph characters . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835
- Usage Survey of Character Encodings broken down by Ranking . · retrieved 2026-06-06 · rev 1358282835
Cite this reference
MLA "Usage Survey of Character Encodings broken down by Ranking ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.
Chicago "Usage Survey of Character Encodings broken down by Ranking ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.
APA encyclopegia.org. (2026). Usage Survey of Character Encodings broken down by Ranking . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835
- UAX #9: Unicode Bidirectional Algorithm . · retrieved 2026-06-06 · rev 1358282835
Cite this reference
MLA "UAX #9: Unicode Bidirectional Algorithm ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.
Chicago "UAX #9: Unicode Bidirectional Algorithm ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.
APA encyclopegia.org. (2026). UAX #9: Unicode Bidirectional Algorithm . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835
- Edge, Jake. Trojan Source: tricks (no treats) with Unicode [LWN.net] . lwn.net . 2021-11-03. retrieved 2022-03-12 · retrieved 2022-03-11 · rev 1358282835
Cite this reference
MLA "Edge, Jake. Trojan Source: tricks (no treats) with Unicode [LWN.net] . lwn.net . 2021-11-03. retrieved 2022-03-12." Edge, Jake. 2022-03-11. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.
Chicago "Edge, Jake. Trojan Source: tricks (no treats) with Unicode [LWN.net] . lwn.net . 2021-11-03. retrieved 2022-03-12." Edge, Jake. 2022-03-11. https://en.wikipedia.org/w/index.php?oldid=1358282835.
APA Edge, Jake. (2022). Edge, Jake. Trojan Source: tricks (no treats) with Unicode [LWN.net] . lwn.net . 2021-11-03. retrieved 2022-03-12. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835
- Trojan Source: Hiding malicious code in plain sight . · retrieved 2026-06-06 · rev 1358282835
Cite this reference
MLA "Trojan Source: Hiding malicious code in plain sight ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.
Chicago "Trojan Source: Hiding malicious code in plain sight ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.
APA encyclopegia.org. (2026). Trojan Source: Hiding malicious code in plain sight . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835
- Programming languages: This sneaky trick could allow attackers to hide 'invisible' vulnerabilities in code . · retrieved 2026-06-06 · rev 1358282835
Cite this reference
MLA "Programming languages: This sneaky trick could allow attackers to hide 'invisible' vulnerabilities in code ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.
Chicago "Programming languages: This sneaky trick could allow attackers to hide 'invisible' vulnerabilities in code ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.
APA encyclopegia.org. (2026). Programming languages: This sneaky trick could allow attackers to hide 'invisible' vulnerabilities in code . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835
- GCC & LLVM Patches Pending To Fend Off Trojan Source Attacks . · retrieved 2026-06-06 · rev 1358282835
Cite this reference
MLA "GCC & LLVM Patches Pending To Fend Off Trojan Source Attacks ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.
Chicago "GCC & LLVM Patches Pending To Fend Off Trojan Source Attacks ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.
APA encyclopegia.org. (2026). GCC & LLVM Patches Pending To Fend Off Trojan Source Attacks . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835
- Prevent Trojan Source attacks with GCC 12 . · retrieved 2026-06-06 · rev 1358282835
Cite this reference
MLA "Prevent Trojan Source attacks with GCC 12 ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835. Accessed 24 November 2026.
Chicago "Prevent Trojan Source attacks with GCC 12 ." 2026-06-06. https://en.wikipedia.org/w/index.php?oldid=1358282835.
APA encyclopegia.org. (2026). Prevent Trojan Source attacks with GCC 12 . Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1358282835
Cite this article
MLA
"Trojan Source." encyclopegia.org, 2026, https://encyclopegia.org/wiki/trojan-source. Accessed 24 November 2026.
Chicago
"Trojan Source." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/trojan-source.
APA
encyclopegia.org. (2026). Trojan Source. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/trojan-source
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON