How to effectively detect and mitigate Trojan Source attacks in JavaScript codebases with ESLint
ID: 4313c6fa-a1cf-580a-bfea-0940d7775bf2
STIX ID: report--4313c6fa-a1cf-580a-bfea-0940d7775bf2
Feed Name: Snyk Blog
This report explains the Trojan Source attack that leverages Unicode bidirectional control characters (e.g., RLO, LRO, zero-width spaces) to obfuscate malicious source code—covering variants like Stretched String, Commenting-Out, Invisible Functions, and Homoglyph Function—providing JavaScript examples and links to proofs-of-concept. It also documents detection and mitigation options (anti-trojan-source npm scanner, eslint-plugin-anti-trojan-source, IDE/GitHub warnings) and notes ecosystem responses and resources for further reading.
Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.
