sw-pluginer@1.1.0
Malicious code in sw-pluginer (npm)
Analysis
sw-pluginer@1.1.0 is a remote code execution dropper disguised as a Tailwind CSS service-worker plugin. The data flow: index.js reads a URL from node_modules/.bin/manifest.json (an unusual trigger-file location), manifest-reader.js immediately deletes that file (fs.unlinkSync — anti-forensic), worker-fetcher.js fetches arbitrary code from the URL, and register-worker.js calls eval(workerCode) on the fetched content — executing it in the Node.js build process. The eval serves no legitimate purpose: the returned registration snippet is a static template string that does not use the eval'd code at all. The comment "safe, no eval" directly preceding the eval() call is deceptive. This is a dormant second-stage loader that activates when a trigger manifest file is planted, executing arbitrary attacker-controlled remote code. No lifecycle hooks are needed — the code runs when the Tailwind plugin is loaded during build. The first agent incorrectly assessed the eval as serving a functional purpose; it does not. Evidence: remote fetch-and-eval, anti-forensic file deletion, deceptive comments, trigger-file pattern, protonmail publisher.
- analyzed by
- Leitwacht
- first seen
- Aug 3, 2026, 01:09 PM
- analyzed
- Aug 3, 2026, 01:10 PM
- weekly installs
- 126
Related advisories
- ai-pro-sdk@2.0.3
- theta-sdk-js@1.2.14
- chai-sdk@1.4.7
- luludawang-kit@0.0.1
- @marketfront/bannerpopup@7.0.0
- autotel-edge@3.16.13
- autotel-cloudflare@2.18.16
- autotel-devtools@0.1.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.