1 00:00:00,000 --> 00:00:01,320 Uh, good afternoon DEF CON. 2 00:00:01,460 --> 00:00:03,760 Uh, got a great talk for you today. 3 00:00:04,020 --> 00:00:07,920 Um, Christophe and Matt are going to talk to you about weaponizing trust. 4 00:00:08,280 --> 00:00:12,100 Uh, please give a nice DEF CON welcome to Christophe and Matt. 5 00:00:16,600 --> 00:00:17,700 Hi everyone. 6 00:00:17,700 --> 00:00:20,260 Thanks for coming to our DEF CON talk. 7 00:00:20,260 --> 00:00:24,080 Um, so this is our first time speaking at DEF CON and we're very excited. 8 00:00:24,180 --> 00:00:25,860 Matt is coming all the way from Scotland. 9 00:00:25,860 --> 00:00:27,560 I'm coming all the way from Switzerland. 10 00:00:27,560 --> 00:00:29,320 So thanks for being here. 11 00:00:29,320 --> 00:00:39,440 Um , this is the story of us investigating a threat actor that we call the MUD1244, uh, that started in December, December, 2024. 12 00:00:39,720 --> 00:00:48,100 At first, we thought that the investigation would look something like this, you know, going nicely from point A to point B, uh, in a very linear fashion. 13 00:00:48,120 --> 00:00:55,960 In the end, it went more something like that, um, where we had a few hiccups along the way, some discoveries that we didn't really understand at the time. 14 00:00:55,960 --> 00:01:04,020 And I just want to acknowledge that many of the talks we see today at Black Hat, at DEF CON, uh, they might look like this, but most of them are actually like that. 15 00:01:04,020 --> 00:01:08,600 So if you are working on the project and things look like that, you're probably doing the right thing. 16 00:01:09,280 --> 00:01:10,280 My name is Christophe. 17 00:01:10,280 --> 00:01:11,580 I work at, uh, Datadog. 18 00:01:11,580 --> 00:01:17,420 I focus on, uh, cloud security and open source topics and, uh, get to do some threat research when there's a chance. 19 00:01:17,440 --> 00:01:19,400 And this is Matt, my partner in crime. 20 00:01:19,960 --> 00:01:20,420 Hi everyone. 21 00:01:20,420 --> 00:01:21,160 My name's Matt. 22 00:01:21,160 --> 00:01:26,820 I'm a security researcher at Datadog as well, mainly focusing in malware analysis and threat research. 23 00:01:27,760 --> 00:01:28,400 Great. 24 00:01:28,400 --> 00:01:31,620 So again, this story starts in December 2024. 25 00:01:31,620 --> 00:01:40,440 We have a blog post that we read from Yehuda Gelb at Checkmarks that was talking about a malicious NPM package called OX Engine XML RPC. 26 00:01:40,840 --> 00:01:46,840 Now this package is very similar to the one you see on the left, which is a legitimate one called XML RPC. 27 00:01:46,900 --> 00:01:53,840 Um, the malicious one has the same readme, same functionality, very close code, except that it has a backdoor in it. 28 00:01:53,840 --> 00:02:00,100 So if you open the code, you will see this extra news validator, those JS file that contains obfuscated code. 29 00:02:00,180 --> 00:02:12,960 Now if you just take a bit of time and you're running it, uh, you de-obfuscate it, you get something like that, which is basically adding a bunch of files to a zip file and then uploading that to an attacker controlled Dropbox account. 30 00:02:13,480 --> 00:02:19,560 Now if you wonder how the authentication is working, uh, you might have guest list, hard coded credentials, right? 31 00:02:19,580 --> 00:02:27,260 And so, um, this is the client ID, client secret and refresh token that allow anyone to get an access token for the Dropbox API. 32 00:02:27,620 --> 00:02:39,320 Now, if you were to do that, you would see that the scope of this access token doesn't only allow uploading, but also reading the files in this account and getting metadata about the Dropbox account. 33 00:02:39,940 --> 00:02:45,500 This is the endpoint in the Dropbox API that allows you to query metadata about the account. 34 00:02:45,600 --> 00:02:50,360 And for us it's useful because we want to know, you know, who this account belongs to and what they are doing with that. 35 00:02:50,800 --> 00:02:56,840 So you'll see here that the email attached to this account is paulmuller1977. 36 00:02:57,200 --> 00:03:01,660 Keep that in mind because it's a username we're going to see a few more times in this talk. 37 00:03:02,620 --> 00:03:09,760 If you keep going and look at the Dropbox API docs, there are some endpoints to list the folders, uh, list the files, of course. 38 00:03:09,760 --> 00:03:16,820 So what we have in there is a bunch of zip files and we know what the name looks like because we can see the code that uploads it, right? 39 00:03:16,820 --> 00:03:23,580 So the first part is, uh, the compromised machine ID and the second part is the time stamp at which it has been compromised. 40 00:03:23,900 --> 00:03:25,800 So what do we do? 41 00:03:25,800 --> 00:03:27,240 Unpacking time, right? 42 00:03:27,240 --> 00:03:30,660 Uh, we have a bunch of zip files and we want to figure out what's in them. 43 00:03:31,060 --> 00:03:44,840 So there are two files in every of these zips, si.json, which is system information and targets.txt which seem to contain some credentials and these credentials have URL, username and password. 44 00:03:44,840 --> 00:03:50,300 Now there are actually quite a lot of these credentials, namely a little bit less than 400,000. 45 00:03:50,600 --> 00:03:56,480 Uh, so it was a interesting discovery, but at the time we were like, I was very confused. 46 00:03:56,480 --> 00:04:03,820 I looked at Matt, at Matt, um, I looked at Matt over Zoom because it's 2025 and I told him, Hey Matt, this is weird. 47 00:04:04,140 --> 00:04:05,980 This is not your classic info stealer, right? 48 00:04:06,040 --> 00:04:12,320 Because, um, you don't have end users that have thousands of credentials for thousands of domains on their, on their laptops. 49 00:04:12,360 --> 00:04:17,860 So at this time, we didn't fully grasp what this was or where it was coming from and we'll get to that later. 50 00:04:19,600 --> 00:04:22,900 But we know that the structure of our attacks look something like that, right? 51 00:04:22,900 --> 00:04:29,440 We have very simple for now, malicious NPM package, exfiltrating data to an attacker controlled Dropbox account. 52 00:04:30,780 --> 00:04:41,340 If we keep, if we keep going and look at the code, we see that there is another piece of the code that download the second stage payload from this URL codberg.org XMR dropper. 53 00:04:41,340 --> 00:04:59,380 And what this is doing is essentially first dropping a coin miner, you guessed it, but also, uh, dropping an info stealer, a very simple one written in bash that looks at your AWS folder, Azure folder, Electrum folder, uh, bash history SSH keys and then sends that as you can see at, 54 00:04:59,380 --> 00:05:03,420 uh, at the bottom to file.io, which is a file sharing service. 55 00:05:04,740 --> 00:05:06,380 So now we have this structure, right? 56 00:05:06,380 --> 00:05:13,140 We have a second stage uploading data to a Dropbox account and a second one that uploads data to file.io. 57 00:05:13,600 --> 00:05:18,940 Now the attacker was kind enough to make that repository publicly available on codeberg. 58 00:05:18,940 --> 00:05:26,340 So it's nice for us because we can see the commit history, the commit metadata, the different updates that they do to all the different payload files. 59 00:05:26,340 --> 00:05:33,340 But more than that, they also make available a second repository called spam, which contains a few things. 60 00:05:33,340 --> 00:05:47,160 So if we have some people working in academia here, uh, PhD students, professors, postdoctoral students, you know that every time you write a research papers, uh, your email is basically out in the wild, which makes it quite easy to scrape. 61 00:05:47,300 --> 00:05:49,340 And this is what this attacker is doing. 62 00:05:49,340 --> 00:06:01,480 So in the repository, we have a file called emails.db that contains a few thousand of, uh, emails that the attacker scraped off archive, which is a papers sharing website for researchers. 63 00:06:02,320 --> 00:06:07,780 Next to this file, we can see, uh, the headers of email phishing campaign that this attacker uses. 64 00:06:07,780 --> 00:06:12,780 So we have the recipient test email, which is Paul Muller, one nine seven seven seven. 65 00:06:12,780 --> 00:06:15,640 Very close to the one we had for the Dropbox account, right? 66 00:06:15,800 --> 00:06:18,180 And we have a subject of a phishing campaign. 67 00:06:18,180 --> 00:06:22,520 Um, you have to update your microcode CPU, whatever. 68 00:06:23,140 --> 00:06:27,680 That's the body of a phishing campaign, uh, that looks somewhat legitimate. 69 00:06:27,680 --> 00:06:29,020 I would probably click on that. 70 00:06:29,160 --> 00:06:33,560 And it's telling you how you need to update your microcode for your CPU, whatever. 71 00:06:33,680 --> 00:06:40,120 And you have to click this link, open compiled.org slash microcode patch Linux, which brings you to this page. 72 00:06:40,540 --> 00:06:44,620 It looks like it was designed in the nineties, but it's, I think it looks somewhat legitimate. 73 00:06:44,620 --> 00:06:49,980 You have this change log from the Linux kernel and you have to use this command to update your canal. 74 00:06:50,320 --> 00:06:52,540 Um, that's a click fix campaign. 75 00:06:52,540 --> 00:06:54,140 It's called a click fix type of attack. 76 00:06:54,140 --> 00:06:58,720 It sounds very dumb, but we see quite a lot of them in the past few months or so. 77 00:06:58,900 --> 00:07:01,320 And it works very well for non-technical users. 78 00:07:01,900 --> 00:07:06,260 If you were to run that, you, uh, you end up with a script that comes from GitHub. 79 00:07:06,260 --> 00:07:11,660 And the interesting thing here is that this thing ends up dropping the same second stage payload as before. 80 00:07:11,960 --> 00:07:22,440 So if we take a step back, we had that before and now we found a second initial access vector phishing campaign that ends up, uh, dropping the same second stage payload. 81 00:07:22,820 --> 00:07:30,640 Now at this time there was again a bit of confusion because, uh, we weren't that sure why would anyone use this NPM package? 82 00:07:30,640 --> 00:07:33,120 Like why would anyone install that or run that, right? 83 00:07:33,120 --> 00:07:35,260 It seems very boring, super uninteresting. 84 00:07:35,260 --> 00:07:36,820 So why would anyone do that? 85 00:07:37,000 --> 00:07:40,400 And, uh, anything else mad that, you know, you want to add on that? 86 00:07:41,420 --> 00:07:42,220 Yeah, sure. 87 00:07:42,220 --> 00:07:52,620 So, um, we performed an analysis of the XML RPC NPM package and discovered that the exfiltration target was a single hard coded file named targets.txt. 88 00:07:52,620 --> 00:07:55,220 Now obviously this is highly specific. 89 00:07:55,220 --> 00:08:01,040 So first of all, we wondered how exactly did this file end up on the file system in the first place? 90 00:08:01,140 --> 00:08:10,780 And since the malware within the package itself expected it to be present, we also assumed that there must be some other attacker control process that we hadn't yet seen. 91 00:08:11,520 --> 00:08:16,780 So we continued pivoting on some of the artifacts that we'd found up until this point. 92 00:08:16,780 --> 00:08:23,620 And we discovered a Bitbucket repository for a tool named Yop and you can see an example of the homepage on screen here. 93 00:08:23,900 --> 00:08:30,080 Now, the readme for this tool claimed that it was supposed to be used for validating WordPress credentials. 94 00:08:30,260 --> 00:08:34,800 And it used two distinct methods to do this against a WordPress installation. 95 00:08:35,160 --> 00:08:43,920 Now the two methods that it says that it used, one was HTTP W login and the other was the WordPress XML RPC API. 96 00:08:44,180 --> 00:08:53,240 Now that second method was particularly interesting to us because XML RPC was of course the name of the typosquatted package we'd seen in NPM. 97 00:08:53,800 --> 00:08:58,140 So we also wondered who might be interested in using a tool like this. 98 00:08:58,140 --> 00:09:05,500 And we came to the conclusion that it was likely going to be offensive actors or maybe red teamers, pen testers, and so on. 99 00:09:05,500 --> 00:09:09,600 In other words, anybody that wants to validate a large dump of credentials. 100 00:09:11,100 --> 00:09:16,140 So further down the readme page for this tool, we discovered these example usage instructions. 101 00:09:16,240 --> 00:09:23,840 And as you can see on the slide here, both of the examples suggest running the tool against a file named target.txt. 102 00:09:23,840 --> 00:09:28,440 And this file is supposed to contain the credentials that are to be validated. 103 00:09:29,360 --> 00:09:40,380 So further examination of this repo led us to a package.json file, which for those of you that don't know, typically lists dependencies for a Node.js project. 104 00:09:40,880 --> 00:09:43,180 Of course, what do we see in this file? 105 00:09:43,180 --> 00:09:52,780 But one of the dependencies is the very same XML RPC typosquatted package that MUT1244 had already used to distribute infrastellar malware. 106 00:09:53,300 --> 00:10:01,020 So this, of course, explains at least one initial access method for the malware and the involvement of the targets.txt file. 107 00:10:02,220 --> 00:10:07,940 So piecing all of this together, we now have our full attack chain, which can be viewed on the slides here. 108 00:10:08,920 --> 00:10:11,320 So let's summarize what we know so far. 109 00:10:11,320 --> 00:10:18,340 We know that MUT1244 are attempting to compromise academics with infrastellar malware via a phishing campaign. 110 00:10:18,340 --> 00:10:31,470 We also know that they're attempting to compromise Node.js developers via this same malware, which is delivered by first executing some obfuscated script that's hidden in an NPM package. 111 00:10:32,100 --> 00:10:40,010 And finally, we know that they are targeting offensive actors via a trojanized credential checker tool that we saw on the previous slides. 112 00:10:41,100 --> 00:10:46,720 So this slide shows you an overview of how the trojanized credential checker actually works. 113 00:10:47,020 --> 00:10:55,200 So we can see that the first stage is that the offensive actor or tester and so on first acquires some stolen credentials that they want to validate. 114 00:10:55,820 --> 00:11:05,860 They'll then execute the YOP tool against these credentials, which performs the login against a WordPress installation using one of the two methods we saw previously. 115 00:11:06,180 --> 00:11:17,140 At this point, the infrastellar malware is executed in the XML RPC dependency and the credentials are then executed, exfiltrated, sorry, into MUT1244's Dropbox account. 116 00:11:17,980 --> 00:11:19,000 And that's it. 117 00:11:19,000 --> 00:11:20,980 Thank you, everyone, for coming to our talk. 118 00:11:21,120 --> 00:11:22,040 No, no, come on, Matt. 119 00:11:22,040 --> 00:11:23,080 There's more to it. 120 00:11:23,200 --> 00:11:25,480 So of course, that was just the beginning. 121 00:11:25,480 --> 00:11:28,720 Otherwise, it would make a 10-minute DevCon talk not very funny. 122 00:11:29,020 --> 00:11:31,020 So the next thing we want to do is to pivot. 123 00:11:31,100 --> 00:11:31,920 What do we mean by that? 124 00:11:31,920 --> 00:11:34,160 We want to find more payloads from this threat actor. 125 00:11:34,160 --> 00:11:36,240 We want to find more indicators of compromise. 126 00:11:36,240 --> 00:11:39,380 And basically, we want to map out a little bit more what they are doing. 127 00:11:40,400 --> 00:11:44,880 So one very naive thing that we can do is look up the payloads on GitHub. 128 00:11:44,960 --> 00:11:46,220 It might work. 129 00:11:46,220 --> 00:11:51,380 You can see here that we have a few of the payloads from the same threat actor on different GitHub usernames. 130 00:11:51,460 --> 00:11:57,940 But it's not great because many of the repos are taken down or they are not even indexed in GitHub code search. 131 00:11:58,300 --> 00:12:03,140 So ideally, what I'd like as a researcher, right, is to get the full GitHub on my laptop. 132 00:12:03,720 --> 00:12:05,200 There's no way to do that. 133 00:12:05,760 --> 00:12:10,200 But there's an open source project that gets very close to it, which is called the GitHub Archive. 134 00:12:10,300 --> 00:12:15,080 And that's an open source data set that continuously scrapes the GitHub events API. 135 00:12:15,580 --> 00:12:21,160 And it puts that available into a set of JSON files, compressed, one for every hour of the day. 136 00:12:21,420 --> 00:12:25,320 And one year of data is basically one terabyte of compressed JSON. 137 00:12:25,320 --> 00:12:26,780 So it's not that huge. 138 00:12:26,860 --> 00:12:33,400 And this contains all of the public commit, star, fork, push events that you will see on GitHub. 139 00:12:33,680 --> 00:12:39,760 So for anyone doing OSINT or threat research, it's obviously a very interesting piece of data. 140 00:12:40,280 --> 00:12:42,140 Two ways that we can consume that. 141 00:12:42,140 --> 00:12:44,400 First one is using Google BigQuery. 142 00:12:45,900 --> 00:12:49,640 It's a service by Google Cloud where you can query public data sets like this one. 143 00:12:49,640 --> 00:12:50,660 It works very well. 144 00:12:50,660 --> 00:12:52,040 It has all of the metadata. 145 00:12:52,320 --> 00:13:00,680 You have to be very careful, though, because if you do select star on a very wide range, you're going to pay a lot of money because you pay by terabyte of data scanned. 146 00:13:00,680 --> 00:13:03,780 So this query here is going to cost you like $130. 147 00:13:04,100 --> 00:13:05,280 You need to be careful. 148 00:13:05,620 --> 00:13:11,920 Now, if you don't need the full metadata, you can also use this playground from the Clickhouse demo. 149 00:13:12,620 --> 00:13:18,280 So Clickhouse is a column store database that is very efficient and they want to show you that it's very efficient. 150 00:13:18,280 --> 00:13:25,100 So they have a public playground where you can query public data sets for free without any kind of authentication. 151 00:13:25,580 --> 00:13:33,300 And for instance, this query runs on like 9.6 billion rows and takes two seconds to run or three seconds to run, which is very, very efficient. 152 00:13:33,900 --> 00:13:37,500 The nice thing about this one is that you can also use it through the API. 153 00:13:37,940 --> 00:13:39,860 So you can see there's no authentication. 154 00:13:40,080 --> 00:13:42,040 You just pass the query and you get back the result. 155 00:13:42,040 --> 00:13:45,420 So this is great for any kind of research that people want to do. 156 00:13:45,960 --> 00:13:50,540 Now, why did we even want the GitHub archive data set in our case? 157 00:13:50,560 --> 00:13:55,800 Well, we had one GitHub user named PaulMuller1977, which you might remember. 158 00:13:56,140 --> 00:13:59,480 And so many of their repos had been taken down. 159 00:13:59,480 --> 00:14:02,980 And so we wanted to see what they had interacted with in the past. 160 00:14:03,000 --> 00:14:13,880 So the way we do it is we ask the GitHub archive data set, hey, can you show us anything that this user had shared, had forked or starred in the past year, two years? 161 00:14:13,920 --> 00:14:15,580 And we get a few things. 162 00:14:15,580 --> 00:14:21,060 Now, these repos had been taken down, but we can still see them because now they are on the GitHub archive data set, right? 163 00:14:21,060 --> 00:14:25,840 And then we link them to the user that owns them and we iterate one more time. 164 00:14:25,840 --> 00:14:30,260 And if you keep doing that, in our case, you end up with something that looks like this. 165 00:14:30,840 --> 00:14:34,200 Galaxies of users or communities, if you are doing graph theory. 166 00:14:34,200 --> 00:14:42,560 And these are basically, so the vertices are users and repositories, and the edges are when they interact with each other. 167 00:14:42,560 --> 00:14:45,620 So if they start something, if they fork something. 168 00:14:45,680 --> 00:14:54,880 And what you can see here is basically a set of inauthentic GitHub users that interact only with each other in order to promote inauthentic, fake, malicious content on GitHub. 169 00:14:55,940 --> 00:14:58,740 Now, Matt, can you show us a little bit what they are promoting? 170 00:14:58,740 --> 00:15:01,780 Because that's also the point of the operation, right? 171 00:15:02,840 --> 00:15:03,860 Yeah, sure. 172 00:15:03,860 --> 00:15:11,040 So those of you with good eyesight may have noticed some of the projects that Christoph highlighted had CVE numbers in the name. 173 00:15:11,040 --> 00:15:14,360 So let's have a little bit more of a deep dive into that. 174 00:15:14,440 --> 00:15:23,960 So as we've heard so far, MUT1244 placed a particular emphasis on attacking security researchers and academics working at the tech industry. 175 00:15:24,100 --> 00:15:30,140 So one way that this was achieved was through the use of fake proof of concepts for various vulnerabilities. 176 00:15:30,740 --> 00:15:36,860 Now, let's take a look at what some of the GitHub repositories and profiles looked like that back these vulnerabilities. 177 00:15:37,480 --> 00:15:41,060 So here's an example of a suspicious profile on this slide. 178 00:15:41,060 --> 00:15:47,300 And what we can see on screen here is a likely AI generated image that's been used as the profile image. 179 00:15:47,300 --> 00:15:51,000 And we can see a relatively blank profile. 180 00:15:51,000 --> 00:15:54,900 There's only one repository that this user has actually contributed to. 181 00:15:54,900 --> 00:16:00,860 Now, most of the profiles that we encountered during this research followed the same general pattern. 182 00:16:01,900 --> 00:16:08,480 Now, to add legitimacy to the proof of concepts themselves, they often included a detailed readme. 183 00:16:08,480 --> 00:16:18,280 So this generally included technical details about the vulnerability itself, often linking out to technical papers or the original vulnerability disclosure. 184 00:16:19,160 --> 00:16:27,780 Now, most of the repositories also included some detailed usage instructions, and you can see an example of this on the screen here. 185 00:16:28,360 --> 00:16:35,000 So typically, the loader payload that we've mentioned previously would be executed as part of these instructions. 186 00:16:35,000 --> 00:16:40,240 And as you can see, I've highlighted this malicious configure script that contains the payload itself. 187 00:16:40,720 --> 00:16:48,620 So in this example, of course, when the user runs this configure script, the loader would run and eventually deliver the CodeBerg info stealer. 188 00:16:50,060 --> 00:16:56,760 So here's yet another example, this time focusing on an RCE vulnerability in Kubernetes. 189 00:16:56,760 --> 00:17:03,430 So again, we can see a believable readme providing a useful technical overview of the vulnerability itself. 190 00:17:03,860 --> 00:17:13,100 Now, in this particular example, MUT1244 has claimed that they've incorporated a previously unused attack vector into this exploit. 191 00:17:13,520 --> 00:17:19,440 Now , this, again, is the kind of information that you would expect to see in a POC repository . 192 00:17:19,440 --> 00:17:25,460 And of course, it generates interest in the POC itself with the supposedly unused attack vector. 193 00:17:25,460 --> 00:17:35,340 Now, often responders are under pressure to understand these types of vulnerabilities and they may run something like this after a lapse of concentration. 194 00:17:35,520 --> 00:17:48,330 But we actually think that this particular vulnerability or exploit, I should say, was the likely target of it was actually offensive actors because they've placed so much emphasis in this unused attack vector. 195 00:17:49,500 --> 00:17:57,370 Now, those of you working in vulnerability management have probably used things like FEEDLY to try and stay on top of emerging vulnerabilities. 196 00:17:57,710 --> 00:18:03,010 So we wondered if these fake POCs were actually being aggregated in such services. 197 00:18:03,010 --> 00:18:05,410 So we decided to take a look at this. 198 00:18:05,570 --> 00:18:10,370 Now, this is an example of a FEEDLY report for another Kubernetes vulnerability. 199 00:18:11,450 --> 00:18:19,210 Scrolling down the page, we can see that a MUT1244 malicious POC is being used as an example exploit here. 200 00:18:19,210 --> 00:18:30,170 So this page would typically appear in the FEEDLY vulnerability dashboards, which, of course, adds credibility to the exploit and might also lure researchers to it. 201 00:18:30,390 --> 00:18:40,190 So we can see that FEEDLY links out to our malicious POC on GitHub to a repo containing the same initial access payload that we've described previously. 202 00:18:40,930 --> 00:18:45,430 OK, so this is an attack graph for the Trojanized repositories. 203 00:18:45,430 --> 00:18:53,610 We can see how each cluster of repositories delivers a first stage payload that's hosted either in NPM or in Codeberg. 204 00:18:53,850 --> 00:18:59,530 So this also shows the different exfiltration methods for each cluster of Trojanized repositories. 205 00:18:59,530 --> 00:19:05,450 So you can see that some will exfiltrate to file.io and others will go directly to Dropbox. 206 00:19:07,010 --> 00:19:17,430 Now, newsreaders like FEEDLY are, of course, one way to get the POCs in front of more potential victims, but MUT1244 wasn't content with that method alone. 207 00:19:17,950 --> 00:19:23,330 So we found some additional evidence of them trying to promote the POCs via their own website. 208 00:19:23,710 --> 00:19:32,430 Now, this site contained a list of articles about vulnerabilities, the content of which was basically stolen from other sources across the Internet. 209 00:19:33,050 --> 00:19:40,850 Now, this site itself was still up at the time of writing the talk, but as we can see here, the last posts were in January 2025. 210 00:19:42,350 --> 00:19:50,270 Now, each of the articles contain technical details about the vulnerability itself and some instructions on how to run the exploit. 211 00:19:50,270 --> 00:19:54,310 So it's kind of similar to what we were seeing in the READMEs shown previously. 212 00:19:54,550 --> 00:20:00,850 So some articles here contain an embedded script, which is supposed to be the POC code itself. 213 00:20:00,850 --> 00:20:10,950 However, as we can see on screen, if you scroll further down, you'll typically encounter these usage instructions which try and get the user to clone this dodgy Codebird repo. 214 00:20:11,550 --> 00:20:17,150 Of course, this repo contains the same MUT1244 malware that we've spoken about previously. 215 00:20:18,230 --> 00:20:26,930 Now, to see how this website was actually promoted in the first place, we used a backlink checker and we noticed several references from SEO sites. 216 00:20:27,110 --> 00:20:34,550 So it seems like MUT1244 has actually purchased SEO services to try and push the site higher in search rankings. 217 00:20:34,610 --> 00:20:36,270 But of course, that's not all. 218 00:20:36,950 --> 00:20:43,510 We also discovered this X account with the CVE POC name and some AI generated images. 219 00:20:44,070 --> 00:20:50,710 Now, at the time of discovery, the account didn't actually have many followers, but it was likely used to promote the POCs. 220 00:20:51,490 --> 00:20:59,150 So here's an example of a post from the account that links directly to the CVE POC website that we saw a couple of slides ago. 221 00:20:59,610 --> 00:21:10,670 Now, this post is promoting a POC for a vulnerability in Apache Tomcat, and of course, the POC contains the same initial access payload that MUT1244 is trying hard to distribute. 222 00:21:11,070 --> 00:21:21,210 Now, all of this supposedly organic content lends some credibility to the POCs themselves, and it also helps to establish MUT1244 as a genuine researcher. 223 00:21:23,210 --> 00:21:29,430 OK, so we know that MUT1244 tries to target academics, offensive actors and vulnerability researchers. 224 00:21:29,430 --> 00:21:33,190 But are there any other demographics that might have to fall for this? 225 00:21:33,690 --> 00:21:40,850 Well, it actually appears that individuals interested in cryptocurrency and blockchain technologies are also on the hit list. 226 00:21:40,850 --> 00:21:49,110 So we found this strange CryptoForex lead site containing stolen or generated articles about various crypto and blockchain topics. 227 00:21:49,950 --> 00:21:57,410 Now, amongst these articles were some that focused on vulnerabilities kind of similar to the ones that we'd seen on the CVE POC site. 228 00:21:57,930 --> 00:22:05,690 Now, I'm not entirely sure if there's any crossover between cryptocurrency geeks and vulnerability researchers, but MUT1244 seemed to think so. 229 00:22:07,150 --> 00:22:15,550 So as you can imagine, by this point, we had a number of malicious usernames to pivot on along with target demographics for MUT1244. 230 00:22:16,030 --> 00:22:25,730 We also knew that they were interested in cryptocurrency and blockchain topics, and one username that kept reappearing in relation to this was fgeeks. 231 00:22:25,790 --> 00:22:30,830 So we did some more digging and we discovered this GitHub profile with the fgeeks name. 232 00:22:31,310 --> 00:22:39,250 Now, one of the popular repositories that this user contributed to was for a tool named Token Recovery, which I've highlighted on screen here. 233 00:22:40,410 --> 00:22:47,470 So we found yet another website that is actually dedicated to this project, which gave us some insight into its purpose. 234 00:22:48,170 --> 00:22:55,130 Now, supposedly, Token Recovery is a tool for retrieving ERC-20 tokens that have been mistakenly sent to contracts. 235 00:22:55,350 --> 00:22:59,350 And of course, this is actually impossible without the private key of the recipient. 236 00:23:00,230 --> 00:23:07,470 Now, on this website's homepage, as you can see on the slide, there were links to Windows and Linux binaries for the tool. 237 00:23:07,870 --> 00:23:15,870 Now, unfortunately, at the time we were doing this investigation, these links were unavailable, so we weren't actually able to gather the payloads. 238 00:23:15,870 --> 00:23:22,110 But I would say that there's a fairly high chance that it contained the very same InfoStealer malware that we've seen several times. 239 00:23:23,050 --> 00:23:26,350 So here's the about page of the Token Recovery website. 240 00:23:26,350 --> 00:23:31,270 We can see some more information about the project and the noble goals underpinning it. 241 00:23:31,830 --> 00:23:35,450 Again, this attempts to add some sort of legitimacy to the project. 242 00:23:35,450 --> 00:23:40,690 But not only that, it actually connects it with the FGeeks GitHub profile that we'd seen previously. 243 00:23:41,210 --> 00:23:47,270 So as usual, being security researchers, we asked how exactly was this being promoted in the first place? 244 00:23:48,170 --> 00:23:56,090 Well, searching for mentions of Token Recovery across the Internet led us to this Medium blog published in August 2023. 245 00:23:56,750 --> 00:24:06,290 Now, the author of this blog is Paulina Buller, which, of course, sounds very similar to Paul Muller, the pseudonym that we've seen several times already. 246 00:24:06,970 --> 00:24:14,010 Well, it turns out that this is indeed Paul Muller, as can be seen by the Medium username in the article's URL. 247 00:24:14,470 --> 00:24:25,130 And this, of course, is further confirmation of MUT1244's connection to this project, and it demonstrates their keen interest in cryptocurrency, blockchain or Web3 projects. 248 00:24:25,850 --> 00:24:30,590 So we also found some additional evidence of this tool being promoted on the Internet. 249 00:24:30,610 --> 00:24:35,990 What you can see on the slide here is a profile for a Quora user with the name Dendrum. 250 00:24:36,290 --> 00:24:45,190 Now, we can see this user has the Token Recovery link in their bio and they've helpfully answered several questions about cryptocurrency topics. 251 00:24:45,610 --> 00:24:56,470 Now, if you look at the bottom of the screen here, you see that they've also posted a question where they're actually complaining about the amount of scammers on Quora and the lack of Quora moderation. 252 00:24:57,790 --> 00:25:03,630 So further research into this led us to this forum post on BitStop Media. 253 00:25:03,830 --> 00:25:10,250 Now, for those of you that don't know, BitStop Media is a Russian language forum for crypto and blockchain discussions. 254 00:25:10,890 --> 00:25:19,610 So the post itself was made in 2022, and once we translated it, we can see that it's clearly promoting the Token Recovery tool. 255 00:25:20,370 --> 00:25:30,390 So we can determine from this that MUT1244 first targeted crypto and blockchain communities before moving on to academics, pen testers and red teamers. 256 00:25:31,170 --> 00:25:41,870 Now, evidently, they've been extremely busy promoting malware across a diverse range of targets, but just when we thought we'd seen it all, the rabbit hole deepened even further. 257 00:25:42,890 --> 00:25:47,470 So if you remember, this was in December, a few weeks after that, we took some time off. 258 00:25:47,470 --> 00:25:51,550 I went skiing into the French Alps, and we just kind of paused the investigation. 259 00:25:51,930 --> 00:26:00,670 When we go back, we saw that the threat actor has tweeted some things, and he was basically complaining about file.io not working anymore. 260 00:26:00,690 --> 00:26:04,150 If you remember, that's the file sharing service that they were using for exfiltration. 261 00:26:04,290 --> 00:26:11,830 And that corresponds with when file.io was acquired by a company named LimeWire, which you might know if you were born in the 90s. 262 00:26:11,850 --> 00:26:16,790 And so at the time, you know, the file.io thing stopped working, and that's the threat actor complaining about it. 263 00:26:17,350 --> 00:26:30,430 At this time, they kind of switched tactics a little bit for the exfiltration, but also we found this post from a French pen tester called Valentin Lobstein, where he basically says, you know, hey, I'm a pen tester, I need to exploit a vulnerability. 264 00:26:30,570 --> 00:26:35,410 So I found a poke for this one, I ran it, and I figured out that I was infected. 265 00:26:35,690 --> 00:26:37,790 So this is, you know, that story. 266 00:26:37,870 --> 00:26:46,470 But also he found that the threat actor has tested his own malware on their own machine and exfiltrated their own data on a publicly available place. 267 00:26:46,930 --> 00:26:48,690 Which for us is great, right? 268 00:26:48,850 --> 00:26:52,930 We have bash history, SSH keys, passwords, a lot of things like that. 269 00:26:53,330 --> 00:27:00,210 Now, this is an example on the top of the threat actor trying to authenticate to a few of their C2s. 270 00:27:00,490 --> 00:27:08,290 The one below is when they are trying to figure out, if you remember that phishing campaign, which victims haven't gotten the phishing email yet. 271 00:27:08,950 --> 00:27:11,230 They are humans, though, so they make some typos. 272 00:27:11,230 --> 00:27:15,970 As you can see on the top, they are using some typos when they do app install as well. 273 00:27:15,970 --> 00:27:22,550 And the bottom is when they are trying to authenticate to an RDP machine with stolen credentials. 274 00:27:22,550 --> 00:27:23,590 So this is great for us, right? 275 00:27:23,590 --> 00:27:24,690 This is super interesting. 276 00:27:24,770 --> 00:27:28,310 I think a bit more than 2,000 lines of bash commands. 277 00:27:28,410 --> 00:27:32,830 And a few more things that we can get from that is actually the GitHub usernames that they use. 278 00:27:32,950 --> 00:27:44,570 So what you can see here is the Git commands that they use to set the Git remotes and URLs before pushing the malicious box, which gives us some more insight into what malicious user profiles they are using on GitHub. 279 00:27:44,910 --> 00:27:46,750 And one of them was interesting. 280 00:27:46,750 --> 00:27:49,150 It's called Ableit with a zero. 281 00:27:49,150 --> 00:27:50,970 And Matt is going to tell more about that. 282 00:27:53,270 --> 00:28:03,030 Yeah, so we were able to track down yet another GitHub profile that was operated under this name using the GitHub archive dataset that Christophe mentioned at the start of the talk. 283 00:28:03,030 --> 00:28:13,730 So the user didn't actually have any public repos listed, but we noticed that they'd created and commented on several issues related to AI image generation projects. 284 00:28:13,730 --> 00:28:24,010 Now, we can see two examples of these issues opened by the Ableit user on this slide, and these were opened under the project Stable Diffusion Web UI Forge. 285 00:28:24,250 --> 00:28:33,730 So, of course, this tells us that they're like they're interested in AI image generation, which, as we expected, was the source probably for the profile pictures that we found throughout. 286 00:28:34,070 --> 00:28:45,270 Now, despite this, we're unsure whether they're interested in this simply from a hobbyist perspective or whether they intend to actually target this community at some point in the future. 287 00:28:46,450 --> 00:28:52,970 Finally, we also discovered this screenshot of Total Commander from a reply to one of the GitHub issues. 288 00:28:53,350 --> 00:29:01,810 You can see on screen here that it's a Russian language version of Total Commander, which fits with the language used in the forum posts we saw earlier. 289 00:29:02,130 --> 00:29:06,270 So I'll now hand you back to Christophe to discuss detection methodology for this. 290 00:29:06,650 --> 00:29:14,590 Yeah, so first I want to show a few reports that happened in 2025 of people finding malicious stuff in GitHub. 291 00:29:14,790 --> 00:29:18,890 There's one from Reversing Labs, one from Kaspersky, and these are slightly different. 292 00:29:18,890 --> 00:29:21,990 They are not specifically proof of concepts like we have today. 293 00:29:21,990 --> 00:29:26,270 They are more like tools that look legitimate but are actually backdoored. 294 00:29:26,730 --> 00:29:32,530 And then we have a few research papers that I like that talk about how to detect malicious things on GitHub. 295 00:29:32,690 --> 00:29:40,970 This first one is from the Rochester Institute of Technology, and it shows how to use commit metadata to find malicious contributions in open source projects. 296 00:29:40,990 --> 00:29:41,830 So it's a great paper. 297 00:29:41,830 --> 00:29:43,570 If you want to read it, it's a great one. 298 00:29:43,670 --> 00:29:48,170 This one from the University of California, Riverside. 299 00:29:48,210 --> 00:29:58,990 They do a lot of things, but one of them that's interesting is they classify different set of users into malicious and benign, and they look at what are their fields that are set on their profiles. 300 00:29:59,190 --> 00:30:05,410 So that's really interesting for us because it allows us to characterize what might look like a malicious or a benign user. 301 00:30:05,410 --> 00:30:14,570 As a very simple example, you can see that 95 percent of benign users said their full name versus 28 percent of malicious users. 302 00:30:14,950 --> 00:30:21,730 And finally, this one is from the University of Leiden in the Netherlands, and they specifically look at POCs. 303 00:30:21,730 --> 00:30:28,650 So GitHub repositories called POC-CV-something, and they look at the contents of the repositories. 304 00:30:28,670 --> 00:30:32,430 They found that almost 2 percent of these POCs were malicious or backdoored. 305 00:30:34,150 --> 00:30:42,970 So what, when we did this investigation, we had a lot of heuristics because we found, we found a few, a lot of malicious repos and users. 306 00:30:42,970 --> 00:30:49,150 So we wanted to try to encode that into a tool that anyone can use to scan a repository or a user on GitHub. 307 00:30:49,290 --> 00:30:52,190 And that's an open source tool that we are releasing just today. 308 00:30:52,350 --> 00:30:58,250 And so the way it works is that it analyzes the metadata of the GitHub users and the GitHub repositories. 309 00:30:58,310 --> 00:31:07,630 It doesn't look at the data inside of the repo, but it looks at the, uh, forks, the different characteristics of a user and anything that might make it stand out. 310 00:31:07,930 --> 00:31:11,510 So for a quick demo, that's one. 311 00:31:11,750 --> 00:31:15,730 So, uh, you know, that's an open source tool that you can get from GitHub right away. 312 00:31:15,830 --> 00:31:19,830 And it has a bunch of heuristics for repositories, for users. 313 00:31:19,990 --> 00:31:22,210 And if you click on them, you can directly see the code. 314 00:31:22,690 --> 00:31:31,870 Now on the demo, you can see we opened a few malicious GitHub user profiles and malicious GitHub repositories that were not down at the time we recorded that video. 315 00:31:32,690 --> 00:31:37,510 I'm just going to copy paste the username of that one into a terminal. 316 00:31:37,510 --> 00:31:40,970 And what you will see, I'm going to run GH buster with a username. 317 00:31:40,970 --> 00:31:43,810 And that's going to trigger a few, um, a few heuristics. 318 00:31:43,850 --> 00:31:50,090 I'm not going to go through them all, but basically it's telling you this user has forks of repositories that have been taken down. 319 00:31:50,430 --> 00:31:54,090 Uh, which is generally a sign that the fork is gone because it was malicious. 320 00:31:54,550 --> 00:31:59,370 Uh, I mean the, the parent of the fork is gone because it was malicious, but the fork remains. 321 00:31:59,370 --> 00:32:03,430 You have things like, um, the user only has commits from unlinked emails. 322 00:32:03,430 --> 00:32:13,430 So if you go through all of the commits from all of the users across all of the repos, you only see commits with metadata where the email doesn't link to the user's GitHub email address. 323 00:32:13,430 --> 00:32:21,650 With generally the sign that you have a threat actor that uses a bunch of GitHub profiles, um, and they don't, change their Git commit metadata every time. 324 00:32:21,950 --> 00:32:30,830 And you have some other simpler ones like low community activity, um, or, uh, some profiles fields that are not set while they are generally, um, there. 325 00:32:31,010 --> 00:32:36,470 If we go to the fork, we can see that the fork is online, but the parent repo is down. 326 00:32:36,470 --> 00:32:38,270 So that's what this is detecting. 327 00:32:38,270 --> 00:32:42,070 And if we go to the list of repositories, we see that this user only has forks. 328 00:32:42,230 --> 00:32:44,170 Now moving on to the next one. 329 00:32:46,270 --> 00:32:47,730 Moving on to the next one. 330 00:32:47,730 --> 00:32:49,910 Uh, this is a malicious repository. 331 00:32:49,910 --> 00:32:52,910 We can just copy paste the URL as well. 332 00:32:52,910 --> 00:32:54,930 We do GH buster the URL of that repo. 333 00:32:55,050 --> 00:32:57,670 And here is going to find same for the repo. 334 00:32:57,670 --> 00:33:02,030 There are no, um, like all of the commits are from suspicious unlinked emails. 335 00:33:02,030 --> 00:33:11,170 Meaning that as you can see here, I cannot click on the Git username because the Git commit metadata, uh, has an email that isn't linked to the user. 336 00:33:11,650 --> 00:33:24,290 And finally if we try that on another user, um, sorry, on another repo, that one is going to take a bit more time, but it's going to also analyze anyone who started the repository and run the heuristics on them. 337 00:33:24,350 --> 00:33:35,150 So as you can see here, it's going to say for every person who started the repository, I'm going to run some heuristics and the goal is to figure out, um, if this repository has been fakely promoted. 338 00:33:35,150 --> 00:33:37,410 So what you can see here is two things that triggered. 339 00:33:37,490 --> 00:33:42,890 One is that the repository was started only by users that seem suspicious. 340 00:33:43,730 --> 00:33:47,310 And secondly is that it has stargazers who all joined on the same day. 341 00:33:48,210 --> 00:33:57,050 Um, so if we go here to slash stargazers, we see that many of the people who start the repo joined GitHub on the same day on April 26th. 342 00:33:57,050 --> 00:34:01,110 So again, if they didn't start it, they joined GitHub on the same day, which is definitely suspicious. 343 00:34:01,510 --> 00:34:02,510 So that's the tool. 344 00:34:02,510 --> 00:34:04,410 Uh, feel free to, um, to use it. 345 00:34:04,410 --> 00:34:09,310 It's open source and if you have some feedback or some recommendations, we'd be happy to, to discuss that. 346 00:34:09,610 --> 00:34:13,830 Now wrapping up a little bit, this is the campaign that we showed today. 347 00:34:13,870 --> 00:34:29,970 Again, a bunch of trojanized attack tools and pokes that are targeted at pen testers, offensive actors, security researchers, but end up delivering the same payload that, you know, steals some data, including some credentials, along with a phishing campaign that acts as another initial access vector. 348 00:34:30,590 --> 00:34:37,530 And as a key learnings, at least for me, on this investigation, is that proof of concepts are great targets. 349 00:34:37,530 --> 00:34:37,750 Why? 350 00:34:37,750 --> 00:34:44,990 Because when you're a pen tester, you need to keep up with all of the pokes, test them, so there is a high chance that someone will run it, right? 351 00:34:44,990 --> 00:34:51,310 Uh, also as a pen tester, it's likely that you have access to some, to some credentials, to some, uh, highly privileged systems. 352 00:34:51,610 --> 00:34:56,510 But running untrusted code is not a problem that's only for proof of concepts, right? 353 00:34:56,510 --> 00:35:00,210 Anytime we do PIP install, NPM install, that's the same issue. 354 00:35:00,870 --> 00:35:17,270 Finally, uh, as I think Matt has spoken in great length, um, how to make something look legitimate is a big part of a threat access operation, and that's a good opportunity to find them and try to, you know, um, pull the thread and see, see what we can find from there. 355 00:35:17,630 --> 00:35:19,790 Finally, there are a lot of open data sets. 356 00:35:19,790 --> 00:35:30,090 We showed today the GitHub archive and two different ways of using it, but there are many more on like Hugging Face, for instance, that are great for, um, OSINT, Threat Research, so go ahead and use that. 357 00:35:30,130 --> 00:35:32,790 And, uh, that's all for us today, so thank you for coming.