Do not connect it to the internet. Problem solved.
Basically anything in a social network needs to learn to defend itself against threats. Make computer a hermit, and it can go without updates for a long time.
(Oh, but you don't like that? Well, Microsoft doesn't like getting in the news for some worldwide botnet of all Windows 10 machines. I bet they'll figure this out sooner or later.)
Chris Granger (of Light Table fame) and his bunch at Eve are working on something like that. There are a bunch of presentations on YouTube. They are more looking at it abstractly as a possible programming / data model, than purely 'compile an Excel sheet to a programming library'.
https://github.com/RsyncProject/rsync/commit/30656c5e
Someone using AI to bisect recent rsync. https://github.com/themgt/rsync-compare-link-dest-341-343-re...
Someone trying to fix it with more Claude Code: https://github.com/RsyncProject/rsync/pull/930
Related ticket: https://github.com/RsyncProject/rsync/issues/915
I'd recommend putting in more regression testing in the commit before 30656c5e, and rebase it forward while keeping functionality.