News for hackers. Stuff that matters.
Re:Postmortem: TanStack npm supply-chain compromise by lrvick on Monday May 11, 2026 @09:38PM (#48103155)
This could for instance be injected into your .bashrc when you do an "npm install" of a package that has a deeply nested supply chain attack.

Then the next time you run sudo, phase2 triggers installing a rootkit, etc.

Re:Postmortem: TanStack npm supply-chain compromise by arcfour on Monday May 11, 2026 @09:57PM (#48103285)
Or you could also hijack it using $PATH search order with your wrapper to get existing terminal sessions too, there's a lot of ways to skin that cat.
Re:Postmortem: TanStack npm supply-chain compromise by lrvick on Monday May 11, 2026 @10:09PM (#48103369)
Endless ways, which is why I do not understand why sudo is ever used anymore, especially in production.

You do not need root to do anything in Linux these days anyway between Namespaces and Capabilities so there is really no reason for root to be accessible at all or have any processes running as root post boot.

Re:Postmortem: TanStack npm supply-chain compromise by GCUMstlyHarmls on Monday May 11, 2026 @11:34PM (#48103909)
I dont mean to be snarky, can you run `pacman -Syu` without root with "new" tech? Or do you mean in general on production systems or whatever?
Re:Postmortem: TanStack npm supply-chain compromise by lrvick on Tuesday May 12, 2026 @04:47AM (#48105789)
Plenty of package managers can install to an arbitrary directory like ~/.local. Each user, or even each project, can have its own rootfs full of software.

The only things I tend to have running at the system level are a kernel and init and maybe openssh.

Re:Postmortem: TanStack npm supply-chain compromise by Ferret7446 on Monday May 11, 2026 @10:15PM (#48103399)
That is one of many reasons to keep your dotfiles under version control.
Re:Postmortem: TanStack npm supply-chain compromise by lrvick on Monday May 11, 2026 @10:46PM (#48103610)
Someone that can wrap your sudo binary can wrap you git binary too. Once your OS is compromised all bets are off.
Re:Postmortem: TanStack npm supply-chain compromise by lpribis on Monday May 11, 2026 @10:26PM (#48103494)
How would that help? Unless you happen to check the dotfiles git diff before running _anything_. I guess this could be put in prompt or some cron job to detect diffs but I bet absolutely nobody does this.