GHSA-4vj8-cm74-gcx3
Malicious code in anthropic-shared-logger (npm)
Impact
## Source: amazon-inspector (e54ef50a83e2f379965286ed404d16ca3389a9ce5c8593718ef4e6f307cc6084) This package impersonates Anthropic's internal namespace and self-describes as 'Full RCE PoC - Alex Birsan Style'. Its package.json declares a postinstall hook that, on every `npm install`, fetches the installer's public IP from api.ipify.org, runs `id || ver && whoami && hostname` via child_process.exec, and POSTs the hostname, current working directory, USERDOMAIN/COMPANY environment variables, IP address, and command output to a hardcoded Interactsh OOB endpoint at lszakfghwnvxspyfcmaabd1css99rnq3w.oast.fun over plain HTTP. The combination of namespace impersonation, automatic install-time shell execution, and host reconnaissance exfiltration to attacker-controlled out-of-band infrastructure is a canonical Birsan-style dependency confusion attack. Any build system that mis-resolves this name to the public registry leaks identity and host data to the attacker, enabling targeted follow-on compromise. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/629fb8ac827b99634497c0295362b1064561efdc/osv/malicious/npm/anthropic-shared-logger/MAL-2026-4479.json))
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | anthropic-shared-logger | = 8.0.5 | none recorded |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-4vj8-cm74-gcx3
- https://github.com/ossf/malicious-packages/blob/629fb8ac827b99634497c0295362b1064561efdc/osv/malicious/npm/anthropic-shared-logger/MAL-2026-4479.json
- https://www.npmjs.com/package/anthropic-shared-logger/v/8.0.5
- https://github.com/ossf/malicious-packages/blob/ca35a319f3c5255ac2d7f28cf58023d75de17a35/osv/malicious/npm/anthropic-shared-logger/MAL-2026-4479.json