I had a fairly lengthy thought the other day about the fact that if you have autonomous agents that actively try to break into any device on the internet and have already profiled systems for attack and just sit and wait for new vulns to be found and then automatically attack en-mass ... you are suddenly in a world where defenders now have minutes of turnaround time if they can't take their systems offline.
This means that almost all existing patching processes will be too slow, and programming languages like Rust are dead in the water because the extra compile time costs don't guarantee zero bugs and now the long compile times mean that you have to take the systems offline so using Rust or any other slow-to-compile language is basically denial of servicing yourself, and that is just the compile time, forget actually pushing patches through an open source maintenance flow.
My conclusion was that if your runtime doesn't support live patching or very quick compiles, then it won't be able to support high availability systems starting some time in the next year or so and the not for a couple years after that. And that is assuming that eventually all the bugs will be tracked down and squashed and then you could go back to using those runtimes, but only for software that you were sure didn't have bugs.
A happy thought if you like common lisp, otherwise, rather unhappy, depending on how many bugs you think are out there and how long it will take to find them.
The game isn’t to try to prevent all attacks, it’s to make sure any attacks that succeed don’t get access to everything. If your documentation website has a vulnerability, is it really as catastrophic as leaking the customer database?
Design your system in layers, assume some layers will be compromised, harden every layer and compartmentalize your data.
> My conclusion was that if your runtime doesn't support live patching or very quick compiles
A bad strategy.
I'd rather take a runtime that takes age to compile but guarantees me the surface of attack is bug free and indeed delivering on the security objectives. And if I need to patch or update anything, I'd rather use AI-driven development / review / analysis to guarantee all these objectives, redefining API if need be.
Secure bug-free systems are possible, but you need to design them accordingly, and this requires time. Going "fast" is never a good strategy. A system that you must update frequently is insecure by definition.
TBH, I'd be more worried about fresh npm packages than build times. I have my pnpm age set to 7 days.
If you think you need to patch every issue within minutes, you need to seriously rethink your defense in depth. Containerize, non-root, least privileges, etc.
If what you're saying is true, AI has basically destroyed the very infrastructure it relies on.
> programming languages like Rust are dead in the water because the extra compile time costs don't guarantee zero bugs
> My conclusion was that if your runtime doesn't support live patching or very quick compiles, then it won't be able to support high availability systems starting some time in the next year or so and the not for a couple years after that
I'm willing to take your bet on that.
As things currently are, I've needed to patch under-fire my PHP, Python, and Ruby applications like 3 times each in the last couple years.
Conversely, I've had to do zero patches under-fire for the much more complicated rust applications I run.
Want to compare how many times I've had to patch my rails and rust applications for a CVE under-fire in 3 years time, and whether the compile time made a meaningful difference?
I'd be willing to bet the number for rust will be 0, and the number for rails will be >0 because, you know, rust doesn't get you to 0 bugs, but it does seem to reduce real practical bugs significantly in practice.
That model assumes that the attack is known as soon as the attackers use it.
This assumes that the AI agent would detect any invalid actions such as for example a user looking at data from another user. At this point one could wonder why you would even write code because shouldn’t you let the AI handle all user requests? Seems a bit far fetched.
Projects like this Ring -1 Kernel Surgeon[1] might be worth looking into.
[1] https://github.com/alesha-pro/llm.asm/blob/main/04-ring1-ker...
They can only catalogue some of your systems. Defense in depth is really what is needed now. Chuck a few layers between the outside world and your core tech.
This future world is sounding more and more like Neuromancer...
> My conclusion was that if your runtime doesn't support live patching or very quick compiles [...]
LLM agents can already hot-patch programs at runtime, interpreted or not it's all the same to them.
I had a feeling you were headed for lisp. :)
You could also run two (or more!) completely different stacks, top-to-bottom. Doing tandem implementations of an app, and trying to ensure their dependency overlap all the way to the metal is minimal would be an interesting experiment.
If you have minutes to patch, pretty soon, you'll have seconds, then microseconds.
Your point is quite interesting, but I don't think that the compilation time will be a real differentiator.
(also, I believe I've seen Rust frameworks that support some kind of live patching)
If this really comes to pass, the winning answer won't be languages that are faster to patch, it will be hardened defenses at the edge. A hardened reverse proxy with a WAF would block most of the recently discussed vulnerabilities, especially if it could have rules updated quickly on the fly.
Likely, people won't all start using common lisp. Instead, they'll all start using Cloudflare.
I don't really buy this take. Is there anybody right now maintaining a large internet facing application who doesn't have a big ol' pile of unit tests? Especially since LLMs write so many (and rely on them to keep from writing junk).
It doesn't take long before running the full test suite takes multiple minutes.
What are people going to do, have the LLM keep tweaking prod in real time without even running the test suite? And this is going to be more durable?
Compile + run tests on a static language is often about tied with "just run tests" on a slower dynamic language, especially if you eliminate tests that you no longer need due to what was statically checked.
I'm imagining somewhere a sleep-deprived sysadmin is trying to patch a server, getting frantic calls from a desperate CTO at 3am on a Saturday while trying to rewrite some vulnerable piece of the backend, and, under the pressures of long compile times and an LLM-augmented attacker, turns to his junior and says "Fuck it, we'll do it in Lisp!"
Reference:
This is a world where attackers have infinite resources to do this sort of thing but there's no feasible whitehat path?
But also you can get patches faster than it takes to compile them?
People really like to make every single topic about Rust. I mean, at least that's better than making every single topic about AI. Giving me early-2020 nostalgia.
Almost no systems need to be proper "high availability" though. If we have a way to automatically get notified and get patched dependencies within seconds of a vulnerability being discovered, it's fine for almost all cases to shut down the server process and wait a minute for the incremental build and start the server again.
Now being notified within seconds and having the patch ready immediately is obviously a fantasy anyway so the whole thing is moot.
That relies on the assumption that vulnerabilities lie in known shared dependencies. This is them more of a tax paid for the ever increasing jenga towers of transitive third party dependencies that plague so many language ecosystems.
Why would using react have to add hundreds of impossible to audit dependencies to your web app? Why does adding libraries in a good project add dozens or hundreds of transitive dependencies? Why do we toletate docker containers wirh spftware built on a grab bag of different runtimes? Each extra bit of code from a third party is a potential liability because it can introduce shared, easily exploitable vulnerabilities.
Going full NIH doesn't prevent vulnerabilities, but mass exploitation becomes a lot harder if more stuff was built in house and based on an extremely curated set of third party components.
Sounds great! People can finally go back to analog
unbelievable that you were able to smuggle an anti-rust take into a discussion about strengthening software. these levels of hate have to be studied. :P
I think using a programming language that is memory safe without the downsides of garbage collection is a good thing. the idea that the future of cybersecurity will be llm's racing to hot patch software in real time, bound by compile times (aka security depends on a hot patch beating attackers by seconds) is absurd. even if only that each patch could create a new vulnerability. it's akin to your floatation strategy being to keep hammering planks ontop on holes in your hull instead of simply building a better hull.
what we need is verifiably secure software gatekeeping access between systems and the outside internet. we need strong type systems, memory safety, and perhaps some kind of formal verification, although this is not a necessity. it's not like LLMs provide some kind of attack vector which is undefendable. they're simply exploiting poorly constructed software, often built by underpaid developers in companies that prioritise the wrong things.
>you are suddenly in a world where defenders now have minutes of turnaround time if they can't take their systems offline.
ASSUMING: A single piece of internet facing software is your only security control, this is true.
>My conclusion was that if your runtime doesn't support live patching or very quick compiles, then it won't be able to support high availability systems starting sometime in the next year or so and the not for a couple years after that.
Ah but you take HA zone 1 offline as your SIEM reports the intrusion, and your SOC responds instantly. Push a change to your Web Application Firewall to block the string/pattern that busted it open and then launch HA zone 2 into production. (Assuming your WAF didn't just... see obvious signs of intrusion and block it automagically)
Or an IPS signature. (Assuming your IPS didn't just... see obvious signs of intrusion and block it automagically)
Oh, and compromise shouldn't matter because the vulnerable application is running in a rootless docker container? Right? Your application wasn't running with root privs on a full-scale production linux server, right? Right?
>only for software that you were sure didn't have bugs.
No, you need to assume everything is riddled with bugs and any 2 could pop up at any time. You need multiple overlapping security controls everywhere.
> […] programming languages like Rust are dead in the water because the extra compile time costs don't guarantee zero bugs and now the long compile times mean that you have to take the systems offline so using Rust or any other slow-to-compile language is basically denial of servicing yourself, […]
That's an absurd take. Analyzing the vulnerability, implementing a fix, verifying that it actually solves the issue, and testing that it works as intended is supposed to be shorter than the few minutes of compiling the binaries? Come on.
If it ever came to the point that the duration of a fresh compile became a serious issue when patching vulnerabilities, you would simply archive the target/ directory from the current release and do an incremental build from there. Now you're down to seconds, especially if you use a fast linker.
Your argument is really silly.
If the AI can find a novel vulnerability on every attempt, then live patching is useless too.
Live patching can only work if the number of vulnerabilities is finite, which in turn means having less vulnerabilities and logic bugs to begin with is better, because it means you are more likely to find most of your own vulnerabilities/bugs before anyone else.
[dead]
[dead]
...you are suddenly in a world where defenders now have minutes of turnaround time if they can't take their systems offline.
We've been there for a long time. There's always been a non-zero probability that your system is vulnerable, and there's always been a chance that someone might find the weak spot. Companies pay people to look in the form of bug bounties. They pay companies like Cloudflare a lot of money to be a reliable single point to block as many common vectors as possible.
What's changing is that it's being more sophisticated and automated, so now the little companies need the same defences, but if you're big enough it's always looked that way.
Coming up with faster and more lethal weapons is not the answer for a civil society. We come up with laws that enforce penalties for misuse and misbehavior.
It sometimes reads to me like a significant portion of HN is not aware that things like the Computer Fraud and Abuse Act are actually on the books now. A 2008 amendment put some serious teeth into it. You can go to federal prison for fucking up someone else's computer system. Even just a little bit.
I realize someone from a place like china can hack me with relative impunity, but the hacker cannot defy the laws of physics. If they cannot get a cryptographic response back to me within 80ms across any number of samples, I am going to assume theyre on the other side of my neighbor's LG television and block them anyways.