[00:00.000 --> 00:01.320] Uh, good afternoon DEF CON. [00:01.460 --> 00:03.760] Uh, got a great talk for you today. [00:04.020 --> 00:07.920] Um, Christophe and Matt are going to talk to you about weaponizing trust. [00:08.280 --> 00:12.100] Uh, please give a nice DEF CON welcome to Christophe and Matt. [00:16.600 --> 00:17.700] Hi everyone. [00:17.700 --> 00:20.260] Thanks for coming to our DEF CON talk. [00:20.260 --> 00:24.080] Um, so this is our first time speaking at DEF CON and we're very excited. [00:24.180 --> 00:25.860] Matt is coming all the way from Scotland. [00:25.860 --> 00:27.560] I'm coming all the way from Switzerland. [00:27.560 --> 00:29.320] So thanks for being here. [00:29.320 --> 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. [00:39.720 --> 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. [00:48.120 --> 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. [00:55.960 --> 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. [01:04.020 --> 01:08.600] So if you are working on the project and things look like that, you're probably doing the right thing. [01:09.280 --> 01:10.280] My name is Christophe. [01:10.280 --> 01:11.580] I work at, uh, Datadog. [01:11.580 --> 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. [01:17.440 --> 01:19.400] And this is Matt, my partner in crime. [01:19.960 --> 01:20.420] Hi everyone. [01:20.420 --> 01:21.160] My name's Matt. [01:21.160 --> 01:26.820] I'm a security researcher at Datadog as well, mainly focusing in malware analysis and threat research. [01:27.760 --> 01:28.400] Great. [01:28.400 --> 01:31.620] So again, this story starts in December 2024. [01:31.620 --> 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. [01:40.840 --> 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. [01:46.900 --> 01:53.840] Um, the malicious one has the same readme, same functionality, very close code, except that it has a backdoor in it. [01:53.840 --> 02:00.100] So if you open the code, you will see this extra news validator, those JS file that contains obfuscated code. [02:00.180 --> 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. [02:13.480 --> 02:19.560] Now if you wonder how the authentication is working, uh, you might have guest list, hard coded credentials, right? [02:19.580 --> 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. [02:27.620 --> 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. [02:39.940 --> 02:45.500] This is the endpoint in the Dropbox API that allows you to query metadata about the account. [02:45.600 --> 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. [02:50.800 --> 02:56.840] So you'll see here that the email attached to this account is paulmuller1977. [02:57.200 --> 03:01.660] Keep that in mind because it's a username we're going to see a few more times in this talk. [03:02.620 --> 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. [03:09.760 --> 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? [03:16.820 --> 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. [03:23.900 --> 03:25.800] So what do we do? [03:25.800 --> 03:27.240] Unpacking time, right? [03:27.240 --> 03:30.660] Uh, we have a bunch of zip files and we want to figure out what's in them. [03:31.060 --> 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. [03:44.840 --> 03:50.300] Now there are actually quite a lot of these credentials, namely a little bit less than 400,000. [03:50.600 --> 03:56.480] Uh, so it was a interesting discovery, but at the time we were like, I was very confused. [03:56.480 --> 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. [04:04.140 --> 04:05.980] This is not your classic info stealer, right? [04:06.040 --> 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. [04:12.360 --> 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. [04:19.600 --> 04:22.900] But we know that the structure of our attacks look something like that, right? [04:22.900 --> 04:29.440] We have very simple for now, malicious NPM package, exfiltrating data to an attacker controlled Dropbox account. [04:30.780 --> 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. [04:41.340 --> 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, [04:59.380 --> 05:03.420] uh, at the bottom to file.io, which is a file sharing service. [05:04.740 --> 05:06.380] So now we have this structure, right? [05:06.380 --> 05:13.140] We have a second stage uploading data to a Dropbox account and a second one that uploads data to file.io. [05:13.600 --> 05:18.940] Now the attacker was kind enough to make that repository publicly available on codeberg. [05:18.940 --> 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. [05:26.340 --> 05:33.340] But more than that, they also make available a second repository called spam, which contains a few things. [05:33.340 --> 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. [05:47.300 --> 05:49.340] And this is what this attacker is doing. [05:49.340 --> 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. [06:02.320 --> 06:07.780] Next to this file, we can see, uh, the headers of email phishing campaign that this attacker uses. [06:07.780 --> 06:12.780] So we have the recipient test email, which is Paul Muller, one nine seven seven seven. [06:12.780 --> 06:15.640] Very close to the one we had for the Dropbox account, right? [06:15.800 --> 06:18.180] And we have a subject of a phishing campaign. [06:18.180 --> 06:22.520] Um, you have to update your microcode CPU, whatever. [06:23.140 --> 06:27.680] That's the body of a phishing campaign, uh, that looks somewhat legitimate. [06:27.680 --> 06:29.020] I would probably click on that. [06:29.160 --> 06:33.560] And it's telling you how you need to update your microcode for your CPU, whatever. [06:33.680 --> 06:40.120] And you have to click this link, open compiled.org slash microcode patch Linux, which brings you to this page. [06:40.540 --> 06:44.620] It looks like it was designed in the nineties, but it's, I think it looks somewhat legitimate. [06:44.620 --> 06:49.980] You have this change log from the Linux kernel and you have to use this command to update your canal. [06:50.320 --> 06:52.540] Um, that's a click fix campaign. [06:52.540 --> 06:54.140] It's called a click fix type of attack. [06:54.140 --> 06:58.720] It sounds very dumb, but we see quite a lot of them in the past few months or so. [06:58.900 --> 07:01.320] And it works very well for non-technical users. [07:01.900 --> 07:06.260] If you were to run that, you, uh, you end up with a script that comes from GitHub. [07:06.260 --> 07:11.660] And the interesting thing here is that this thing ends up dropping the same second stage payload as before. [07:11.960 --> 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. [07:22.820 --> 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? [07:30.640 --> 07:33.120] Like why would anyone install that or run that, right? [07:33.120 --> 07:35.260] It seems very boring, super uninteresting. [07:35.260 --> 07:36.820] So why would anyone do that? [07:37.000 --> 07:40.400] And, uh, anything else mad that, you know, you want to add on that? [07:41.420 --> 07:42.220] Yeah, sure. [07:42.220 --> 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. [07:52.620 --> 07:55.220] Now obviously this is highly specific. [07:55.220 --> 08:01.040] So first of all, we wondered how exactly did this file end up on the file system in the first place? [08:01.140 --> 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. [08:11.520 --> 08:16.780] So we continued pivoting on some of the artifacts that we'd found up until this point. [08:16.780 --> 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. [08:23.900 --> 08:30.080] Now, the readme for this tool claimed that it was supposed to be used for validating WordPress credentials. [08:30.260 --> 08:34.800] And it used two distinct methods to do this against a WordPress installation. [08:35.160 --> 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. [08:44.180 --> 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. [08:53.800 --> 08:58.140] So we also wondered who might be interested in using a tool like this. [08:58.140 --> 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. [09:05.500 --> 09:09.600] In other words, anybody that wants to validate a large dump of credentials. [09:11.100 --> 09:16.140] So further down the readme page for this tool, we discovered these example usage instructions. [09:16.240 --> 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. [09:23.840 --> 09:28.440] And this file is supposed to contain the credentials that are to be validated. [09:29.360 --> 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. [09:40.880 --> 09:43.180] Of course, what do we see in this file? [09:43.180 --> 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. [09:53.300 --> 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. [10:02.220 --> 10:07.940] So piecing all of this together, we now have our full attack chain, which can be viewed on the slides here. [10:08.920 --> 10:11.320] So let's summarize what we know so far. [10:11.320 --> 10:18.340] We know that MUT1244 are attempting to compromise academics with infrastellar malware via a phishing campaign. [10:18.340 --> 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. [10:32.100 --> 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. [10:41.100 --> 10:46.720] So this slide shows you an overview of how the trojanized credential checker actually works. [10:47.020 --> 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. [10:55.820 --> 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. [11:06.180 --> 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. [11:17.980 --> 11:19.000] And that's it. [11:19.000 --> 11:20.980] Thank you, everyone, for coming to our talk. [11:21.120 --> 11:22.040] No, no, come on, Matt. [11:22.040 --> 11:23.080] There's more to it. [11:23.200 --> 11:25.480] So of course, that was just the beginning. [11:25.480 --> 11:28.720] Otherwise, it would make a 10-minute DevCon talk not very funny. [11:29.020 --> 11:31.020] So the next thing we want to do is to pivot. [11:31.100 --> 11:31.920] What do we mean by that? [11:31.920 --> 11:34.160] We want to find more payloads from this threat actor. [11:34.160 --> 11:36.240] We want to find more indicators of compromise. [11:36.240 --> 11:39.380] And basically, we want to map out a little bit more what they are doing. [11:40.400 --> 11:44.880] So one very naive thing that we can do is look up the payloads on GitHub. [11:44.960 --> 11:46.220] It might work. [11:46.220 --> 11:51.380] You can see here that we have a few of the payloads from the same threat actor on different GitHub usernames. [11:51.460 --> 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. [11:58.300 --> 12:03.140] So ideally, what I'd like as a researcher, right, is to get the full GitHub on my laptop. [12:03.720 --> 12:05.200] There's no way to do that. [12:05.760 --> 12:10.200] But there's an open source project that gets very close to it, which is called the GitHub Archive. [12:10.300 --> 12:15.080] And that's an open source data set that continuously scrapes the GitHub events API. [12:15.580 --> 12:21.160] And it puts that available into a set of JSON files, compressed, one for every hour of the day. [12:21.420 --> 12:25.320] And one year of data is basically one terabyte of compressed JSON. [12:25.320 --> 12:26.780] So it's not that huge. [12:26.860 --> 12:33.400] And this contains all of the public commit, star, fork, push events that you will see on GitHub. [12:33.680 --> 12:39.760] So for anyone doing OSINT or threat research, it's obviously a very interesting piece of data. [12:40.280 --> 12:42.140] Two ways that we can consume that. [12:42.140 --> 12:44.400] First one is using Google BigQuery. [12:45.900 --> 12:49.640] It's a service by Google Cloud where you can query public data sets like this one. [12:49.640 --> 12:50.660] It works very well. [12:50.660 --> 12:52.040] It has all of the metadata. [12:52.320 --> 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. [13:00.680 --> 13:03.780] So this query here is going to cost you like $130. [13:04.100 --> 13:05.280] You need to be careful. [13:05.620 --> 13:11.920] Now, if you don't need the full metadata, you can also use this playground from the Clickhouse demo. [13:12.620 --> 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. [13:18.280 --> 13:25.100] So they have a public playground where you can query public data sets for free without any kind of authentication. [13:25.580 --> 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. [13:33.900 --> 13:37.500] The nice thing about this one is that you can also use it through the API. [13:37.940 --> 13:39.860] So you can see there's no authentication. [13:40.080 --> 13:42.040] You just pass the query and you get back the result. [13:42.040 --> 13:45.420] So this is great for any kind of research that people want to do. [13:45.960 --> 13:50.540] Now, why did we even want the GitHub archive data set in our case? [13:50.560 --> 13:55.800] Well, we had one GitHub user named PaulMuller1977, which you might remember. [13:56.140 --> 13:59.480] And so many of their repos had been taken down. [13:59.480 --> 14:02.980] And so we wanted to see what they had interacted with in the past. [14:03.000 --> 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? [14:13.920 --> 14:15.580] And we get a few things. [14:15.580 --> 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? [14:21.060 --> 14:25.840] And then we link them to the user that owns them and we iterate one more time. [14:25.840 --> 14:30.260] And if you keep doing that, in our case, you end up with something that looks like this. [14:30.840 --> 14:34.200] Galaxies of users or communities, if you are doing graph theory. [14:34.200 --> 14:42.560] And these are basically, so the vertices are users and repositories, and the edges are when they interact with each other. [14:42.560 --> 14:45.620] So if they start something, if they fork something. [14:45.680 --> 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. [14:55.940 --> 14:58.740] Now, Matt, can you show us a little bit what they are promoting? [14:58.740 --> 15:01.780] Because that's also the point of the operation, right? [15:02.840 --> 15:03.860] Yeah, sure. [15:03.860 --> 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. [15:11.040 --> 15:14.360] So let's have a little bit more of a deep dive into that. [15:14.440 --> 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. [15:24.100 --> 15:30.140] So one way that this was achieved was through the use of fake proof of concepts for various vulnerabilities. [15:30.740 --> 15:36.860] Now, let's take a look at what some of the GitHub repositories and profiles looked like that back these vulnerabilities. [15:37.480 --> 15:41.060] So here's an example of a suspicious profile on this slide. [15:41.060 --> 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. [15:47.300 --> 15:51.000] And we can see a relatively blank profile. [15:51.000 --> 15:54.900] There's only one repository that this user has actually contributed to. [15:54.900 --> 16:00.860] Now, most of the profiles that we encountered during this research followed the same general pattern. [16:01.900 --> 16:08.480] Now, to add legitimacy to the proof of concepts themselves, they often included a detailed readme. [16:08.480 --> 16:18.280] So this generally included technical details about the vulnerability itself, often linking out to technical papers or the original vulnerability disclosure. [16:19.160 --> 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. [16:28.360 --> 16:35.000] So typically, the loader payload that we've mentioned previously would be executed as part of these instructions. [16:35.000 --> 16:40.240] And as you can see, I've highlighted this malicious configure script that contains the payload itself. [16:40.720 --> 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. [16:50.060 --> 16:56.760] So here's yet another example, this time focusing on an RCE vulnerability in Kubernetes. [16:56.760 --> 17:03.430] So again, we can see a believable readme providing a useful technical overview of the vulnerability itself. [17:03.860 --> 17:13.100] Now, in this particular example, MUT1244 has claimed that they've incorporated a previously unused attack vector into this exploit. [17:13.520 --> 17:19.440] Now , this, again, is the kind of information that you would expect to see in a POC repository . [17:19.440 --> 17:25.460] And of course, it generates interest in the POC itself with the supposedly unused attack vector. [17:25.460 --> 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. [17:35.520 --> 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. [17:49.500 --> 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. [17:57.710 --> 18:03.010] So we wondered if these fake POCs were actually being aggregated in such services. [18:03.010 --> 18:05.410] So we decided to take a look at this. [18:05.570 --> 18:10.370] Now, this is an example of a FEEDLY report for another Kubernetes vulnerability. [18:11.450 --> 18:19.210] Scrolling down the page, we can see that a MUT1244 malicious POC is being used as an example exploit here. [18:19.210 --> 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. [18:30.390 --> 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. [18:40.930 --> 18:45.430] OK, so this is an attack graph for the Trojanized repositories. [18:45.430 --> 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. [18:53.850 --> 18:59.530] So this also shows the different exfiltration methods for each cluster of Trojanized repositories. [18:59.530 --> 19:05.450] So you can see that some will exfiltrate to file.io and others will go directly to Dropbox. [19:07.010 --> 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. [19:17.950 --> 19:23.330] So we found some additional evidence of them trying to promote the POCs via their own website. [19:23.710 --> 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. [19:33.050 --> 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. [19:42.350 --> 19:50.270] Now, each of the articles contain technical details about the vulnerability itself and some instructions on how to run the exploit. [19:50.270 --> 19:54.310] So it's kind of similar to what we were seeing in the READMEs shown previously. [19:54.550 --> 20:00.850] So some articles here contain an embedded script, which is supposed to be the POC code itself. [20:00.850 --> 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. [20:11.550 --> 20:17.150] Of course, this repo contains the same MUT1244 malware that we've spoken about previously. [20:18.230 --> 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. [20:27.110 --> 20:34.550] So it seems like MUT1244 has actually purchased SEO services to try and push the site higher in search rankings. [20:34.610 --> 20:36.270] But of course, that's not all. [20:36.950 --> 20:43.510] We also discovered this X account with the CVE POC name and some AI generated images. [20:44.070 --> 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. [20:51.490 --> 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. [20:59.610 --> 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. [21:11.070 --> 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. [21:23.210 --> 21:29.430] OK, so we know that MUT1244 tries to target academics, offensive actors and vulnerability researchers. [21:29.430 --> 21:33.190] But are there any other demographics that might have to fall for this? [21:33.690 --> 21:40.850] Well, it actually appears that individuals interested in cryptocurrency and blockchain technologies are also on the hit list. [21:40.850 --> 21:49.110] So we found this strange CryptoForex lead site containing stolen or generated articles about various crypto and blockchain topics. [21:49.950 --> 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. [21:57.930 --> 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. [22:07.150 --> 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. [22:16.030 --> 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. [22:25.790 --> 22:30.830] So we did some more digging and we discovered this GitHub profile with the fgeeks name. [22:31.310 --> 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. [22:40.410 --> 22:47.470] So we found yet another website that is actually dedicated to this project, which gave us some insight into its purpose. [22:48.170 --> 22:55.130] Now, supposedly, Token Recovery is a tool for retrieving ERC-20 tokens that have been mistakenly sent to contracts. [22:55.350 --> 22:59.350] And of course, this is actually impossible without the private key of the recipient. [23:00.230 --> 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. [23:07.870 --> 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. [23:15.870 --> 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. [23:23.050 --> 23:26.350] So here's the about page of the Token Recovery website. [23:26.350 --> 23:31.270] We can see some more information about the project and the noble goals underpinning it. [23:31.830 --> 23:35.450] Again, this attempts to add some sort of legitimacy to the project. [23:35.450 --> 23:40.690] But not only that, it actually connects it with the FGeeks GitHub profile that we'd seen previously. [23:41.210 --> 23:47.270] So as usual, being security researchers, we asked how exactly was this being promoted in the first place? [23:48.170 --> 23:56.090] Well, searching for mentions of Token Recovery across the Internet led us to this Medium blog published in August 2023. [23:56.750 --> 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. [24:06.970 --> 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. [24:14.470 --> 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. [24:25.850 --> 24:30.590] So we also found some additional evidence of this tool being promoted on the Internet. [24:30.610 --> 24:35.990] What you can see on the slide here is a profile for a Quora user with the name Dendrum. [24:36.290 --> 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. [24:45.610 --> 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. [24:57.790 --> 25:03.630] So further research into this led us to this forum post on BitStop Media. [25:03.830 --> 25:10.250] Now, for those of you that don't know, BitStop Media is a Russian language forum for crypto and blockchain discussions. [25:10.890 --> 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. [25:20.370 --> 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. [25:31.170 --> 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. [25:42.890 --> 25:47.470] So if you remember, this was in December, a few weeks after that, we took some time off. [25:47.470 --> 25:51.550] I went skiing into the French Alps, and we just kind of paused the investigation. [25:51.930 --> 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. [26:00.690 --> 26:04.150] If you remember, that's the file sharing service that they were using for exfiltration. [26:04.290 --> 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. [26:11.850 --> 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. [26:17.350 --> 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. [26:30.570 --> 26:35.410] So I found a poke for this one, I ran it, and I figured out that I was infected. [26:35.690 --> 26:37.790] So this is, you know, that story. [26:37.870 --> 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. [26:46.930 --> 26:48.690] Which for us is great, right? [26:48.850 --> 26:52.930] We have bash history, SSH keys, passwords, a lot of things like that. [26:53.330 --> 27:00.210] Now, this is an example on the top of the threat actor trying to authenticate to a few of their C2s. [27:00.490 --> 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. [27:08.950 --> 27:11.230] They are humans, though, so they make some typos. [27:11.230 --> 27:15.970] As you can see on the top, they are using some typos when they do app install as well. [27:15.970 --> 27:22.550] And the bottom is when they are trying to authenticate to an RDP machine with stolen credentials. [27:22.550 --> 27:23.590] So this is great for us, right? [27:23.590 --> 27:24.690] This is super interesting. [27:24.770 --> 27:28.310] I think a bit more than 2,000 lines of bash commands. [27:28.410 --> 27:32.830] And a few more things that we can get from that is actually the GitHub usernames that they use. [27:32.950 --> 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. [27:44.910 --> 27:46.750] And one of them was interesting. [27:46.750 --> 27:49.150] It's called Ableit with a zero. [27:49.150 --> 27:50.970] And Matt is going to tell more about that. [27:53.270 --> 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. [28:03.030 --> 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. [28:13.730 --> 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. [28:24.250 --> 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. [28:34.070 --> 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. [28:46.450 --> 28:52.970] Finally, we also discovered this screenshot of Total Commander from a reply to one of the GitHub issues. [28:53.350 --> 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. [29:02.130 --> 29:06.270] So I'll now hand you back to Christophe to discuss detection methodology for this. [29:06.650 --> 29:14.590] Yeah, so first I want to show a few reports that happened in 2025 of people finding malicious stuff in GitHub. [29:14.790 --> 29:18.890] There's one from Reversing Labs, one from Kaspersky, and these are slightly different. [29:18.890 --> 29:21.990] They are not specifically proof of concepts like we have today. [29:21.990 --> 29:26.270] They are more like tools that look legitimate but are actually backdoored. [29:26.730 --> 29:32.530] And then we have a few research papers that I like that talk about how to detect malicious things on GitHub. [29:32.690 --> 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. [29:40.990 --> 29:41.830] So it's a great paper. [29:41.830 --> 29:43.570] If you want to read it, it's a great one. [29:43.670 --> 29:48.170] This one from the University of California, Riverside. [29:48.210 --> 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. [29:59.190 --> 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. [30:05.410 --> 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. [30:14.950 --> 30:21.730] And finally, this one is from the University of Leiden in the Netherlands, and they specifically look at POCs. [30:21.730 --> 30:28.650] So GitHub repositories called POC-CV-something, and they look at the contents of the repositories. [30:28.670 --> 30:32.430] They found that almost 2 percent of these POCs were malicious or backdoored. [30:34.150 --> 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. [30:42.970 --> 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. [30:49.290 --> 30:52.190] And that's an open source tool that we are releasing just today. [30:52.350 --> 30:58.250] And so the way it works is that it analyzes the metadata of the GitHub users and the GitHub repositories. [30:58.310 --> 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. [31:07.930 --> 31:11.510] So for a quick demo, that's one. [31:11.750 --> 31:15.730] So, uh, you know, that's an open source tool that you can get from GitHub right away. [31:15.830 --> 31:19.830] And it has a bunch of heuristics for repositories, for users. [31:19.990 --> 31:22.210] And if you click on them, you can directly see the code. [31:22.690 --> 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. [31:32.690 --> 31:37.510] I'm just going to copy paste the username of that one into a terminal. [31:37.510 --> 31:40.970] And what you will see, I'm going to run GH buster with a username. [31:40.970 --> 31:43.810] And that's going to trigger a few, um, a few heuristics. [31:43.850 --> 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. [31:50.430 --> 31:54.090] Uh, which is generally a sign that the fork is gone because it was malicious. [31:54.550 --> 31:59.370] Uh, I mean the, the parent of the fork is gone because it was malicious, but the fork remains. [31:59.370 --> 32:03.430] You have things like, um, the user only has commits from unlinked emails. [32:03.430 --> 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. [32:13.430 --> 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. [32:21.950 --> 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. [32:31.010 --> 32:36.470] If we go to the fork, we can see that the fork is online, but the parent repo is down. [32:36.470 --> 32:38.270] So that's what this is detecting. [32:38.270 --> 32:42.070] And if we go to the list of repositories, we see that this user only has forks. [32:42.230 --> 32:44.170] Now moving on to the next one. [32:46.270 --> 32:47.730] Moving on to the next one. [32:47.730 --> 32:49.910] Uh, this is a malicious repository. [32:49.910 --> 32:52.910] We can just copy paste the URL as well. [32:52.910 --> 32:54.930] We do GH buster the URL of that repo. [32:55.050 --> 32:57.670] And here is going to find same for the repo. [32:57.670 --> 33:02.030] There are no, um, like all of the commits are from suspicious unlinked emails. [33:02.030 --> 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. [33:11.650 --> 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. [33:24.350 --> 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. [33:35.150 --> 33:37.410] So what you can see here is two things that triggered. [33:37.490 --> 33:42.890] One is that the repository was started only by users that seem suspicious. [33:43.730 --> 33:47.310] And secondly is that it has stargazers who all joined on the same day. [33:48.210 --> 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. [33:57.050 --> 34:01.110] So again, if they didn't start it, they joined GitHub on the same day, which is definitely suspicious. [34:01.510 --> 34:02.510] So that's the tool. [34:02.510 --> 34:04.410] Uh, feel free to, um, to use it. [34:04.410 --> 34:09.310] It's open source and if you have some feedback or some recommendations, we'd be happy to, to discuss that. [34:09.610 --> 34:13.830] Now wrapping up a little bit, this is the campaign that we showed today. [34:13.870 --> 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. [34:30.590 --> 34:37.530] And as a key learnings, at least for me, on this investigation, is that proof of concepts are great targets. [34:37.530 --> 34:37.750] Why? [34:37.750 --> 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? [34:44.990 --> 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. [34:51.610 --> 34:56.510] But running untrusted code is not a problem that's only for proof of concepts, right? [34:56.510 --> 35:00.210] Anytime we do PIP install, NPM install, that's the same issue. [35:00.870 --> 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. [35:17.630 --> 35:19.790] Finally, there are a lot of open data sets. [35:19.790 --> 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. [35:30.130 --> 35:32.790] And, uh, that's all for us today, so thank you for coming.