1 00:00:00,000 --> 00:00:08,100 So this is now 3.30 talk with Harrison Erland and the talk is called SoLong and Thanks for all the Fish. 2 00:00:08,140 --> 00:00:13,640 All right, give these guys, this is our first talk, so give them a good warm round of applause. 3 00:00:15,060 --> 00:00:16,880 They're from Deutschland. 4 00:00:21,660 --> 00:00:22,860 Hello. 5 00:00:23,560 --> 00:00:25,060 Is the sound OK? 6 00:00:27,280 --> 00:00:34,000 Thank you everyone for coming to our presentation called SoLong and Thanks for all the Fish. 7 00:00:34,180 --> 00:00:37,040 This presentation is about the story. 8 00:00:37,040 --> 00:00:51,820 It's a storytelling presentation where we will guide you through all the steps that we had to go through from receiving a text message to identifying scammering and the people behind the software. 9 00:00:52,920 --> 00:00:58,000 So my name is... does the clicker work? 10 00:00:58,000 --> 00:00:58,660 No. 11 00:00:58,660 --> 00:01:00,280 My name is Erland. 12 00:01:00,280 --> 00:01:06,340 I work in a security company called Mnemonic in Norway where I do pen testing. 13 00:01:06,720 --> 00:01:10,420 Yes, and my name is Harrison and I do the exact same thing as Erland. 14 00:01:10,480 --> 00:01:13,280 And for those of you in the back here, here's what we look like. 15 00:01:16,300 --> 00:01:22,460 So our project, it started back in the end of 2023. 16 00:01:23,240 --> 00:01:39,740 And at that time, it was like a pandemic of phishing messages where people would send you text messages about packages in the mail with a link and you needed to pay some postage fee or something. 17 00:01:39,840 --> 00:01:44,100 And on the screen, it's like the message that we received. 18 00:01:44,100 --> 00:01:48,100 I received it personally and it's from the Norwegian Postal Office. 19 00:01:48,220 --> 00:01:53,940 And I want me to click this link and fill out my credit card details. 20 00:01:54,500 --> 00:01:59,600 The news coverage at that time was very scarce. 21 00:01:59,600 --> 00:02:01,680 It told you basically two things. 22 00:02:01,680 --> 00:02:04,580 You should not click the link and you should delete the message. 23 00:02:04,760 --> 00:02:06,700 And we found that a little bit upsetting. 24 00:02:06,700 --> 00:02:15,260 We really wanted to know what can we find out if we click the link and use our skills to see what was really going on. 25 00:02:15,280 --> 00:02:24,800 So we felt a bit, what you can call it, courageous and we decided to not follow all the advices and we clicked the link. 26 00:02:26,600 --> 00:02:27,660 All right. 27 00:02:27,680 --> 00:02:46,260 So we clicked on the link and as you expected, you got a page for the website basically pretending to be the postal service showed up on our phone and it was, I mean, the example that we had was for the Norwegian Postal Service but just imagine this applies to any country on the planet. 28 00:02:46,260 --> 00:02:48,100 There's different templates that exist. 29 00:02:48,160 --> 00:02:51,120 So it worked on the phone and then we loaded it up on our browser. 30 00:02:51,120 --> 00:02:53,100 So we mainly work with web application security. 31 00:02:53,100 --> 00:02:56,740 So the first thing you want to do is load it up into burp and kind of see the traffic going back and forth. 32 00:02:57,140 --> 00:03:01,880 Unfortunately, the first thing we got was this not found page which was a bit disappointing. 33 00:03:02,380 --> 00:03:06,500 We figured, okay, what's the difference between what we're sending and what our phone is sending? 34 00:03:07,580 --> 00:03:11,560 We tried changing the user agent to see if they were checking that. 35 00:03:12,240 --> 00:03:13,980 Unfortunately, that didn't work. 36 00:03:14,840 --> 00:03:17,260 But then eventually we found that they were checking two things. 37 00:03:17,260 --> 00:03:23,560 It was the user agent and then they were also, what we think they were doing was checking that it was coming from a mobile network. 38 00:03:23,560 --> 00:03:27,240 So that if you were connecting from Wi-Fi or whatever because they were sending it to your phone, right? 39 00:03:27,240 --> 00:03:29,360 So they expect you to come from a mobile network. 40 00:03:29,360 --> 00:03:35,520 So they checked what IPs and I think that's probably to prevent people from spamming with fake data maybe. 41 00:03:35,520 --> 00:03:36,320 I don't know. 42 00:03:37,560 --> 00:03:41,860 So now that we have the website up and running , we can see the traffic moving back and forth. 43 00:03:43,420 --> 00:03:45,520 Maybe some of you are familiar with this. 44 00:03:45,520 --> 00:03:48,280 They were using a standard library called socket IO. 45 00:03:48,500 --> 00:03:55,300 For those of you not familiar, it's basically just a framework for sending messages back and forth between a browser and a back end web server. 46 00:03:57,340 --> 00:04:01,860 One of those messages looked like this when we were kind of filling out the form. 47 00:04:02,400 --> 00:04:05,000 If it looks like nothing to you, it almost looked like nothing to us. 48 00:04:05,000 --> 00:04:08,940 It was basically a bunch of obfuscated data going back and forth. 49 00:04:09,760 --> 00:04:11,220 So we decided to break it down. 50 00:04:11,220 --> 00:04:12,420 What exactly is going on here? 51 00:04:12,420 --> 00:04:16,680 So we kind of went through each part of the message bit by bit. 52 00:04:18,140 --> 00:04:24,000 You know, so there was a type field, a data field, a user field and a room field. 53 00:04:24,020 --> 00:04:32,360 Type in room just looked like a character set in length for maybe an MD5 hash and data looked like it was base 64 encoded. 54 00:04:32,400 --> 00:04:42,620 If you decoded that string, you got a, it started with some ASCII text that said salted and then a bunch of garbage so we figured some kind of encryption was going on here. 55 00:04:43,780 --> 00:04:46,080 So obviously another layer of obfuscation. 56 00:04:46,080 --> 00:04:47,100 And that's kind of a reoccurring thing. 57 00:04:47,100 --> 00:04:54,340 You'll see a few different scenarios throughout the presentation where they really try and add a few steps just to make it a bit more difficult to figure out what's going on. 58 00:04:55,620 --> 00:04:59,600 So we wanted to dig a bit deeper into the obfuscation. 59 00:05:00,840 --> 00:05:09,000 Because they were doing encryption and because the encryption was being done in the browser, we figured there's probably going to be some keys sitting somewhere in the JavaScript. 60 00:05:10,020 --> 00:05:12,060 So we went into the developer options. 61 00:05:12,080 --> 00:05:15,020 We found some functions called the encrypt and decrypt. 62 00:05:15,020 --> 00:05:16,080 We set a break point. 63 00:05:16,620 --> 00:05:21,360 And then any time that encrypt or decrypt function gets called, you can see what gets passed in. 64 00:05:21,360 --> 00:05:24,820 And normally that's going to be a key and the data that you want to have encrypted. 65 00:05:24,880 --> 00:05:26,400 So that's exactly what we did. 66 00:05:26,600 --> 00:05:29,680 And then you can see on the right hand side, you see sync data. 67 00:05:29,680 --> 00:05:30,900 That was actually the key. 68 00:05:30,960 --> 00:05:35,280 And then there's a JSON blob underneath that and that's the data that they were asking to get encrypted. 69 00:05:35,280 --> 00:05:37,360 And this is basically just the phishing data that's getting sent back and forth. 70 00:05:37,360 --> 00:05:40,460 So if you type in your name or address or whatever, that's what's getting encrypted. 71 00:05:41,040 --> 00:05:52,120 So now that we had a key, we made a small JavaScript utility where you could just type in that encrypted string and it would spit out the plain text back. 72 00:05:52,680 --> 00:05:59,360 So to kind of summarize what everything is going on here, we were able to find in the JavaScript that type was actually another string, sync data. 73 00:05:59,760 --> 00:06:01,800 The data looked like this. 74 00:06:02,260 --> 00:06:04,540 And room was actually admin. 75 00:06:05,200 --> 00:06:09,400 So now we're kind of seeing like logically how they're maybe thinking about building this application. 76 00:06:09,400 --> 00:06:13,020 So you're sending messages to an admin room. 77 00:06:16,020 --> 00:06:19,560 So this is the kind of like real time. 78 00:06:19,560 --> 00:06:29,260 So as you're typing in the data, type in your name and address, you can see with each character like entered into the field, a message is sent over web sockets. 79 00:06:29,920 --> 00:06:33,380 So at this point we figured, okay, there's probably a back end that's receiving this in real time. 80 00:06:33,380 --> 00:06:37,120 Maybe there's kind of like some admin panel. 81 00:06:37,920 --> 00:06:38,560 Yeah. 82 00:06:38,560 --> 00:06:45,760 And also when we talk with some people, they felt that they were not phished because they never pressed the submit button. 83 00:06:45,760 --> 00:06:48,760 They might be getting second thoughts at the final field. 84 00:06:48,960 --> 00:06:55,080 But as you can see, it was already too late because you kind of had submitted the text without pressing enter. 85 00:06:55,240 --> 00:06:55,880 Yep. 86 00:06:58,930 --> 00:07:03,990 So here's just another example where you can see as you started filling out data, you have 1, 2, 3, 4 MAI. 87 00:07:03,990 --> 00:07:07,470 I didn't finish typing in the address there. 88 00:07:07,470 --> 00:07:09,450 So just an example of what you can see. 89 00:07:09,930 --> 00:07:10,950 So we kept digging. 90 00:07:11,230 --> 00:07:15,070 When you first opened the page, it sent a different type of message. 91 00:07:15,070 --> 00:07:17,150 And this was a join command, whatever. 92 00:07:17,150 --> 00:07:20,090 I mean, they made this so we're still trying to figure out how it was put together. 93 00:07:20,290 --> 00:07:23,970 But you're joining a room but that string was empty. 94 00:07:24,050 --> 00:07:27,550 So we're sending messages to an admin room but we're joining a nothing room. 95 00:07:27,550 --> 00:07:32,530 So like, okay, what if we replace that text and just join the admin room? 96 00:07:33,790 --> 00:07:37,290 And this is exactly what we saw when we joined the admin room. 97 00:07:37,290 --> 00:07:47,330 It was a real time stream of everybody that was connected to that phishing site as they were typing in their name, address, credit card data, everything. 98 00:07:47,330 --> 00:07:53,370 And you could see it character for character as they were typing it in just like you saw when we were kind of demoing how you got phished. 99 00:07:53,430 --> 00:07:58,530 So this is blurred for obvious reasons but this was an actual video feed we took when we saw what was going on. 100 00:08:02,350 --> 00:08:07,310 Then, we started to like, try and take apart, okay, what are in these messages. 101 00:08:07,310 --> 00:08:13,910 So aside from the phishing data, there were some debug messages basically. 102 00:08:13,910 --> 00:08:18,390 Kind of like messages between different application components. 103 00:08:18,510 --> 00:08:20,950 So they weren't just using it for the phishing data. 104 00:08:21,270 --> 00:08:25,030 So this was a message, it's not exactly the one that we saw but it's very similar. 105 00:08:25,050 --> 00:08:26,870 Unfortunately, I don't have a proper screen shot. 106 00:08:26,970 --> 00:08:34,530 But basically in that data field, instead of those characters there, it was a debug message for a database. 107 00:08:35,290 --> 00:08:39,650 And it had the name of the database that it was sending those debug messages to. 108 00:08:40,690 --> 00:08:44,390 And the name of the database was Darkula. 109 00:08:44,570 --> 00:08:46,210 And at a point, they're like, it stuck out to us. 110 00:08:46,210 --> 00:08:46,690 Like, what is that? 111 00:08:46,690 --> 00:08:47,830 Is that the name of the software? 112 00:08:47,950 --> 00:08:48,590 Don't know. 113 00:08:48,590 --> 00:08:49,810 We started Googling. 114 00:08:50,750 --> 00:08:51,950 Maybe some of you know. 115 00:08:53,070 --> 00:08:57,470 Darkula is also the name of a theme for VS code or IDs. 116 00:08:57,970 --> 00:09:00,350 So it was just around nothing relevant really there. 117 00:09:00,350 --> 00:09:05,530 But then we thought around this time, criminals like to hang out on Telegram. 118 00:09:05,530 --> 00:09:08,930 So we typed in the word Darkula into Telegram. 119 00:09:11,620 --> 00:09:18,880 So the two results that we got, it was a user name called Darkula. 120 00:09:19,200 --> 00:09:26,340 And he was the administrator of a group called Darkula that had almost 500 members at that time. 121 00:09:28,000 --> 00:09:36,320 In this group, all the members, or very many of the members, liked to brag about what they were doing, were showing off. 122 00:09:36,880 --> 00:09:44,260 This was the Android phones that they would use to send the RCS messages with. 123 00:09:44,440 --> 00:09:52,200 You can see that they have put some green tape over the camera, so they are a bit cautious about what they're doing. 124 00:09:55,780 --> 00:10:08,640 They posted pictures of their setup with mobile modems, bunch of SIM cards in boxes, iPhones, iPads for iMessage. 125 00:10:08,640 --> 00:10:14,700 The servers, we don't know, but we guess they are using those to emulate Android devices. 126 00:10:17,320 --> 00:10:23,120 They also showed what they did with the credit cards that they received. 127 00:10:23,220 --> 00:10:33,100 When we saw this, we were a bit baffled because we didn't think it was possible to add that many cards to a phone without getting some fraud detection or something like that. 128 00:10:33,300 --> 00:10:53,100 And it hadn't occurred to us that by adding a card to your Google Wallet or on your Android or iPhone, that you only need to get a validation pin once, and then you can continue to use a stolen card forever without actually being challenged with a new pin. 129 00:10:54,080 --> 00:11:22,620 They would show the bank statements, how they would use these credit cards to cash out on terminals, how they would spend your stolen money on the first class tickets and bars, nice cars, parties, and other versions of Las Vegas. 130 00:11:25,460 --> 00:11:44,300 But the user Darkala, what we believed to be the developer of this phishing kit back then, he was quiet, he did only post technical stuff, and the pinned message was installation instructions on how you should get this phishing kit installed on your own Linux server. 131 00:11:44,300 --> 00:11:56,680 So it was a simple one-liner, you would execute this command on your rented Linux virtual machine, and moments later, you would have a working copy of the phishing kit. 132 00:11:56,680 --> 00:11:58,800 But it was not licensed yet. 133 00:11:58,800 --> 00:12:00,780 Harrison will get into that now. 134 00:12:02,720 --> 00:12:08,220 All right, so, digging a bit into the phishing platform now that we had a copy running on a server that we controlled. 135 00:12:09,200 --> 00:12:11,860 So, as Arlan mentioned, it was an easy one -liner. 136 00:12:11,980 --> 00:12:16,600 You just run it, and then they give you a URL so you can log in. 137 00:12:16,600 --> 00:12:21,680 So there's a hidden back-end admin panel with a unique URL, unique for each server. 138 00:12:21,680 --> 00:12:23,040 They give you a username and password. 139 00:12:23,120 --> 00:12:24,740 This is what it looks like when you log in. 140 00:12:25,100 --> 00:12:33,760 So the video here, it's a step-by-step through all the different menu options. 141 00:12:34,160 --> 00:12:35,340 We were a bit surprised. 142 00:12:35,340 --> 00:12:37,680 It was actually quite well developed. 143 00:12:38,220 --> 00:12:43,100 You could even back up all of your stolen data to Telegram in case your server got taken down. 144 00:12:45,480 --> 00:12:53,520 But, as Arlan alluded to, in the bottom left-hand corner, you see a big red box. 145 00:12:53,520 --> 00:12:56,680 And if you don't read Chinese, it basically says you need to pay for a license. 146 00:12:58,320 --> 00:13:06,920 But now that we had, you know, we had the software running on our own server, we could dig a bit deeper into the back-end to see what it was, what kind of code it was running. 147 00:13:06,980 --> 00:13:09,420 It was written in Node.js. 148 00:13:10,620 --> 00:13:11,960 This is what the code looked like. 149 00:13:11,960 --> 00:13:15,140 Another example of obfuscation, just a bunch of nothing. 150 00:13:17,660 --> 00:13:22,860 We found out that they were using an obfuscation tool called JavaScript Obfuscator. 151 00:13:22,860 --> 00:13:24,480 It's an open source project. 152 00:13:24,480 --> 00:13:25,720 You can just download it from GitHub. 153 00:13:26,220 --> 00:13:30,340 There's also another open source project on GitHub called Synchrony. 154 00:13:30,520 --> 00:13:33,620 And it basically just does the exact opposite of what the JavaScript Obfuscator does. 155 00:13:33,620 --> 00:13:39,740 So you just take the obfuscated code, you put it in, and then you get, basically, then you just get normal, more or less normal Node.js code back out again. 156 00:13:39,840 --> 00:13:41,960 So now we can look at the code and actually see, okay, what's going on? 157 00:13:41,960 --> 00:13:44,140 What kind of functions does this application have? 158 00:13:45,180 --> 00:13:54,860 So I'm not going to get too much into the weeds here, but basically what this arrow is pointing to is a part of the code that handles activations. 159 00:13:54,920 --> 00:13:59,660 And not just client activations, like I'm running a client and I need to activate against a licensing server. 160 00:13:59,660 --> 00:14:03,040 This actually contained code to be the licensing server. 161 00:14:03,040 --> 00:14:04,360 It was the same code base. 162 00:14:05,100 --> 00:14:10,660 So what it did was it checked, like, is my host name the host name of the licensing server? 163 00:14:10,660 --> 00:14:16,200 If yes, then enable a hidden menu and you can issue your own licenses to run the software. 164 00:14:17,460 --> 00:14:25,160 Not the best visualization here, but basically we just made some NGINX configurations and tricked it into thinking it was its own authorization server. 165 00:14:27,440 --> 00:14:32,920 And it's supposed to be playing? 166 00:14:33,240 --> 00:14:33,760 Maybe? 167 00:14:35,260 --> 00:14:39,280 There we go. 168 00:14:39,300 --> 00:14:39,620 Okay. 169 00:14:39,620 --> 00:14:40,520 So now I got two tabs. 170 00:14:40,520 --> 00:14:43,600 One is the regular server and one is the authorization server. 171 00:14:43,600 --> 00:14:44,960 So now you see a hidden menu. 172 00:14:45,880 --> 00:14:49,060 And then you can click on a button that says, like, generate new license key. 173 00:14:49,060 --> 00:14:50,560 You give the license key a name. 174 00:14:52,100 --> 00:14:53,720 You give it an expiration time. 175 00:14:53,720 --> 00:14:56,160 Normally licenses are issued for a few weeks at a time. 176 00:14:56,580 --> 00:14:58,220 We just set a few years. 177 00:14:58,860 --> 00:15:10,160 You get the license code and then you can go back to your same server, but you go back to your phishing server, click on the red button, paste it in, and now you have a green box, which is good. 178 00:15:10,980 --> 00:15:15,740 So now we could use the phishing platform to its fullest extent, like emulating actual phishing sites. 179 00:15:16,220 --> 00:15:17,500 And back to burp again. 180 00:15:18,960 --> 00:15:21,280 So we mainly work with application security. 181 00:15:21,280 --> 00:15:28,700 One of the most basic first checks that you do is kind of playing around with authorization. 182 00:15:29,140 --> 00:15:33,500 Do they check that you're actually, you know, are you providing a valid token? 183 00:15:33,580 --> 00:15:35,400 So you see that admin token line there. 184 00:15:36,680 --> 00:15:40,620 If we remove it, they give you a 401. 185 00:15:40,620 --> 00:15:41,480 You need to log in. 186 00:15:41,480 --> 00:15:42,340 Good for them. 187 00:15:44,160 --> 00:15:51,520 However, we read through the code and we found out that there was a if statement on that authorization check. 188 00:15:51,520 --> 00:16:03,800 And it says if the host header is this value here, local host, and if you provide a refer header that you can see here, then you don't need to check for admin token. 189 00:16:04,400 --> 00:16:17,100 So then you can see on, so basically we took away the admin token, we provided these two headers here, and then now you can use the API as if you were logged in as a, um, as a phisher or a scammer . 190 00:16:21,600 --> 00:16:22,640 Yeah. 191 00:16:22,920 --> 00:16:30,280 So the way the, uh, this ecosystem worked was that there were servers on the internet . 192 00:16:30,280 --> 00:16:35,180 It was, uh, servers for the, um, the licensing. 193 00:16:35,180 --> 00:16:46,020 It would be servers for hosting the installation files, the docker images, and also the individual pages that impersonate well-known brands. 194 00:16:47,220 --> 00:17:03,960 We were interested in finding the licensing server because as Harrison just showed, you would fill out a comment and we suspected that the people behind it would use it for bookkeeping to keep track of who had bought the different licenses. 195 00:17:04,820 --> 00:17:23,320 So we would try to find it on the internet amongst all IPs on the IPv4 space, the server itself was hidden behind CloudFlare and, uh, we wanted to see if we can find it, the, the origin IP that is not behind CloudFlare. 196 00:17:24,880 --> 00:17:43,140 Since the application was containerized, it meant that every installation was, uh, unique and as we saw that the software is dual purpose, we knew that it only required to be configured with the right host name, so we suspected that the same setup was used also for the licensing server. 197 00:17:43,260 --> 00:17:53,400 We made a single fingerprint and used Shodan to search for servers that match this fingerprint of, uh, technologies. 198 00:17:53,820 --> 00:18:11,340 We had about 800 results, a few of them were false positives, but with this we were able to find all the phishing instances on the internet and we already knew the API fairly well so we could interrogate each and every one and see, are you the licensing server? 199 00:18:11,340 --> 00:18:14,120 And we kept on going until we, we found it. 200 00:18:15,500 --> 00:18:26,800 Uh, it was hosted in, uh, Los Angeles, uh, by Multicom that is in the Ian building on the marketing material. 201 00:18:27,060 --> 00:18:30,640 Uh, they say it's on the fourth floor if I remember correctly. 202 00:18:31,060 --> 00:18:36,300 Uh, we suspect it is actually hosted on the left bottom image. 203 00:18:36,560 --> 00:18:38,000 Hiding behind the guy. 204 00:18:38,000 --> 00:18:38,720 Yeah. 205 00:18:39,000 --> 00:18:44,960 It's just a joke, but it's, it's in this floor somewhere according to the marketing material. 206 00:18:47,180 --> 00:19:04,900 And we were, we were able to extract all the licenses so we could see that in a period of, uh, I think it was four months, they had, uh, issued over 5,000 licenses and we could see who had bought them and also where it was activated from. 207 00:19:07,720 --> 00:19:09,440 So yeah, just one comment on that last slide. 208 00:19:09,440 --> 00:19:18,560 You could, uh, I know it's a bit small, um, but you have the license key, you have the telegram handle for all the users and the date and time it was valid for as well as the, uh, IP that was activated. 209 00:19:18,560 --> 00:19:20,580 So that's the origin for every single phishing server. 210 00:19:20,580 --> 00:19:22,660 So good, nice information to have. 211 00:19:23,140 --> 00:19:26,560 Um, so with all of this, we figured it was a good time to talk to the police. 212 00:19:27,220 --> 00:19:30,020 So we put a 24 page report together. 213 00:19:30,320 --> 00:19:36,720 Um, Ireland and myself, you know, we're based out of Norway, so we initially contacted the Norwegian law enforcement, even though this is a global issue. 214 00:19:37,460 --> 00:19:39,860 Um, so we, we shared it with a few agencies there. 215 00:19:39,860 --> 00:19:43,640 We talked with Europol, uh, Europol, uh, also distributed to the FBI. 216 00:19:44,580 --> 00:19:49,320 Um, Europol invited us to The Hague, so we each flew out once, uh, so we were there twice. 217 00:19:49,740 --> 00:19:51,340 Um, we had good discussions with them. 218 00:19:51,340 --> 00:19:53,340 They were quite happy to receive the information. 219 00:19:53,740 --> 00:19:59,380 Um, in the end, we kind of learned that, uh, they said thanks and that was that. 220 00:19:59,540 --> 00:20:00,960 So we kept poking around ourself. 221 00:20:02,340 --> 00:20:08,600 Um, now, uh, because we had API access to the licensing server, we wanted to see, okay, what other data can we get out of this? 222 00:20:08,940 --> 00:20:15,920 Um, this message here was a, it was an access logs, uh, for the licensing server. 223 00:20:16,020 --> 00:20:23,360 It logs the IP address, the user agent, um, post header and, uh, basically the, that there was a not found error. 224 00:20:23,360 --> 00:20:28,660 And what we think happened here was that, um, there was an admin logged in, right? 225 00:20:28,660 --> 00:20:29,940 Because you can see that unique URL. 226 00:20:29,940 --> 00:20:34,480 So you know that somebody knew this secret, uh, and they were accessing a JavaScript file that didn't exist. 227 00:20:34,480 --> 00:20:39,960 So maybe there was a mismatch between, maybe he updated the software and it had a unique JavaScript, but the client wasn't updated. 228 00:20:39,960 --> 00:20:41,460 So it asked for something that wasn't there. 229 00:20:41,460 --> 00:20:49,920 Anyway, it generated this not found error, but the IP of that not found is the IP of the admin who logs into the licensing server. 230 00:20:49,920 --> 00:20:54,180 So this is the IP, that's basically their, uh, internet IP for their, yeah. 231 00:20:54,620 --> 00:20:56,140 We looked it up on Shodan. 232 00:20:56,360 --> 00:21:00,580 It was a, uh, virtual server hosted in Alibaba cloud in Hong Kong. 233 00:21:01,120 --> 00:21:03,460 Um, we didn't know too much about this. 234 00:21:03,460 --> 00:21:06,000 Uh, we figured though it was going to be some type of VPN. 235 00:21:06,000 --> 00:21:14,140 We weren't sure if it was a private VPN that was set up or if it was, uh, like, uh, an exit node for lots of VPN users. 236 00:21:14,500 --> 00:21:25,640 Um, in China, if you're located in mainland China, it's quite common, especially if you work in tech to set up a VPN server so that you can access Western sites to basically get access to what you need to do development. 237 00:21:26,300 --> 00:21:28,580 Um, so we figured maybe this is what he's doing. 238 00:21:29,000 --> 00:21:34,920 Uh, we looked, uh, we're going way down the rabbit hole here saying what else is associated with this IP address? 239 00:21:35,700 --> 00:21:38,780 Um, mnemonic, we have a passive DNS service. 240 00:21:38,780 --> 00:21:47,880 There's lots of them out there, but basically what it is is a historical record of, uh, DNS records saying this IP was associated with this domain name back at this point in time. 241 00:21:48,280 --> 00:21:54,980 Uh, so we were able to see that about a year prior to our research, it was associated with a domain, uh, here, ifshe.com. 242 00:21:55,380 --> 00:22:00,240 Uh, had no idea, maybe like most likely in the cloud, IPs get reused, don't know. 243 00:22:00,300 --> 00:22:03,500 Um, but we also just kept going because we didn't have much else to go on. 244 00:22:03,740 --> 00:22:08,960 And we saw that the, uh, this domain was also associated, uh, with a GitHub account. 245 00:22:09,600 --> 00:22:11,220 So we went to the GitHub account. 246 00:22:11,840 --> 00:22:26,360 Um, way down the rabbit hole here, really like pulling at the threads here or straws, but basically, uh, we did realize that going through the projects on this GitHub page was that this developer focused on a lot of the same technologies that, uh, uh, 247 00:22:26,360 --> 00:22:28,100 the magic hat software was written in. 248 00:22:28,660 --> 00:22:31,920 Um, going through what, uh, was posted on GitHub. 249 00:22:31,940 --> 00:22:38,120 If you, uh, clone the repository and look through all the commits, sometimes there's email addresses there. 250 00:22:38,300 --> 00:22:39,840 Uh, we found this. 251 00:22:40,420 --> 00:22:43,900 My4cheng at G mall, figured it was a misspelling. 252 00:22:43,900 --> 00:22:48,040 So we fixed that and, uh, put it into a tool called OSINT industries. 253 00:22:48,100 --> 00:22:52,660 So if you don't know what this is, it's basically, you know, like when you go to Google and you say, Hey, I forgot my password. 254 00:22:52,660 --> 00:22:58,280 Uh, so you type in the email address and they're like, okay, we're going to send the SMS message to blah, blah, blah, number ending in one, two, three. 255 00:22:58,460 --> 00:23:01,920 Uh, they basically do this at scale for a ton of different services. 256 00:23:02,120 --> 00:23:08,200 Uh, so you can kind of map out where this address is or where there's email account has is used. 257 00:23:08,740 --> 00:23:11,600 Um, we found it was used in a lot of places. 258 00:23:12,860 --> 00:23:17,340 Um, what was interesting, um, was that there were some phone hints. 259 00:23:17,360 --> 00:23:20,260 Uh, so for, there was a PayPal account where you can see there's a Chinese number. 260 00:23:20,260 --> 00:23:23,000 There was a Apple account, um, looked like a US number. 261 00:23:23,000 --> 00:23:26,580 Potentially the US number stood out to us because we had seen it before. 262 00:23:27,520 --> 00:23:35,640 Uh, or at least part of it, um, on the telegram, uh, profile for Darkula, like the user we knew was a criminal. 263 00:23:36,280 --> 00:23:37,640 Uh, there was a mobile number. 264 00:23:37,640 --> 00:23:40,400 We had already looked into it, but it pointed at a Google voice number. 265 00:23:40,400 --> 00:23:42,220 We figured it was kind of like a burner voice number. 266 00:23:42,220 --> 00:23:43,740 Didn't really mean too much. 267 00:23:44,060 --> 00:23:46,040 Um, but then we saw, oh, okay. 268 00:23:46,040 --> 00:23:48,260 It has the same one that's associated with an Apple account. 269 00:23:48,380 --> 00:23:49,200 Maybe we're onto something. 270 00:23:49,200 --> 00:23:51,620 Maybe this could be the same guy, but we still weren't really sure. 271 00:23:52,640 --> 00:23:59,980 Uh, so we sent them an email and, and we said, Hey, we've got a problem with one of your, uh, GitHub repositories. 272 00:23:59,980 --> 00:24:01,500 Can you like help us? 273 00:24:01,600 --> 00:24:02,340 Uh, whatever, whatever. 274 00:24:02,340 --> 00:24:03,780 Here's a link to whatever. 275 00:24:04,140 --> 00:24:05,300 And it didn't do anything. 276 00:24:05,300 --> 00:24:07,080 I think it just redirected to Google or something. 277 00:24:07,200 --> 00:24:18,140 Um, but it was a URL shortener and it just logged the IP address, uh, that clicked on the link and the IP address that clicked on the link was the same IP that we saw logging into the backend licensing server for Magic Cat. 278 00:24:18,140 --> 00:24:22,600 So we felt pretty certain at this point, okay, we're, we're on the right, we're on the right path. 279 00:24:23,760 --> 00:24:29,540 Um, we were looking through the internet archive trying to see what else was associated with these accounts that we had found. 280 00:24:29,720 --> 00:24:32,700 Um, there was an old blog, uh, with like a contact me button. 281 00:24:32,700 --> 00:24:36,900 So we found a QQ account, a common email platform in China. 282 00:24:37,620 --> 00:24:45,840 Um, we looked at, uh, we looked at this GitHub page back in time, saw that there was a bunch of repositories , uh, that used to exist, but that had been since deleted. 283 00:24:46,120 --> 00:24:52,800 Uh, we looked at when they were deleted and it would kind of, uh, lined up with when the Magic Cat software was starting to get released. 284 00:24:52,800 --> 00:24:55,740 So, okay, maybe he's trying to like clean up his online presence a bit. 285 00:24:56,320 --> 00:24:56,960 Not sure. 286 00:24:57,960 --> 00:25:00,740 Um, and then at also one point, uh, the name was changed. 287 00:25:00,740 --> 00:25:06,420 So this was, uh, it was, it was this account and then, um, changed the name on GitHub to the one that you just saw on the last slide. 288 00:25:07,900 --> 00:25:10,720 Um, we went on to the Wayback Machine. 289 00:25:11,160 --> 00:25:18,540 Uh, this was new to me, but if you click on URLs, you don't just, you can actually get the list of files that were indexed, not just, uh, randomly clicking around and getting the, oh, sorry, this wasn't indexed. 290 00:25:18,540 --> 00:25:20,780 You can actually just see the list of what was saved. 291 00:25:21,280 --> 00:25:24,560 Um, there was an, an archive that had since been deleted that had a tar file. 292 00:25:24,560 --> 00:25:32,780 So like a compressed directory, open that up in that compressed directory was a Word document in the metadata for the Word document was an author. 293 00:25:33,240 --> 00:25:39,140 And if you, uh, translated those characters, uh, get that guy's name. 294 00:25:40,140 --> 00:25:50,340 We also went back to Telegram and, uh, there were files uploaded by Darkula and these were kind of like installation instructions, like user guides for how to use the MagicCat software. 295 00:25:50,340 --> 00:25:51,140 And what do you know? 296 00:25:51,140 --> 00:25:53,680 You look in the metadata documents for those, same name. 297 00:25:57,630 --> 00:26:08,730 So to summarize, what we had found was, uh, some phone numbers, uh, US phone number that, uh, most likely were, were belonging both to Tresor and, uh, Darkula. 298 00:26:08,950 --> 00:26:16,510 We had an IP address associated to, to, um, both Darkula and, uh, Tresor at the same time. 299 00:26:18,010 --> 00:26:22,370 Um, a lot of phone number hints for his different email accounts. 300 00:26:23,130 --> 00:26:31,430 Uh, what we wanted to find out now was his real phone number and, uh, his, uh, Chinese phone number. 301 00:26:31,430 --> 00:26:36,170 And apparently there is no standard on how you should mask phone numbers. 302 00:26:36,170 --> 00:26:42,270 So the, uh, phone number hint from PayPal and QQ didn't, uh, overlap perfectly. 303 00:26:42,270 --> 00:26:45,670 So we ended up with 1,000 possibilities. 304 00:26:46,230 --> 00:26:52,390 We could use OSINT Industries directly here, but it would probably cost a little bit of money. 305 00:26:52,510 --> 00:26:59,570 And, uh, it's an active service that will reach out, so it's not, uh, too efficient on this specific case. 306 00:27:00,630 --> 00:27:08,290 So we decided to look in, uh, database leaks to see if this person have an online presence. 307 00:27:08,290 --> 00:27:13,030 There's a good chance that his phone number have appeared in at least one leak. 308 00:27:13,030 --> 00:27:21,910 So we started searching the leaks to just get a list of possible, uh, accounts to look into. 309 00:27:21,990 --> 00:27:28,850 So from this, we found that among these 1,000 numbers, only seven of them had appeared in a leak . 310 00:27:28,850 --> 00:27:41,330 And the third one we checked after, uh, going through the, the online leaks, we found an account that had a picture of a girl that, uh, we had seen before. 311 00:27:41,490 --> 00:27:50,890 Because on an Instagram account with the username my4cheng, it was the picture of the same girl with the same edits that didn't appear anywhere else on the internet. 312 00:27:51,770 --> 00:27:56,970 Uh, we blurred it out because, uh, the picture of this girl is not related to the story. 313 00:27:58,310 --> 00:28:11,990 Uh, using this phone number that we had, uh, found us, is, found out is, uh, Yucheng Cheng's phone number, we used, uh, historical whois lookup and we got an address where he used to live back in 2018. 314 00:28:13,450 --> 00:28:14,390 Yep. 315 00:28:14,390 --> 00:28:24,390 And then, uh, we don't, uh, we're not sure exactly where he lives now, but at least, uh, according to that whois, this is, uh, he was from the Henan, uh, province in China at some point. 316 00:28:25,330 --> 00:28:28,170 Um, so okay, summarizing everything. 317 00:28:28,350 --> 00:28:31,570 Uh, these are very conservative estimates. 318 00:28:31,570 --> 00:28:34,830 We didn't really put too much time into getting all the data. 319 00:28:34,830 --> 00:28:38,690 We were just trying to really gauge what kind of scale we're looking at here. 320 00:28:39,310 --> 00:28:44,150 Um, so, uh, there were over 200 impersonated brands. 321 00:28:44,150 --> 00:28:49,450 So just imagine, uh, every postal company for every country on the planet minus China. 322 00:28:49,630 --> 00:28:54,950 Uh, and it was, uh, also plus like Apple and Amazon and all kinds of stuff. 323 00:28:55,130 --> 00:29:03,810 Um, as you saw before, over 500 or 5,000 licenses had been issued and each license can be used to, um, multiple times. 324 00:29:03,810 --> 00:29:05,470 So you can kind of get an idea of what the scale is. 325 00:29:05,670 --> 00:29:11,550 There were, um, potentially up to 600, uh, individual phishing operators or scammers. 326 00:29:12,390 --> 00:29:15,950 Um, the link had been clicked on 13 million times. 327 00:29:15,970 --> 00:29:20,750 Not necessarily saying that everyone filled out their credit card details, but you could see that somebody at least clicked on the link. 328 00:29:21,610 --> 00:29:29,130 Um, a very conservative number, but, uh, we could, uh, concretely see, uh, close to 900,000 stolen credit cards. 329 00:29:29,370 --> 00:29:33,850 Um, and some individual victims, uh, lost as much as $10,000. 330 00:29:33,850 --> 00:29:39,590 So you can kind of, not, not everybody was, uh, that bad, but you can kind of get an idea of what the scale is here. 331 00:29:42,320 --> 00:29:45,980 So this is the end of our story. 332 00:29:46,140 --> 00:29:57,480 We kind of kept to the digital realm and we found out that this story was much bigger than a technical blog post from, uh, from the Norwegian state media. 333 00:29:57,480 --> 00:30:09,140 We decided to reach out to the Norwegian state media, uh, that also worked with, uh, Bayerische Landfunk and ARD and LeMond. 334 00:30:09,140 --> 00:30:11,380 Uh, BR is here with us today. 335 00:30:11,860 --> 00:30:24,760 And, uh, they were able to talk with the victims and, uh, confront the scammers, travel to, uh, where they operated, and, uh, do things that we, it would be out of our place to do. 336 00:30:24,760 --> 00:30:33,220 Like, we, uh, we left them to take over in the physical realm and we felt, uh, that was the right thing to do. 337 00:30:33,220 --> 00:30:34,080 Yep. 338 00:30:35,160 --> 00:30:37,880 So, so long and thanks for all the fish. 339 00:30:37,960 --> 00:30:47,200 The main, uh, photo in the middle here was, um, uh, obtained as part of that, uh, investigative journalism with the, the media outlets, uh, from the last slide. 340 00:30:47,420 --> 00:30:55,420 They were able to, to get this based on the data that we provided to them, blurred out some of the sensitive parts, but that we believe is the main developer, Yu Teng Chung. 341 00:30:55,700 --> 00:31:00,300 The photos around are of some of the prominent, uh, scammers that were in the group. 342 00:31:00,300 --> 00:31:14,400 I highly recommend if you haven't, uh, read, um, you guys can check out the story, uh, a lot of the, if you really want to see the humans behind it and kind of how they operated and, and, uh, how the media traveled to Thailand and, uh, you can, yeah, basically, 343 00:31:14,400 --> 00:31:15,320 you can read about it there. 344 00:31:15,320 --> 00:31:16,780 Uh, highly recommend it. 345 00:31:18,260 --> 00:31:23,120 We're going to pray to the demo gods, but you can, uh, if you like to, you can scan the QR code. 346 00:31:23,260 --> 00:31:25,800 We have a live copy of the phishing software running. 347 00:31:26,680 --> 00:31:29,380 Uh, you can scan it, load it up on your phone. 348 00:31:29,600 --> 00:31:33,320 Uh, and then after a minute or so, I'll pull up what the backend looks like. 349 00:31:33,320 --> 00:31:39,700 And then you can see what it looks like as the operator, um, uh, basically can see all the live stream of, uh, of cards coming in. 350 00:31:40,040 --> 00:31:44,680 So, um, they don't validate any information except for the card number. 351 00:31:44,680 --> 00:31:46,280 They, so they do the loon check. 352 00:31:46,280 --> 00:31:49,320 So basically just remember 42424242 and that should pass. 353 00:31:49,520 --> 00:31:49,520 Yeah. 354 00:31:49,520 --> 00:31:52,000 Don't, you don't have to use your real credit card number. 355 00:31:52,000 --> 00:31:52,440 Please. 356 00:31:52,560 --> 00:31:53,040 Yeah. 357 00:31:56,800 --> 00:32:03,640 So I'll just, uh, I'll leave it, I'll leave it up here just for maybe 20 more seconds and then give you guys a chance to scan it and then I'll, I'll load up the page. 358 00:32:19,850 --> 00:32:20,770 Hey, it works. 359 00:32:23,670 --> 00:32:24,110 All right. 360 00:32:24,110 --> 00:32:27,690 So this is what the backend looks like and try and find, here you go. 361 00:32:28,110 --> 00:32:34,930 So what happens basically here, somebody types in their information, you can click on, click on and see what they typed in. 362 00:32:35,470 --> 00:32:40,210 And, um, then it starts yelling at you and we don't have the audio enabled, but, uh, it makes a lot of, it speaks to you. 363 00:32:40,210 --> 00:32:41,630 It makes a lot of noise. 364 00:32:42,090 --> 00:32:45,910 Um, and then, so basically what happens is after you click next, it sits with the loading screen. 365 00:32:46,050 --> 00:32:55,870 And what's happening during that loading screen is it's waiting for the scammer to choose one of these options saying like, okay, now that you have a card number , do you want to prompt them for a two factor code? 366 00:32:55,870 --> 00:33:08,250 Cause you're sitting there potentially with your iPhone, uh, enrolling that credit card into Apple pay and then they're going to send a text message to your bank and then, uh, the victim gets that text message and then you prompt them to enter it, uh, 367 00:33:08,250 --> 00:33:09,050 in back to the website. 368 00:33:09,050 --> 00:33:12,330 So you get to choose, um, there's a few different options here. 369 00:33:12,550 --> 00:33:20,870 Uh, you can kind of go through, click on each one, maybe you get lucky and then you get a two factor code and then maybe you can say, oh, card was declined. 370 00:33:20,870 --> 00:33:21,230 Sorry. 371 00:33:21,230 --> 00:33:21,670 Try again. 372 00:33:21,670 --> 00:33:23,130 And then you get another card and another card. 373 00:33:24,030 --> 00:33:31,350 Um, and, and there's videos, uh, like all over their telegram group where they just kind of show off. 374 00:33:31,350 --> 00:33:42,070 Like there was even one where the guy was like, he was driving in a car that had one of the big screens and he had it, he loaded up a web browser and this was, he was like, he was driving down the highway and he was just like, oh, I'm making all this money while I'm like going somewhere. 375 00:33:44,010 --> 00:33:45,230 So it was kind of cool. 376 00:33:47,290 --> 00:33:48,510 How many do we have so far? 377 00:33:48,510 --> 00:33:49,690 Got a lot of credit cards. 378 00:33:50,510 --> 00:33:51,050 Yep. 379 00:33:51,550 --> 00:33:59,190 So, uh, the outcome of, uh, what happened. 380 00:33:59,190 --> 00:34:07,570 So when the media, uh, they, you know, journalistic, uh, process, you contact who you're going to write about for a request for comment. 381 00:34:07,610 --> 00:34:14,450 Um, they did about, they did this about a week before the news was, was published and, uh, Darkula disappeared. 382 00:34:14,530 --> 00:34:17,990 He like, I think deleted a lot of his stuff. 383 00:34:17,990 --> 00:34:25,710 I think his telegram account, uh, went away and we, we were tracking updates to the software and we didn't see any updates to the software after he was contacted. 384 00:34:26,390 --> 00:34:32,290 And also he pulled down everything that was on the internet, the licensing server, the installation server. 385 00:34:32,290 --> 00:34:34,350 So everything was gone after he left. 386 00:34:34,350 --> 00:34:34,890 Yep. 387 00:34:35,730 --> 00:34:40,310 Um, uh, now there's a lot of, we did not solve the problem by any means. 388 00:34:40,350 --> 00:34:43,170 There's probably, I'm sure some of you are still getting messages. 389 00:34:43,170 --> 00:34:47,430 Maybe it's not a post message, but maybe it's like easy pass or you have some toll, something you have to still have to pay. 390 00:34:47,690 --> 00:34:54,130 Um, there's about four or five other prominent groups that more or less have the same software. 391 00:34:54,190 --> 00:35:00,910 Um, one that's a bit up and coming, uh, that got popular after, uh, magic cat went down was magic mouse. 392 00:35:00,910 --> 00:35:05,990 There was actually a message in, uh, the magic mouse telegram group, uh, that said, uh, Hey, the mouse killed the cat. 393 00:35:05,990 --> 00:35:08,210 And they were kind of happy cause everybody moved over to their group. 394 00:35:08,630 --> 00:35:11,850 Um, so this is a screenshot of that, uh, of that software. 395 00:35:12,510 --> 00:35:15,010 Um, a bit interesting. 396 00:35:15,190 --> 00:35:21,230 So a lot of these phishing kits, uh, have, uh, they, they basically steal components from each other. 397 00:35:21,510 --> 00:35:27,810 Um, so some of the front end pages, uh, were stolen from magic cat used in magic mouse. 398 00:35:27,810 --> 00:35:34,490 So some of the people tracking got a bit confused because they looked and saw references looking like it was the magic cat, but it's not, it's the new one. 399 00:35:34,490 --> 00:35:35,330 Kind of messy. 400 00:35:35,570 --> 00:35:38,770 Um, we were trying, so this is kind of what we're looking into now. 401 00:35:38,890 --> 00:35:43,770 Um, we were able to track, they have about, uh, 1300 servers in a 1 month time span. 402 00:35:43,770 --> 00:35:44,910 So really large. 403 00:35:45,010 --> 00:35:52,210 And it's a rough estimate, but we, we believe that, uh, this group is responsible for up to, uh, 650,000 credit cards per month. 404 00:35:52,330 --> 00:35:56,130 Uh, so it's very, uh, very much still an issue. 405 00:35:56,130 --> 00:35:59,950 Um, and with that, thank you.