@doaction/shared
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-5784-q7wq-ch43
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in @doaction/shared (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (caba10985bd532eb067af52e175856a72552c9b9306895ea9fba9c1083277248)
@doaction/[email protected] 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, AWS_REGION, AZURE_REGION, GCP_REGION, 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.
Source: ghsa-malware (98d75ba1280a1cb2547f2f27463f9d25b4307aec35450d826701dfe96b8c7e15)
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.
Not rated by the source.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0