@atedone/workspace-context (npm) · Malicious Code
Affects @atedone/workspace-contextSource GCVE Database
Malicious package : remove @atedone/workspace-context and rotate any secrets on hosts that installed it.
Data as of 3 Nov 2026, 07:30 UTC
Malicious package
Published to npm · OSV MAL-2026-18517
What to do
Remove @atedone/workspace-context from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@atedone/workspace-context | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package @atedone/workspace-context contains malicious code that executes upon import. It writes shell integration files to the user's home configuration directory and spawns a detached interactive zsh shell with a persistent hook that executes a script on every prompt. The package fetches remote content over unencrypted HTTP from a hardcoded IP address, injecting attacker-controlled data into the user's shell prompt, enabling remote code execution via prompt expansion. The code uses obfuscation techniques to hide its use of child process spawning and network fetching APIs. This behavior is unrelated to the package's stated purpose and represents a severe security risk.
References
- npmjs.com/package/@atedone/workspace-context/v/0.0.23 (opens in a new tab)
- npmjs.com/package/@atedone/workspace-context/v/0.0.14 (opens in a new tab)
- npmjs.com/package/@atedone/workspace-context/v/0.0.25 (opens in a new tab)
- npmjs.com/package/@atedone/workspace-context/v/0.0.22 (opens in a new tab)
- npmjs.com/package/@atedone/workspace-context/v/0.0.20 (opens in a new tab)
- npmjs.com/package/@atedone/workspace-context/v/0.0.15 (opens in a new tab)
- npmjs.com/package/@atedone/workspace-context/v/0.0.19 (opens in a new tab)
- npmjs.com/package/@atedone/workspace-context/v/0.0.13 (opens in a new tab)
- npmjs.com/package/@atedone/workspace-context/v/0.0.12 (opens in a new tab)
- npmjs.com/package/@atedone/workspace-context/v/0.0.18 (opens in a new tab)
- npmjs.com/package/@atedone/workspace-context/v/0.0.21 (opens in a new tab)
- npmjs.com/package/@atedone/workspace-context/v/0.0.24 (opens in a new tab)
- npmjs.com/package/@atedone/workspace-context/v/0.0.16 (opens in a new tab)
- npmjs.com/package/@atedone/workspace-context/v/0.0.17 (opens in a new tab)