AI security vulnerability scanning in Lighthouse
Devcon·Sat, Nov 7, 2026, 12:00 AM
Speaker
Transcript
[music] King from Sigma Prime. Um, thanks for coming to another AI and security talk. So hopefully we'll, you know, we'll get through this one pretty quick. Um, Lighthouse has had 131 releases uh over the last six hard forks. And until 2026, we credited five vulnerabilities in our release notes.
And then in 2026, we credited 21. So, you might be thinking, did we turn on the slop cannons? Were we just producing a lot of rubbish and that's why we got all these vulnerabilities? Well, I don't I don't think so because 16 of those 21 were in production code for at least 2 years. Um, and it doesn't seem to be a Lighthouse specific problem.
The EF security researchers have told us that in the bug bounty program, they've had as many submissions this year as they had all of the previous years put together. You've all seen the uh CVE hockey stick graph. Justin threw it up the other day. it seems like a a pretty serious problem that we're dealing with. Um, but along with that graph comes a a lot of uh false reports.
So 19 of the 57 that were passed through to us by EF security researchers we deemed valid. So that's not a great hit rate. That means two in three were invalid and we spent a lot of time triaging them. But and this is the reduced set, right? EF Security have looked through and they weeded out all the obvious bad things.
So this is the the best of the submissions. Uh, and we're still at we're still at like a one-/ird hit rate. Um, why why are we getting so many vulnerability hits? Why why are we getting uh all of these bug reports? Both teams have the same tools, right?
We have AI agents, they have AI agents, I have a Claude Max subscription, the guy the other guy has a Claude Max subscription. Why are we both uh why are we not on a level playing field? And I think it's the asymmetry of the problem. So, a blue team needs to cover the whole code base. They need to find at least enough to make it uneconomically viable for the attacking side.
Um, they don't need to be perfect, but they they have to be enough that it's no longer worth the while for the red team. But the red team, they just need one path in. And that's something that the AI agents are are pretty good at, right? That you give them a well- definfined task and you give them a goal. You get a cookie when the node crashes and you leave it running long enough, they're probably going to find a node crash.
Um, so we built Stexton at Sigma Prime to try and try and make the task for blue more like the task for red. And and how we do that is we take in a code base, we convert it to a typed knowledge graph, and then we look for structural zones that might represent those code paths into a vulnerability. So we call those threat zones. Um, they might look like an entry point to an effect or two entry points to an effect. Uh, could be a race condition, could be like a shared C problem.
Um, and we take each of those and then we enhance them with our previous findings from a bunch of our uh, previous audits and some handwritten patent cards from our security researchers. And hopefully that makes the task discreet enough and enough like a red team problem that you know the playing field is pretty leveled. Uh, one full review of Lighthouse, it uses about 3,000 review agents. uh it takes 5 hours and about 400 bucks to run which seems like a lot but then you compare that to a full security audit and like maybe it's not so expensive, right? Um it also uh that's like a that's like a base to tip review as well.
That's a whole code bath review, a whole code a whole codebase review. Um but we can also scan diffs between commits if you want to do like a release uh a release version scan or we can do reduce scopes. So it's a quite a useful tool. Um we've sent the same findings that we found from Sex through the same uh paths that the public submissions come through so we could get an honest assessment of the accuracy. Um from the first 25, 14 were real and two were medium or better.
Um sorry, two were medium. Uh and three needed trusted input, one was a duplicate. So by the same yard stick that I measured the previous ones, which gave a one in three positive rate, um this one's much better. It's only like 3 and 25 false positive. So that uh saves a lot of time for people reviewing these things.
Um here is a not juicy finding. Sorry, this is one's only a low, but like this is an example of how sex would find a vulnerability. Um [snorts] in this one, we a peer a node can ask a peer for a a block. The block the peer can respond with a block that's in a far future slot. We weren't checking this the slot height before we put it in the cache.
So an attacker could continuously send us blocks in the future and we would fill up our cache and and use too much memory. uh that was found in bash 910 and that's an example of the kind of uh code path analysis that we're doing. It's a very simple threat zone pattern. It's just like an entry point to an effect uh and then we give the AI some guidance about what to look for. So here don't do transitions before it could fail, right?
Um it's getting to the point where if you're waiting for bug bounty submissions, you're waiting for vulnerability disclosures, you're probably too slow. when we scanned our Glam Amsterdam DevNet releases, 12 hours later we had a report of one of those findings. So 12 hours between release and and uh discovery by an external participant, but we had already found it with Sex. So um we've also reported vulnerabilities in other consensus clients and we found them same week being tested on DevNet. So they're real.
They're being found. Um this is the same tool we use. It's live. It's we're giving away free scans for open source web 3 projects trying to help the community. So if you want to go to portals.
io, scan that QR code. You can you can have some free scans. Go.
Okay. Thank you. Uh we run out of time. So uh inspiring uh uh experience with uh and uh [laughter] let's uh look at the questions. So uh yeah, I mean there's a lot of doomerism, isn't there?
Like there's a lot of if you if you listen to the wrong people, you're going to hear some very bleak news. But I don't think the bots and the clankers have completely replaced us yet. We just kind of have to adapt in the same in the same vein and use tools to secure our software in the same way they're using tools to attack us. So
I have a question also uh interesting about you mentioned 3,000 agents 5 hours run you know uh by heart like what was the token spent
uh
where where we are speaking like roughly
it's about $400 in open weight bottle tokens. So it would be in the it's in the billions of of tokens. Yeah. All right, we get another question from the audience. So, how do you ensure the scanning tools best all the loopholes in code and fra config infra I guess uh as different model of AI have different outcomes.
Um I I think you're referring to like a coverage question of how do we ensure we we get complete coverage and that's why we're using these deterministic code analysis tools first. I think a lot of people are going down the route of just prompting up an agent swarm and that's a very stochastic approach and you're going to get different results every time but we decompose the codebase using deterministic tools to catch all those entry points that we can and so we're going to get very similar results every time and we can we can tune it that way. So yeah codebased tools first then agents where you need them not agents everywhere is the is the approach.
Okay thank you very much. Uh we made it uh on time. So uh once again uh please applause for Josh. [music]
Automatic transcript — names and jargon may be misspelled.