Malicious payload from pdf-to-office@1.0.2 | Image: ReversingLabs
The ReversingLabs (RL) research team has uncovered a sophisticated npm-based malware campaign in which a fake npm package, deceptively named pdf-to-office, targets locally installed Atomic and Exodus wallets to silently redirect outgoing crypto funds to attacker-controlled addresses.
βThreat actors have been targeting the cryptocurrency community hard lately,β warns the RL report, citing an alarming rise in attacks on the Web3 ecosystem.
Disguised as a benign PDF-to-Word converter, the malicious npm package was published on April 1. But rather than convert documents, it executed an obfuscated JavaScript payload that searched for Atomic and Exodus wallets installed on the host system.
βThe package injected malicious code into legitimate, locally-installed crypto wallet softwareβ¦ overwriting existing, non-malicious files in the process.β
Once detected, pdf-to-office was briefly removedβlikely by the attacker themselvesβonly to reappear days later in a slightly modified version, perpetuating the threat.
RL researchers deobfuscated the payload and found that it:
- Scans for specific versions of Atomic Wallet (2.90.6 and 2.91.5)
- Overwrites version-specific JS files inside the application bundle with altered versions
- Replaces the crypto destination address with the attacker’s base64-encoded wallet
- Exfiltrates install status to a remote server (hxxp://178[.]156[.]149[.]109/set-install-status)
βThat was the only difference between the legitimate and trojanized file, except that the malicious version of the file was not minified.β
The same tactic was applied to Exodus Wallet, where the file src/app/ui/index.js was replaced in versions 25.13.3 and 25.9.2. Every crypto transaction attempted by the user was silently rerouted to the attackerβs wallet.
Adding a disturbing twist, RL observed the malware also collecting chat logs and trace files from AnyDesk:
βThe AppData/Roaming/AnyDesk directoryβ¦ was zipped and sent to hxxp://178[.]156[.]149[.]109/save-anydesk.β
This suggests a dual-purpose attackβcrypto theft and reconnaissanceβpossibly for staging further attacks or covering tracks post-exfiltration.
Deleting the npm package isnβt enough. Once installed and executed, the trojanized wallet files persist, allowing the attackers to maintain control of future transactions.
βThe only way to completely remove the malicious trojanized filesβ¦ would be to remove [the wallets] completely from the computer and re-install them.β
As Web3 and decentralized finance continue to grow, crypto wallet software has become a high-value target. Attackers are now operating at the level of developer infrastructure, planting backdoors in packages that millions rely on.
Related Posts:
- Purrglar: Emerging Stealer Targets Chrome and Exodus Wallet Data on macOS
- Atomic Stealer Malware Returns in New Disguises, Targets Mac Users’ Sensitive Data
- Malware on npm “Patches” Local Packages with Reverse Shell
Support Our Threat Intelligence
If you find our CVE report and cybersecurity news helpful, consider supporting our work.