Home › Spotlight › Address-Swapping ("Clipper") Malware: The 2025 npm Attack and the 2026 Optimizely Script Attack
Spotlight Published November 18, 2026
Address-Swapping ("Clipper") Malware: The 2025 npm Attack and the 2026 Optimizely Script Attack
Clipper malware swaps a crypto address you copy or are about to pay with one controlled by an attacker. Two large supply-chain incidents, in September 2025 and November 2026, used it; what happened in each, with sources.
A crypto clipper is malware that silently swaps a cryptocurrency address during a transaction so that funds go to the attacker instead of the intended recipient. Because it can be delivered through widely used software or website scripts, people can be exposed without installing anything themselves.[2][3]
September 2025: the npm packages attack
Attackers took over the npm account of a well-known developer after a phishing email from a domain impersonating npmjs.com, and published malicious versions of small JavaScript utilities including chalk, strip-ansi and color-convert.
The affected packages had been downloaded over 1 billion times. The injected code swapped cryptocurrency addresses in the background.
Security Alliance (SEAL) reported less than $50 stolen. DefiLlama founder 0xngmi said only projects that updated after the malicious versions were published were at risk, and users still had to approve the transaction.
npm reportedly disabled the compromised versions. Ledger CTO Charles Guillemet said users without a hardware wallet should refrain from onchain transactions for now, and that hardware wallet users should review every transaction before signing.[1][2]
November 2026: Optimizely-hosted scripts
On November 16, 2026, an attacker added malicious JavaScript to Optimizely Web project scripts, so visitors to sites loading them received a clipper and a payment card skimmer. Optimizely said an unauthorized party exploited a vulnerability in its account signup flow.
StepSecurity counted 178 affected organizations; RootData relayed researcher Scott Helme's count of at least 186 websites. Named sites included CNN, BBC, Fox News, Zoom, Salesforce and GitLab.
The clipper swapped copied addresses only when they passed a chain's checksum and nearby text contained a payment word such as "wallet" or "send".
StepSecurity estimated about $7,040 had reached attacker wallets by the evening of November 16, and said the full harm from stolen card data and cookies is unknown. Optimizely said it fixed the flaw and removed the injected code.[3][4]
Related
The tampered hardware wallet spotlight covers a different attack on wallets, and the Learn section's wallet security guide covers general precautions.
Frequently Asked Questions
Did the npm attack steal much crypto?
Security Alliance (SEAL) reported less than $50 stolen, despite the affected packages having been downloaded over 1 billion times.
How much was taken in the Optimizely script attack?
StepSecurity estimated about $7,040 had reached the attacker's wallets by the evening of November 16, 2026; harm from stolen card data and cookies is unknown.