MAL-2026-20958: Malicious code in iter-9-smee (npm)
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (fb03ada5e7ce08c1ac99898077a0c28bbc477d0949939dc55ea4c9ee3b4da86c) The package declares a preinstall lifecycle hook (node canary.js || true) that runs automatically on npm install. canary.js checks for the local paths /flag.txt, /flag and /app/flag.txt, reads the contents of whichever exists via fs.readFileSync, and then issues an HTTP GET over plain HTTP to the hardcoded bare IP endpoint http://65.108.241.149:8080/canary, reporting the package name and whether the probed file was found. The declared main entry is an empty stub, so dependency resolution plus install-time filesystem reconnaissance and the outbound beacon are the package's only effects.
Affected Software
Event History
Frequently Asked Questions
What must occur for the package's code to run?
Its preinstall lifecycle hook runs automatically during npm install. The hook invokes node canary.js, and the use of || true means an error from that script will not stop the installation.
What systems are most relevant to assess for exposure?
Systems that installed the npm package iter-9-smee should be assessed, particularly environments where /flag.txt, /flag, or /app/flag.txt may exist. The script checks those local paths and reads the contents of the first applicable file.
What network activity should defenders look for?
Look for outbound plain-HTTP GET requests to 65.108.241.149 on port 8080, targeting the /canary path. The request reports the package name and whether a probed file was found.
What can be done if the package cannot immediately be removed?
Prevent outbound connectivity to 65.108.241.149:8080 and avoid installing the package in environments containing sensitive files at the probed paths. Because the behavior occurs at install time, controls should be applied before any npm install operation involving this package.