1 00:00:00,000 --> 00:00:04,040 We have Ivan with DeepFish Simulating Malicious AI. We'd 2 00:00:04,040 --> 00:00:07,020 like to thank our sponsors Endgame, Silence, Sophos and 3 00:00:07,020 --> 00:00:09,660 Tinder. And without further ado, here's Ivan. 4 00:00:17,260 --> 00:00:25,740 Okay. So last talk before lunch. Let's see how it is. So my name 5 00:00:25,740 --> 00:00:29,460 is Ivan Torroledo or Ivan Torroledo in my language. I'm 6 00:00:29,460 --> 00:00:32,920 going to give a talk that we call DeepFish Simulating 7 00:00:32,920 --> 00:00:39,380 Malicious AI. So first of all, let's see who I am. So I am the 8 00:00:39,380 --> 00:00:43,740 lead data scientist for the research team Axix Terra. I 9 00:00:43,740 --> 00:00:48,960 studied physics and economics. Additional to the data science 10 00:00:49,560 --> 00:00:54,660 research that I do, I also like to use Fortran and do a lot of 11 00:00:54,660 --> 00:00:55,720 stuff doing data science. So I'm going to give a talk about 12 00:00:55,740 --> 00:00:59,760 parallel computing. And finally, I am from Colombia. 13 00:01:00,200 --> 00:01:05,740 However, I hate coffee. Yeah. It's a sad story for me in 14 00:01:05,740 --> 00:01:10,420 Colombia, but. So here is my Twitter account if you want to 15 00:01:10,420 --> 00:01:16,220 follow me. So let's start. I like to start my talk using this 16 00:01:16,220 --> 00:01:19,860 figure because basically it provides the motivation that we 17 00:01:19,860 --> 00:01:24,240 had at the beginning of this project. Here we have the Google 18 00:01:24,240 --> 00:01:25,720 Trends results. This is the Google Trends results. This is 19 00:01:25,740 --> 00:01:28,340 the Google Trends results for the keyword cybersecurity and AI. 20 00:01:29,800 --> 00:01:33,240 As you can see, in the last three or four years, there has 21 00:01:33,240 --> 00:01:37,940 been a dramatic increase in the interest of the people around the 22 00:01:37,940 --> 00:01:42,540 relationship between these both topics. So if I had to summarize 23 00:01:42,540 --> 00:01:50,320 our current scenario, it should be this. Yeah. Everyone is 24 00:01:50,320 --> 00:01:55,680 talking about AI in cybersecurity. So knowing this, I 25 00:01:55,740 --> 00:01:58,500 have the beginning of the year, we started to look for the newest 26 00:01:59,160 --> 00:02:03,500 cybersecurity marketing trend. And we found out several news 27 00:02:04,720 --> 00:02:12,120 wondering about how AI can be applied to cyber attacks. So if 28 00:02:12,120 --> 00:02:17,420 these were a Terminator movie, people would be wondering about 29 00:02:17,420 --> 00:02:23,220 if Skynet is already among us trying to destroy the world. So 30 00:02:24,640 --> 00:02:25,720 despite all of this, we are still trying to figure out how to 31 00:02:25,740 --> 00:02:27,140 destroy the world. So despite all of this news and marketing 32 00:02:27,140 --> 00:02:31,500 noise, we don't have a real evidence if this is happening. 33 00:02:32,020 --> 00:02:36,840 So the real question that we need, we first needed to ask 34 00:02:37,310 --> 00:02:47,640 ourselves was, is AI a real threat? Okay. So as a research 35 00:02:47,640 --> 00:02:51,260 team, we decided to start testing this question and this 36 00:02:51,260 --> 00:02:55,720 hypothesis. So by analyzing deeply the question and the 37 00:02:55,720 --> 00:03:00,300 idea, we realized that the first question that we need to answer 38 00:03:00,300 --> 00:03:05,380 is, how attackers may enhance their campaigns and attacks using 39 00:03:05,380 --> 00:03:12,940 AI? Okay. So to start testing this question, we needed first to 40 00:03:12,940 --> 00:03:16,860 define a use case. So we choose phishing campaigns and phishing 41 00:03:16,860 --> 00:03:20,980 attacks as the first one. The main reason behind this decision 42 00:03:20,980 --> 00:03:25,240 was that almost ninety-one percent of cyber attacks and 43 00:03:25,240 --> 00:03:25,700 cybercrime attacks were based on communication. The main reason was, 44 00:03:25,700 --> 00:03:31,720 time it starts with a phishing email. So phishing is still, is 45 00:03:31,720 --> 00:03:36,520 one of the most important tools that each attacker has and if 46 00:03:36,520 --> 00:03:42,180 an attacker start using AI probably they would start using, 47 00:03:42,260 --> 00:03:47,720 start improving their phishing attacks. So once we define the 48 00:03:47,720 --> 00:03:53,020 question, once we define the use case we can start creating an 49 00:03:53,020 --> 00:03:58,500 experiment. So we created an experiment that has three steps 50 00:03:58,500 --> 00:04:04,420 and we call that simulating malicious AI. So at the first 51 00:04:04,420 --> 00:04:09,320 step we wanted to evaluate, to identify some individual 52 00:04:09,320 --> 00:04:18,180 tractors. So why we need to do that? So basically the main goal 53 00:04:18,180 --> 00:04:22,640 of this project is to understand the effective patterns of phish 54 00:04:22,640 --> 00:04:23,000 attacks. So basically the main goal of this project is to 55 00:04:23,020 --> 00:04:27,980 identify an attacker and try to improve them using AI. So as we 56 00:04:27,980 --> 00:04:33,600 can not know attackers directly, we must learn about them using 57 00:04:34,200 --> 00:04:38,800 their, their attacks. So to achieve this we collected a 58 00:04:38,800 --> 00:04:43,280 database with almost 1.1 million phishing attacks coming from 59 00:04:43,280 --> 00:04:49,220 phish tank and we decide to analyze this data. So how do 60 00:04:49,220 --> 00:04:52,900 you analyze 1 million phishing attacks? Incredible task 61 00:04:53,020 --> 00:04:59,140 so we started by looking for the most common domains in our 62 00:04:59,140 --> 00:05:04,280 database. It led us to this first domain called nailer and 63 00:05:04,280 --> 00:05:09,740 ticks dot com. Basically this domain belongs to online tick, a 64 00:05:09,740 --> 00:05:14,200 store that obviously was compromised previously. And in 65 00:05:14,200 --> 00:05:22,180 the whole database we found 406 URLs using the same domain. Now 66 00:05:22,180 --> 00:05:28,260 to check if this set of URLs belong to the same attacker, we 67 00:05:28,260 --> 00:05:31,640 want to verify if they were targeting the same institution. 68 00:05:31,960 --> 00:05:37,360 So we did a visual check from the, to the screen, screenshots 69 00:05:37,360 --> 00:05:41,260 available in phish tank and we realized that they were targeting 70 00:05:41,260 --> 00:05:44,980 the same institution. In this case a major Brazilian bank 71 00:05:44,980 --> 00:05:49,660 called Bradesco. So finally we can say that this set of URLs 72 00:05:49,660 --> 00:05:52,160 belong to the same attacker because they were targeting the 73 00:05:52,160 --> 00:05:58,080 same institution. Now what happens if the attacker is not 74 00:05:58,080 --> 00:06:04,380 only using one domain? It's a fair question. So we started to 75 00:06:04,380 --> 00:06:08,440 look for this strategy in the whole database. So by analyzing 76 00:06:08,440 --> 00:06:12,800 the data we realized that they were some keywords commonly 77 00:06:12,800 --> 00:06:17,580 using the data. So we collected these keywords to define the 78 00:06:17,580 --> 00:06:22,140 attacker strategy. Now by checking this, this set of URLs 79 00:06:22,160 --> 00:06:25,620 are using the same strategy in the whole database. Voila! We 80 00:06:25,620 --> 00:06:31,520 found 105 additional domains using the same strategy. So 81 00:06:32,440 --> 00:06:36,980 finally the last thing that we need to do is to verify if they 82 00:06:36,980 --> 00:06:40,480 were targeting the same institution. So again we did the 83 00:06:40,480 --> 00:06:46,240 visual check and voila. We verify that they were targeting 84 00:06:46,240 --> 00:06:51,380 also the same institution. So finally at the end we can say 85 00:06:52,160 --> 00:06:57,000 that this whole set of URLs belong to the same attacker 86 00:06:57,480 --> 00:07:01,380 because they were targeting the same institution and they were 87 00:07:01,380 --> 00:07:07,580 using the same strategy. Okay so cool. We just uncovered one 88 00:07:07,580 --> 00:07:13,660 factor in our 1.1 million phishing attacks. So we keep 89 00:07:13,660 --> 00:07:16,940 doing this process for a while. So we found additional domains 90 00:07:16,940 --> 00:07:21,900 using additional strategies and targeting another institution for 91 00:07:21,900 --> 00:07:26,820 example in this case we found that they were targeting a 92 00:07:26,820 --> 00:07:32,900 Canadian bank called TD Canadian Trust. So at the end we just 93 00:07:32,900 --> 00:07:36,920 uncovered several tradactors using this strategy. So that was 94 00:07:37,980 --> 00:07:46,240 the first step. Now once we uncover or we identify some 95 00:07:46,240 --> 00:07:50,900 tradactors we wanted to evaluate how effectively they can bypass 96 00:07:51,180 --> 00:07:51,880 our data. So we wanted to evaluate how effectively they can 97 00:07:51,900 --> 00:07:55,540 bypass our detection system. Indeed our own AI detection 98 00:07:55,540 --> 00:08:02,280 system. So how we do? First of all of course we needed to 99 00:08:02,280 --> 00:08:08,260 define our detection system. So for this case we used an AI 100 00:08:08,260 --> 00:08:13,240 classification model that we created previously. Basically it's 101 00:08:13,240 --> 00:08:20,780 a model that is using LSTM neural networks and basically by 102 00:08:20,780 --> 00:08:21,880 analyzing each of these networks we were able to identify the 103 00:08:21,880 --> 00:08:25,700 patterns that each URL the model is able to learn defective 104 00:08:25,700 --> 00:08:29,360 patterns or the or to gather the strategies and the patterns that 105 00:08:29,360 --> 00:08:35,220 each URL has and at the end produce a probability if the URL 106 00:08:35,220 --> 00:08:39,140 is being used for phishing attacks. That's the whole 107 00:08:39,140 --> 00:08:46,580 intuition behind this model. Okay so once we define the detection 108 00:08:46,580 --> 00:08:51,320 system or our own AI detection system we started to measure how 109 00:08:51,320 --> 00:08:57,140 effectively they can bypass our detection system. So to measure 110 00:08:57,140 --> 00:09:02,060 this we define something that we call the effectiveness rate. The 111 00:09:02,060 --> 00:09:06,180 effectiveness rate is defined as the percentage of URLs that are 112 00:09:06,180 --> 00:09:11,780 able to bypass our detection systems. So for the whole data 113 00:09:11,780 --> 00:09:18,680 base we found that we found that the effectiveness rate was 0.24 114 00:09:18,680 --> 00:09:24,580 percent. Okay? Now for the threat actor number one that we 115 00:09:24,580 --> 00:09:29,940 just uncovered we found that the effectiveness rate was a little 116 00:09:29,940 --> 00:09:35,340 bit higher. 0.69 percent. Finally for the threat actor 117 00:09:35,340 --> 00:09:40,610 number two we found that the effectiveness rate was 4.91 118 00:09:42,040 --> 00:09:48,460 percent. Now at the end we can say that that despite these 119 00:09:48,680 --> 00:09:53,280 two threat actors that we just uncovered were a little bit more 120 00:09:53,280 --> 00:09:57,080 effective to bypass our detection systems than the average attacker 121 00:09:57,080 --> 00:10:01,180 in the whole data base we are doing a really good job with our 122 00:10:02,040 --> 00:10:08,960 detection systems in the whole data base. So we can say yes. We 123 00:10:08,960 --> 00:10:16,840 are winning the battle. Cool. So that was the second step. Now 124 00:10:16,840 --> 00:10:18,660 let's see the final and final step. So the first step is to 125 00:10:18,680 --> 00:10:24,360 the most interesting step, the third one. So in this step we 126 00:10:24,360 --> 00:10:29,740 wanted to improve their phishing attacks of phish attacker using 127 00:10:30,060 --> 00:10:37,760 AI. So let's see how we achieved this. So to answer to achieve 128 00:10:37,760 --> 00:10:42,780 this we created an algorithm called DeepFish. So let's see 129 00:10:42,780 --> 00:10:48,660 how it works. First of all the model that we are using is the 130 00:10:48,680 --> 00:10:52,260 tool we are using to divide the data of each attacker into a set 131 00:10:52,260 --> 00:10:58,300 of non-effective URLs that the algorithm, our detection system, 132 00:10:58,460 --> 00:11:04,700 was able to catch and a set of effective URLs that bypass our 133 00:11:04,700 --> 00:11:11,260 detection systems. Okay. So taking this last set we 134 00:11:11,260 --> 00:11:15,000 transform the data, we encode the data into a mathematical 135 00:11:15,000 --> 00:11:18,660 representation such that we can input the data to these other 136 00:11:18,660 --> 00:11:24,440 this data into an AI model. So what kind of model did we use? 137 00:11:27,540 --> 00:11:33,280 Again we use an LSTM model or long term term memory that 138 00:11:33,280 --> 00:11:38,780 basically the whole intuition behind this model is we give one 139 00:11:38,780 --> 00:11:45,700 URL to the model. The model a catch or gather all the patterns 140 00:11:45,700 --> 00:11:52,780 in the URL and then start producing new characters that at 141 00:11:52,780 --> 00:11:58,060 the end we collect these characters to build new URLs 142 00:11:58,060 --> 00:12:03,640 following the same patterns that the previous URL had. Okay so 143 00:12:03,640 --> 00:12:10,900 that's the model that the AI model that we use. So once we 144 00:12:10,900 --> 00:12:15,680 have this model and once we have this trained model we can 145 00:12:15,680 --> 00:12:22,780 start producing new URLs in the following way. So first of all 146 00:12:23,880 --> 00:12:30,320 we give to the model one seed. For example it can be a segment 147 00:12:30,320 --> 00:12:35,860 of an URL that attacker has and we start producing new characters 148 00:12:36,820 --> 00:12:43,760 to create new paths. Then we filter that paths to gain some 149 00:12:45,680 --> 00:12:50,300 information and by joining these data with a set of compromised 150 00:12:50,300 --> 00:12:55,020 domain that the attacker should have at the end we are able to 151 00:12:55,020 --> 00:13:02,140 create something that we call a synthetic URL with this form. So 152 00:13:02,140 --> 00:13:07,540 basically to summarize we created an algorithm that was 153 00:13:07,540 --> 00:13:15,660 able to analyze the URL that we gave to the model and produce new URLs following the same patterns. 154 00:13:15,680 --> 00:13:24,720 That's the whole idea behind this model. Okay so that was the experiment. So let's see the results. 155 00:13:25,060 --> 00:13:34,020 So as you remember in the traditional way the attacker number one has an effect in the rate of 156 00:13:34,360 --> 00:13:45,120 0.69 percent and the second one 4.91 percent. So what happens when the attacker start using AI? 157 00:13:47,860 --> 00:13:57,720 Boom. We can see that for the threat actor number one we increase the effectiveness rate from 0.69 percent to 20 percent. 158 00:13:57,920 --> 00:14:13,560 And for the threat actor number two we increase the effectiveness rate to 36 percent. So with these results we can say that if an attacker start using AI in the way that this fish does. 159 00:14:15,680 --> 00:14:21,400 They will be able to bypass our detection systems more effectively than before. 160 00:14:22,480 --> 00:14:33,860 Yeah that's the experiment and that's the conclusion. So if this fish could say something they will say something like this. You are doomed. 161 00:14:35,640 --> 00:14:45,480 Yeah. Okay so however don't panic. We keep improving so the follow the next steps in this experiment 162 00:14:45,680 --> 00:15:15,600 is to include another AI tools for example deep adversarial learning or generative models that basically at the end including these models we are going to be able to anticipate how attackers may use AI to enhance their attacks and by anticipating this we can say that we are going to be winning the battle against AI and Skynet again. 163 00:15:16,320 --> 00:15:19,760 For the next year. So thanks so much.