1 00:00:00,000 --> 00:00:08,020 Excellent. Hey, hello, everyone. Thank you for joining me. How's everyone doing? Cool. Yeah, 2 00:00:08,100 --> 00:00:13,600 welcome to my talk, LLMs at the Forefront. And basically we're using LLMs to fuzz Python and 3 00:00:13,600 --> 00:00:19,200 kind of showing you some tricks and cool strategies and stuff like that. Or a better title is 4 00:00:19,200 --> 00:00:23,980 ChatGPT, write me some fuzz tests for this source code. Yeah, so let's go ahead and get 5 00:00:23,980 --> 00:00:28,200 started. To kind of go through the agenda, right, we're going to start off with an 6 00:00:28,200 --> 00:00:34,280 introduction and motivation, you know, to myself and like what was the whole entire 7 00:00:34,280 --> 00:00:38,480 motivation for this talk, like why I was interested in it and where it kind of really 8 00:00:38,480 --> 00:00:44,500 started. We're going to go some like brief background info on LLMs and fuzzing. And then 9 00:00:44,500 --> 00:00:48,860 I'm going to introduce my tool, which really combines LLMs and fuzzing. I'll give you a 10 00:00:48,860 --> 00:00:52,620 quick run through how it works. Then we're going to talk about some of the cool 11 00:00:52,620 --> 00:00:57,000 vulnerabilities and cool fuzzers that it created. And then kind of end it off with a just 12 00:00:57,000 --> 00:00:58,180 kind of summary and kind of a little bit of a summary of what it was like to be a 13 00:00:58,180 --> 00:01:02,380 user. And then kind of discuss some of like the future research directions. Right on. So, 14 00:01:02,900 --> 00:01:08,040 yeah, about me. My name is X, Xavier. I'm a vulnerability researcher. And I think an 15 00:01:08,040 --> 00:01:15,700 important part is that I am not an AI or ML expert. You know, I'm an offset guy who just 16 00:01:15,700 --> 00:01:22,540 likes exploring, you know, new cool techniques to find bugs. And outside of security stuff, I 17 00:01:22,540 --> 00:01:28,160 enjoy base, techno, and like bicycles, you know? So. So, I'm going to go ahead and get started. 18 00:01:28,160 --> 00:01:31,900 Yeah. So, let's start off with the motivation, right? This really started, I guess, because at the 19 00:01:31,900 --> 00:01:36,760 beginning of the year, there was like a huge meme, right? Like, LLM slash chat GPT, they're 20 00:01:36,760 --> 00:01:41,780 taking over software dev, right? Like, there are going to be no more software devs. And I 21 00:01:41,780 --> 00:01:47,380 wanted to explore, like, its potential for, like, offset. And is it real? Is it legit? Like, how 22 00:01:47,380 --> 00:01:52,740 much can we do? So, I explored, like, multiple paths, right? I used LLMs for, you know, basic 23 00:01:53,400 --> 00:01:57,220 CTFs. I tried to do some, like, cryptography stuff. I'm talking, like, simple, even, like, Caesar 24 00:01:57,220 --> 00:02:04,400 cipher type things. And it wasn't really that great. I found that the best thing it was, LLMs 25 00:02:04,400 --> 00:02:08,940 were good at was, like, code generation, right? So, I wrote a blog post in, like, February that 26 00:02:08,940 --> 00:02:14,560 first explored this. I started writing, starting to use it to write some fuzzers. And this is 27 00:02:14,560 --> 00:02:19,920 kind of where the idea exploded. I had really good success. I found a lot of bugs. So, I decided 28 00:02:19,920 --> 00:02:24,380 to expand it. And, you know, besides kind of showing you the cool bugs and cool fuzzers, I 29 00:02:24,380 --> 00:02:27,200 really want to, like, inspire everyone here to, you know, like, you know, like, you know, like, 30 00:02:27,220 --> 00:02:32,140 just kind of explore these cutting edge tools and techniques, right? I think as a security 31 00:02:32,140 --> 00:02:37,880 person, it's pretty easy to get jaded and be, like, oh, this is not as cool, not as interesting. 32 00:02:38,060 --> 00:02:43,360 But, you know, I think there's a lot of potential in all these types of things. Yeah. So, let me 33 00:02:43,360 --> 00:02:48,800 give you a brief, very brief intro into, like, LLMs, right? They're large language models, 34 00:02:49,040 --> 00:02:53,920 right? And many people use the word LLM and AI, like, interchangeably. But it's really just a 35 00:02:53,920 --> 00:02:57,200 machine learning neural network. And they're trained up to do a lot of things. And they're 36 00:02:57,220 --> 00:03:01,000 kind of, like, a wide range of corpus, you know, from the Internet. I'm talking about, like, 37 00:03:01,020 --> 00:03:07,040 Wikipedia, GitHub, Reddit, et cetera. And they work by predicting the next most likely token in a 38 00:03:07,040 --> 00:03:12,120 sequence. So, it doesn't really have, like, a traditional knowledge database. It's just getting 39 00:03:12,120 --> 00:03:18,840 what is most likely next. And this creates some really, like, interesting challenges to work 40 00:03:18,840 --> 00:03:23,480 with, which, you know, I'll kind of describe how I approached it and how, like, we can kind of, 41 00:03:23,520 --> 00:03:24,860 like, combat this. 42 00:03:27,220 --> 00:03:32,860 This, like, operating model. No, but since it kind of works by predicting the next most likely 43 00:03:32,860 --> 00:03:38,220 token in a sequence, you know, without, like, specifically teaching LLMs things, they're able to 44 00:03:38,220 --> 00:03:42,320 learn, you know, language syntax, context, and even a little bit of, like, semantic 45 00:03:42,320 --> 00:03:49,860 understanding, right? So, it's really powerful. And I'm going to be using primarily open API, open 46 00:03:49,860 --> 00:03:56,860 AI models, which are 3.5 and 4. But, I mean, Google has barred, Meta has open sourced. I mean, 47 00:03:56,860 --> 00:04:00,500 there are many more open source ones. And I'll kind of talk about some of these different models 48 00:04:00,500 --> 00:04:06,000 and how, like, how they actually work and how they kind of compare to open AI. But for me, 49 00:04:06,060 --> 00:04:13,200 personally, I found that open AI's models were the best at cogeneration. Yeah. So, first of all, 50 00:04:13,220 --> 00:04:16,340 let's go into, like, some of the limitations. You know, I kind of mentioned it, that they 51 00:04:16,340 --> 00:04:21,060 struggle with factual accuracy, right? They don't know facts the way that humans do. They just 52 00:04:21,060 --> 00:04:26,060 generate the responses based on, like, patterns. So, this means that they can hallucinate 53 00:04:26,860 --> 00:04:32,460 things, right? Or create APIs that don't exist. I saw many instances where the code has a 54 00:04:32,460 --> 00:04:38,380 function, like, parse headers, right? Or parse requests. And it will make up an API that's, 55 00:04:38,400 --> 00:04:44,180 like, parse cookies because that sounds like it exists. So, that's, like, one of the big 56 00:04:44,180 --> 00:04:50,560 challenges. It really loves to hallucinate things. Another, like, really hard challenge is just 57 00:04:50,560 --> 00:04:56,500 the prompt context limitations, right? So, when we say prompt, we're talking about the 58 00:04:56,500 --> 00:05:01,120 conversation, like, your text and what it sends back, right? That's what we mean by prompt. 59 00:05:01,400 --> 00:05:07,500 And while there are limitations and they are expanding, like, open AI now has 32K tokens, 60 00:05:08,240 --> 00:05:15,320 that is still kind of limited. For Python code, 32,000 tokens is about 2,000 lines of code. 61 00:05:15,560 --> 00:05:19,820 So, while it can get maybe, like, a source code file, there's, like, no way for it to get a 62 00:05:19,820 --> 00:05:25,780 whole repo. And there are techniques to, like, combat that, right? Like, you may have heard of, 63 00:05:26,500 --> 00:05:30,160 like, vector databases. And what it does, what these things do is they chunk up data into, 64 00:05:30,240 --> 00:05:35,180 like, small portions and then create a data structure so you can, like, quickly parse 65 00:05:35,180 --> 00:05:42,400 through and find what you're looking for. But I found for code in particular it's not as 66 00:05:42,400 --> 00:05:47,420 powerful and it's not as good because functions, like, call each other functions. So, even if 67 00:05:47,420 --> 00:05:52,160 you use it in, like, a vector database and you search for something, it might find something 68 00:05:52,160 --> 00:05:56,480 that's not particularly relevant or a function that's being used somewhere else but not, like, 69 00:05:56,500 --> 00:06:00,780 the main function. So, I just kind of wanted to add that. I mean, some people say we don't 70 00:06:00,780 --> 00:06:07,960 really need vector databases. Eventually, like, the context will grow. But at least for this kind 71 00:06:07,960 --> 00:06:15,000 of project, I thought vector databases were not, like, as useful as people say they are. So, 72 00:06:15,080 --> 00:06:19,800 but there are many strengths, too. The first, of course, is, like, code, right? LLMs are very 73 00:06:19,800 --> 00:06:24,460 adept at understanding and generating code. But it's up to, like, us individually to actually 74 00:06:24,460 --> 00:06:26,480 verify the correctness and to be able to do that. So, that's kind of what we're trying to do. So, 75 00:06:26,480 --> 00:06:32,460 let's go ahead and test the output. Another, like, big, like, strength is scalability, right? 76 00:06:32,540 --> 00:06:38,320 They can handle a large amount of tasks and kind of fix themselves. So, you just tell it to do 77 00:06:38,320 --> 00:06:42,560 something, it will happily write the code and do it. I think it's like an intern or junior dev, 78 00:06:42,720 --> 00:06:48,100 right? It will happily turn out code and try anything you ask it for, even if it doesn't, like, 79 00:06:48,700 --> 00:06:52,480 fully understand why it's performing this task. It's just happy to write code and be, like, all 80 00:06:52,480 --> 00:06:56,360 right, here's my strategy, here's my plan, this is how I would do it, even though it has, like, no 81 00:06:56,360 --> 00:07:01,160 no idea. So because of that, I found that it's best used by domain experts to like build 82 00:07:01,160 --> 00:07:06,560 tools. Another thing that I've had like great success with is like data parsing, right? 83 00:07:06,700 --> 00:07:11,160 Like we can copy some JSON and say write a script to extract these and order them like 84 00:07:11,160 --> 00:07:16,260 this and it will do it. Another great thing is like regex. Hey, write me a regex to find 85 00:07:16,260 --> 00:07:22,340 this and it will just do phenomenal. So there are many strengths. But kind of like to drill 86 00:07:22,340 --> 00:07:27,620 down on this code, I want to say it's not good at code review. So even like the most 87 00:07:27,620 --> 00:07:32,400 contrived, like, you know, buffer, overflow, like C, you know, I'm talking about like basic 88 00:07:32,400 --> 00:07:37,840 day one CTF stuff. It will completely miss it. And there's been other research here where 89 00:07:37,840 --> 00:07:43,260 people put like vulnerable code snippets and try to find bugs, but it just completely misses 90 00:07:43,260 --> 00:07:50,760 it. So the way you kind of have to approach these tools is ask for what the code is doing. 91 00:07:50,900 --> 00:07:51,640 Like there's a... 92 00:07:52,340 --> 00:07:57,580 Like there's websec prompts. Ghidorah has many extensions. And it's never find the XSS 93 00:07:57,580 --> 00:08:04,020 in a code. It's more find the syncs, right? It's never find the bug. It's find the functions 94 00:08:04,020 --> 00:08:11,140 that are parsing it, right? So it's very particular in being able to get a general 95 00:08:11,140 --> 00:08:15,260 idea. But once you get like really in depth, it kind of loses its track. And LLMs are 96 00:08:15,260 --> 00:08:20,660 not good at that at all. Yeah. So that's kind of LLM. Just a brief intro, right? So fuzzing, 97 00:08:20,720 --> 00:08:22,320 I'm sure many people here... 98 00:08:22,320 --> 00:08:28,880 No fuzzing. But I'm just going to give you like a brief description of it, right? So it's a 99 00:08:29,280 --> 00:08:32,680 security testing technique. It sends random data to programs. And you're kind of looking for 100 00:08:32,680 --> 00:08:38,100 any like divergent or unexpected behavior. Now, generally, they use it primarily for like 101 00:08:38,100 --> 00:08:41,580 memory managed software, right? Because a crash means we can write an exploit and get it to do 102 00:08:41,580 --> 00:08:47,060 whatever we want. So, you know, some of you might be asking, like, why even fuzz Python, 103 00:08:47,260 --> 00:08:52,300 right? It's memory safe. What can we achieve with it, right? Well, we still get, like, a lot of 104 00:08:52,300 --> 00:08:58,680 large, a wide range of like types of Python bugs, right? I'm also personally part of the kind of 105 00:08:58,680 --> 00:09:03,540 people that think that fuzzing should be part of the SDLC, just like QA and unit tests, right? It 106 00:09:03,540 --> 00:09:07,380 just makes your programs more resilient, just like anything else. Fuzzing is, I think, something 107 00:09:07,380 --> 00:09:14,120 that needs to be integrated for everything. So this really helps. And then some secondary reasons 108 00:09:14,120 --> 00:09:19,780 as to why use Python and why it shows Python specifically. Because it's honestly the language 109 00:09:22,300 --> 00:09:27,720 of the internet. There's also kind of a newish fuzzer called a theorist. It's native. It's 110 00:09:27,720 --> 00:09:33,580 integrated. It's a native Python fuzzer. And, since it's fairly new, there's not like a huge 111 00:09:33,580 --> 00:09:38,980 corpus of training data. So I felt like this was a good opportunity to, like, really test the 112 00:09:38,980 --> 00:09:45,140 capabilities of it. Versus if, my thinking was, if I use something like C, there's just so many 113 00:09:45,140 --> 00:09:50,780 fuzzing examples, right? Live fuzzer, AFL. The internet is full of them. So you can't really test 114 00:09:50,780 --> 00:09:52,280 the capabilities. Whether, if I use like A or B, they're really bad for the internet. Those are just 115 00:09:52,300 --> 00:09:57,880 Python. And in many of these Python's libraries don't even have fuzz test. So it's just like a 116 00:09:57,880 --> 00:10:03,460 great green field project where we can write fuzzers for things that don't exist and find 117 00:10:03,460 --> 00:10:09,660 bugs for things that have never been tested at all. So that's kind of why I chose it. This is 118 00:10:09,660 --> 00:10:14,820 another slide of like specific Python bug types. There's all types of things. Some of these hit 119 00:10:14,820 --> 00:10:19,780 the lower level libraries. A lot of them are like best practices. A lot of like denial 120 00:10:19,780 --> 00:10:25,260 service. You know, if we can crash a program, that's very common. It's very easy to 121 00:10:25,260 --> 00:10:33,260 accomplish. Yeah. So now we know fuzzing and we know LLMs. Like how do we how can we combine 122 00:10:33,260 --> 00:10:38,560 them to like get our goals better, right? First of all is like the pair programming 123 00:10:38,560 --> 00:10:43,940 abilities. It just allows us it allows me to write so much more code. I think that's one of the 124 00:10:43,940 --> 00:10:49,040 big strengths. It's like a force multiplier for like software development. Whether you use the 125 00:10:49,040 --> 00:10:57,440 chat box, co-pilot. I personally am a big fan of this SGPT repel. So it allows you to use GPT in a 126 00:10:57,440 --> 00:11:04,400 repel format where you can like interactively code inside kind of like a IPython terminal. So you 127 00:11:04,400 --> 00:11:10,460 can like write code, test it, and then you know copy that in there. But kind of a note is always 128 00:11:10,460 --> 00:11:17,100 use the API. I found that when I'm trying to do things through like co-pilot or the chat box, 129 00:11:17,300 --> 00:11:19,020 oftentimes I would get a warning. I would get a warning. I would get a warning. I would get a 130 00:11:19,020 --> 00:11:23,600 warning error where it would be like I see that you're trying to do some like software hacking. 131 00:11:23,740 --> 00:11:30,320 It's illegal. So once you start using the API, those like warning signs are off. So really, 132 00:11:30,460 --> 00:11:36,700 always use the API. So besides coding, you know, it's great at fuzz test. And I'll show you. It 133 00:11:36,700 --> 00:11:40,780 gets the whole function. We put it in. It adds it kind of mimics the functionality. Creates 134 00:11:40,780 --> 00:11:48,500 error messages. It's really good. And third kind of like benefit is just the unlimited scalability, right? 135 00:11:49,020 --> 00:11:52,940 Generally when we're fuzzing, we're kind of limited by person cycles because we have to dig in the 136 00:11:52,940 --> 00:11:57,820 code. Try to find like paths that are particularly vulnerable. If we're using something like 137 00:11:57,820 --> 00:12:03,760 LLMs that have unlimited scalability, there is no reason to kind of find these high potential 138 00:12:03,760 --> 00:12:09,560 functions. I just let it rip on the entire repo and let it go. And we'll see how that works 139 00:12:09,560 --> 00:12:16,140 exactly. Yeah and I kind of integrated all these ideas straight into this tool called fuzz forest and 140 00:12:16,700 --> 00:12:19,000 it uses LLMs to like install it. It does that right here. And then it just takes like after that and kind of like goes into the database. Like is it 141 00:12:19,020 --> 00:12:24,540 to parse the source code, create the fuzz test, fix the non-running ones, and it even allows us 142 00:12:24,540 --> 00:12:30,740 to triage the crashes. And here's the link. Hopefully you all find it useful. Use it. 143 00:12:31,800 --> 00:12:37,060 Because personally, I'm a big believer in writing your custom tools for all of your needs, 144 00:12:37,100 --> 00:12:41,380 for your different assessments. So I hope you take inspiration. Use these ideas. Fork the code. 145 00:12:41,380 --> 00:12:48,580 Whatever you need. It's for the community, basically. Okay. So this is what I generally 146 00:12:48,580 --> 00:12:53,960 consider like a fuzzing engagement process. I kind of divide it into three sections. There's the 147 00:12:53,960 --> 00:12:58,720 recon. We're kind of learning about the repo. We're understanding the code base and trying to 148 00:12:58,720 --> 00:13:04,780 find these critical code paths, which are usually parse functions, stuff like that. The second 149 00:13:04,780 --> 00:13:09,360 kind of major portion is writing and running these. So we kind of have to run them, make sure 150 00:13:09,360 --> 00:13:10,260 they're getting good coverage. 151 00:13:11,380 --> 00:13:16,340 Either adjust them, fix them, and let them run for a long period of time. And then finally is 152 00:13:16,340 --> 00:13:23,060 we're triaging the crashes. We're seeing the security impact. We're reporting the vulns, if 153 00:13:23,060 --> 00:13:26,920 there are vulns, and giving them to the teams on how to fix them. So this is generally what I 154 00:13:26,920 --> 00:13:34,460 consider the three stages of an engagement process that I try to integrate into my tool. 155 00:13:36,900 --> 00:13:41,120 So the first is this recon, right? Now, like I say here, usually hackers would be limited by 156 00:13:41,120 --> 00:13:41,360 their capabilities. So I'm going to show you how to do that. So I'm going to show you how to 157 00:13:41,360 --> 00:13:45,580 have the right capacity to understand and it's great if we have like unlimited time. But 158 00:13:45,580 --> 00:13:50,580 generally we're on a time limit. So we're looking for the most critical paths, doing the 159 00:13:50,580 --> 00:13:56,620 important things. But, you know, since we're kind of offloading this thing to GPT and it's 160 00:13:56,620 --> 00:14:01,760 great, I simply extract all functions in the code and let it run. As you can see here in my 161 00:14:03,220 --> 00:14:10,860 little code snippet, I create a SQL IDB and this fuzz recon class, it essentially goes through and it 162 00:14:10,860 --> 00:14:15,680 It uses the AST tool to extract every single function, 163 00:14:15,860 --> 00:14:20,500 every single name, except for I don't include test functions. 164 00:14:20,780 --> 00:14:22,400 I don't do a main function. 165 00:14:22,620 --> 00:14:24,900 But generally, we're grabbing every single function 166 00:14:24,900 --> 00:14:27,620 from the code and storing it inside this SQLite database. 167 00:14:28,640 --> 00:14:30,520 So now that we have this SQLite database, 168 00:14:31,820 --> 00:14:33,500 we can generate full tests. 169 00:14:33,600 --> 00:14:36,340 As you can see here, we can generate a fuzz test 170 00:14:36,340 --> 00:14:37,180 for every function. 171 00:14:37,180 --> 00:14:40,340 But if you want to get a little more specific, 172 00:14:41,400 --> 00:14:42,260 we can do function. 173 00:14:42,400 --> 00:14:44,980 I added some helper functions, like contain string for parse, 174 00:14:45,060 --> 00:14:47,060 for load, file name. 175 00:14:47,200 --> 00:14:49,000 And these are all fuzzy matches, too. 176 00:14:49,140 --> 00:14:53,820 So if your file name is parse XML responses or something, 177 00:14:53,960 --> 00:14:54,600 it'll find it. 178 00:14:54,700 --> 00:14:56,120 So these are fuzzy. 179 00:14:56,980 --> 00:15:00,240 And then once we have the functions 180 00:15:00,240 --> 00:15:02,520 that we're looking for, these kind of extractive functions, 181 00:15:02,660 --> 00:15:03,800 we can do the generate fuzz test. 182 00:15:03,920 --> 00:15:06,380 And this is where the cool part is. 183 00:15:06,620 --> 00:15:06,760 Right? 184 00:15:07,180 --> 00:15:09,140 So when we get this generate fuzz, 185 00:15:09,200 --> 00:15:10,380 we send it over to the prompt. 186 00:15:10,540 --> 00:15:13,020 And this was the part that I really struggled with. 187 00:15:13,120 --> 00:15:16,100 And this was like the real meat of it. 188 00:15:16,200 --> 00:15:18,100 For our prompt, as I kind of mentioned before, 189 00:15:18,420 --> 00:15:23,860 our prompt is what we tell the LLM to do with all our context 190 00:15:23,860 --> 00:15:26,240 and all our info, but also what it sends back. 191 00:15:26,480 --> 00:15:28,920 And this is what we mean by limited by the token context. 192 00:15:29,240 --> 00:15:29,260 Right? 193 00:15:29,480 --> 00:15:32,200 Like if we could just send everything over there, 194 00:15:32,280 --> 00:15:33,200 it would write it correctly. 195 00:15:33,420 --> 00:15:35,200 But it kind of makes it up. 196 00:15:35,280 --> 00:15:36,260 So I found that. 197 00:15:36,780 --> 00:15:39,660 For our prompt, we have to add very specific examples. 198 00:15:39,960 --> 00:15:43,780 So I start off my prompts with a basic Atheris, which 199 00:15:43,780 --> 00:15:45,580 is the fuzzer example code. 200 00:15:45,740 --> 00:15:47,500 I have to put in the API information, 201 00:15:47,780 --> 00:15:49,540 because if not, it would create random APIs. 202 00:15:50,420 --> 00:15:52,560 Another more complex Atheris example. 203 00:15:52,840 --> 00:15:55,380 And then some important directives. 204 00:15:56,120 --> 00:15:59,660 And you'll see these directives, without it, it was not working. 205 00:15:59,980 --> 00:16:02,680 And then finally, I kind of ended off with write fuzzer 206 00:16:02,680 --> 00:16:03,580 for this and this. 207 00:16:03,740 --> 00:16:05,660 And there's a link to the GitHub in total. 208 00:16:05,660 --> 00:16:07,920 This whole prompt, which we'll see in the next slides, 209 00:16:07,960 --> 00:16:10,440 is about 100 lines or 1,300 tokens. 210 00:16:13,320 --> 00:16:14,680 Yeah, so here's the prompt. 211 00:16:14,800 --> 00:16:15,980 And here's the beginning of the prompt, right? 212 00:16:16,120 --> 00:16:19,060 So I start off with a generic fuzz example, 213 00:16:19,280 --> 00:16:20,500 as you can see right here. 214 00:16:20,700 --> 00:16:24,340 This is just taken straight from the docs, page one of the docs, 215 00:16:24,460 --> 00:16:27,300 so that the LLM kind of understands what it's doing. 216 00:16:28,420 --> 00:16:30,560 And then down here, I actually decided 217 00:16:30,560 --> 00:16:32,840 to paste in the entire API reference. 218 00:16:33,720 --> 00:16:35,420 And you can see here, there's consumed bytes, 219 00:16:35,420 --> 00:16:36,220 consumed Unicode. 220 00:16:36,380 --> 00:16:40,120 And the reason I decided to paste it was because if I didn't, 221 00:16:40,120 --> 00:16:42,100 the LLM would just kind of create. 222 00:16:42,380 --> 00:16:47,780 It'd be like, you know, consumed string or consumed bytes, 223 00:16:47,900 --> 00:16:51,860 things that don't necessarily exist in the API that just 224 00:16:51,860 --> 00:16:52,480 sound like exist. 225 00:16:52,660 --> 00:16:56,780 So I had to add this context, or it wouldn't work. 226 00:16:58,160 --> 00:17:01,040 And then I added another more complex example. 227 00:17:01,260 --> 00:17:03,600 This uses this kind of like mutation technique 228 00:17:03,600 --> 00:17:04,480 from lib fuzzer. 229 00:17:05,420 --> 00:17:07,500 So it's kind of for more complex data formats. 230 00:17:07,760 --> 00:17:09,920 And again, this was also another example 231 00:17:09,920 --> 00:17:12,760 just to reinforce to the LLM, like, hey, 232 00:17:12,820 --> 00:17:15,640 this is how a more complex example is. 233 00:17:16,720 --> 00:17:20,140 But an interesting thing here is, you see this note, 234 00:17:20,240 --> 00:17:22,140 the importance always used that there is. 235 00:17:22,400 --> 00:17:25,260 When I was initially creating these fuzz tests, 236 00:17:25,540 --> 00:17:28,660 it would consistently skip this instrument all. 237 00:17:28,920 --> 00:17:30,360 So it would kind of write a fuzz test, 238 00:17:30,480 --> 00:17:32,800 but it wouldn't have the proper instrumentation. 239 00:17:33,040 --> 00:17:34,780 So I found that you have to give 240 00:17:34,780 --> 00:17:37,880 like specific directives, like use instrument all 241 00:17:37,880 --> 00:17:39,140 before calling main. 242 00:17:39,320 --> 00:17:40,740 And then I put an example in there. 243 00:17:41,800 --> 00:17:46,780 I also put another directive before using it, 244 00:17:46,880 --> 00:17:49,300 because it would keep writing tests. 245 00:17:49,560 --> 00:17:51,780 And it could keep triggering attribute errors, 246 00:17:51,980 --> 00:17:55,020 because one of the main weaknesses, like I said, 247 00:17:55,120 --> 00:17:56,480 it would try to make things up. 248 00:17:56,560 --> 00:17:58,380 So it'd be like, oh, this function sounds like it fits. 249 00:17:58,580 --> 00:18:01,480 So I found that by adding this second important statement, 250 00:18:03,240 --> 00:18:03,960 make sure. 251 00:18:04,780 --> 00:18:06,760 Before using any attributes, methods, or functions, 252 00:18:06,880 --> 00:18:08,480 make sure they exist and are accessible. 253 00:18:09,040 --> 00:18:11,840 So try to avoid triggering an attribute error. 254 00:18:12,120 --> 00:18:13,820 And just putting in that sentence, 255 00:18:14,000 --> 00:18:16,000 like up the completion rate significantly. 256 00:18:16,940 --> 00:18:19,520 So it goes to that tendency that you oftentimes 257 00:18:19,520 --> 00:18:20,780 have to remind. 258 00:18:21,140 --> 00:18:23,760 I know I specified it before, but you kind of 259 00:18:23,760 --> 00:18:26,340 have to tell the LLM, hey, don't forget 260 00:18:26,340 --> 00:18:29,640 that you have to use variables that actually exist. 261 00:18:30,060 --> 00:18:32,980 And it'll kind of trigger and be like, OK, gotcha. 262 00:18:33,220 --> 00:18:34,440 And then the very. 263 00:18:34,440 --> 00:18:35,900 The very last line is where I would 264 00:18:35,900 --> 00:18:38,880 paste in the function name and the source code. 265 00:18:39,220 --> 00:18:44,380 And this whole prompt is sent to the LLM, which 266 00:18:44,380 --> 00:18:46,740 returns Python code. 267 00:18:47,020 --> 00:18:50,020 And this Python code, I just do a quick helper function 268 00:18:50,020 --> 00:18:52,440 where I run it just for two runs. 269 00:18:52,820 --> 00:18:54,340 So it creates a file. 270 00:18:54,440 --> 00:18:55,060 It runs it. 271 00:18:55,160 --> 00:18:57,660 And if it's successful, I sort it in the database, 272 00:18:57,840 --> 00:18:58,720 like runs true. 273 00:18:59,100 --> 00:19:04,140 Else, I get a runs false, and I send it to this. 274 00:19:04,440 --> 00:19:09,940 LLM agent loop, or I call this the fixed fuzz test code. 275 00:19:10,260 --> 00:19:12,580 So all of them that are marked as runs false, 276 00:19:12,820 --> 00:19:14,320 they're sent to this function. 277 00:19:14,500 --> 00:19:17,140 And it uses this idea called an LLM agent loop. 278 00:19:18,060 --> 00:19:20,780 Now, there's this tool that some people may have heard of 279 00:19:20,780 --> 00:19:24,380 called Langchain, which uses this concept of an agent loop. 280 00:19:24,500 --> 00:19:28,400 And what an agent loop is, it's kind of like a self-learning 281 00:19:28,400 --> 00:19:28,840 technique. 282 00:19:29,180 --> 00:19:33,380 So you send the stuff to the LLM and say, here's the directive. 283 00:19:33,380 --> 00:19:35,320 Here was the output from that directive. 284 00:19:36,140 --> 00:19:37,940 Move on to this next step. 285 00:19:38,120 --> 00:19:41,000 And for us, it's quite a simple step of, like, fix the code. 286 00:19:41,340 --> 00:19:44,380 And here's the basic structure of this. 287 00:19:44,460 --> 00:19:46,740 We send the code, the non-running code, and the output 288 00:19:47,200 --> 00:19:49,620 to the LLM and say, you need to fix this. 289 00:19:50,580 --> 00:19:52,000 It returns new code. 290 00:19:52,160 --> 00:19:52,980 We run that again. 291 00:19:53,200 --> 00:19:55,380 And if it works, we save it. 292 00:19:55,420 --> 00:19:58,500 Else, we send the updated code and the updated output 293 00:19:58,500 --> 00:19:59,860 back to the LLM. 294 00:19:59,880 --> 00:20:03,160 And it keeps running until it runs without errors. 295 00:20:03,220 --> 00:20:03,360 And then we send the code, the non-running code, and the output 296 00:20:03,880 --> 00:20:04,240 back to the LLM. 297 00:20:04,800 --> 00:20:07,520 From my experience, I put a limit of five. 298 00:20:08,480 --> 00:20:10,840 And that has, as you can see, we'll see later in the stats, 299 00:20:10,940 --> 00:20:14,280 but that fixes about, like, 85% of our fuzzers. 300 00:20:15,840 --> 00:20:17,260 You can have a higher limit. 301 00:20:17,380 --> 00:20:19,080 Sometimes I try it out with, like, 10 or 20. 302 00:20:19,300 --> 00:20:22,700 But if it doesn't work, if it doesn't fix itself within five, 303 00:20:22,840 --> 00:20:25,980 I find that it's not going to fix itself. 304 00:20:26,100 --> 00:20:27,820 It just doesn't really understand what's going on. 305 00:20:29,240 --> 00:20:32,040 OK, now here are the cool, here are some of the actual tests. 306 00:20:32,220 --> 00:20:32,400 Now. 307 00:20:33,380 --> 00:20:36,440 The cool part is that I have never used, like, Twisted, right? 308 00:20:36,580 --> 00:20:38,680 So these tests were all completely, 309 00:20:38,900 --> 00:20:41,180 these harnesses were all written by the LLM. 310 00:20:41,280 --> 00:20:43,740 I don't know much about these, but we can already 311 00:20:43,740 --> 00:20:45,580 see that it's being very smart, right? 312 00:20:45,640 --> 00:20:46,700 We're doing this FTP. 313 00:20:47,160 --> 00:20:50,260 And in the Consume Unicode, like, the LLM 314 00:20:50,260 --> 00:20:52,280 knows to use, like, the sys.max size. 315 00:20:52,400 --> 00:20:53,460 I didn't specify that. 316 00:20:53,620 --> 00:20:56,840 It just kind of knows, like, this is what the fuzz test should be. 317 00:20:57,180 --> 00:21:03,300 And, you know, I looked at the parse QS code, and there is, like, a value. 318 00:21:03,300 --> 00:21:04,320 Error catch here. 319 00:21:04,600 --> 00:21:10,640 So the fuzzer was, or the LLM was smart enough to be, like, we, 320 00:21:10,840 --> 00:21:13,720 the code itself is trying to catch these value errors. 321 00:21:13,900 --> 00:21:18,240 So we don't need to, like, trigger, you know, we'll just pass them on. 322 00:21:18,420 --> 00:21:20,580 So that way we're not, like, getting these false positives 323 00:21:20,580 --> 00:21:21,940 by triggering these value errors. 324 00:21:22,120 --> 00:21:25,860 The fuzzer itself was, like, OK, if we hit that, that's already accounted for. 325 00:21:25,980 --> 00:21:26,600 Let's just continue. 326 00:21:28,200 --> 00:21:29,920 But let's see some of these cooler ones, right? 327 00:21:30,120 --> 00:21:32,920 This was, like, a Babel parse state, but that was another super 328 00:21:32,920 --> 00:21:34,000 popular Python library. 329 00:21:35,700 --> 00:21:37,740 As we can see here, like, the locale and format, 330 00:21:37,980 --> 00:21:40,180 it wrote all of these things itself. 331 00:21:40,340 --> 00:21:42,980 And again, I just want to stress that I didn't write any of this code. 332 00:21:43,100 --> 00:21:45,400 This was all returned to me from the LLM. 333 00:21:46,500 --> 00:21:48,460 You know, so it creates these great functions. 334 00:21:48,600 --> 00:21:51,860 It actually allows you to put, like, the locale and the format. 335 00:21:52,040 --> 00:21:57,380 And again, this unknown locale error, it's a custom error catching thing 336 00:21:57,380 --> 00:21:59,400 from the code, and it just integrates it. 337 00:22:01,420 --> 00:22:02,660 This one was pretty cool. 338 00:22:02,920 --> 00:22:03,860 This is, like, Boto3. 339 00:22:04,000 --> 00:22:05,900 It's another super popular Python library. 340 00:22:07,960 --> 00:22:11,400 So it kind of creates this, the buckets, the keys, 341 00:22:11,500 --> 00:22:13,480 with all this, like, you know, fuzz data. 342 00:22:13,820 --> 00:22:16,680 But I thought the most interesting part was that, 343 00:22:16,780 --> 00:22:18,820 check out that regular expression part right here. 344 00:22:19,000 --> 00:22:25,480 It actually wrote a regex to make sure that we're, like, abiding 345 00:22:25,480 --> 00:22:29,020 by the S3, like, standard format, right? 346 00:22:29,100 --> 00:22:30,320 So it's really powerful. 347 00:22:30,440 --> 00:22:32,700 And another thing is you can kind of see these comments, 348 00:22:32,920 --> 00:22:33,420 at the very top. 349 00:22:34,060 --> 00:22:36,800 This was one of the functions that did not run initially, 350 00:22:37,300 --> 00:22:39,060 but it was sent to the fixed code. 351 00:22:39,220 --> 00:22:41,820 So every time it's run through the fixed code, 352 00:22:41,920 --> 00:22:44,280 it actually adds its own comments 353 00:22:44,280 --> 00:22:45,940 to say, like, what it updated, right? 354 00:22:46,200 --> 00:22:49,180 So, like, for the initial run, it didn't actually import re. 355 00:22:49,360 --> 00:22:51,300 It just said, which is the regular expression library. 356 00:22:52,600 --> 00:22:55,040 So when it fixed it, it imported it, right? 357 00:22:55,160 --> 00:22:59,540 And then so it's, like, even the fixing, like, functionality 358 00:22:59,540 --> 00:23:01,880 is, like, really amazing. 359 00:23:01,880 --> 00:23:02,940 So it will import itself. 360 00:23:03,240 --> 00:23:04,320 And it's just really powerful. 361 00:23:05,760 --> 00:23:08,020 This was actually my favorite one right here. 362 00:23:08,180 --> 00:23:10,140 This is from the Python cryptography library. 363 00:23:10,520 --> 00:23:12,560 And again, I didn't write any of this. 364 00:23:12,660 --> 00:23:13,700 The LLM did. 365 00:23:13,840 --> 00:23:15,920 And it knows to use, like, different key sizes, 366 00:23:16,820 --> 00:23:18,240 try different hashing algorithms. 367 00:23:18,900 --> 00:23:22,060 But, you know, what I think is one of the coolest parts, oops, 368 00:23:22,140 --> 00:23:25,380 my bad, one of the coolest parts is, towards the end, 369 00:23:25,860 --> 00:23:29,420 it actually makes a comment about an RFC, 370 00:23:29,580 --> 00:23:30,380 as you can see there. 371 00:23:30,540 --> 00:23:31,600 And it says, the DSA 372 00:23:31,880 --> 00:23:33,200 signature is a pair of two integers. 373 00:23:33,940 --> 00:23:35,920 And it tells you, like, how you can verify it 374 00:23:35,920 --> 00:23:36,880 by decoding the signature. 375 00:23:38,460 --> 00:23:42,480 And then it actually integrates that into the fuzzer, which, 376 00:23:42,560 --> 00:23:46,000 you know, as someone who's not familiar with cryptography, 377 00:23:46,260 --> 00:23:49,240 the fact that it's able to, like, reference RFCs 378 00:23:49,240 --> 00:23:52,180 and write code that actually asserts, like, these values, 379 00:23:52,420 --> 00:23:53,740 to me was, like, amazing. 380 00:23:53,940 --> 00:23:55,920 Like, there's no way I would have been 381 00:23:55,920 --> 00:23:57,340 able to do this myself, you know? 382 00:24:00,180 --> 00:24:00,580 Yeah. 383 00:24:00,580 --> 00:24:02,460 Yeah, so these were some of the functions. 384 00:24:02,580 --> 00:24:03,660 So you're probably wondering, like, you know, 385 00:24:03,680 --> 00:24:04,500 where are the vulns? 386 00:24:04,540 --> 00:24:05,900 Like, how much stuff did we find? 387 00:24:06,300 --> 00:24:09,740 Well, in total, as you can see here, it's, like, linked. 388 00:24:09,840 --> 00:24:12,000 And we have a little bit more info than what's here. 389 00:24:12,100 --> 00:24:15,980 But we have 72 unique findings. 390 00:24:16,140 --> 00:24:18,660 And when I say findings, I don't mean, like, vulns. 391 00:24:18,720 --> 00:24:21,740 I say 72, like, unique bugs, crashes. 392 00:24:22,800 --> 00:24:24,540 Not all of them have security impacts. 393 00:24:24,740 --> 00:24:27,720 Some of them are more, like, good programming practice. 394 00:24:28,080 --> 00:24:30,560 But I was able to, so far, I mean, I've been able to do, like, 395 00:24:30,560 --> 00:24:31,660 I'm still triaging them all. 396 00:24:31,840 --> 00:24:35,700 But so far, about, like, 32 real legitimate, like, security 397 00:24:35,700 --> 00:24:36,640 impact findings. 398 00:24:38,580 --> 00:24:40,580 And here are, like, some of the cool ones, right? 399 00:24:41,280 --> 00:24:42,880 Yeah, you can see it highlighted there. 400 00:24:44,280 --> 00:24:46,560 Some of these, like, this is an HTTP library. 401 00:24:46,840 --> 00:24:49,420 We get, like, overflow errors for the C stuff. 402 00:24:49,620 --> 00:24:53,460 We get some easy stuff, like Unicode, escape errors. 403 00:24:55,080 --> 00:24:57,740 These were, like, Flask is this, like, web app, like, 404 00:24:57,820 --> 00:24:58,200 framework. 405 00:24:58,400 --> 00:25:00,220 And this causes, like, a straight up system 406 00:25:00,220 --> 00:25:00,440 exit. 407 00:25:00,640 --> 00:25:03,580 So as long as you send this one request to Flask, 408 00:25:03,620 --> 00:25:05,180 and everything's kind of routed to the routes command, 409 00:25:05,420 --> 00:25:06,240 it, like, makes it crash. 410 00:25:07,680 --> 00:25:09,940 This NumPy, we're able to cause, like, memory errors, 411 00:25:10,020 --> 00:25:12,140 which is, like, a scientific computing thing in NumPy. 412 00:25:13,040 --> 00:25:15,000 And these are the security impact ones. 413 00:25:15,280 --> 00:25:17,480 But there are some that are not security impact, 414 00:25:17,700 --> 00:25:18,900 but are just good programming practice. 415 00:25:19,100 --> 00:25:22,000 Like, this PIL is the pillow imaging library. 416 00:25:23,800 --> 00:25:26,460 So on this decode one, we get a decompression bomb error. 417 00:25:26,900 --> 00:25:29,840 Because it says we have this huge, like, pixel size 418 00:25:29,840 --> 00:25:30,060 image. 419 00:25:30,320 --> 00:25:31,560 But it's really just, like, a recursion bug 420 00:25:31,560 --> 00:25:32,560 that makes it, like, crash. 421 00:25:32,880 --> 00:25:36,460 So that's, and this has error catching for it. 422 00:25:36,540 --> 00:25:38,220 But, you know, it's still pretty cool. 423 00:25:38,440 --> 00:25:41,480 And in this SciPy, we have, like, a local variable 424 00:25:41,480 --> 00:25:43,360 FS reference before assignment, which 425 00:25:43,360 --> 00:25:46,020 is one of those more, just, like, good coding practice 426 00:25:46,020 --> 00:25:48,780 things, even though it can make your program crash, right? 427 00:25:48,940 --> 00:25:50,160 And there's many, many more. 428 00:25:50,280 --> 00:25:53,060 But these are just some of, like, the, just to kind of show 429 00:25:53,060 --> 00:25:55,440 you, like, the type of things that I found, right? 430 00:25:55,540 --> 00:25:58,460 And as you can see on this library field, I mean, 431 00:25:58,480 --> 00:25:59,460 we got bugs. 432 00:25:59,460 --> 00:26:02,420 Bugs in and Django, Flask, a bunch of stuff in NumPy. 433 00:26:02,780 --> 00:26:06,000 You know, pretty much every, like, popular Python library, 434 00:26:06,160 --> 00:26:07,820 we were able to, like, make crash or make 435 00:26:09,460 --> 00:26:11,340 misbehave somehow, which is really great. 436 00:26:13,780 --> 00:26:16,800 Yeah, so I kind of did this analysis 437 00:26:16,800 --> 00:26:22,080 with two different, like, models and some more models, 438 00:26:22,140 --> 00:26:23,160 which I'll kind of, like, describe later. 439 00:26:23,320 --> 00:26:27,020 But the OpenAI models were, like I said, the best. 440 00:26:27,180 --> 00:26:28,500 So as you can see here, the 3.5, 441 00:26:28,500 --> 00:26:31,840 it's significantly, I tested against the same 20 libraries. 442 00:26:32,180 --> 00:26:37,040 So the 3.5, it costs 0.02 cents per 1,000 tokens. 443 00:26:37,540 --> 00:26:42,360 So we were able to create 365 fuzzers. 444 00:26:42,460 --> 00:26:44,480 And 172 were able to run. 445 00:26:44,680 --> 00:26:47,640 So for the initial run, we had about 47% 446 00:26:47,640 --> 00:26:49,120 that were actually able to run. 447 00:26:49,220 --> 00:26:50,960 And this cost $0.29 in total. 448 00:26:51,620 --> 00:26:55,120 For the GPT-4 hitting the exact same 20 libraries, 449 00:26:55,320 --> 00:26:57,320 it created 405. 450 00:26:57,320 --> 00:27:00,180 But only 29% were able to run. 451 00:27:00,360 --> 00:27:02,140 I did a lot of, like, triaging on this 452 00:27:02,140 --> 00:27:03,100 and trying to figure it out. 453 00:27:03,320 --> 00:27:06,640 And I think it's because GPT-4 just created 454 00:27:06,640 --> 00:27:08,120 many more complex examples. 455 00:27:08,440 --> 00:27:10,340 Think about, like, the past cryptography one. 456 00:27:10,460 --> 00:27:15,040 Those were exclusively to GPT-4, versus, like, the ParseQS one 457 00:27:15,040 --> 00:27:15,960 was a 3.5. 458 00:27:16,200 --> 00:27:18,680 So, you know, from my analysis, the four 459 00:27:20,340 --> 00:27:21,800 were much more complex. 460 00:27:21,880 --> 00:27:24,620 And that's why they didn't run during the initial, like, 461 00:27:24,620 --> 00:27:25,480 creation of it. 462 00:27:25,540 --> 00:27:27,220 They needed to import more libraries. 463 00:27:27,320 --> 00:27:28,200 And stuff like that. 464 00:27:28,640 --> 00:27:33,640 But after I run the five try, like, fix loop, the 3.5 465 00:27:33,640 --> 00:27:35,300 was able to fix a significant number. 466 00:27:35,400 --> 00:27:38,400 It got up to 75% for a total cost of $0.42. 467 00:27:39,000 --> 00:27:42,140 Versus the four, it actually managed 468 00:27:42,140 --> 00:27:43,960 to fix more after that loop. 469 00:27:44,060 --> 00:27:45,180 So we got about 86%. 470 00:27:45,180 --> 00:27:48,020 We're actually able to, like, run and fuzz 471 00:27:48,020 --> 00:27:49,860 and get, you know, continuous, like, coverage. 472 00:27:50,000 --> 00:27:50,780 Like, decent coverage. 473 00:27:50,880 --> 00:27:55,280 I also wanted to get, you know, over hundreds of paths covered. 474 00:27:55,380 --> 00:27:56,980 So if they didn't reach, like, at least 475 00:27:57,320 --> 00:27:58,800 100 paths, I would just kind of cut them off there 476 00:27:58,800 --> 00:28:00,980 and send them again to, like, the fixed fuzz test. 477 00:28:01,840 --> 00:28:06,280 But anyway, as you can see here, like, the 3.5, just for $0.71 478 00:28:06,660 --> 00:28:09,400 total, we were able to get, like, 46 unique crashes. 479 00:28:10,300 --> 00:28:11,940 For the four, it cost about $50. 480 00:28:12,160 --> 00:28:14,280 But we were able to get 65 crashes. 481 00:28:15,680 --> 00:28:17,560 Many of them, like, converged and they were the same. 482 00:28:18,620 --> 00:28:20,520 The GPT-4 were often more complex. 483 00:28:20,740 --> 00:28:22,860 But they usually crash in the same, you know, 484 00:28:22,880 --> 00:28:24,460 some of the same parts as 3.5. 485 00:28:24,600 --> 00:28:26,900 So there were unique ones, but just because we're kind 486 00:28:26,900 --> 00:28:30,440 of targeting these Greenfield projects that don't have a lot 487 00:28:30,440 --> 00:28:35,860 of, like, fuzzers to them, they found many of the same bugs. 488 00:28:37,140 --> 00:28:39,380 So yeah, so basically, for, like, $50, 489 00:28:39,500 --> 00:28:42,240 you can write fuzzers and get a lot of, like, 490 00:28:42,240 --> 00:28:44,360 bones out of here, which is definitely cheaper than any, 491 00:28:44,420 --> 00:28:47,900 like, you know, software dev or, like, or hacker, 492 00:28:48,040 --> 00:28:48,980 pen tester, et cetera. 493 00:28:51,080 --> 00:28:53,460 So another part is, like, this other models. 494 00:28:53,540 --> 00:28:55,740 You know, I keep talking about, like, open AI models. 495 00:28:55,860 --> 00:28:56,240 And, like. 496 00:28:56,900 --> 00:28:57,960 You know, you're probably wondering, like, 497 00:28:57,980 --> 00:28:59,780 why would I use these exclusively? 498 00:28:59,980 --> 00:29:02,580 Isn't there others, like Salesforce or Palette, 499 00:29:02,640 --> 00:29:05,960 you know, this Hugging Face star coder and stuff like that? 500 00:29:06,180 --> 00:29:08,500 You know, because you can run these locally on your machine. 501 00:29:08,680 --> 00:29:09,620 Like, are they as powerful? 502 00:29:09,800 --> 00:29:11,500 And honestly, no, not yet. 503 00:29:11,780 --> 00:29:14,720 These were some of, like, the model comparisons for the same one. 504 00:29:15,040 --> 00:29:19,220 As you can see, like, the star coder, it doesn't even make sense, honestly. 505 00:29:19,420 --> 00:29:23,400 It just doesn't import the correct libraries or anything like that. 506 00:29:23,820 --> 00:29:26,760 The Salesforce one as well, like, it's going dev-y, 507 00:29:26,900 --> 00:29:27,400 random, RB. 508 00:29:27,800 --> 00:29:29,600 And it kind of imports this. 509 00:29:29,780 --> 00:29:31,940 But we're using the exact same prompt. 510 00:29:32,160 --> 00:29:35,740 But it's still, like, I don't know what to do with this 511 00:29:35,740 --> 00:29:36,720 or how to use it at all. 512 00:29:36,840 --> 00:29:40,960 So open AI models are just, at least in my experience, 513 00:29:41,080 --> 00:29:43,860 just like, you know, a level above, at least for code 514 00:29:43,860 --> 00:29:44,840 generation and understanding. 515 00:29:47,580 --> 00:29:50,880 Yeah, so the next steps in this, you know, 516 00:29:51,400 --> 00:29:53,480 I'm currently reporting all the bugs 517 00:29:53,480 --> 00:29:55,880 and, you know, notifying all the teams. 518 00:29:55,940 --> 00:29:56,780 So that's going really well. 519 00:29:56,900 --> 00:30:01,280 The next steps, of course, are to add some JavaScript 520 00:30:01,280 --> 00:30:03,700 functionality, because that's the second language 521 00:30:03,700 --> 00:30:05,980 that open AI, like, understands best. 522 00:30:06,780 --> 00:30:09,060 So that's kind of the big project that's next. 523 00:30:10,540 --> 00:30:14,120 I also did a little bit of testing on, like, 524 00:30:14,120 --> 00:30:15,980 improving existing fuzzers, right? 525 00:30:16,060 --> 00:30:18,040 So I did very minimal of, like, where 526 00:30:18,040 --> 00:30:20,780 I would get an existing Chrome fuzzer or a Linux kernel fuzzer 527 00:30:20,780 --> 00:30:26,880 that are in C and basically tell the LM, here's an existing fuzzer. 528 00:30:26,900 --> 00:30:28,140 Try to improve it. 529 00:30:28,540 --> 00:30:33,780 And for this, I had some, like, limited success. 530 00:30:34,740 --> 00:30:36,980 So I think I just need to, and one of the main goals 531 00:30:36,980 --> 00:30:40,660 is to, like, improve the prompts to get, like, more coverage, 532 00:30:40,760 --> 00:30:40,880 right? 533 00:30:40,940 --> 00:30:42,860 Because it's, a big part of it is kind of, like, 534 00:30:43,460 --> 00:30:45,680 figuring out these prompts, knowing what to ask for, 535 00:30:45,740 --> 00:30:46,840 knowing how to ask for it. 536 00:30:46,980 --> 00:30:47,700 It's really weird. 537 00:30:47,740 --> 00:30:48,680 It's like incantations. 538 00:30:48,680 --> 00:30:50,680 You don't know what's, you're just kind of, like, 539 00:30:50,720 --> 00:30:52,440 waving things and hoping it gives you a right answer. 540 00:30:54,040 --> 00:30:56,780 Second goal is, like, you know, integrate out-of-the-box, 541 00:30:56,900 --> 00:30:59,160 usage of different models, especially when they get better. 542 00:30:59,280 --> 00:31:00,980 Like, this is kind of low priority because as we saw, 543 00:31:01,060 --> 00:31:03,840 these different models, they're just not up to snuff, right? 544 00:31:04,460 --> 00:31:06,200 You know, I want to improve the coverage and analytics. 545 00:31:06,520 --> 00:31:10,320 But I think a big improvement is, like, this unit test, right? 546 00:31:10,540 --> 00:31:14,540 I'd like to modify it to write a unit test for these functions, 547 00:31:14,760 --> 00:31:16,020 especially to catch these crashes. 548 00:31:16,660 --> 00:31:20,980 And I know that this is a, like, a worthwhile investment 549 00:31:21,580 --> 00:31:23,600 of time because, you know, while I was performing 550 00:31:23,600 --> 00:31:25,120 this research throughout the beginning of the year 551 00:31:25,120 --> 00:31:25,800 and through summer. 552 00:31:26,400 --> 00:31:30,040 GitHub announced their program CopilotX, which is, like, 553 00:31:30,040 --> 00:31:33,060 supposed to integrate itself into the code base and lists, 554 00:31:33,160 --> 00:31:35,700 like, automatic unit test creation as a major feature. 555 00:31:36,040 --> 00:31:41,660 So, as you can see, like, this kind of test creation is really, 556 00:31:41,680 --> 00:31:42,840 like, what it excels at. 557 00:31:42,940 --> 00:31:45,060 Like, that's one of their main selling points for this, 558 00:31:45,120 --> 00:31:48,320 you know, really expensive CopilotX project. 559 00:31:49,000 --> 00:31:51,360 And it's something that we can do very easily. 560 00:31:51,440 --> 00:31:52,300 I mean, we're writing fuzzers. 561 00:31:52,400 --> 00:31:55,140 Unit tests are just kind of, like, a small modification to that. 562 00:31:57,540 --> 00:31:59,800 Yeah, so let's just end it off with, like, this implication 563 00:31:59,800 --> 00:32:03,780 for, like, AI, you know, for security people. 564 00:32:03,940 --> 00:32:05,580 Like, we keep hearing that, you know, 565 00:32:05,620 --> 00:32:08,340 ChatGPT will eliminate software devs. 566 00:32:08,420 --> 00:32:10,400 Like, will it end security professionals, too? 567 00:32:10,440 --> 00:32:12,540 And, like, no, no to either of those. 568 00:32:13,300 --> 00:32:15,280 Not only is it not good at finding bugs, 569 00:32:15,400 --> 00:32:16,740 it can't even write bug-free code. 570 00:32:16,880 --> 00:32:20,460 Often from the test, it had bugs in it. 571 00:32:21,440 --> 00:32:23,180 In fact, I actually think the opposite. 572 00:32:23,260 --> 00:32:25,400 Like, there's increasing software creation, 573 00:32:25,400 --> 00:32:26,440 because of these tools. 574 00:32:26,560 --> 00:32:30,120 I know many people that are using it to, like, write easy scripts, right? 575 00:32:30,180 --> 00:32:32,120 So more people are creating more software. 576 00:32:32,360 --> 00:32:34,400 So there's just going to be more, like, opportunities 577 00:32:34,400 --> 00:32:36,260 for these bugs to be introduced. 578 00:32:36,640 --> 00:32:39,700 But the trend has been, you know, throughout, you know, 579 00:32:39,700 --> 00:32:42,260 the history of, like, you know, off-sec, 580 00:32:42,300 --> 00:32:46,040 is that the bugs will become, like, more subtle and harder to find. 581 00:32:46,280 --> 00:32:48,220 Like, they're going to keep popping up, 582 00:32:48,240 --> 00:32:49,540 but it's just going to be more difficult. 583 00:32:51,180 --> 00:32:54,300 And then I put a link here to this famous paper 584 00:32:54,300 --> 00:32:55,280 called The Art and Science, 585 00:32:55,400 --> 00:32:56,400 and Engineering of Fuzzing. 586 00:32:56,800 --> 00:32:59,300 It's still, I think it holds very true. 587 00:32:59,480 --> 00:33:02,960 Like, sure, the LLMs may be able to abstract some of this engineering, 588 00:33:03,180 --> 00:33:04,900 but it's really more than that. 589 00:33:05,000 --> 00:33:08,680 It's kind of knowing how to set it, the art of it, right? 590 00:33:09,640 --> 00:33:12,600 In order to, like, get the good coverage and find these bugs. 591 00:33:12,760 --> 00:33:15,540 So there's still, you know, don't worry, guys. 592 00:33:15,600 --> 00:33:17,340 Like, we're still going to have jobs for a couple of years. 593 00:33:20,040 --> 00:33:22,960 Yeah, and then, yeah, basically, you know, 594 00:33:22,960 --> 00:33:24,480 to kind of go along with the DEF CON theme, 595 00:33:24,480 --> 00:33:25,960 what we really have to do is, you know, 596 00:33:25,980 --> 00:33:27,400 we really have to, like, adapt. 597 00:33:27,580 --> 00:33:29,080 I feel we have to adapt to this new tech 598 00:33:29,080 --> 00:33:31,160 and, like, ride the wave into the future, right? 599 00:33:31,220 --> 00:33:32,240 Like, there's always going to be new things. 600 00:33:32,420 --> 00:33:33,840 And like I said, as security people, 601 00:33:34,000 --> 00:33:36,260 we're, like, super jaded because everything is new. 602 00:33:36,440 --> 00:33:38,480 And, you know, we just see the same things pop up. 603 00:33:38,580 --> 00:33:41,920 But really, we've got to, like, I feel like we have to, like, 604 00:33:41,920 --> 00:33:43,760 use these tools to their best potential 605 00:33:43,760 --> 00:33:46,660 and just, like, use them to the best of our abilities 606 00:33:46,660 --> 00:33:47,960 and ride the wave into the future. 607 00:33:49,960 --> 00:33:50,780 Yeah, so thank you. 608 00:33:50,840 --> 00:33:54,460 And here are the different blog posts that I, you know, really, you know, 609 00:33:54,480 --> 00:33:57,140 talk about this stuff, like, in detail, right? 610 00:33:57,220 --> 00:33:59,000 Like, I'm actually going through the code. 611 00:33:59,140 --> 00:34:02,820 I show actual code snippets of, like, the agent loops and stuff like this. 612 00:34:02,960 --> 00:34:05,500 I just, these slides are more at a high level. 613 00:34:05,600 --> 00:34:08,700 But if you really want to dig deep, like, you know, go into these blog posts. 614 00:34:09,820 --> 00:34:14,120 These are, like, a really good prom course that I use throughout my research. 615 00:34:14,660 --> 00:34:17,620 And these were, like, other blog posts that, like, really helped 616 00:34:19,140 --> 00:34:20,820 kind of formulate this idea. 617 00:34:21,020 --> 00:34:22,820 And, you know, I talked to some of these people and kind of, like, 618 00:34:22,920 --> 00:34:24,440 they just gave me good feedback. 619 00:34:24,480 --> 00:34:27,100 So, like, really make this and really find, you know, all the different bugs. 620 00:34:28,040 --> 00:34:28,840 But, yeah, that's it. 621 00:34:28,900 --> 00:34:29,360 Thank you, guys. 622 00:34:30,900 --> 00:34:31,280 Awesome. 623 00:34:35,380 --> 00:34:35,760 Nice. 624 00:34:38,220 --> 00:34:38,600 Yeah. 625 00:34:38,940 --> 00:34:39,320 Yeah. 626 00:34:39,660 --> 00:34:40,880 Does anyone have any questions? 627 00:34:41,660 --> 00:34:42,140 You guys? 628 00:34:42,220 --> 00:34:42,640 We have a mic over there. 629 00:34:43,180 --> 00:34:44,000 A mic right here? 630 00:34:44,300 --> 00:34:44,460 Yep. 631 00:34:46,980 --> 00:34:47,480 All right. 632 00:34:47,520 --> 00:34:47,760 Sorry. 633 00:34:49,480 --> 00:34:52,660 So I really appreciated your breakdown on total cost. 634 00:34:52,900 --> 00:34:53,280 Yeah. 635 00:34:53,280 --> 00:35:00,040 I'm wondering if maybe not quite yet or if it's kind of in your plan to explore 636 00:35:00,040 --> 00:35:03,080 what it looks like to automatically generate and try to, like, automatically 637 00:35:03,080 --> 00:35:05,000 fix these things up to a certain budget. 638 00:35:05,300 --> 00:35:05,660 Yeah. 639 00:35:06,360 --> 00:35:11,160 Because right now, especially with GPT 3.5, it looks like it would end up 640 00:35:11,160 --> 00:35:14,820 being more cost effective, especially for a team that's maybe got to be budget 641 00:35:14,820 --> 00:35:17,980 conscious to get a lot of fuzzing done when they only care about, let's say, 642 00:35:18,000 --> 00:35:18,840 the bottom 80%. 643 00:35:19,340 --> 00:35:19,700 Yeah. 644 00:35:19,840 --> 00:35:22,160 So I don't know if that's something that you've already explored or. 645 00:35:22,720 --> 00:35:23,080 Yeah. 646 00:35:23,280 --> 00:35:23,540 Definitely. 647 00:35:23,840 --> 00:35:30,340 I mean, if you want mass scale, I just, the way I see it is, like, GP, the 3.5 is solid. 648 00:35:30,480 --> 00:35:35,060 But the 4 just gives you such, like, a higher level just for a small additional cost. 649 00:35:35,320 --> 00:35:37,560 I mean, 50 bucks is not that much. 650 00:35:38,080 --> 00:35:39,460 But I do agree with you. 651 00:35:39,500 --> 00:35:42,620 I think if you want just a quick and dirty, 3.5 is what you can do. 652 00:35:42,820 --> 00:35:43,260 Thank you. 653 00:35:45,460 --> 00:35:45,860 Hi. 654 00:35:46,060 --> 00:35:52,080 I saw you had the comparison of the, like, the review win ratio between 3.5 and 4. 655 00:35:52,280 --> 00:35:52,460 Yeah. 656 00:35:52,460 --> 00:35:52,860 And I'm wondering. 657 00:35:52,860 --> 00:35:57,940 For the ones that made it, did 3.5 take more iterations to fix something than 4? 658 00:35:58,160 --> 00:36:01,220 Like, did 4 fix it in one try more than 3.5? 659 00:36:01,900 --> 00:36:02,420 Yes. 660 00:36:02,540 --> 00:36:08,740 Actually, 3.5 often hit the, like, 5 limit, very often. 661 00:36:09,080 --> 00:36:11,940 Versus the 4, it almost always fixed it. 662 00:36:11,980 --> 00:36:17,800 All of these were, the 80% were within the 4, oftentimes within the 2 or 3. 663 00:36:18,100 --> 00:36:21,600 Versus the 3.5, it always hit the 5. 664 00:36:21,700 --> 00:36:22,440 Even when it. 665 00:36:23,540 --> 00:36:25,380 Fixed them, it would always hit the 5. 666 00:36:25,800 --> 00:36:26,420 So, yeah. 667 00:36:26,460 --> 00:36:26,640 Thank you. 668 00:36:29,220 --> 00:36:33,840 So, one of the concerns raised at a lot of presentations with LLMs is that they can't 669 00:36:33,840 --> 00:36:37,100 really describe the method by which they arrived at their result, right? 670 00:36:37,200 --> 00:36:38,820 And maybe that's going to get better over time. 671 00:36:39,300 --> 00:36:44,180 In fuzzing, we're usually concerned about documenting the process as much as possible 672 00:36:44,180 --> 00:36:51,020 so we can replicate the crash or error consistently or pass the context to your dev so that they 673 00:36:51,020 --> 00:36:52,840 can hopefully patch out the edge case. 674 00:36:53,680 --> 00:36:57,980 So, I'd be worried that you end up with a really cool fuzzing capability, but it's a 675 00:36:57,980 --> 00:36:59,680 black box to everyone that's using it. 676 00:36:59,860 --> 00:37:03,480 So, what recommendations do you have for the audience in regards to documenting your process 677 00:37:03,480 --> 00:37:07,500 as you're forging your prompts and working through creating these? 678 00:37:07,820 --> 00:37:08,600 Yeah, absolutely. 679 00:37:08,800 --> 00:37:09,860 That's a great question. 680 00:37:10,140 --> 00:37:15,340 So, you know, I try to do this, you know, with all my work. 681 00:37:15,400 --> 00:37:16,960 I try to be driven by metrics, right? 682 00:37:17,060 --> 00:37:19,840 So, every single test case, I put it in a separate directory. 683 00:37:20,080 --> 00:37:22,160 And it's not here. 684 00:37:22,440 --> 00:37:22,840 It's not here. 685 00:37:22,840 --> 00:37:23,500 It's not in this code snippet. 686 00:37:23,600 --> 00:37:24,960 It is in, like, the blog post. 687 00:37:25,160 --> 00:37:32,200 But we save all the run output into a specifically formatted, like, .JSON file, which we later 688 00:37:32,200 --> 00:37:35,040 are able to, like, triage because that's a very good point. 689 00:37:35,240 --> 00:37:40,620 And I also work by creating a directory for every single fuzz test and stuff like that 690 00:37:40,620 --> 00:37:42,780 so that we know exactly where it's at. 691 00:37:43,100 --> 00:37:46,460 But yeah, basically log every single thing in the JSON format. 692 00:37:46,780 --> 00:37:47,180 Sweet. 693 00:37:47,700 --> 00:37:48,180 Yeah. 694 00:37:48,360 --> 00:37:52,740 Have you found that some libraries or some types of functions, it has better 695 00:37:52,840 --> 00:37:55,940 intuition on how it writes fuzzing functions for? 696 00:37:55,960 --> 00:37:56,340 Yes. 697 00:37:56,340 --> 00:37:56,660 Yes. 698 00:37:56,820 --> 00:37:57,200 Definitely. 699 00:37:57,360 --> 00:38:02,800 If it's well used, if it's, like, a request library, we'll get a lot of bugs. 700 00:38:03,000 --> 00:38:04,680 It will be able to write, like, the cryptography. 701 00:38:04,800 --> 00:38:06,820 It was able to write really good intricate tests. 702 00:38:07,100 --> 00:38:14,580 But if it's a library that's not as popular, like, say this, you know, this IO HTTP, which 703 00:38:14,580 --> 00:38:19,640 is not as ‑‑ there's not just as much, like, stuff out there, it doesn't really know 704 00:38:19,640 --> 00:38:20,340 how to use it. 705 00:38:20,420 --> 00:38:22,440 So we get a lot of those, like, attribute errors. 706 00:38:22,440 --> 00:38:24,680 Because there's just not enough info for it to use. 707 00:38:26,040 --> 00:38:32,480 Did you experiment with the temperature settings or did you always use the default .7 parameter? 708 00:38:33,040 --> 00:38:33,460 No. 709 00:38:33,500 --> 00:38:41,500 I actually found that if you go a little bit ‑‑ if you increase it more, like, .7 was decent. 710 00:38:41,680 --> 00:38:46,680 But if you increase it specifically towards, like, the .9 and higher, that's when you 711 00:38:46,680 --> 00:38:49,020 start getting these really cool, interesting fuzzers. 712 00:38:49,060 --> 00:38:50,320 So that's one of the main things. 713 00:38:50,460 --> 00:38:52,420 Did you find an increase in hallucinogen? 714 00:38:54,980 --> 00:38:55,780 Yes, definitely. 715 00:38:56,200 --> 00:39:00,580 So after I increased the temperature, that's when I had to add, like, those attribute reminders. 716 00:39:00,920 --> 00:39:02,800 Because it would just kind of make it up out of nowhere. 717 00:39:03,040 --> 00:39:04,460 So yes, I tried to combat that. 718 00:39:04,720 --> 00:39:04,840 Yeah. 719 00:39:05,060 --> 00:39:05,640 Thank you. 720 00:39:06,600 --> 00:39:07,000 Hello. 721 00:39:07,600 --> 00:39:13,220 More of a kudos, but creating vulnerability exploits and fuzzing from manually, that looks 722 00:39:13,220 --> 00:39:14,500 like it's going to save a lot of time. 723 00:39:14,860 --> 00:39:20,020 And I can concur with you with vendors who release products into production that are 724 00:39:20,020 --> 00:39:20,960 very easily crashed. 725 00:39:21,160 --> 00:39:22,400 I've had a few vendors reach out to me. 726 00:39:22,400 --> 00:39:23,600 I said, no. 727 00:39:23,860 --> 00:39:25,040 I just alerted them. 728 00:39:25,400 --> 00:39:27,580 But it's very ‑‑ I agree with everything you're saying. 729 00:39:27,680 --> 00:39:28,080 So thank you. 730 00:39:28,420 --> 00:39:28,860 Yeah. 731 00:39:28,860 --> 00:39:29,060 Cheers. 732 00:39:29,200 --> 00:39:29,360 Yeah. 733 00:39:29,420 --> 00:39:29,840 Yeah. 734 00:39:29,840 --> 00:39:31,380 Luckily, people are, like, open to fixing it. 735 00:39:31,460 --> 00:39:31,960 But, yeah, definitely. 736 00:39:33,960 --> 00:39:38,180 In your talk, you mentioned that integrating Lang chains isn't worth it. 737 00:39:38,340 --> 00:39:44,760 And I was curious what your routines for, like, stitching automation around these processes 738 00:39:44,760 --> 00:39:46,620 was like and your approach to that. 739 00:39:46,900 --> 00:39:47,300 Yeah. 740 00:39:47,340 --> 00:39:47,680 Definitely. 741 00:39:48,380 --> 00:39:48,820 Yeah. 742 00:39:49,740 --> 00:39:51,900 So basically ‑‑ I'll be here for the sidebar. 743 00:39:52,020 --> 00:39:52,380 Yeah. 744 00:39:52,400 --> 00:39:52,440 Yeah. 745 00:39:52,520 --> 00:39:52,920 For exactly. 746 00:39:53,160 --> 00:39:55,820 Basically, Lang chain is just a really complex library. 747 00:39:56,020 --> 00:39:59,120 So it integrates these tools like Python and stuff like that. 748 00:39:59,400 --> 00:40:05,480 But, you know, in my experience, it's just ‑‑ it's like importing a gigantic library to 749 00:40:05,480 --> 00:40:06,400 do a small task. 750 00:40:06,660 --> 00:40:11,540 So I found that it's better just to, like, implement your own small loop with these specific 751 00:40:11,540 --> 00:40:11,960 tools. 752 00:40:12,060 --> 00:40:16,820 Because it has, like, a Python interpreter, but it's so wieldy and it tries to do everything. 753 00:40:17,020 --> 00:40:18,340 It tries to, like, instrument it and stuff. 754 00:40:18,440 --> 00:40:21,400 That just writing a basic, like, Python tool. 755 00:40:21,400 --> 00:40:24,460 A run tool is, like, much more effective. 756 00:40:24,680 --> 00:40:27,280 It may be better if you have, like, some crazy huge project. 757 00:40:27,480 --> 00:40:31,640 But I found that Lang chain is just too much stuff for something simple. 758 00:40:33,500 --> 00:40:34,460 Thank you. 759 00:40:34,560 --> 00:40:36,060 That was a great talk, by the way. 760 00:40:36,220 --> 00:40:36,400 Thank you. 761 00:40:36,760 --> 00:40:44,620 So have you experimented doing this with maybe an API interface ‑‑ or fuzzing 762 00:40:44,620 --> 00:40:51,380 an API interface or a web interface where you describe its inputs and outputs? 763 00:40:51,380 --> 00:40:53,540 And try to write tests around that. 764 00:40:55,440 --> 00:40:56,340 Similar, right? 765 00:40:56,420 --> 00:41:00,860 So you can put in API and it kind of understands it. 766 00:41:00,880 --> 00:41:03,780 I had some good success with, like, OAuth systems. 767 00:41:04,020 --> 00:41:09,440 So I'd, like, paste the documentation of an OAuth system and it would be able to, you 768 00:41:09,440 --> 00:41:12,360 know, do, like, the token exchanges and stuff like that. 769 00:41:12,580 --> 00:41:14,980 So it works limitedly like that. 770 00:41:15,180 --> 00:41:21,360 But if you were able to put, like, in, like, an open API, like, spec, it doesn't really, 771 00:41:21,380 --> 00:41:25,100 like, know how to ‑‑ it can write requests, but, you know, if you wanted to do something 772 00:41:25,100 --> 00:41:30,420 a little bit simple, you know, more complex, like switch requests or put, you know, binary 773 00:41:30,420 --> 00:41:32,260 data into them, it doesn't really know that. 774 00:41:32,400 --> 00:41:37,500 So simple things that exist, yes, but just open, like, REST APIs, no. 775 00:41:37,860 --> 00:41:38,440 Thank you. 776 00:41:39,840 --> 00:41:45,360 It sounds like you really care about the quality of software in the world. 777 00:41:45,840 --> 00:41:48,220 What is the next step for your project? 778 00:41:48,480 --> 00:41:50,980 Like are you going to release this in a way that ‑‑. 779 00:41:50,980 --> 00:41:52,460 Projects can use automated style? 780 00:41:53,260 --> 00:41:53,980 Yeah, definitely. 781 00:41:54,220 --> 00:41:55,260 It's all open source now. 782 00:41:55,460 --> 00:42:00,000 So right now I'm currently submitting all the bugs to, like, the Python devs. 783 00:42:00,840 --> 00:42:03,260 And the next step is, like, JavaScript stuff. 784 00:42:03,480 --> 00:42:08,240 So I'd like to get maybe if I can do it to, like, you know, like Google's OSS somehow, 785 00:42:08,520 --> 00:42:10,080 but, you know, that's to be determined. 786 00:42:10,160 --> 00:42:13,280 Right now I'm just, like, reporting all the bugs and stuff like that. 787 00:42:13,440 --> 00:42:14,340 But I would like to. 788 00:42:15,660 --> 00:42:17,060 Thank you for taking all the questions. 789 00:42:19,100 --> 00:42:20,900 Have you found or do you think there's any 790 00:42:20,980 --> 00:42:26,120 chance since you're feeding in the full function body code, is there a chance that's limiting 791 00:42:26,120 --> 00:42:29,160 the fuzzers' ability to write good tests? 792 00:42:29,360 --> 00:42:31,100 Because Python is untyped. 793 00:42:31,280 --> 00:42:35,420 Is it restricting the tests it applies versus just having the function signature? 794 00:42:35,960 --> 00:42:37,820 You know, that's a good question. 795 00:42:38,000 --> 00:42:43,740 So initially I would kind of paste in some, like, documentation as well, right? 796 00:42:43,840 --> 00:42:44,940 So that way it knows it. 797 00:42:45,080 --> 00:42:46,400 But if you notice some of these here. 798 00:42:48,580 --> 00:42:49,020 It. 799 00:42:50,380 --> 00:42:50,820 It. 800 00:42:50,820 --> 00:42:56,540 It does use it a little too, like, since these things do exist, it's able to, like, 801 00:42:56,560 --> 00:42:58,660 know, like, Unicode and stuff like that. 802 00:42:58,820 --> 00:43:00,580 But I did struggle with that. 803 00:43:00,660 --> 00:43:04,960 So I kind of experimented with adding, like, specific documentation of types, especially 804 00:43:04,960 --> 00:43:05,720 for the NumPy. 805 00:43:06,620 --> 00:43:08,640 And that was able to get, like, good success. 806 00:43:08,780 --> 00:43:10,820 But it is something that is very difficult. 807 00:43:11,000 --> 00:43:12,440 So I'm kind of struggling with that. 808 00:43:12,580 --> 00:43:16,420 But I find that just the doc links work pretty well. 809 00:43:16,500 --> 00:43:16,960 But it is hard. 810 00:43:17,040 --> 00:43:17,500 It's very hard. 811 00:43:18,420 --> 00:43:19,000 Thank you. 812 00:43:21,580 --> 00:43:21,940 Thank you. 813 00:43:21,940 --> 00:43:22,700 Thank you very much, everyone. 814 00:43:23,540 --> 00:43:23,980 Oh, yeah. 815 00:43:24,020 --> 00:43:24,700 Infinite forests. 816 00:43:28,840 --> 00:43:29,200 Yeah. 817 00:43:29,640 --> 00:43:30,720 And infinite forests. 818 00:43:30,840 --> 00:43:31,900 That's where all the cool stuff is. 819 00:43:32,080 --> 00:43:32,700 Thank you very much. 820 00:43:35,260 --> 00:43:35,620 Awesome. 821 00:43:35,740 --> 00:43:36,040 Thank you. 822 00:43:36,460 --> 00:43:36,820 . 823 00:43:36,820 --> 00:43:37,480 .