The Notepad Hack A Deep Dive Into A State Sponsored Supply Chain Attack
Attackers compromised Notepad++'s web hosting provider to intercept update requests and deliver a malicious installer, which used DLL sideloading to run a custom backdoor called Chrysalis. This gave the attackers remote control to steal files, run commands and install further malware on victims' machines.
Published on systemweakness.com
For millions of developers, IT professionals, and hobbyists, Notepad++ is a trusted, lightweight, and powerful tool. It’s the digital equivalent of a reliable Swiss Army knife.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the software vendor's update distribution depended on a third-party hosting provider that was compromised, allowing tampering with update files.
Impact
Attackers could steal files, run commands and install more malware on infected machines, though the campaign was selective and attribution is only moderate confidence.
What the attacker needed
Compromise of update hosting provider; victim runs the malicious update installer; Windows loads DLL from same directory
How it was found
- Compromise the web hosting provider that serves Notepad++ updates.
- Intercept update requests and return a malicious installer instead of the real update.
- The installer drops a legitimate signed Bitdefender binary alongside a malicious DLL in a hidden folder.
- The signed binary runs and loads the malicious DLL from the same directory (DLL sideloading).
- The DLL decrypts and launches the Chrysalis backdoor, which contacts its command-and-control server.
- Attackers then deploy Cobalt Strike and other tools for further exploitation.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When Notepad++ checked for updates, the attackers' control of the hosting provider let them send a fake installer instead of the real one. That installer ran a legitimate signed program but loaded a malicious library file next to it, a trick called DLL sideloading, so the bad code ran under a trusted name. The result was a backdoor giving attackers full control of the computer.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.