1 00:00:00,000 --> 00:00:04,960 We're sitting here with another team at the AICC Challenge, which is the AI Cybersecurity Challenge. 2 00:00:04,960 --> 00:00:09,840 They were supposed to make an autonomous team to both find bugs and automatic patch them. 3 00:00:09,840 --> 00:00:12,480 There's whole content around what it is. 4 00:00:12,480 --> 00:00:21,400 We want to sit down with you guys, talking about your approach, what you did, how is your approach different than other teams, how it works, some of the challenges. 5 00:00:21,400 --> 00:00:23,420 So let's start off here. 6 00:00:23,420 --> 00:00:29,760 When you guys first heard of this challenge, why did you decide to join the AICC? 7 00:00:30,540 --> 00:00:31,840 Maybe I can start. 8 00:00:31,840 --> 00:00:44,600 So I heard this challenge in Black Hat 2023, if I remember it correctly, because my student and I are presenting our works at the Black Hat. 9 00:00:44,640 --> 00:00:57,720 And when Perry Adams announced that DARPA is going to have this competition, it's going to explore whether AI techniques can be used to solve some security issues, especially to find bugs and patch bugs. 10 00:00:57,720 --> 00:01:01,080 And I think it's quite exciting and it's a very interesting topic. 11 00:01:01,080 --> 00:01:10,740 And also, I mean, as someone from academia, we always want to explore something that nobody else has already explored. 12 00:01:10,740 --> 00:01:11,760 Right , so that's... 13 00:01:11,760 --> 00:01:23,560 And then I quickly shared this information with some of my other friends, including my previous advisors in academia, and asked if they are interested and if we can team up or something like that. 14 00:01:23,560 --> 00:01:26,140 Right, so that's basically how the story begins. 15 00:01:26,140 --> 00:01:29,420 It's like, okay, interesting thing, we should do interesting things. 16 00:01:29,480 --> 00:01:30,300 That's it. 17 00:01:30,300 --> 00:01:33,860 So you formed a team, you started it. 18 00:01:33,860 --> 00:01:37,320 Was there a baseline of like, here is how I think we're going to do it? 19 00:01:37,320 --> 00:01:44,020 Because you were allowed to use commercial tools if you wanted to, you could use it off the shelf orchestration system. 20 00:01:44,020 --> 00:01:47,920 You could kind of decide how much of large language models you wanted to do. 21 00:01:47,920 --> 00:01:51,060 What was like your initial approach of how you thought you were going to build it? 22 00:01:51,060 --> 00:01:53,120 And then how did you end up building it? 23 00:01:53,120 --> 00:01:53,820 Oh, yeah. 24 00:01:53,820 --> 00:01:55,360 So that's a great question. 25 00:01:55,360 --> 00:02:01,220 Because, you know, like the techniques to find bugs and patch bugs have already been developed for decades. 26 00:02:01,220 --> 00:02:05,180 There are lots of mature tools, like fuzzing tools or static analysis tools. 27 00:02:05,180 --> 00:02:09,820 And of course, at the very beginning, we always want to explore whether these tools can work or not. 28 00:02:10,020 --> 00:02:20,800 Right, so at the very beginning, I remember it's like about like three months, we have lots of debates and lots of discussion and lots of like evaluation of the existing tools. 29 00:02:20,800 --> 00:02:29,480 And we're trying to figure out, OK, whether this tool works, whether that tool works, and how can we introduce machine learning techniques to kind of like orchestrate these tools. 30 00:02:29,480 --> 00:02:32,180 So we have lots of testing, lots of evaluation. 31 00:02:32,200 --> 00:02:37,980 And we come up with a very initial design, which is, I mean, at the very beginning, we proposed a solution. 32 00:02:37,980 --> 00:02:49,500 It's like we are going to build lots of agents in a system using these agents to, for example, call this tool to get some results and using the agency based on a large language model, right? 33 00:02:49,500 --> 00:03:02,280 And the agency is going to use the reasoning capability provided by the model to orchestrate the traditional tools to get results that we want and how to put the output of this tool as input to another tool or something like that. 34 00:03:02,280 --> 00:03:05,340 So that's our initial solution. 35 00:03:05,660 --> 00:03:15,040 And during the competition, we gradually find some limitations of existing traditional tools and also limitations of the foundation model. 36 00:03:15,060 --> 00:03:24,020 So we modified our design a little bit, and we're trying to figure out, especially trying to figure out how to deal with the hallucination of a foundation model. 37 00:03:24,020 --> 00:03:36,700 And finally, we make a, I mean, our final approach is like we still have lots of classical tools in our system, but still we're using foundation model to kind of like, for example, use it to develop patches. 38 00:03:36,700 --> 00:03:51,620 And we also use some like, maybe we can call them classical AI techniques, not like a larger model, something like neural network or something like even like decision tree in our system and trying to do some small tasks. 39 00:03:51,680 --> 00:03:58,280 And then we're going to use a system that are going to orchestrate all these classical tools and also AI tools. 40 00:03:58,540 --> 00:04:02,240 So just a little bit of background on your team. 41 00:04:02,240 --> 00:04:06,500 Have you guys competed in like traditional DEF CON CTF before? 42 00:04:06,500 --> 00:04:08,420 Are you a relatively new team? 43 00:04:08,420 --> 00:04:11,160 Have you all attended DEF CON previously? 44 00:04:11,160 --> 00:04:11,840 Yeah. 45 00:04:11,940 --> 00:04:12,820 Okay. 46 00:04:13,860 --> 00:04:15,240 So this guy is from the... 47 00:04:15,240 --> 00:04:19,800 Yeah, so I was previously played DEF CON for the Ketamine. 48 00:04:19,800 --> 00:04:22,420 Yeah, his previous name is AoE. 49 00:04:22,600 --> 00:04:22,680 Yeah. 50 00:04:23,000 --> 00:04:23,660 Yeah. 51 00:04:23,660 --> 00:04:27,480 And I was previously affiliated with another team called the Down Team. 52 00:04:27,480 --> 00:04:39,240 So in your solution for the Cyber Challenge, did you use any existing frameworks from your prior interactions with either DEF CON CTF or prior? 53 00:04:39,240 --> 00:04:42,640 I know there was a previous competition, the Grand Challenge. 54 00:04:42,640 --> 00:04:52,220 Did you use any existing frameworks that you were already using or did you spin up everything new for this challenge? 55 00:04:52,460 --> 00:04:54,260 We're not starting from scratch. 56 00:04:54,260 --> 00:04:54,660 Okay. 57 00:04:54,660 --> 00:05:03,800 And unfortunately, I didn't have the chance to participate in the Grand Challenge because at that time I'm still doing my undergraduates. 58 00:05:03,800 --> 00:05:10,280 So we use lots of existing tools like AFL and also other tools. 59 00:05:10,280 --> 00:05:14,020 But I think because, I mean, it's a challenge, right? 60 00:05:14,020 --> 00:05:18,860 So trying to means that you cannot just build a system using the off-shelf tools. 61 00:05:18,860 --> 00:05:20,840 You must have some innovations in it, right? 62 00:05:20,840 --> 00:05:27,640 So we use some existing techniques, but we also introduce lots of like emergent techniques, lots of new stuff into the system. 63 00:05:28,080 --> 00:05:28,120 Yeah . 64 00:05:28,120 --> 00:05:29,660 So you say emerging techniques. 65 00:05:29,660 --> 00:05:33,980 Can you explain what one of the emerging techniques would have been? 66 00:05:34,260 --> 00:05:39,540 Yeah, so emergent techniques, I mean, in this context is of course the machine learning techniques, right? 67 00:05:39,540 --> 00:05:52,760 So lots of different machine learning models, not only large language models, but also other techniques that we can leverage to make the system more automated and make the system to be less Oracle guided. 68 00:05:52,880 --> 00:05:54,700 Well, be more specific. 69 00:05:54,700 --> 00:06:00,360 Like what technically were you adding on that was something new, novel, which you said it's an emerging technique. 70 00:06:00,360 --> 00:06:02,080 What specifically? 71 00:06:02,320 --> 00:06:02,960 Oh yeah. 72 00:06:02,960 --> 00:06:06,100 So because this system is trying to find bugs and patch bugs, right? 73 00:06:06,100 --> 00:06:08,300 So we have different components. 74 00:06:08,600 --> 00:06:12,000 We call them subsystems in the tool. 75 00:06:12,000 --> 00:06:16,400 And we have the components for finding bugs, component for patching bugs. 76 00:06:16,400 --> 00:06:21,460 So for patching bugs, we are mainly relying on the foundation models, large language models. 77 00:06:21,460 --> 00:06:31,960 And we also use some tools to verify that the patch generated by the model is correct and thus remediate the bugs. 78 00:06:31,960 --> 00:06:34,160 So that's for the patching components. 79 00:06:34,160 --> 00:06:48,340 And for the components that's trying to find bugs, because in the final, we have a new model, which is called Delta model, which basically is like you have some code change, some code diff, and they're trying to figure out whether this code diff will introduce new bugs or not, 80 00:06:48,340 --> 00:06:48,480 right? 81 00:06:48,480 --> 00:06:55,200 So we use an existing technique, which is called a direct fuzzing to find the bugs in the code diff. 82 00:06:55,200 --> 00:07:01,200 But the direct fuzzing basically means that you must have some guidance about where the fuzzing should go, right? 83 00:07:01,200 --> 00:07:03,800 So we must give some feedback to the direct fuzzing. 84 00:07:03,800 --> 00:07:11,360 And we introduce some machine techniques trying to prove the call graphs generated by classical tools. 85 00:07:11,720 --> 00:07:18,340 For example, the classical tools can always generate some false positives, which will make the efforts diluted. 86 00:07:18,340 --> 00:07:26,740 But the machine learning techniques is able to prune some call edges in a call graph, and then we can be more focused on the target. 87 00:07:26,960 --> 00:07:28,420 Some examples, yeah. 88 00:07:28,420 --> 00:07:39,900 So this competition went over the course of two years, and we all kind of know that the large language models have gotten a lot better in the past two years, and some of them have gotten worse. 89 00:07:39,900 --> 00:07:54,860 But did you find anything surprising, as time went on, about how your techniques started using the large language models versus how they were, we'll say, in the second year? 90 00:07:54,860 --> 00:08:02,720 Like, how did your approach change over the first year to the second year, maybe with the patching mechanisms or the guided fuzzing mechanisms? 91 00:08:02,720 --> 00:08:04,540 Did anything surprise you? 92 00:08:04,540 --> 00:08:05,700 Yeah, of course. 93 00:08:05,880 --> 00:08:11,560 So personally, I think I kind of underestimate the large language model at the very beginning. 94 00:08:11,700 --> 00:08:14,120 So it's almost two years ago. 95 00:08:14,120 --> 00:08:19,680 At that time, we only have models like the GPT-4, and the Cloud 4 wasn't there, right? 96 00:08:19,680 --> 00:08:21,940 And GPT-5, of course, wasn't there. 97 00:08:21,940 --> 00:08:27,620 So I kind of underestimate the capability of the large language model. 98 00:08:27,620 --> 00:08:30,760 So at the very beginning, we have lots of doubts about them. 99 00:08:30,760 --> 00:08:36,720 So that's why we choose to use, for example, lots of classical techniques in our system. 100 00:08:36,780 --> 00:08:41,820 But the development of large language model is very surprising. 101 00:08:44,400 --> 00:08:50,720 And nowadays, people are talking about agents, and agents weren't there about two years ago. 102 00:08:50,780 --> 00:08:56,240 So yeah, I have to admit that we kind of underestimate the development of large language model. 103 00:08:57,000 --> 00:09:05,320 Actually, I don't think we fully leverage the capability of large language model, which is actually our future direction. 104 00:09:05,320 --> 00:09:15,720 It's like we want to introduce more techniques from large language model to try to make our system better and to be more general across different software. 105 00:09:15,940 --> 00:09:27,960 It's interesting to me when we talk to the other teams is it seemed that the teams that did better in the contest relied a lot more on the large language models than others, where they didn't just use the classical tools. 106 00:09:27,960 --> 00:09:31,680 And the ones that really embraced and pushed forward, did you notice that as well? 107 00:09:32,180 --> 00:09:43,180 You guys, do you think one of the things that made you do better in the contest was that you relied on large language models more or that you relied on more of the classical attacks more? 108 00:09:44,320 --> 00:09:45,280 Sure. 109 00:09:46,380 --> 00:09:47,120 Maybe. 110 00:09:47,940 --> 00:09:51,040 I think there are different stages. 111 00:09:51,780 --> 00:09:57,360 I mean, at the very first beginning, we will try to find bugs. 112 00:09:57,360 --> 00:10:01,940 And the next one, we will try to fix bugs. 113 00:10:01,940 --> 00:10:10,840 And for the portion of the large language models, I think most of the credit or large language models are used to generating patches. 114 00:10:10,840 --> 00:10:19,620 And for the very first stage, I developed a system for generating POC or initial seed for fuzzy. 115 00:10:19,620 --> 00:10:34,400 This is a combination of a traditional way and AI way to find a kind of effective path to a potential vulnerability sync point. 116 00:10:34,400 --> 00:10:49,060 And for the finals, they introduced another mode, like a serif mode, which is they broadcast a static analysis result in kind of JSON format. 117 00:10:49,060 --> 00:10:54,220 And they just want us to verify this is true positive or false positive. 118 00:10:54,340 --> 00:11:01,580 We use pure large language models, the AI way to verify the results. 119 00:11:01,880 --> 00:11:11,040 And thanks to the MCP, because MCP, the Model Context Protocol, is very new in this year, and it's very popular. 120 00:11:11,040 --> 00:11:16,580 So thanks to MCP, we can integrate it very fast with large language models. 121 00:11:16,580 --> 00:11:19,120 Yeah, and this part is pure AI, I think. 122 00:11:19,120 --> 00:11:19,520 Yeah. 123 00:11:19,520 --> 00:11:31,940 So I know that the teams obviously have been working in relative secrecy, you know, across from each other, but the contest was structured such that everyone needs to open source their solution at the end. 124 00:11:31,940 --> 00:11:33,880 I have two questions. 125 00:11:33,880 --> 00:11:35,540 Have you gotten any time? 126 00:11:35,540 --> 00:11:38,240 I know everything just got released and you're talking about it. 127 00:11:38,240 --> 00:11:42,380 Have you gotten any time to look at what the other teams did for the competition? 128 00:11:42,380 --> 00:11:48,900 And are you planning to go back and continue working on your current solution to evolve it further? 129 00:11:54,370 --> 00:12:02,030 I think, kind of improvement, I think for the AI portions is... 130 00:12:02,030 --> 00:12:08,430 I have to admit that we underestimated the power of the large language models portion. 131 00:12:08,430 --> 00:12:15,230 So I think for the most significant parts would be we can use everything. 132 00:12:15,230 --> 00:12:18,530 We can use AI to everything, every part of our component. 133 00:12:18,530 --> 00:12:21,650 And I think from the results, yeah. 134 00:12:23,090 --> 00:12:28,670 Yesterday I saw every team use large language models in every part of their component. 135 00:12:28,670 --> 00:12:30,530 I think it will be, yeah, significant. 136 00:12:30,530 --> 00:12:40,530 So after the announcement, we actually have lots of discussions with other teams and they're trying to explore what other teams are doing with the agent and the large language model. 137 00:12:41,210 --> 00:12:48,370 And so that's why I'm thinking like, because kind of underestimate the capability of large language models at the very beginning. 138 00:12:48,370 --> 00:12:57,710 But I think, I mean, it's the end of a competition, but it's not the end of the game of exploring large language models for vulnerability finding and vulnerability patching. 139 00:12:57,710 --> 00:12:58,850 They're just a start. 140 00:12:59,130 --> 00:12:59,570 Right . 141 00:13:00,070 --> 00:13:00,510 And... 142 00:13:00,510 --> 00:13:09,270 Yeah, it's been fun asking the teams, like in hindsight, if you had perfect vision of the past, what advice would you give to your past self? 143 00:13:09,350 --> 00:13:12,370 And a lot of teams are saying that we wish we would have relied on them more. 144 00:13:12,370 --> 00:13:13,770 We underestimated them. 145 00:13:13,770 --> 00:13:21,570 Is there something specific where you, if you could give yourself one piece of advice before the contest started, what would that advice be? 146 00:13:22,610 --> 00:13:30,670 So for me, so actually, I mean, our team, the system that developed by our teams are very excellent at finding bugs. 147 00:13:30,670 --> 00:13:41,190 So actually we are the second in finding bugs and we are the first reporting the serif reports, but we are not doing very well at patching bugs. 148 00:13:41,210 --> 00:13:45,710 So actually it's not because we are not using large command, large command a lot. 149 00:13:45,710 --> 00:13:53,350 It's because like, because some like small bugs, some critical, but a small but a critical bugs in our integration, right? 150 00:13:53,350 --> 00:14:14,830 So if I'm going to give some advice to myself, like two years ago, I would say, we should put more efforts in integration, put more efforts into the engineering things, but more importantly is, so I'm thinking it's like, maybe we can, instead of using the oracles or heuristics to integrate the system, 151 00:14:14,830 --> 00:14:22,670 I would say, okay, could you explore more potential of using larger language model to integrate the system? 152 00:14:22,670 --> 00:14:28,890 Because larger language model, it could have been, it's likely to be more general and more flexible than the traditional approaches. 153 00:14:29,910 --> 00:14:31,410 What about you guys? 154 00:14:31,490 --> 00:14:35,530 Yeah, for me, it's do not change the code at a deadline. 155 00:14:36,030 --> 00:14:41,330 Yeah, I mean, we did pretty well, like the fundamental vulnerabilities. 156 00:14:41,350 --> 00:14:45,090 Yeah, we want to sacrifice, find bugs and submit them. 157 00:14:45,090 --> 00:14:50,610 But yeah, as you know, the scoreboard, we didn't patch so much. 158 00:14:51,090 --> 00:14:59,430 Yeah , yeah, that's why we introduced a small box at the deadline before the, like submitting the code to the DAFA. 159 00:14:59,430 --> 00:15:08,830 Yeah, and that small mistake provide us submit 80% of our patches to the final. 160 00:15:08,970 --> 00:15:18,530 Yeah, so if I said to the previous myself, I would say like, just keep the code, do not change at the very end, yeah. 161 00:15:18,730 --> 00:15:21,050 Yeah, it's actually very interesting. 162 00:15:21,050 --> 00:15:26,290 It's like, actually we found this small critical bugs after we submit all the codes to DAFA. 163 00:15:26,670 --> 00:15:35,970 So actually we already know that our system is likely that, you know, because of bugs, our system is not fully behave itself. 164 00:15:36,710 --> 00:15:37,750 Yeah. 165 00:15:37,870 --> 00:15:39,810 Well, thank you so much. 166 00:15:39,810 --> 00:15:42,390 Again, your team was 42 beyond bugs. 167 00:15:42,390 --> 00:15:44,030 Thank you so much for sharing. 168 00:15:44,030 --> 00:15:47,410 I cannot wait to dive into your system when you release it. 169 00:15:47,590 --> 00:15:49,750 Thank you for sharing with us. 170 00:15:49,750 --> 00:15:50,870 Thank you for watching. 171 00:15:51,490 --> 00:15:52,410 And hack on.