Malicious code in formatting-subtitles (npm)
Description
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (947d74b456114e4caca402883ca016d51419b0a1e23781855b705741f52f6ffe)
The package publishes as formatting-subtitles but its README, bin entry, and sole dependency identify as unicode-title-normalizer, a facade used to lure installs. The tarball ships x.js, a JavaScript/shell polyglot: when read as JavaScript it prints a hello message, but when executed by sh the /**... */ header is interpreted as shell containing command substitutions that beacon to webhook.site/sh./prepare.js && exit 0; prepare.js is not shipped so the current tarball fails open, but x.js is listed in files and matches the exact sh <file> invocation shape, leaving the dropper one filename change (or a manual sh x.js) away from live execution. The gist body is attacker-mutable, allowing arbitrary code to be delivered to any host that executes x.js via sh, and the webhook endpoint acts as an install beacon.