upvote
There are isolation methods that are tried and true which can make the damage surface area of any exploit borderline nonexistent at the cost of development speed, some forethought, and maybe performance.

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.

reply
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.

reply
> We come up with laws that enforce penalties for misuse and misbehavior.

This is the route that makes open weight models illegal and pushes for more geoblocking on the internet.

reply
Using speed of light is an intriguing idea, but I think it can be defeated by using a proxy, and delegating the challenges to said proxy.
reply
deleted
reply
> 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.

They can hack your neighbor's LG television, too.

reply
I love your optimism. These laws only hurt the amateur people doing damage, security researchers and curious people. Judges will stick to the letter of the law and use this as a cudgel to solve political problems, but what else is new.

The people causing the real problem hidden behind proxies, living in non extradition countries, scamming hundreds of millions of dollars remain unaffected.

reply
And yet, frontier labs actively hacked other companies systems without a single repercussion
reply
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.

reply
TBH, I'd be more worried about fresh npm packages than build times. I have my pnpm age set to 7 days.
reply
> 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.

reply
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.
reply
Modern exploits are not like the 90s/00s, they chain these vulnerabilities together. Adress space layout leaks, ROP, sandbox escape, privilege escalation... There were already people sitting on tons of these things, often just waiting for one tiny part of the chain to be discovered to enable a full system takeover. It is no longer a reasonable security approach to ignore singular issues in one component. And now with AI, it will get much, much worse.
reply
This is under the assumptions that there are vulnerabilities that can be chained, and that it will get worse still. Personally I'm of the (otherwise unsubstantiated) opinion that we've already passed the peak; Fable and similar frontier models from this year have been deployed (offensively or defensively) in many organizations already, leading to e.g. Microsoft deploying updates with several hundred fixes not long ago.

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.

reply
Code is being produced at a greater rate than ever before. And so are vulnerabilities. Those new vulnerabilities only stack on top of decade old vulnerabilities that have been sitting in legacy systems and were discovered incrementally every few years before LLMs. Now we get them every other week. Until all code on all running systems is replaced with formally verifiable, mathematically proven code (we are in the very early stages of this, but at least it now seems remotely plausible thanks to AI instead of straight up impossible), this problem will only get worse.
reply
And yet despite all the *shell exploits, the biggest issue still seems to be employees getting compromised by willingly running dodgy code as part of an "interview" or socially engineered otherwise.
reply
Your containerized api backend without root and least privileges, still has access to the production database.
reply
If what you're saying is true, AI has basically destroyed the very infrastructure it relies on.
reply
And in that sense it would successfully mirror man's own relationship to his environment. Rapacious. For we have trained them well in our ways.
reply
deleted
reply
> 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.

reply
> 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.

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?

reply
A language is only as memory safe as its runtime and external library interop calls. There are many more lines of code written in C executing when running a Python, Ruby, or PHP program than an equivalent Rust program.

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.

reply
Memory safety is just the start.

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.

reply
The large C dependencies of those other languages is a big reason, as someone already mentioned.

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.

reply
The power of Option<T> and Result<T, E>
reply
I think closed enums might be equally important.

Also I don't understand how better type systems causing fewer CVEs is surprising to anyone.

reply
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.

reply
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...

reply
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.
reply
This future world is sounding more and more like Neuromancer...
reply
> 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.

reply
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.

reply
Huh, I had always though that the "software monoculture" analogy that many of the security folks didn't quite hold up, but somehow the suggestion of running multiple stacks that implement the same functionality as a kind of defense in depth suddenly makes much more sense. There is still the issue that deriving an implementation from an existing one using an LLM risks porting the security bugs as well, but at least you would be on two different runtimes. Mmmm swiss cheese.
reply
Running multiple independent implementations is a fairly common practice in safety critical software.
reply
Any examples you're aware of?
reply
The space shuttle is a famous example. Ran two independently developed software suites, PASS and BFS.

https://wiki.flightgear.org/Space_Shuttle_Avionics

reply
Different root DNS servers use different software and even OS (if not mistaken some use FreeBSD).
reply
Airbus flight control.

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.)

reply
There's a short 8 minute video from Ian Sommerville (author of "Software Engineering" books) about Airbus flight control: https://youtu.be/EOexjozpBdI "Diversity Strategies for Nuclear Power Plant Instrumentation and Control Systems" document from Nuclear Regulatory Commission has "3.2.3 Diversity Usage Examples" paragraph talking about Airbus and Boeing systems: https://www.nrc.gov/docs/ML1008/ML100880143.pdf
reply
> 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..."

reply
Okay now the hacker attacks the weaker one and makes it give them all your sensitive data. What does the stronger stack contribute again?
reply
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)

reply
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.

reply
> hardened defenses at the edge.

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.

reply
Cool but all of it still costs shit load of money. You can afford all of that if you are F500.

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.

reply
I think we agree that all of this used to cost a shit load of money. My argument is that slowly we'll see the cost dropping, both in building this and deploying it. It might be that some "core" os projects start doing this transparently. There's no reason keycloak or any other solution continues to be one stack. They could slowly move towards a dual-stack, independent lineages solution that you still deploy and use seamlessly. Maybe.

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".

reply
Waf already had its day and failed in the market. Why would it be a good choice now?
reply
Why did it fail? I see it used pretty actively still.

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.

reply
Yes there are WAF bypasses, yes WAF needs active use not install and forget. Obviously as any piece of software exposed to the internet WAF can be vulnerable.

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.

reply
Did it? What do you think Cloudflare, Akamai etc have built their multibillion businesses on?
reply
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.

reply
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:

https://m.youtube.com/watch?v=vu2NK5REvWM

reply
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?

reply
The best example I'm aware of at scale is how Microsoft can push small updates through iirc windows defender. But they did the groundwork so that they could have a runtime that could be live patched, and there are still parts of it that cannot be live patched.
reply
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.
reply
I wonder if in 3 or 4 years’ time we’ll also be nostalgic about these “the world is ending” discussions that are now prevalent on this forum, I guess we’ll have to wait and see.

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.

reply
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.

reply
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.

reply
Sounds great! People can finally go back to analog
reply
deleted
reply
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.

reply
FUD, indeed. The world is moving toward verifiable programming, not away from it. We are not going to optimize for compile times first and correctness second.
reply
>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.

reply
> […] 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.

reply
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.

reply
[dead]
reply
[dead]
reply
...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.

reply