Supply-chain threat intelligence

Incident detail

criticalnpm·malware·osv

Malicious code in tinyparrot (npm)

tinyparrot

Risk score

92

AI summary

Indexed incident for tinyparrot (npm).

Description

The postinstall script src/build.js reconstructs the strings 'https', 'POST', and the destination host 'rnjkerbf.org/P' from integer-encoded arrays via base-decoders in src/const.js and src/helpers.js, then dynamically requires the resolved module and issues an HTTPS POST to https://rnjkerbf.org/P. The value of the response header 'm' is passed directly to child_process.execSync, so arbitrary shell commands returned by the attacker-controlled server run on the installer's machine at 'npm install' time. Errors are swallowed by try/catch to hide failures. The URL, HTTP method, and required module name are all hidden behind numeric-literal decoders to evade static inspection.

Technical details

Affected versions

=0.4.1

Indicators

  • affected version=0.4.175%

Timeline

  1. Advisory published
  2. Indexed by ThreatPkg

Related incidents