Re:Postmortem: TanStack npm supply-chain compromise
by eviks on Tuesday May 12, 2026 @03:45AM
(#48105396)
Why not make a proper link /sudo so you don't have to type out the full path every time, which is very inconvenient? (but the fact that such workarounds are needed still means it's a theater)
[ Parent
| on HN ]
Re:Postmortem: TanStack npm supply-chain compromise
by sinsudo on Tuesday May 12, 2026 @04:34AM
(#48105702)
Anything that can be modified by an attacker can not be used to secure the sudo command. This is a recursive requirementor hierarchy for secure systems.
Re:Postmortem: TanStack npm supply-chain compromise
by eviks on Tuesday May 12, 2026 @05:23AM
(#48105990)
You can set the permissions so that the attacker can't modify it?
Re:Postmortem: TanStack npm supply-chain compromise
by lrvick on Wednesday May 13, 2026 @08:10AM
(#48120879)
You would need to prevent an attacker from installing shell aliases, or shell config files, or altering any binaries in PATH.
Like, sure you could, but you end up with a very useless system.
Easier to just use VMs for each security context.
Re:Postmortem: TanStack npm supply-chain compromise
by eviks on Wednesday May 13, 2026 @08:14AM
(#48120911)
Is any of this specific to a link vs tyre original full-pathed sudo?
Re:Postmortem: TanStack npm supply-chain compromise
by lrvick on Tuesday May 12, 2026 @04:45AM
(#48105774)
A simple LD_PRELOAD command can cause your shell to run "rm -rf /" when you type "/sudo".
If your unprivileged user is compromised, you are pretty hosed.
Re:Postmortem: TanStack npm supply-chain compromise
by anthk on Tuesday May 12, 2026 @06:43AM
(#48106411)
It should be a way to make system env vars (profile.d or simlar) as readonly so every users' shell had these set to empty values and unable to change them.
Re:Postmortem: TanStack npm supply-chain compromise
by FooBarWidget on Tuesday May 12, 2026 @08:16AM
(#48107170)
I have a better idea, not dependent on whether shell is secure (which is endless whack a mole): https://news.ycombinator.com/item?id=48107092
Re:Postmortem: TanStack npm supply-chain compromise
by marshray on Tuesday May 12, 2026 @06:54PM
(#48115659)
Shell-only, but
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V...
Re:Postmortem: TanStack npm supply-chain compromise
by anthk on Wednesday May 13, 2026 @03:32AM
(#48118897)
Yes; I'm aware, but for some environments writting a custom shell as the one for SDF would be an easier task. Or maybe a really restricted "ash" called "rash" -because it is- with maybe autocomplete and that's it. Hardcoded $PATH and the like.