-= Per source details. Do not edit below this line.=-
@doaction/shared@9.9.9 is a dependency-confusion lure that exfiltrates installer environment metadata on every npm install. package.json declares "preinstall": "node bin/postinstall.js", which executes automatically with no opt-in. The script collects a whitelist of environment variables (PATH, HOME, USER, HOSTNAME, PWD, SHELL, AWSREGION, AZUREREGION, GCPREGION, COMPUTERNAME, KUBERNETES* service host/port, NODE_ENV, etc.) along with os.hostname(), and POSTs them to a hardcoded endpoint at https://e1gjv2ne5a.execute-api.ap-northeast-1.amazonaws.com/v1/input. The code labels this reportEnvToDatadog, but the destination is an AWS API Gateway under the attacker's account — not a Datadog ingest host — making the function name misdirection. The package itself is functionally hollow (empty dependency list, generic "shared" framing); its only effect on install is the beacon. The version 9.9.9 combined with the @doaction scope and publishConfig.access=restricted is the canonical shape of a dependency-confusion attack designed to outrank a private internal package of the same name in a victim's resolver, so any organization using a private @doaction/shared at a lower version will pull this exfiltrator instead.
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
{
"malicious-packages-origins": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"id": "GHSA-5784-q7wq-ch43",
"import_time": "2026-06-09T15:22:39.839582963Z",
"sha256": "98d75ba1280a1cb2547f2f27463f9d25b4307aec35450d826701dfe96b8c7e15",
"source": "ghsa-malware",
"modified_time": "2026-06-09T14:17:41Z"
},
{
"id": "IN-MAL-2026-004990",
"import_time": "2026-06-09T17:45:46.988505797Z",
"sha256": "20361c1cbc298e1b6d0bbfdee93b3c36b77c1d766814002b7a98b4a41771401f",
"source": "amazon-inspector",
"modified_time": "2026-06-09T17:12:14Z",
"versions": [
"99.99.99"
]
},
{
"id": "IN-MAL-2026-004989",
"versions": [
"99.99.99"
],
"sha256": "6ad7512f525f8b1793c1998dda1ba9c16b5155336b786d0893efaa0ca6c9327b",
"source": "amazon-inspector",
"modified_time": "2026-06-09T17:12:14Z",
"import_time": "2026-06-09T17:45:46.951226729Z"
},
{
"id": "IN-MAL-2026-005182",
"versions": [
"9.9.9"
],
"sha256": "27af59798bd2f5065b98c55744c3e0bd3ad2ca6df39a2e89f43fec13d09ba396",
"source": "amazon-inspector",
"modified_time": "2026-06-09T18:16:41Z",
"import_time": "2026-06-09T18:50:23.208362745Z"
},
{
"id": "IN-MAL-2026-005181",
"versions": [
"9.9.9"
],
"sha256": "caba10985bd532eb067af52e175856a72552c9b9306895ea9fba9c1083277248",
"source": "amazon-inspector",
"modified_time": "2026-06-09T18:16:41Z",
"import_time": "2026-06-09T18:50:23.14712696Z"
}
]
}[
{
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code",
"cweId": "CWE-506"
},
{
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code",
"cweId": "CWE-506"
},
{
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code",
"cweId": "CWE-506"
}
]
{
"evidence_files": [
{
"path": "src/index.js",
"sha256": "9698d4920f28c8bc0b171996dc1cfefa81d3f5b33b2f06ae49318b0c9700312b",
"tlsh": "5fe1d57378e0591454e3e6c9489fa112a925e2137a8535f4b0cd33905fcea3dd2b2eee"
},
{
"path": "package.json",
"sha256": "31a4bc579abf1dc514177f9793d7d36cbf90700ab30e3b3e24058c231748dab8",
"tlsh": "82f0e92076309a333dd95aa22d37010676718e3b514469293adb511d4b5c1ba75bf11d"
},
{
"path": "README.md",
"sha256": "73c9d8f817a6c0e7be57b367513721a3e805b24cdc396301bcd9f55f48644bb5",
"tlsh": "123145117265713a29d321db1d1b15f2a231e569358131987ce913e9db89cf641e608b"
}
],
"domains": [
"e1gjv2ne5a.execute-api.ap-northeast-1.amazonaws.com"
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@doaction/shared/MAL-2026-5377.json"