r/linux • • Oct 15 '26

Popular Application Microsoft Releases Microsoft Defender For The Linux Desktop

https://www.phoronix.com/news/Microsoft-Defender-For-Linux-D
1.0k Upvotes

566 comments sorted by

View all comments

Show parent comment

9

u/gainan Oct 15 '26

one of the worst supply chain attack targeting developers:

https://tanstack.com/blog/npm-supply-chain-compromise-postmortem

What the malware does

When a developer or CI environment runs npm install, pnpm install, or yarn install against any affected version, npm resolves the malicious optionalDependencies entry, fetches the orphan payload commit from the fork network, runs its prepare lifecycle script, and executes a ~2.3 MB obfuscated router_init.js smuggled into the affected tarball. The script:

    Harvests credentials from common locations: AWS IMDS / Secrets Manager, GCP metadata, Kubernetes service-account tokens, Vault tokens, ~/.npmrc, GitHub tokens (env, gh CLI, .git-credentials), SSH private keys
    Exfiltrates over the Session/Oxen messenger file-upload network (filev2.getsession.org, seed{1,2,3}.getsession.org) — end-to-end encrypted with no attacker-controlled C2, so blocking by IP/domain is the only network mitigation
    Self-propagates: enumerates other packages the victim maintains via registry.npmjs.org/-/v1/search?text=maintainer:<user> and republishes them with the same injection

and the most recent one:

https://www.aikido.dev/blog/keyv-and-friends-compromised-in-npm-supply-chain-attack

the payload executes automatically the next time any developer opens the repository in VS Code or starts a Claude Code session inside it

2

u/arbyyyyh Oct 15 '26

And my boss wonders why I've gone years without using React/TS and have no interest in starting lol

2

u/gainan Oct 15 '26

lol. Nah, seriously, supply chain attacks have affected cargo, go modules, pypi packages, docker images and IDE and web extensions.

Hopefully, npmjs.org has implemented some features to make it harder for infections to spread

Other examples (targeting developers in particular):

trivy hack (~1000 cloud environments, aka organizations, infected): https://www.theregister.com/special-features/2026/03/24/1k-cloud-environments-infected-via-trivy-attack/5226043

shai-hulud (150 unique github organizations infected): https://securitylabs.datadoghq.com/articles/shai-hulud-2.0-npm-worm/

LiteLLM hack (more than 2500 organizations affected): https://www.cloudsek.com/blog/ai-supply-chain-breach-2500-companies-434000-cicd-pipelines

https://www.cloudsek.com/knowledge-base/teampcp-campaign-timeline

https://arstechnica.com/security/2026/08/authorities-arrest-2-alleged-members-of-prolific-hacking-group-teampcp/

1

u/DiamondHandsToUranus Oct 17 '26

Why is it always npm