Malicious code in ghazaly (npm)
Malware
Published
Aug 11, 2026
to the GitHub Advisory Database
•
Updated Aug 11, 2026
Description
Published to the GitHub Advisory Database
Aug 11, 2026
Reviewed
Aug 11, 2026
Last updated
Aug 11, 2026
Source: amazon-inspector (d2054792481618ddf941c251fc0793ec8c1b85fe14107567b5c29cac9330d5be)
package.json declares a postinstall hook that executes index.js on npm install. index.js requires os, https, and child_process, runs
whoamivia execSync, and reads os.hostname(), process.cwd(), and non-internal IPv4 addresses from os.networkInterfaces(). The collected host and identity data is sent as query-string parameters via https.get to a hardcoded Burp Collaborator subdomain (xghhv5sajm33m7krgi4n8my0mrsig84x.oastify.com). Package metadata is consistent with a dependency-confusion lure: version 99.9.0, empty author/description/keywords, and a nonsense dependency namedependencyfsdsfdsfgpinned to ^99.9.0.Credit: OpenSSF (source)
References