Hacker News new | ask | show | jobs
by cillian64 3 days ago
LLMs are generally most useful for things that are difficult to come up with but relatively easy to verify. That applies to attacks against cryptography.

Coming up with good cryptography is the opposite: anyone can come up with an (almost certainly really bad) encryption scheme, but verifying that it's good is really hard, and a lot seems to depend on trusting the person/people who came up with it.

1 comments

Why is it not easy to verify good cryptography, if you say yourself that attacks against cryptography are easy. I understand there's a gap between the two things, but by the premise you laid out, verifying that it is good _is_ easy to verify if you have an LLM doing the verification by attacking it.
It's the asymmetry of existential vs universal quantifiers.

To break a crypto, you just need one successful attack. To "verify"—as in, prove—a crypto is unbreakable, you have to—mathematically—show that it's impervious to all attacks (of a certain class).

We honestly don’t currently know for sure that any of our crypto algs are unsolvable. We only suspect they’re in certain complexity categories. Even if P!=NP is proven we seriously haven’t got a single today that we know is NP (if you did know a problem is in NP for sure with absolutely no algorithm that can solve it in P you’d also have a witness of P!=NP). If you see an algorithm that's 'proven to be NP complete' or similar anywhere there might still be an algorithm in P that solves it as well.

Basically our knowledge of complexity theory is so bad all of our crypto algs run on ‘well no one’s broken it yet…’. That works until someone breaks it.

So someone thinks of a new alg that no one else knows how to reverse yet. They publish it and it’s hailed as an unbreakable crypto alg in academic literature even though our current complexity theory doesn’t actually give us any way to prove unbreakability. Everyone’s doing the best we can given such unknowns but i agree with op but it clearly was easier to throw out algs with a statement of ‘no one’s broken this method yet so we suspect it’s not in P’ in the past. Now with LLMs we have a tool capable of finding optimisations (while you can’t prove an alg is in NP today you can easily prove it definitely isn’t if you find a more optimal implementation).

In light of a lack of P!=NP proof perhaps todays best option for being confident is ‘a frontier model spent X years trying to break this and failed’. It may take a few more years to develop that level of confidence in our current algs though.

As soon as you find a single exploit, you have broken the cryptography. On the flip side, not having found an exploit doesn’t make it secure, you just might not have searched well enough.
Right, and the premise is that LLMs are great at searching very well. Better than humans, it seems.