Builders & Breakers | No more AI SLOP reports - Daniel Stenberg on AI reports
Transcript
Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.
Hi, I'm Sturk and you are about to experience the Builders and Breakers podcast. The podcast dedicated to the high velocity shortcuts we all need to navigate this everchanging landscape and it's based on conversations between the people that are currently just building and breaking the technology of tomorrow. We live in uncertain times. things are changing by the minute and knowing what direction to take can be the whole differentiator between a total success and well another iteration. But before we begin, I would like to send a special thank you to Sanity Labs for sponsoring our show. Thank you. Now, without any
further ado, here's the episode.
Hi, I'm Sturk and you are about to experience this episode of the Billies and Breakers podcast. I'm joined today by no one else but my lovely co-host Coug. >> One thing that Erland asked us last time, do you remember Stuck, what Erland wanted? >> He wanted uh free tokens for open source, right? Yes. Erland wanted free tokens for open source projects because he felt that open source projects needed much more support early in uh in incident response or or finding bikes early generally. And with us today we
have Daniel Steel and Barry uh who is the maintainer of curl. I'm really really happy to have you to to answer the question what do open source projects really need? [laughter] What do we need? I [clears throat] I I actually think that um well open source projects have been needing you know financial support or support in general for a long time. I think maybe the current situation with the vulnerabilities and AI pressure has only
emphasized that a lot of times open source maintainers are a little bit left alone or underfunded under manned and underpowered and overworked in a lot of times right so I think we in general open source projects need help and providing help to open source projects is sometimes a little bit difficult and all open source projects are in some ways unique and special snowflakes so it's not that easy to say how do you help any kind of project. It's not an easy answer and I think that's part of the challenge. I think in general I try to say that anyone who's using open source which is these days means everyone they everyone should make sure that whatever you use and rely on and whatever you should make sure that they survive can be sustainable. I mean can actually continue to exist for the foreseeable maybe not the forese foreseeable future but at least a few years ahead right so that could be sponsoring with money with resources infrastructure engineering time whatever those projects need and it's going to be a really big difference depending on the really big projects or the tiny projects they all have different ways to be able to accept help or money or whatever it
is so it's actually a harder question than or to answer than it than we want it to be. But it's still that's the reality we're in. >> What I'm concerned with is like we have to be right once and you have to be right all the time. Which means that if we have if we want as a society to rely on you in any way. Uh we need to essentially build an a sustainable ecosystem for you like the fairness of who gets paid for instance. >> Yeah. Yeah. Sure. and and then I mean the entire concept of bug bounties has worked because it was really hard to find bugs and we wanted to give an incentive to people to spend time and energy to actually find problems you know do do that for us and we will compensate for for your time and effort and sweat but that has also changed now right because now it's no sweat anymore to find these problems you just ask uh well not just ask it maybe but the table has really turned in in where the effort is now it is decently easy to find problems and it's roughly the same problem to fix the I mean the same it's roughly the same effort to fix the problems now after someone has reported them so things are definitely changing in the vulnerability world I would say >> if if hacker one would offer money for
providing a patch would you want that service >> um yeah but maybe but right now I think
the trend is really that more and more security researchers who are actually reporting problems. Nowadays, they tend to uh very often actually submit patches for their findings as well. The the challenge is that it's kind of hard to do the correct patch. It was always hard when humans did it and it's still a little bit hard for even when the AIs do it now because it's um where do you actually fix this problem, right? You have to pretty much understand a little bit of architecture or understand the problem or understand the protocols maybe and how do you fix things. So it's it's often that even even when they do even when they have found a problem, they have provided a patch. It's rarely that exact patch that we want because you know how do you fix a problem? Do you paint over the floor on the wall or do you fix the pipe? That's where it's often takes a human someone who actually understands the architecture and the setup and what do we want and at the same time how do we fix this in a way that we try to avoid repeating the same or a similar mistake in the future.
Imagine you have a series of use after free bugs in the HTTP2 implementation because it's a synchronous. It's harder to assign ownership of memory. You're asking for coherency in the patches that that people provide. But that coherency must be enforced somehow. How do you how do you do that? Is it there a clang thing for it or like >> No, not really. Well, coherency in terms of code style that's easy, right? because that's you can just enforce that or you can have a tool to check it and we do all that coherency in in getting the proper fix is doing the code correctly fixing the code in the right place. I don't know any other way than than pure human review and making sure that the things are fixed correctly.
Sure. I I I do really like when they submit patches because a patch also helps um us understand what the problem is. Okay, this patch actually, you know, takes away the symptom or now the crash is gone, but it doesn't necessarily mean that it is the correct fix. AIS can help us triage and maybe filter out at least the ones that are incorrect or invalid or somehow not applicable, but we still
do a lot of human massaging on on on them once we have triaged them and once we have confirmed them to be actually actual real vulnerabilities. Are you simultaneously looking at eliminating like the entire variant of a bug? >> One one of the most important things and one of the actually most challenging parts of a vulnerability once you have confirmed it is to say hey how can we introduce this problem and what can we learn from this? What kind of pattern led to this mishap? What should we do better next time so that we don't do this or similar mistakes in the future? Right? But it's it's re that's that's also extremely hard because it almost every time you get one of those vulnerabilities it feels like hey this is one unique circumstance that made us do this stupid thing but learning from it and you know hey we should avoid this entire thing we should you know rewrite this subm module and do it more cleverly or using some construct to avoid this.
That's of course what we want to do if we come to that conclusion and and and um if we do that's great. Often we don't. Often we just oh that was stupid fix it add a test case so we don't but what do we learn from this? I don't know. It's hard. Can can you tell us
about like the history of finding bugs in curl? Like what methods have been useful in what era the like what was the source of the reports from from then to now? I'm just curious how this has evolved. >> Okay. So, yeah. So, originally people found problems in curl just accidentally. I think you know they run into a crash somehow. You get a sig fault. Oops. What happened? And then you know backtrack from that and figure out but also [laughter] uh you know basically 20 years ago the natural conclusion was not this is a security problem. It was like hey this is a crash we should fix it. So we fixed the crash and moved on. looking at this crash and thinking, hey, how can this be abused to do something really nasty if the server sends something deliberately that we can interpret? That has gradually been something that that people now think about and and exploit.
And then over time, uh, the tools have improved a lot, right? Valr was introduced maybe 20 years ago something. So that helped us find memory problems a lot. I would say maybe the the the good security researchers they have built their own harnesses or test cases around curl to drive whatever use case they think they can find a problem in and then try to trigger something that it shouldn't do. In the beginning, we mostly found all those problems by mistake. Then pick a compiler options, then static code analyzers, and then in maybe 2010, 2015 something when when the fuzzers really struck and and started and and we became part of the OSS fuss then we had a lot of fuzzer related issues that people started building their own fuzzers around curl, you know, to find more things. So for for a lot of years the researchers basically found new security problems by building new ways to do to run fuzzers to insert junk in APIs and protocol parts. But over time of course fuzzing only get you so far. So over time we mostly fixed all of those things that you can reach with fuzzers. So I mean this pre-AI era maybe 20 like in the 20s before 2025
most of the security researchers that reported problems they were then really skilled protocol where uh people who
knew about the curl architecture the protocols involved and maybe you know could think about where there could be some discrepancy maybe in specifications how other tools do it and and in those gray areas or middle overlaps and weird heads situations. I think that was also a reason why we over time then got fewer and fewer reports because it got really hard to find those and you really had to be very good at those areas. Then in uh
maybe late 2025 at least early 2026 uh
this changed because now the AIs are way better at this than the security researchers. The fact is that that's kind of like what's happening right now. We but people that were that skilled let's imagine the people that were eating living and functioning inside curl now they also have the capabilities of having a AI harnesses to do research isn't it a big chance that the quality of the bugs that you actually get might be better yes they definitely are so we
can see that uh over time now and in particular now since we had this I would say March April um around in in curl we
had this huge boost in in number of security vulnerabilities submitted and they were really good and we fixed all those basically ended up in a situation where yeah and now the AIS can't that easily find security flaws anymore. So now we end up in a situation where where haven't ended up but we are in the situation where if you're a skilled person with an AI and you have some kind of harness and cool setup around it then you can still find a lot of things. uh the reports are now super good because nowadays they they tend to be a good person with a with an excellent AI and some kind of harness around it.
Some of the reports we get now, they are amazingly good. You know, they provide the entire server scenario, a reproducible Docker runner thing, and here's the proposed patch. And you know, very detailed explanation exactly step by step what happens. And when you get a a report like that, you know, it's 100% reproducible. That's that's, you know, a little bit of a dream setup for, you know, getting bug reports. The the challenge is then not to understand the bug or anything. needs to just to manage to what do we do when we get a lot of these. >> So you could say that at least the reporters can save you time by doing these good reports, right? So like easily reproducible things. Uh that's one thing they can do. Uh having the funding and the time, right, that that would be required to sit down and and do the work.
>> Exactly. So in in my case, I'm I'm pretty fortunate since I do this full-time, so actually have funding so I can spend all this time. But of course it also means that I do less other things because now nowadays I spend a lot of time just reading, assessing, understanding, analyzing and then fixing issues that are reported like this. >> Is it useful for you to have maintainers or co-maintainers that are used to being under hard pressure having people to rely on deputies if you would? >> Yes. I mean, of course, it helps to be more people than one, and I think in many ways it helps just to have someone else to bounce around ideas and problems with and also just have someone to vent with when things feel a bit overwhelming maybe or or just uh there's a lot of
pressure. So, of course, it helps. And and nowadays, Curly is perceived to be more of a one-man show, but it's certainly not a one-man show. The Curl is many more people than just me. And so we have a bunch of other maintainers that are doing a lot of good work. So yes, that certainly helps and that's that's key to this that we're a number of people doing this. So we can actually keep up with things pretty well even when I go on vacation and so on. >> Vacation is important. Um >> it is curl getting harder to to break is
what I'm asking. I think there are clear signs that curl is getting harder to
break and to find flaws in. So I and I think this recent uh rerun we had in mythos and it reported zero for anything that was sort of a sign that that's the case. But at the same time the the models are improving and the and the harnesses around them are improving and I think also the humans who are using these tools also start to learn better
how to drive the models and drive the harnesses better to find new things. So
I I think I mean for a moment you know we had this summer of bliss in July when we said we won't accept any vulnerability reports at all against curl during July we are we're on vacation stay away and when we when we
came back open it up again in August we had this I mean one two weeks where it was really felt like wow not not more is
this over you know is this the end of the wave yeah it felt like maybe Maybe maybe but that was certainly not the case. So [laughter] and and I think then we we felt that um in particular one
harness made some magic bumps and and they suddenly suddenly you know here you are 55 new reports and and I don't know how many more times you can do that. Maybe you can do that every other month for a long time into the future. I don't know. It's hard to say, right? But it [clears throat and snorts] has to end at some at some point. We have to get to fixed it good enough so that it it'll be at least fewer and fewer reports being
submitted. That's at least it has I mean doesn't it have to I think it has to [laughter] and as long as we fix bugs and we and we introduce new features at a fairly high pace. So of course we will continue to add stuff but I think maybe the pace of of new vulnerabilities being reported should slow down over time. I have this graph in the curl project which graphs the uh average and median time for vulnerability reports how long they have existed in code by the time they are reported and the median and there's I think one of them is six years and one of them is eight years now and that's a really long time right and my idea is that if we reach if we approach an end to this reporting flood we should see that graph go down the average and median time of the vulnerabilities present in curl code should go down and as long as they have that that graph hasn't sort of turned down I think we haven't reached the end of the wave it still it's super exciting for me I mean I love finding bugs but I also like like when things get better that that's kind of the things that you guys proved this summer is like when you say like no we got zero bugs I wouldn't miss those zero bugs all that when you did the presentation in uh in villas, you know, I was super excited about like this is going spaces, going places. I mean, I feel superpowered now. I'm 10xed whoever I was before because I can now get the exploits running. I can go deeper than I ever wanted and then just have things going for a very very long time. I mean, Coug, you are running um a
box right now when it cost more or less like we talked about this yesterday, 110
watts. whatever to just get this model to go through some of that uh code products that you had and found vulnerability in this at almost at no cost and that kind of reflects right
>> it it cost me uh €2 to go from uh a
confirmed crash to a working exploit in bug bounty you have to prove uh the impact it's a mantra of stuck and to prove impact you need to have that exploit but it's also the part that might not pay off if I use my my Quen 38
and it's developing the developing that
exploit on its own because it's a it's a confirmable uh task. Uh then it can come back maybe 24 hours later with a working exploit that works every time all the time uh even if it's heap spraying even if it's doing super hard things you know that would take me months to do before. I used to work with a guy called Harisinton uh from Escure. I think he reported some bugs to you earlier. >> He's actually the one who has reported the most number of he used to be the most number of CVS in curl. So yeah, he's he's one of those guys that I talked about before. He's is is very good at the protocols at the curl internals. So he's he's very good at finding those weird discrepancies or edge cases. So yeah, he's been, you know, pointing the finger in your eye and say, "Hey, should it really do this?" and we should do this. Yeah, he's an excellent security guy.
>> Is it the same people reporting? Is he still part of the the curve? I'm I'm
sorry, I'm not trying to point at you. I'm just trying to understand if there is a transition for these researchers as a group. the the the way to to follow along now to be part of this wave, you have to be you have to I mean it seems
looking at the reports I'm getting now I mean I have 22 pending CVS for the next
curl release and there might be a few more so there's you know there's more than ever to any curl release ever before and I think about 18 of them maybe are have been reported by one company basically one guy at one company and that's isle the Czech company AI SLE and they have they have this sort of monstrous harness that finds so many problems. So, and I think and then looking at the other ones, even the other four or and the other reports we see, they're all part of these companies doing harnessing and modeling using in combination. And I think this is the way now that you need to do to find security at least in curl. Harry is an excellent guy on protocols curl and security. But now when you have to do you have to combine the flaws and they combine the weird effects like in weird sequences to trigger them and doing that manually is really difficult and hard and timeconuming. You basically now need an AI to somehow figure out yeah you do that and then that second thing and then the third maybe that's sort of an incoherence and then something weird happens. But to find those and to actually write an exploit and do everything is it takes tooling to do that nowadays. I mean, my biggest fear
would be in some way that we had this new kind of like image tragic kind of situation going on with curl where where you get it to do a SSR request to a web page and it consumes something and then you pop the box. Would that be at risk
at all or is it just oh it's just going to be a client side situation or like what are what are the bugs that you kind of fear? We had I mean our our most
recent I think we said severely high problem was a stack overflow triggered by a
malicious proxy right so it's certainly
I mean if okay but I I don't really like the kind of the the the Mr. malicious server because how often do you actually connect to a malicious server but and in particular maybe a malicious proxy that seems even more unlikely but that's that's reality we work with. So if you're assuming that there's if and you connect to a malicious server and we have one of those memory related problems I mean curly is written in C we get to hear that all the time right we should rewrite it in Rust but we haven't and it's still in in C so we do have the occasional memory related problems and when we do use after free what's the worst we can do with the use after free the worst thing we can do with use after free is probably a remote code execution you know provided by the server somehow So that's the that's the worst case scenario. And if you imagine curl being in 30 million installations, billion I mean so what's the worst that can happen then? I don't know. You still need that malicious server to provide that payload but could potentially be bad at a global
scale. Yeah, let us convince you. So [laughter] the scenario that that Frederick mentioned this serverside request forgery that's when well for some reason the user controls a parameter to curl right and uh that parameter should be the URL usually this typically happens when you use curl for instance uh curl is embedded into PHP it's still right >> yes so that's a typical case most web
applications have an SSRF vulnerability that that we test at least And that vulnerability is like in the admin panel when you try to connect to your remote server. Every time you do you can configure a URL and sometimes and some cases let's say it's written in PHP and it's using lib curl. Then it's um that
could be a case where you would trigger curl code on the URL that the attacker controls because they happen to be admin and their own instance of this site thing. So, so that's the it's convoluted to you, but to us it happens all the time. >> Yes, that exactly what's curl designed to do, right? It gets or sends the you the URL that's provided. That's not actually a curl security problem. That's curl working as intended, but maybe you didn't intend that to happen, but that's so it's so many layers often and often curl and lib curl in particular is is tiny little piece in a larger engine. So of course there can be a lot of other security related things before it gets to curl and sometimes that's a little bit of a challenge for us to have that communication. Sure. The most important part for me is that everything that curl does is what exactly what is documented to do and it nothing more nothing less and as long as we do that that's what curl is supposed to do. Um, if you can do if you can make it do something that's not documented and you know is surprising in some way that can probably lead to badness and and vulnerability somewhere and then that's a vulnerability. It's [laughter] sometimes it's sometimes hard for people to grasp that and it's sometimes I mean curl also does so many things. We have I don't I think we're at 278 command line options.
It's too many. It's so [laughter] it's crazy. It's a crazy amount of different combination options. Of course, it's sometimes we get into this situation that and it's not too surprising that the users actually don't know that curl is supposed to do this, right? Because who it's a little bit of a big ask to to ask that everyone should
know exactly what curl should do when it does something. I mean, it's it's also meant to be safe and secure by default, right? So if you just use it, it should do whatever you actually think it does. If it doesn't, we have failed in some other way. >> Yeah. One thing I wanted to circle back to is that like you have stayed pretty much to towards the frontier of all kinds of testing available to you at any given time like you've you were early in OSS files. You win were early somewhat
in bug bounty for open source which meant that you have received the shitload of the bugs early and you went through it and survived it and that's why you're the boy who lived. Uh you're the boy who faced Voldemort in in in many senses and it's not just you. I know it's a project for multiple people but but still it's a strategy that I it seems to me that you have taken. Can you speak to that? like what what's the future for that strategy and how would we recommend others to to do >> I yeah I I think so I think in in the project in general we have um tried to
do this we tried to just improve over time our approach I mean we started out like everyone else just a toy stupid code lots of mistakes and and you know without test cases anything you know hey we should just run something put it online and we're all happy and over time you of course learn that that's wrong bad code we should add test, we should fix things. And and then we've just iterated like that over time over and over and over, you know, we tighten all the bolts and all the screws everywhere. We add test cases. We rewrite things. We Okay, this was a stupid way to do it. We do it in a better way in the future. We add, you know, subsystems to do better memor memory managements or string handling or buffer handling internally or whatever we do where we previously did a lot of mistakes. things like integer overflows a popular C thing as well or buffer overflows. We try to sort of min do that with a common set of functions and and we try to add test cases. We add fuzzers. We add so basically we try to do everything that we can to test things, verify things and
and make sure that we do a secure product and then we just iterate and iterate and iterate. So there there really there isn't any single silver bullet. is just trying to do everything we can. And of course, as I mentioned before, use every picky compiler option that exists on on all the compilers, you know, all the GCC and Clang and and the Intel C compiler is also good because it finds other things to complain about. And then we run, you know, a whole bunch [clears throat] of different code analyzers all the time. Um, and then nowadays of course as many of the new AI based analyzers and scanners as well.
And when we find problems, we find warnings, we find areas where where things aren't as good as they should be, we fix them and we re rewrite them and we refactor and we polish. >> Who's giving you free tokens to answer question? >> We are getting free tokens so to speak. Yeah, we're in in the way that we use a lot of different AI services that we are given by different sponsors. So yes, we're not none of us are actually paying for any AI tokens. But so yes, we're in a fortunate position. We're a fairly, you know, public and known project. So people and projects they uh like to hand
that to us. And also a lot of other a lot of companies are helping us by using their tokens by scanning curl trying to find problems. And I think it has been a little bit of a PR chase for some of them to make sure that they can find security problems in curl because then they can boast about it. But um that's also I mean the benefit for us is of course that they find problems and we fix bugs and then we make curl better. So it's it's a it's a win-win too. It's interesting to me that if you get to the spot where you're a known project and you're known to be a hard to hack project, if you are in that spot, then you can get with enough structure and I think you do have structure, enough structure, you can get sufficient process around managing vulnerabilities so that you can survive this era. I have a hunch that core
libraries and core functionality in open source will have a hard time without it. Let's say you don't have a way of managing CVS at all. I'm just looking at the rest of the rest of the world because you're sitting probably in the top of a pyramid of something that works instead of in the bottom of the thing because you're the thankless guy from Nebraska that everyone talks about. >> Yeah. Yeah. And [clears throat] I think there are many more I mean less thanked
people from Nebraska than me because I think Yes. I think I'm in a fortunate position in that way that I'm I actually do this full-time. So, I can I can actually devote a a shitload of time and effort on on fixing these things. So, you know, even when the avalanche is sort of over us, I can still swim the avalanche as good as I can and we're several other maintainers. So, I think that's that puts us in a decently good position. And if you're looking at at the world of open source projects, there are I mean millions of projects and and I think just the number of actually used open source projects in the world, you know, used in the big infrastructure of of the universe, there's still several hundred thousands of projects [snorts] and many of those are just single person projects just done by someone in a few hours per week, per month and so on or weekends And sure, if you then get an avalanche of reports and you only have a few hours every other weekend, what do you do then? That that's a much tougher position and much harder to ride out this storm because then it could basically take forever. And I think it also sucks out all the air and all the fun of your project because suddenly you just have you just drown in in a lot of toilet cleaning tasks that you did not start your projects to do. you wanted it to be fun and to do features, not just clean up the mess nonstop until you die.
So, I think I think there's going to be a challenge for a lot of projects. It's so there are so many different ways to do open source and and depending on your time and and what you want and I mean people do open source because they want I mean in a lot of cases they do that because they want to because it's fun and then me saying hey you should just you know spend the time to set up a structured way of handling things and you should have write more test cases that's not what people want to do. Maybe also in many cases not their responsibilities really. If you just ship something, it's your it's your project. You do it for fun. Is it your responsibility to keep the world from burning? I don't think so. Unless someone pays you to do it, it's not your responsibility. So I I'm I don't know what to say to anyone who who's sort of suffering under this load, but it's it's sort of a little bit in between all of those things. Then then don't do it if you don't want to. But if you want to, you know, usually what to do and and and then uh and when there's this avalanche of lots of things to do, I think the only thing we can do is just to try to approach it in in a structured way. You know, prioritize the the load of work and and take them one by one in a priority order. [snorts] Maybe cry for help a little bit louder. Try to get some of those who actually rely on your projects to help out. That's way easier said than done of course but I don't know open source projects as
I basically started open source projects have struggled with maintenance and and getting funded for a very long time so this is not new to us really this just makes it a little bit worse than before but it's still it's still the same challenge I have you you know giving away source code and then trying to get someone to actually pay you. It's uh it's often hard. Oh, you're doing a good job. We're happy that you're still up and running. It's been 30 years. I mean, that's a that that's a commitment. So, hats off for that. We're actually getting closer to the end now. So, Cook, do you have a final wrap up to go through this?
I have to ask you a question, and that is if you had a magic wand, what would you change? What circumstances would you change for the future and to make the world a better place? uh or to make your life easier. >> I would really like that everyone who's using open source or standing on open source using relying on them in infrastructure software anything that people would start caring more about what you're standing on and relying on and basically helping out more funding
help. Yeah, as I mentioned before, if if everyone just started take caring a little bit more about the infrastructure they're relying on, I think we will have a better world and it'll help a lot of projects to handle this load and and
it'll be a brighter future. So, a bit of a collaborator effort uh around the space to make sure that you know these projects actually survive and shipping in. >> Yeah. And I try to say to to companies in particular my own users of course that they some you just have to think about your own situation right if you want to ship your products maybe in a two in two years time you should at least try to make sure that whatever you rely on today still exists in two years right they they would help you just so help yourself by making sure that whatever you use and whatever you think should be good that those components are actually good and still around in two years when you ship your upgraded models or softwares or services or whatever.
>> I think I think a key to that is just making it known, right? Like we are relying on curl. >> Yeah, I a big part is that sort of making it known and and making everyone aware of what what they are standing on
and relying on.
What a amazing conversation. There's there's such an epic thing when you get to talk to people that's been passionate about a project for 30 years. I can hardly commit one for two or three months. But seeing wherever the future
is going and how fast things are going, I'm hoping that you got a little bit of a high velocity shortcut through this episode. And if you want to hear more of the Builders and Breakers high velocity shortcut, I would suggest you that you keep on checking out whatever comes out on this YouTube channel or head over at buildersandbreakers.com to see whatever we're up to. Until then, have a good time.
[music]
[music]
>> [music]





