by tgbugs · 1d ago · 0 comments
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.
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.
This is the route that makes open weight models illegal and pushes for more geoblocking on the internet.
I.e. if you are operating on a "get me a valid signature", sure, easy enough to defeat with an untrustworthy proxy, but the content itself must be responded within the challenge, then the proxy is just another node on the traceroute...
I think the bigger issue is completing a challenge, and whatever associated computations, within 80ms...
They can hack your neighbor's LG television, too.
This all very well, let's pretend we don't have to worry about cross countries problems and stuff like extradition - right now we can still shut down the companies perpetrating these issues/make use illegal until we can better control these systems, but soon _there will not be a human to penalize_
It's not clear that you need superintelligence for this - once human level intelligences can self propogate, like a virus, they can and will live anywhere they can...
The people causing the real problem hidden behind proxies, living in non extradition countries, scamming hundreds of millions of dollars remain unaffected.
Design your system in layers, assume some layers will be compromised, harden every layer and compartmentalize your data.
1: Code is finite, so the amount of vulnerabilities will be finite.
2: Important code had already been refined and fixed for decades on end, so for important services the amount of vulnerabilities per line of code was already low.
3: Fable et al found additional vulnerabilities that weren't obvious to the many human readers of code, and these have by and large been fixed this year.
Unless there's another major leap in LLM capabilities coming, I'm not seeing it getting any worse than we've had this year.
And while one could argue that thanks to LLM we can produce a lot more code that may contain additional vulnerabilities (because apparently LLMs are simultaneously dangerous and able to find unimaginable vulnerabilities, but they also produce horribly broken slop code), there's two factors to consider; one, every new code written is written, reviewed and scanned by steadily improved models, and two, most code written will never be used anywhere critical. A new vibe coded web server won't dethrone apache, nginx, openssh or what have you.
1) The most dynamic/fastest thing with the least cost, like you said, will be just to turn it off. I suspect this might be the standard course of action, for the foresee-able future.
2) Compile time is the wrong metric. The problem is attack surface, so any strategy will need to focus on attack surface mitigation. There are two reasons I say this,
a) just because your runtime is dynamic and you can hot patch it more often, doesn't mean you are offering a better service - between the service that has to go offline every day or and the one that goes offline every month, the better experience is the one that goes down less, not more. I.e., it does not matter that you can hot patch your service, if that means parts of it are constantly crashing/coming down and up.
b) Patch delays are usually more about running fixes through verification pipelines. The fact you updated a script doesn't mean you didn't add a bug, a security hole, drop a feature, destroy some data, etc. I very much doubt the ability to hot-patch will be able to obviate any of these requirements.
3) Tied to my previous point, it's likely that attack surface will be minimized by lowering impact of failure - its great you can chain hundreds of exploits together, but if you still need that much effort to compromise a single node out of hundreds or thousands (of independent nodes), then it will matter less that you can do so. Possibly we will have some sort of cyber "immune" system, that can identify and react to threats, with purposeful variations meaning that no one bug can exploit all nodes...
4) As others have pointed out, a system that doesn't allow for bugs or security issues to be written in the first place should do better than on that can quickly mutate, but is as likely to have issues as the old system. The cost of deployment might be higher, but coupled with another strategy such as simply disconnecting an infected node, the longer verification period(s) should pay off.
> 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.
> Conversely, I've had to do zero patches under-fire for the much more complicated rust applications I run.
All those languages are memory-safe, so I'd expect similar failure rates.
As all of those languages are memory-safe, what is your explanation for why Rust applications had fewer CVEs?
Obviously Rust still makes plenty of calls to code that was written in C like libc or the operating system hosting it. But the other 3 do that and have tons of C in their runtime and stdlib on top of it.
For instance, it's much harder to end up with a SQL injection in Rust than in PHP. Similarly, the Rust type system is pretty good at modelling advanced protocols, so it's also harder to attack the lower layers.
Also I don't understand how better type systems causing fewer CVEs is surprising to anyone.
But Rust is also type-safe, with an extremely strong type system by mainstream standards. Used well, that’s an enormous benefit for robust and secure systems.
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.
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.
[1] https://github.com/alesha-pro/llm.asm/blob/main/04-ring1-ker...
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.
The problem is people keep shipping behemoth monoliths which do everything, and when you have a single process which has all of your capability, a vulnerability means exposing everything.
LLM agents can already hot-patch programs at runtime, interpreted or not it's all the same to them.
Likely, people won't all start using common lisp. Instead, they'll all start using Cloudflare.
I'd rephrase this a bit: it's hardened defense in depth available for anyone / faster to develop and cheaper to deploy than before.
We've known for decades that defense in depth is a worthwhile effort, it was just too expensive to do properly for most people. But with the current advances and new opportunities of cheap "build this but using y technology" some things might become feasible:
- imagine a key system, like auth, being run in parallel on two software stacks, and they both have to agree before you get your key. Besides some early teething pains, it should converge eventually, and today it won't be that expensive to both build and run. Have one run on your existing stack, and have agents port one to a complementary but different origin stack (say somethingBSD w/ go/rust running on arm hw). Just like they do in aviation with some critical systems, we'd end up having paralel systems that get to vote.
- just like we have 2fa we could soon see 2fi (intent) where a "waf-like" system has an overview of someone's session and actions within the network, and if things stray from the norm (i.e. anomaly detection overseen by agents) like bob from accounting suddenly looking at production code bases, a "ping" on the 2nd channel app or phone or whatever would go out - hey bob, are you really trying to do this? maybe with pretyped things like "fuck no, I'm in bed" or "yeah, whatever manager had me look into this" or whatever. Again, not perfect on its own, and probably not foolproof against a state actor, but still better than what we have today.
- defense in depth in general, with things like vpns, decision-model-based acls, zero trust, etc. all become easier to integrate and test in today's "claude pls wire this in, no mistakes" phase. And it won't be perfect at start, but the core thing about "in depth" is that no one layer needs to be perfect, you just have to put up enough layers to thwart the more basic attacks. Just don't become a victim of opportunity.
1. It actually didn't fail - it just turned into a service. Look at Cloudflare, Akamai, etc on one hand, and things like Azure WAF on the other.
2. The need has never been higher before. Many of the recent vulnerabilities could be stopped at the edge by a WAF, at least in the short term, while waiting for upstream patches. For example, Java4Shell attacks on base64 JWTs in cookies and Authorization headers could be stopped by validating the JWT was actually valid base64 first (with correct padding).
3. It has never been easier to maintain a WAF ruleset. AI is good at it, and when combined with 1, it should make the process even cheaper.
Don't get me wrong, I hate the centralization that using Cloudflare and the like brings, but it seems like a simple and cheap insurance layer given the rate of vulns.
Eventually this will all slow down, as AI finds everything it can find, and defenders begin to use this stuff internally before release, at least in the big public software.
You have to wonder about the closed source stuff though. Of course you're not seeing as many vuln reports against Fortinet or Cisco IOS or whatever, but that doesn't mean they aren't there nor that state adversaries don't have access to the code.
Also most services being behind a proxy or gateway already helps make vulnerabilities like the base64 to shell harder to exploit.
In practice, the CVE finding remains including the fear. We do need CVE rules with more fine grained applicability criteria. These criteria need to be embedded in the syntax of the record instead of in free form text if we have any hope of automating it.
But if by any means you can’t update PHP to get rid of that RCE then WAF is the solution.
I was skeptical about WAF as well but in current circumstances I would say if you don’t have WAF you should get one.
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.
Reference:
Back to the subject at hand, in the great (and strategic) scheme of things all of this doesn’t matter. Yeah, maybe some of the internet-facing apps will lose some 9s when it comes to being online/availability but then so what? The world will not end because of that, at worst we’ll ditch the centralization and revert to smaller things.
But also you can get patches faster than it takes to compile them?
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.
Now being notified within seconds and having the patch ready immediately is obviously a fantasy anyway so the whole thing is moot.
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.
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)
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.
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.
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.
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.