I wonder at what point it makes sense to have servers subscribe to a live service that integrates with systemd and just hard-kills apache, or nginx or whatever, if there's a vulnerability so critical that the service cannot stay up but also there is not a fix yet.
@mcc if the red team had the courage of their convictions they could use the RCE to build and deploy this autonomously
This actually is something I have always wondered. Why does no one ever write a vaccination worm. Hack a server via a known RCE, patch the RCE once you're inside, attempt to spread to a "polite" number of other servers, go silent and leave a README-WORM.txt in / explaining how the worm can be removed once present https://merveilles.town/@d6/117639337622339334
Approaching 40 years since the Morris worm. You'd think that would happen at least once
it's been proposed many times but the whole "but that's a crime to make unauthorized changes" thing kinda gets in the way
@munin soon it will be a crime to write software at all
@mcc not a worm, but i once put an unclosable popup window ~100 byte app (I wrote in asm) on an unsecured machine once saying to secure the machine. 😂
@mcc I am blanking on the details, but it *has* happened -- a dozen or so years ago, someone wrote a virus/trojan that patched up the hole.
Okay so apparently someone WROTE, but did not deploy, such an "anti-worm" in 2016 (based on hacking a disassembly of Mirai). https://www.bitdefender.com/en-us/blog/hotforsecurity/could-a-good-worm-save-the-internet-of-things-from-the-mirai-botnet It appears the repo is deleted from Github, but several forks of it appear to survive. Doesn't count unless you deploy IMO
@mcc The FBI has gone to court (and sometimes teamed up with security services from other countries) to get permission to disrupt botnets, which has sometimes resembled what you're describing. Might be a bad idea to do this vigilante-style, particularly if something goes wrong. Remember, Morris didn't expect his worm to bring down the Internet, he didn't anticipate the effect of exponentially increasing the number of copies.
Update via @luxliquida : GOOD GUY ALEXEY DID IN FACT PERFORM THE STRIPED-HAT ATTACK, IN 2019 https://www.zdnet.com/article/a-mysterious-grey-hat-is-patching-peoples-outdated-mikrotik-routers/
Not a worm because rather than being self-propagating he was just running a mass script from his own address, but to some extent I think it counts. He claimed to have nonconsensually patched 100,000 systems against CVE-2018-14847.
Update via @cesarb : Apparently the Wikipedia article on worms has a "Helpful worms" section and lists four white-hat worms seen in the wild, with a separate article on "Welchia" https://en.wikipedia.org/wiki/Welchia a worm which uses the same exploit as MSBlast, but instead deletes MSBlast if present then forcibly triggers a Windows system update (which at the time would have successfully closed the MSBlast exploit)
Did I ever tell you about the time I remixed the MSBlast worm. Not software wise, like a music remix. A friend asked me to write a cover of "Do You Like Worms" by the Beach Boys. I misunderstood and did not realize that was actually the name of a real Beach Boys song, I thought he was joking, so I recorded a song made out of a ring-modulated sample of "I Get Around" plus a repeating PCM audio representation of the MSBlast executable used as percussion. It was honestly only mildly interesting
@mcc It was wild when I realised that the line "Mister Dobalina, Mister Bob Dobalina" was from a song by the Monkees called "Zilch". And then you listen to the song and... what?
Apparently the Monkees were feeling experimental that year.
@TomF Monkees got weird at the end. Did you know about the movie they made with Jack Nicholson? Jack Nicholson didn't act in it, he wrote the screenplay. He wasn't even famous at the time, he was just some guy who knew The Monkees. He'd been on like, The Andy Griffith Show.
EDIT: Wait no I checked Wikipedia and he appears briefly (and uncredited) in the background in a diner.
@mcc @luxliquida .. I believe the FBI has recently done this as well (?)
@mcc but what happens when there's a vulnerability in the vulnerability-checking client
@jrose @danschnau It would still be a net positive as long as the amount of time sites are down due to misbehavior of the vuln-emergency-shutdown service is less than the amount of time you'd go down after a breach requiring postmortem investigation
@acsawdey Sometimes your enemies are able to do things to you and you actually can't stop that, you can only choose your response
@mcc
I think there was a payload that patched Log4Shell in affected Minecraft servers and clients, and it was actually used.
@mcc the system that ran that would get hacked and force shut down servers all over