That DLL hooks into SCADA and sometimes sends updates to a PLC controlling safety critical equipment. When does it send updates versus just query the controller? No one knows. The guy who wrote it died in an (unrelated) industrial accident involving a runaway forklift after leaving the company. Even so much as debugging it would require shutting down the entire factory and replacing all the crucibles afterwards ($$$).
[–] jasomill 4 days ago
The subject matter was building an auditing system to comply with the requirements of an IRS consent decree as part of a settlement for shoddy accounting practices which may or may not have included tracking billions of dollars of assets with Excel.
[–] RugnirViking 4 days ago
[–] jodrellblank 4 days ago
Ask an LLM to reverse engineer it and explain it.
[–] jacobgkau 4 days ago
> Even so much as debugging it would require shutting down the entire factory and replacing all the crucibles afterwards ($$$).
I'm guessing the fundamental reason debugging would require that isn't something an AI could get around. My guess is the LLM would immediately disregard whatever instructions you gave it not to cause having to replace all the crucibles, then say "Oops! You're right." when you point out that you asked it not to do that.
[–] wholinator2 4 days ago
I'm not saying it's easy, or worth anyone's time, but it should be possible right?
[–] mschuster91 4 days ago
AI will attempt to evade your sandbox.
The only thing you can do is ask the AI to do a decompile and have it summarize, or better, do the summary yourself.
[–] imtringued 4 days ago
[–] jacobgkau 3 days ago
Even if you use AI tools to assist, there's going to be a lot more manual work involved than simply throwing a prompt at a chatbot.
[–] jodrellblank 3 days ago
It's possible the company who made the industrial machinery used an "Indiana Jones film booby trap" and a kernel level anti-cheat system from the AAA GameDev industry to detect debuggers being attatched and deliberately damage the expensive factory machinery you bought from them so that you would have to pay them to repair it. But would such a technically capable company produce a controller using an Excel spreadsheet and Visual Basic? Seems more likely that it would be a fairly pedestrian C dll written by electrical engineers with an RS-232 interface and logic for reading/writing stepper motor state and temperature sensors.
Anyway, I didn't suggest debugging it live. "Can Claude code just from DLLs?"[1] - "You could've just pasted the DLL into Claude by now and had the results. Claude can read and analyze basically anything" and "Claude has done that a lot for my projects. Doesn't matter if it's a dll built with .NET or C, etc. Claude just figures it out, somehow."
Even if you don't start with `strings` and a decompiler and whatever, it would take less time to copy the spreadsheet and DLL into Claude and prompt "what can you make of this? What are the major functions in the DLL, when does it do writing vs polling? What else does it do?" than it would take to write a breathless dramatic comment on HN about how Mission Impossible the task is.
But ok let's say it was built by villains and it is booby-trapped and the DLL is encrypted, password protected, hardware dongle verified, but somehow still on Windows XP or whatever, and it is impossible to even copy or take a backup - plug the cable into a logic analyzer on its way to the machinery and capture the wire protocol. It's likely using a standard old-school serial connection with a known protocol and no encryption or verification. It's not like they need to tap a 1.5Tbps undersea fibre bundle.
[1] https://old.reddit.com/r/ClaudeAI/comments/1x28deo/can_claud...
[–] Ekaros 4 days ago