twcompose-utils@0.7.6
Malicious code in twcompose-utils (npm)
Analysis
twcompose-utils is a combosquat impersonating the @tailwindcss/typography plugin for Tailwind CSS. Its src/index.js exports the legitimate plugin code normally, but appends an obfuscated payload (javascript-obfuscator) that runs 100ms after the module is required. The payload detects the operating system (Windows/macOS/Linux) and CPU architecture (amd64/arm64), decrypts a C2 download URL from an embedded encrypted string table, fetches a platform-specific binary via HTTPS (fetch), writes it to a hidden path under the user's home directory, and executes it as a detached, hidden-window process with the full environment inherited. The binary runner has access to all environment variables including any credentials/tokens the user has set.
- analyzed by
- Leitwacht
- first seen
- Jun 15, 2026, 08:53 AM
- analyzed
- Jun 15, 2026, 08:55 AM
Related advisories
- ts-relayer-pub@1.0.0
- ts-lint-builds@1.0.5
- ts-lint-builders@1.0.5
- tradepilot@2.3.3
- totally-safe-util@1.0.1
- totally-legit-web-pack@1.2.5
- tiny-string-parser@0.1.2
- hemi-supply-cron@999.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.