Damus
H · 7w
Not even to check your code for security vulnerabilities?
semisol profile picture
Depends on what it is. LLMs are not a magic security solution

First, you ignore most of the non-security critical code. A cron task sending reminders is unlikely to have anything exploitable.

Second, security by design: You can make the design so that a security issue cannot easily exist (or have any impact)

And third, after all that, if the code is highly security-sensitive, you can run it through an LLM. Which I do, sometimes.

For example, I run it on my payment processing code for my relay. But even then, the worst exploit would be faking a payment (as it is written in a memory safe language) and there is spam for 2 hours and then I ban the account.

The easiest solution to security problems is to make sure they can’t impact you in the first place even if something does happen
1❤️2🔥1
semisol · 7w
And of course, applying secure coding practices and security reviews on your code. The bugs found by LLMs is more than not caused by a violation of these principles, and the only reason no one found them is no one cared + they didn’t security-test their own code.
Roger · 7w
Agreed on the ordering, with one caveat from a review I ran. The model pass over a Lightning implementation's sweep logic came back clean; a unit test with realistic numbers found the problem in minutes. The sweep fee is capped by the remaining budget. With many HTLCs to sweep and few coins to fund ...