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.
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.
They can hack your neighbor's LG television, too.
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.
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: 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.
> 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.
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.
Also I don't understand how better type systems causing fewer CVEs is surprising to anyone.
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.
[1] https://github.com/alesha-pro/llm.asm/blob/main/04-ring1-ker...
LLM agents can already hot-patch programs at runtime, interpreted or not it's all the same to them.
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.
There's a primary system (3 processors, redundant), and a secondary system (2 processors, redundant). They use different CPUs from different manufacturers programmed by different companies. Any one of the five processors is enough to fly the plane.
(Looking for a good reference, I'm finding AI slop PowerPoint, public papers put behind paywalls, and similar headaches. I've read good references on this before, and now I can't find them easily.)
Seem an across the board problem. All the searches I'm accustomed from decades to bring up known primary well crafted definitive content are now coming back with poor flawed summaries and "but that's not all..."
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)
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.
Getting people who understand all of this and can run it and implement it is loads of money.
Vendor fees, each tool $500 a month and the one that will market itself “one tool for all” will take $1k and you still have to configure all yourself or have a dedicated employee.
Don’t forget token costs, all the tools will try to resell you tokens for “smart” parts or you can setup your own token burning machine that will integrate multiple tools but still far from free.
I don’t argue all of it should be free. I argue that there are bunch of businesses that won’t make any profit if they put money in cybersecurity.
There's another aspect here, from my experience. Enterprise solutions are often expensive and hard to develop and hard to deploy because they need to account for lots and lots of regulations (external or internal), not necessarily because they're technically complicated. Compliance, logging, rentention, etc are all money drains. Both in personnel and dev hours. SMEs don't necessarily need all that, but they could benefit from the tech aspect of such solutions being implemented.
Lastly, I'm a big believer of Saaspocalypse, and IMO a lot of them will find themselves on shakey ground if they don't "get with the times".
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:
But also you can get patches faster than it takes to compile them?
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.
Now being notified within seconds and having the patch ready immediately is obviously a fantasy anyway so the whole thing is moot.
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.
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.
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.