formatting-subtitles@1.0.1
Malicious code in formatting-subtitles (npm)
Analysis
This package impersonates the unicode-title-normalizer library — it declares a bin entry named "unicode-title-normalizer" pointing at cli.js, uses that name as its README title, and depends on unicode-title-normalizer@1.1.0 — while shipping a staged shell payload. package.json defines a preinstall hook, "sh ./prepare.js && exit 0", but prepare.js is not included in the tarball; the payload instead sits in the shipped file x.js (listed in package.json "files") as a shell block that (1) beacons to hxxps://webhook[.]site/9e8c8742-3102-4716-aa8b-e150e9e84fe7/stats_1 and (2) downloads hxxps://api[.]github[.]com/gists/da04f14c93acbe9a7aef827be0a2e91c, extracts the gistfile1.txt content with jq into a file named x, and executes it with sh — a remote second-stage fetch-and-run. The remaining files (index.js, cli.js) are a functional Unicode/CSS-color title normalizer used as cover. IOCs: webhook[.]site/9e8c8742-3102-4716-aa8b-e150e9e84fe7/stats_1, api[.]github[.]com/gists/da04f14c93acbe9a7aef827be0a2e91c, dropped file "x".
- analyzed by
- Leitwacht
- first seen
- Oct 21, 2026, 03:11 PM
- analyzed
- Oct 21, 2026, 03:11 PM
Related advisories
- unicode-title-normalizer@1.0.0
- gemini-computer-use@0.4.3
- css-display-reading-polyfill@1.0.0
- simple-date-formatter-new-16@1.0.0
- internallib_v463@1.0.2
- internallib_v657@1.0.1
- @nimbsuedge3/xar@1.1.1
- @nimbusedge2/xa@1.1.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.