So thank you all for joining us. GM and welcome to this panel of Ethereum security in the age of AI. We're really going to be talking about a lot of opportunities in the space, challenges as well. And it really sort of combines the trio of what are considered as frontier topics, right? So we have AI, we have crypto, and one of the biggest things that's been impacted is cybersecurity. And we do have OGs in the space. We have Josselin from Trail of Bits, we have Mooly from Certora, we have Fredrik from EF, and we have the one and only Vitalik. So welcome everybody, and I would like us to start off with a very quick round of introductions about yourself and maybe sort of the key focus areas these days that you guys are paying attention to in the context of Ethereum security from an AI perspective.
Okay. Yeah. Hi everyone. So I'm a security researcher. I've been in the space for almost 10 years. I used to serve as engineering director at Trail of Bits. Now I am helping Aave with their onchain security. These days I spend a lot of time doing both code review and building awareness for Aave. So yeah, AI is definitely on top of my mind, particularly for cybersecurity.
Hi, I'm Mooly Sagiv, originally from Tel Aviv University, but actually in the last eight years working in Certora about formal verification, and now in the age of AI, and excited to be here.
Hi, I'm Fredrik. I do a lot of things, I guess, at the EF, but I focus primarily on security and especially protocol security, where there is a big risk, obviously, for Ethereum if there are major security issues. So there's a bunch of work being done using AI and agents to secure Ethereum.
And I'm Vitalik, and recently I've been trying to take a more broad and full-stack approach to security, and try to identify and find the paths to deal with security issues that fall outside of the kind of more narrow range of the Ethereum protocol. So that includes access layer security, that includes even dimensions of access layer privacy that we don't normally think about, and it even includes some things that go outside of the Ethereum layer and into things like operating systems and even hardware, and basically trying to make sure that we actually have all of the bases properly covered.
Great. So we have about 45 minutes for our panel, and the format I'm proposing is that we'll have a direct question to each one of you, and after the person answers, others please feel free to chime in. We want this to be an engaging discussion on this hot topic, and we would like the audience to be involved as well. We do have an online Q&A system called Mircat. So for people who can scan the QR code, feel free to post your questions there. And if you can't get the QR, then you can use your DevCon app and navigate to this particular session and post your question. You can upvote some of the other questions, and we should have about five or 10 minutes towards the end to take the most upvoted questions and have the panelists answer them. So yeah, so let's get started. The first question, Vitalik, is to you. You have expressed a lot of optimism about AI-assisted formal verification, right? I mean, even in the keynote this morning from you, from Mooly, a lot of others, there's a lot of optimism, but there's also a skepticism or sort of a fear from AI-accelerated math and its impact to cryptographic primitives, ECDSA and others that you talked about, and that's coming faster than expected, right? I mean, we talked about post-quantum, now we are talking about post-AI. So how do you think Ethereum is addressing these two sort of countering dynamics in its roadmap?
Yeah, I think my personal high-level view is that I am optimistic about the end state of cybersecurity and cryptography and all of these areas. But I am very worried about the transition phase, right? So I think ultimately at some point all of these math problems have some kind of lower bound complexity, like that's the minimum amount of time you need to break them, and at some point you get closer and closer to the limits of math and actually figure out what those are. And any individual program, I think, has some finite number of bugs and vulnerabilities in it. And we've been getting better and better at specifying our intentions in multiple different ways and then automatically verifying that they're compatible with each other, which I think is the best you can do, right? And the theory of kind of what we can ultimately accomplish looks to me kind of pretty bright. But at the same time, I think the challenge is that basically AI, and along with AI, you know, like math and the ability to hack into everything, is advancing faster than our ability to update existing systems and even our ability to make sure of the security of anything new that we create. And so I think at this rate of speed, basically there's a very difficult transition that's happening. And so I think because of that, there's this kind of all-hands-on-deck mentality that Ethereum and many parts of the online world need to be in for the next couple of years. And I think it will be rough, but I also think it will not last forever.
So yeah, so it's going to be a pretty rough transition phase, not just for Ethereum, but like you said, for really the entire internet ecosystem that we are seeing a lot of signs for, right? Fredrik, would you like to add something from the Ethereum ecosystem perspective?
Yeah, I mean, it is a big problem in many ways. I think there are many positive things with LLMs that we need to harness and utilize as defenders. But as defenders, even if we find a lot of vulnerabilities, we have some new problems now that we didn't really face previously. Such as in the past, you were, for example, able to kind of hide security fixes in commits that didn't really look like security fixes, and people would normally not really look at those commits and understand what it was. Today, it's quite easy to use an LLM to analyze each commit and figure out this is actually an issue. The same goes for if there's a patch for a closed-source application, they can easily reverse engineer the patches and figure out what's wrong. And when you have software which is critical and you need everyone to update as soon as possible, that becomes a bit of a problem that I don't really feel is fully solved yet. And that's something that the security community is going to have to work on. So essentially, security by obscurity has never been a thing, and everything is open by default or forcefully now, right.
Yeah, I mean, that doesn't work anymore in my opinion. Yeah, that's come to an end. And if we think about it, there is even like new threats that we were not considering before. Like for example, I think within the next 12 months we have some likelihood that we will see a breakdown of internet, like an attack on BGP or something like that, that could cause like a partition of the network. And what does it mean for blockchain, right? Like what if we don't have finality for a day on Ethereum? I don't think we have the day, like, you know, enough testing and the infrastructure to support this type of attack, but I think this type of attack might happen, you know, soon. So I agree. If I go back to your question, yeah, I think there is, maybe I'm saying here something which is not so popular, but I think in terms of the interim roadmap, I am a bit worried that this is a community, and I've seen it also in academia, we are going too broad instead of, like, especially in formal verification. One of the things we've seen, I work in formal verification and I work mainly in US-Israel, and we have people in Australia, and they did much better than us. And the reason they did, because they had this one project, seL4, that they focused on, and we were just jumping from paper to paper, and we publish a lot of papers. I think I'm worried that I'm repeating my academic experience now in the industry. We need to pick our battles, and we need to understand what we want to secure. Is it the wallet? Where is the end-to-end security? And then use testing for verification. Sounds like what we are seeing with the Ethereum roadmap, we are seeing that we are very broad, but maybe we have to pick up like how we want to have the most secure consensus protocol, how we want to have the most secure wallet. It seems like instead of it, we are approaching diversity. We want to handle all the programming languages. We want to handle all the formal verification tools. We want to handle zero knowledge. We have a lot of things where we are tackling privacy. We are tackling more and more properties. But I think, and again here I'm probably getting myself into trouble with some people here in the room, but I'm okay with it at this point. I think we are not focusing enough. And also with formal verification, like we are doing one step, and it's just a small step. We have seen with formal verification, the reason that seL4 was successful is that it went a long way, and going a long way and sort of taking end-to-end security is very important, and with testing, but this is actually, I think, more useful than we have seen all this diversity.
I think that's a very interesting point. So we'll definitely get back to that. So diversifying, maybe we're not going deep enough. We're sort of very swimming in the shallow end, if you will. So what you're saying is we need to prioritize, pick our battles, focus on a few things, and do a much better job at that. So we'll come back to that definitely from an FV perspective. But before we jump into that, maybe a question for Fredrik is from an EF perspective, right? EF has been running bug bounties and related audit competitions for the core Ethereum infrastructure for, you know, forever, right? And obviously one of the biggest challenges from an AI perspective is AI slop, right? Just spam in the number of submissions because, you know, everyone has access to, let's say, if you assume that you have access to an LLM, you generate something that looks really valid, but it's really on the verification side that you pay a lot of cycles to, you know, not dismiss something that is actually valid, right? So how has this sort of new dynamic changed things like triage, the signal-to-noise ratio, program effectiveness, and what are you guys doing? I mean, what is EF and generally the ecosystem doing to handle this?
Yeah, so I think there was a major shift after Christmas last year, around January this year. Before that, we received about maybe five external vulnerability reports per week. This came from people who had previously submitted issues that had quite deep understanding about the Ethereum stack and so forth. And in January, we started receiving 150 reports per day. And to go from five per week and triaging that to 150 per day was just not possible. So...
150x, one per day to 150 a day, right?
Exactly. Yeah. So this required us to do some changes. The first one, because 99.95% of those were zero issues. It was just AI slop, as you mentioned. They were sending whatever their agents said was a severity and just forward it basically en masse. So what we did to begin with was we introduced this system where you actually had to make some kind of a commitment to submit something. So in order to submit something, you had to burn the equivalent of $10 in ETH to a burn address. And this reduced the amount of vulnerability reports significantly because then people had to be sure that what they submitted was actually an issue, otherwise they might just lose $10. We still ended up receiving quite a few of them. So we built out this basically triage pipeline that would analyze all the reports. But this also ended up being a bit tricky because everyone sent different types of reports in different formats with different PoC setups, etc. So then we standardized that as well. So now when someone submits something, it's very clear exactly what they need to provide as proof of their finding. So, you know, depending on the type of vulnerability, that could be a Kubernetes setup that they need to provide as well as the PoC, so that the agent on our side can execute it and verify that it's an actual issue. And with that, we're back at a level which is very manageable, I would say. But it took quite some time to get all of those things through. And at the beginning, it was quite a shock to go from five per week to 150 per day.
So it sort of combined staking and proof of work, right? You have a $10 stake, and then you have to show a lot of proof of work to make sure that it's actually a valid submission.
Yeah. And it also helps the agents because the agents can, like, you can take your agent, point it to the bug bounty page, and the bug bounty page explains exactly to the agent what kind of proof it needs, and that also reduces the amount of false positives that the people actually get. They can actually verify themselves that this is an actual issue without, you know, spending maybe a week manually verifying it unless they have deep understanding of the Ethereum stack.
How long does it take typically to review for the pipeline?
It's a couple of hours per report. And the reason is that we do this cross-hunting as well. So if you submit something that's affecting one client, the agent or triage system will also check every other client to make sure that, you know, the same issue doesn't appear in multiple locations and so forth.
I'm curious, do you have a sense of the day? How many pure false positives do you receive?
Um, it's... what do you mean, that comes into the triage pipeline or just comes from...
After, after like all the triaging, any?
Oh, it's not many at all. I would say the false positive rate is probably, well, at most in the single-digit percentage, probably way less, probably below 1%. The reason is that it has such strict kind of guidelines to produce the package, so to speak. It's mainly, I would say, the main issue is that the agents that report to us, they tend to overestimate the severity. And the reason is agents want to please the prompter. So they might tell the prompter that this is a critical severity issue while in fact it's a very low severity issue. And then obviously we have to explain why this is the case, and that's maybe something I think agents in general can get better at. They need to be more like critics of their own work and figure out, is it actually, how severe is it? Yeah.
Interesting. So maybe switching gears and going back to formal verification. So Certora has been working on tools that use LLMs to generate formal spec from informal spec. And this morning you said, you know, the biggest problem is just getting that informal specification where the intent is really in the heads of the developers, right? How do you actually translate that? So Certora has been working on it along with other projects in the ecosystem. But ignoring the hype around formal verification, right? There's obviously a lot of marketing hype as well, you know, for it. It's been done for the last several decades, and the hype cycle has gone up and down. What do you think are the realistic near-term wins for complex DeFi protocols, let's say Aave, right, when it comes to using LLMs? And how do you sort of position that vis-à-vis the hardest problems that you mentioned, right? Incomplete spec, we have soundness, you know, potentially soundness issues that you said you're not really worried about. So you do have all the benefits, but then you have all the challenges. So how should the leading protocols on Ethereum, Aave, Uniswap, all these guys, how should they be using LLMs in formal verification?
I think it's an interesting domain and interesting challenge. So my understanding is that there are two things that can help them beside formal verification, and they are both equally useful: modularity and starting early. And basically our thinking is that, and we have seen it with, because for example, you mentioned that we've been working with them actually since V1, and the difference if you look into V4 is a completely different system because actually formal verification was already in the beginning. But before even they talked to us, they were thinking of modularity. So modularity, and actually when DeFi was originally planned, I think people were already thinking of modularity, but now in the age of formal verification, modularity is key. And I don't know, again, at the moment we are very conservative. We work with the client, the client working in Solidity and using EVM, but maybe we are, I don't know if the future will be like this. Maybe they will write their code in English and generate code in x86, I do not know. But at the moment we are very conservative, we are working with them, they are using the existing infrastructure, the EVM, but maybe the future is very different, like everything will be written in English, no more Solidity, no more... it's hard for me, I was wrong with so many things, but I think it's an opportunity, and it's specifically an opportunity for protocols that, especially now in the bear market, that they cannot afford an audit with teams like Trail of Bits or us, they can actually use the LLM and do an amazing job with our tool and others, Lean or anything. We can do a lot of things now. And the opportunity of using formal verification early, when we started this, I remember all the competitors were saying, get formal verification in the end and get a PhD. Neither are correct. You want formal verification in the beginning, you don't need any PhD.
So maybe, Vitalik, what would your advice be for the top, I mean, for any protocol launching on Ethereum or some of the oldest ones? How should they be thinking of formal verification?
Hm. I mean, I think the, and like, yeah, I think the first step is just understanding what are the properties that you want to formally verify, and again, I think LLMs are going to be super helpful for that. Then I think for anything building on top of Ethereum, you want to understand like what all of your components are and how security-critical they are, right? Because like one of the big patterns in application-layer security for the past two years is that smart contract security has already been getting pretty good, right? And the biggest losses and thefts and hacks that we have been seeing are either on the UI layer or on the layer of centralized components, or also potentially on the layer of like more complicated kind of components like ZK, right? Like we haven't had huge hacks from ZK, but you know, Nico has announced his vision that he wants to see the amount of private transactions going up a thousand x, and so that's also going to become more important. And you want to like try to prove whatever properties you prove over the whole thing as a holistic system, right? And not just look at the different components separately. I mean, I always advise as a starting point to like look at the formal verification work that's already been done on all kinds of different components, which includes, you know, like things like the Safe wallet, it includes like many DeFi protocols, it's going to include soon work that's being done in the Kohaku project, it's going to start including more and more the ZK work. I mean, also like really take seriously all of this UI security-related work, right? Because there are a lot of low-hanging fruit that don't even have anything to do with formal verification. Like you don't want to just make a UI that's served from your server, and if your server gets hacked even once, then like the users get a button that claims to do one thing and actually sends all of their money to North Korea, right? Like basically, you know, like really like properly look at the things full stack, right? It's much better to have a house where every single door is made out of brick than to have a house where three out of four doors are made of steel and the last door is made of straw, right? Because that's the door the attacker is going to go after.
Sort of goes back to Mooly's thing about sort of prioritizing, right? I mean, it's sort of countering that is, you know, we may sort of harden one of the doors, but then we leave all the windows open. But we'll, yeah, so I think, great, great point. So maybe with all this advice, I guess we are curious to know from Josselin, how is Aave thinking about this? I mean, generally the leading protocols, right? How is AI making you rethink your threat model and or even your internal processes, right? What are you guys doing? What should we be doing?
Yeah, so okay, there is a lot of things to impact on how we think about AI within our processes, but we know if we think about like the code itself, so we can obviously like AI can find vulnerability, you know, we know about it, and it basically lower the cost of finding vulnerability, so we can leverage AI in our own internal processes to do that. But I think we have to think a bit beyond that and also how we are building software. I think we can know it's still a bit experimental, but there's like this whole spec-driven development approach where instead of writing the code, you write a specification, like an informal specification, not a formal one, and then you use like LLM to write your code. This is something that I see people starting to experiment with smart contract. It's not there yet. I would not recommend people to go, you know, all in on that. But I think it's an example where we can think differently on how we are building software. These type of things will not probably work for any type of application because it's still like really involved with like how you are building software. Like if you're writing like, you know, some backend and things like that, in practice, I would hope people will use like specification, but they're not going to do it. However, if you're building critical, you know, code, I think that's an approach you can take. Formal verification will help, but I think it's important to also realize that formal verification will not necessarily prove the absence of bug because it's going to depend on what specification you actually have. The way I think about this type of technique, it's more about increasing the confidence you have in the system instead of proving the absence of bug, because for example, you can have a correct reasoning over an incorrect specification that will lead to an incorrect conclusion. So thinking about invariants, thinking about what your system is supposed to do is a way forward. I think.
To add something is that you're right, they start with the informal, but with the informal you can automatically even before generate the code, generate the spec, and we did it actually in V4, and in fact it saves time for the LLM too because the LLM get code which is less hallucination. So the fact, and also it's easier, we found that LLM writes code which is better than developers, it's more amenable to formal verification. So the fact that you before you generate the code, generate the spec in TLA, in CVL, in Lean, whatever, it will help the LLM.
It will help, I agree, but I think we have to acknowledge that it's not going to be bulletproof in the sense that there are things that you won't be able to easily express like in a formal way when you want to build any complex system. So, you know, it's going to increase your confidence, but it's not going to be the only solution that you can take. And this is where actually AI is really interesting because we can write an informal spec, and that's much easier for developer to think about and to read on, because if you have to write like a formal specification of something, even with AI, it is difficult. If you can write an informal specification which is a bit more wavy, that's a bit more accessible for like developer, I think.
I also think the prioritization part that Mooly spoke about is very important. And this is, if you take the Ethereum protocol for example, you know, there are some priorities that we have there such as post-quantum, which Justin and K have talked about today. There's an effort to formally verify more parts of the protocol. You know, on the user layer, we're thinking about things such as making sure that users are...