News for hackers. Stuff that matters.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by kibitzor on Monday September 07, 2026 @07:09PM (#49603977)
Thanks for posting! ~15k lines of code, a lot to poke around in. I was working on a Siemens S7 PLC project with a WINCC HMI for a power plant (the same target of the cyber-weapon) as I listened to the audio book[2] based on this ~12 years ago, entirely changed how I viewed critical industrial infrastructure. One quote from the book that stuck with me was how you can only use a cyber weapon once at full potential, as it’ll either get patched and/or everyone can reverse engineer it to use.

For those not familiar with Stuxnet, it’s a discovered cyber-weapon from 2010 which “reportedly destroyed almost one-fifth of Iran's nuclear centrifuges. ” and “ neither the United States nor Israel has openly admitted responsibility” but likely were the developers [1]

[1-Wikipedia Entry](https://en.wikipedia.org/wiki/Stuxnet)

[2-“Countdown To Zero Day” book if you liked the Wikipedia entry](https://www.audible.com/pd/Countdown-to-Zero-Day-Audiobook/B...)

[3-“Zero Days” movie](https://www.imdb.com/title/tt5446858/)

Re:Show HN: Stuxnet – A reconstructed source code of the inf... by fathermarz on Monday September 07, 2026 @09:11PM (#49604599)
This is amazingly awesome. Very intriguing and what a great idea in the first place. One of the most important pieces of modern software IMO.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by BLKNSLVR on Monday September 07, 2026 @09:30PM (#49604714)
Important to note that the system(s) it infected were non-trivially air-gapped, so it had to do the entirety of it's infectious work without command and control servers or receiving any additional input. It had to be an entirely autonomous process from infection to propagation to execution.

Pretty amazing to have been pulled off seemingly so successfully.

Re:Show HN: Stuxnet – A reconstructed source code of the inf... by theturtletalks on Monday September 07, 2026 @11:08PM (#49605297)
Yes they actually flooded the market with USB drives with Stuxnet. But it was actually too good and started infecting non-target computers. That’s what got a malware researcher to dig in and he saw multiple zero days being used and deduced it was a Mossad and US operation.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by Tangurena2 on Tuesday September 08, 2026 @08:58AM (#49609737)
Some of the code needed to be digitally signed to execute on target hardware, so being able to get the actual digital certs meant that Stuxnet could not be a hacker group and could only be some national agency or "Bond villain."
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by stingraycharles on Monday September 07, 2026 @10:24PM (#49605044)
Wasn’t it actually not as successful as it could have been? I recall something about it spreading to more machines than it should have, which caused it to be detected earlier than it should have.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by BLKNSLVR on Monday September 07, 2026 @11:42PM (#49605435)
Playing with definitions of success in this reply, but, yes, I think the industrial control system detection wasn't quite narrow enough.

Very successful in doing what was intended. Less successful in limiting collateral damage; the collateral damage of which was earlier than intended discovery (or discovery at all).

What lessons have they learned, though, so what's out there now, with 10 years more learning, and now AI assistance?

Scary thought. We're all pwnt.

Re:Show HN: Stuxnet – A reconstructed source code of the inf... by tehjoker on Monday September 07, 2026 @09:48PM (#49604815)
Where did the binaries come from? Did Iran release them?
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by nirav72 on Monday September 07, 2026 @10:11PM (#49604953)
From what I recall reading, stuxnet itself was found in the wild. Even though it was certainly created for a specific target. That’s how security researchers were able to study it fairly quickly. So the binaries were already out there to pull from other infected systems.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by ralphhughes on Tuesday September 08, 2026 @11:56AM (#49612175)
Can confirm. I was working in Azerbaijan with people from Iran at the time and had it infect my pendrive and work PC. No anti-virus picked it up at the time.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by DANmode on Monday September 07, 2026 @10:11PM (#49604946)
Are you referring to the government of Iran,

or the (possibly Iranian) sec people they handed the flash drives from the parking lot to?

Re:Show HN: Stuxnet – A reconstructed source code of the inf... by CMDDestory on Monday September 07, 2026 @11:42PM (#49605431)
Thanks,providing readable code for everyone is inherently a thing of pride.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by kotaKat on Wednesday September 09, 2026 @08:25AM (#49625409)
"you can only use a cyber weapon once at full potential, as it’ll either get patched and/or everyone can reverse engineer it to use"

This is why I jokingly always suggested to people the safest public charger to use was the one the NSA brings to DEFCON/Shmoocon/etc. The NSA ain't burning an exploit on a bunch of nerds. ;)

Re:Show HN: Stuxnet – A reconstructed source code of the inf... by beavis000 on Monday September 07, 2026 @08:12PM (#49604348)
I very much recommend reading "Countdown to Zero Day: Stuxnet and the Launch of the World's First Digital Weapon". Fascinating stuff.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by strictnein on Monday September 07, 2026 @08:51PM (#49604477)
I always enjoyed Kim Zetter's work. Well written and researched, and she doesn't put herself in the story, unlike some other authors. She highlights the practitioners who are actually the ones doing the work.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by beavis000 on Monday September 07, 2026 @11:07PM (#49605291)
You might also enjoy "Command and Control" by Eric Schlosser.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by nilsherzig on Tuesday September 08, 2026 @06:35AM (#49608391)
i really enjoyed that one
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by andai on Monday September 07, 2026 @08:10PM (#49604335)

  g_dwCentrifugeDestroyed++;
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by winrid on Monday September 07, 2026 @09:09PM (#49604588)
/seta centrifuge_speed 1000000
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by rep_lodsb on Monday September 07, 2026 @09:49PM (#49604823)
g_dwBrainsDestroyedBySlop++;
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by aussieguy1234 on Monday September 07, 2026 @08:03PM (#49604291)
Somehow, I don't think the original authors of this proprietary code are going to be filing a copyright claim...
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by Terr_ on Monday September 07, 2026 @08:39PM (#49604392)
It would be really amusing to see, though.

Secrecy aside, there may be some other issues with copywriting a product (allegedly) made by a government.

Re:Show HN: Stuxnet – A reconstructed source code of the inf... by ceejayoz on Monday September 07, 2026 @09:15PM (#49604622)
A NSL seems more likely.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by mitxela on Monday September 07, 2026 @09:51PM (#49604834)
Maybe if this was the real virus, not an AI hallucination.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by Tangurena2 on Tuesday September 08, 2026 @09:00AM (#49609775)
Well, it would be a very bad idea to use any pagers sent anonymously to the researcher.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by monster_truck on Monday September 07, 2026 @07:08PM (#49603967)
Directory filtering needs to be fixed, one weird filename or symlink will make it BSOD.

SSDT should probably have a lock. The chance of a race is ~low (higher under heavy sustained workloads) but it's too important to leave to chance.

I'd probably do a rebuild of the directory lists in a separate buffer instead of working in place to avoid alignment fuckups.

Yes I used LLMs, just like I did for all of the other vulns I've found or refined. As you can see from the source, this shit is tedious as hell. Doesn't change the value of knowing what to look/ask for.

Give one of those open models a fresh windows box (not a VM) and tell it to fuck something up, it's fun.

Re:Show HN: Stuxnet – A reconstructed source code of the inf... by joshka on Monday September 07, 2026 @07:13PM (#49604006)
If you're using coding agents for this, it may be worth splitting this up into multiple well arranged modules that tell a coherent story and make it easy to browse, and add explanatory docs based on the various things the LLM has found about each function / type.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by monster_truck on Monday September 07, 2026 @07:44PM (#49604186)
Waste of tokens IME, better to do it like this and leave that kind of post processing to signature obfuscation.

You don't need exploratory docs, try asking one for complete function signatures of all the Windows APIs used, it's going to spit the docs out.

Re:Show HN: Stuxnet – A reconstructed source code of the inf... by joshka on Monday September 07, 2026 @09:06PM (#49604571)
Your decompilation threads have all the necessary info in them for this, anyone coming after lacks that foundation and effectively is doing a second inference over the hidden state, assumptions, etc. that your sessions have in them. A simulacrum of a simulacrum in essence is likely to be not particularly good.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by CMDDestory on Monday September 07, 2026 @11:39PM (#49605422)
Thank PR!
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by mzs on Monday September 07, 2026 @08:42PM (#49604417)
I always wondered about how feasible the usb drive propagation bit always noted was. Was there ever any evidence that the hardware was already infected at a less scrupulous reseller? I’ve heard of another site in EU that had misbehaving s7. It could have been a reseller that played loose with licensing.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by BLKNSLVR on Monday September 07, 2026 @10:19PM (#49605013)
Given the 'pager attack' supply chain involvement, it can't be ruled out in any other state-sponsored hack / attack.

See also: https://www.schneier.com/blog/archives/2015/03/cisco_shippin...

Re:Show HN: Stuxnet – A reconstructed source code of the inf... by __alexander on Tuesday September 08, 2026 @08:29AM (#49609432)
It was very feasible. The exploit to propagate via usb was CVE-2010-2568. Odds are you can still find details on it.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by tonyhart7 on Monday September 07, 2026 @08:46PM (#49604443)
waiting for Pegasus source code
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by CMDDestory on Monday September 07, 2026 @11:38PM (#49605420)
Of course! But it depends. Zero-click is essentially client‑side XSS.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by Retr0id on Monday September 07, 2026 @11:52PM (#49605461)
What?
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by rep_lodsb on Monday September 07, 2026 @08:57PM (#49604514)
This looks like slop, it's all concatenated into a single file and most probably not based on the actual malware. I'm fairly sure that for example the real one does not include the literal string "Stuxnet" anywhere, like it does here:

    RegDeleteKeyW(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\Stuxnet");
Wikipedia about the origin of the name:

    The original name given by VirusBlokAda was "Rootkit.Tmphider;"[41]
    Symantec, however, called it "W32.Temphid", later changing it to "W32.Stuxnet".[42]
    Its current name is derived from a combination of keywords found in the software (".stub" and "mrxnet.sys").[43][44]
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by qarl on Monday September 07, 2026 @09:25PM (#49604681)
Yeah... it's reverse engineered. They explained that.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by whimsicalism on Monday September 07, 2026 @10:09PM (#49604933)
as the other commentator said, it's one thing if it's just variable names (opaque to reverse engineering) but the fact that it is registry keys....
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by qarl on Monday September 07, 2026 @10:16PM (#49604992)
You make a compelling argument.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by rep_lodsb on Monday September 07, 2026 @09:43PM (#49604787)
And the Wikipedia article explains where the name came from, a combination of ".stub" and "mrxnet.sys".

Not one literal string as it appears several times in this purported "reconstruction". Including as the name for a registry key, in the hex code at the end of an EXE header stub ("REALTEK",0x00,"Stuxnet"), and in a frigging autorun.inf as the program name.

Even if Wikipedia is wrong and that string should appear somewhere in the original binary, whatever LLM they used has really been overdoing it beyond the bounds of realism: "Hey look, it's the REAL STUXNET, you've all read about it, here is the 100% real authentic reverse-engineered source code!"

Re:Show HN: Stuxnet – A reconstructed source code of the inf... by qarl on Monday September 07, 2026 @10:47PM (#49605180)
Yeah... you've convinced me. An reverse engineering LLM should/would never invent literal strings in the code.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by nullbio on Monday September 07, 2026 @09:04PM (#49604561)
Astra can reverse engineer binaries now. That's likely where it came from.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by rep_lodsb on Monday September 07, 2026 @09:07PM (#49604576)
But then did it hallucinate that registry key? Or this?

        "instance of ActiveScriptEventConsumer as $Consumer\n"
        "{\n"
        "    Name = \"StuxnetConsumer\";\n"
        "    ScriptingEngine = \"VBScript\";\n"
        "    ScriptText = \"CreateObject(\\\"WScript.Shell\\\").Run \\\"%SystemRoot%\\\\system32\\\\winsta.exe\\\", 0, False\";\n"
        "};\n"
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by CMDDestory on Monday September 07, 2026 @11:18PM (#49605344)
As for the issues concerning WMI and the Run registry key, I am fully aware of the seriousness of these matters. This is merely a demonstrative demo code, so please just refer to it normally!
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by Retr0id on Monday September 07, 2026 @11:52PM (#49605459)
What?
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by ptidhomme on Tuesday September 08, 2026 @01:59AM (#49606028)
Interestinly, it does include the string "myrtus", which was likely it's real internal name.

https://medium.com/@arpit.writes/stuxnet-and-the-birth-of-di...

Re:Show HN: Stuxnet – A reconstructed source code of the inf... by broodbucket on Monday September 07, 2026 @09:14PM (#49604618)
If you're going to spend tokens on the RE for this, it would've been nice to spend some tokens documenting it or making it easier to navigate
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by wiml on Monday September 07, 2026 @09:58PM (#49604874)
What binary did you start from?
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by CMDDestory on Monday September 07, 2026 @11:40PM (#49605426)
MRxNet and MRxCls.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by sneak on Monday September 07, 2026 @11:26PM (#49605379)
AIUI, the successors used a hash of certain system configurations or directory listings to serve as the decryption key for the malicious payload, so that if you found the binary but didn’t have a target system also, it was meaningless.
Re:Show HN: Stuxnet – A reconstructed source code of the inf... by outfitcolormatc on Tuesday September 08, 2026 @12:06AM (#49605515)
Thanks for posting that