Hello, Devcon. First of all, if anyone does not want to be photographed, I'm going to take two pictures. That's for my mom. She never believes that anyone comes and hears me talking. That says a lot about her trust issues. Hello, everyone, and welcome to my talk, Behind Enemy Lines, Engaging and Disrupting Ransomware Web Panels. This talk is PG-17, due to two reasons. First, there are going to be some notions about drugs and bad words from people in the talk. And secondly, I love saying fuck and shit. And I'm not going to stop it. Hello, all. As you can see, I'm Vangelis Stikas. I'm the CTO and co-founder of a penetration testing firm called Atropos. We specialize in API penetration testing and green PV and electronic vehicle chargers penetration testing. My research interest for the past decade is API security and for the past couple of years, malware and ransomware C2s. How everything started. So I don't know who of you were here last DEF CON, but I did a pretty similar talk about malware C2s, which was really, really easy. So I wanted a bigger challenge. And the main question in here is, could it be any harder? Markus Hatzins, I think you all know who he is, said that cyber threat intelligence is such a white industry. In contrast to the actual intelligence, which is a monopoly of the government, there is the CTI. There is just some random dude named Brad who got really baked one night and yollowed his way into a major APT's backend server. Two issues in here. I'm going to start with the one that has legal implications. Who the fuck named his son Brad? I'm not Brad, I'm Vagelis. And secondly, I don't take drugs. I do like my occasional alcohol, but I also have three really strange people in the Signal chat. If you want to drop them a follow on Twitter, Twitter, not X, fuck Elon Musk. First is Solfer, my really good friend and pretty much partner in all my research and the main person to blame. My second person is Iskuri, who is a legendary DEF CON and Black Hat speaker and a person who hacks bootloaders for fun. The third one is No Thanks. He's a super ninja hacker, multiple times DEF CON speaker too, and a really good artist. All three of them were trying to poke me around to start going after ransomware. A couple of minutes ago, I asked how much more difficult it would be. For the malware, in the past couple of years, I have been able to pwn or gain access to pretty much 50% of all the bundles that I have seen. So it's 18 out of 36. For the ransomware, it's quite difficult. So I only was able to get access to three and a half out of 140 that I have tested. Quick intro, that's the only intro. Ransomware is a type of malicious software that threatens to publish or block access until the blah, blah, blah. If you don't know what ransomware is, go somewhere else. How ransomware works, there's a step-by-step process. One is they somehow get access and distribute their malware and infect an internal user. The second step is getting access to command and control C2s. Then they do the discovery and lateral movement. The data extraction, so they're extracting all the data. Data encryption, which means you have lost all your data. Then there is extortion. So what we're going to see there are three or four ways of extortion. And then there is resolution. However you resolve that issue. That slide is going to seem like I'm teaching you on how good ransomware market is. I'm not. I fucking hate them. They fucking hate me. But I want to say some good stuff about them. So it's the fastest growing type of cybercrime. Their payout broke the limit of 1 billion last year. They hit 1.1 billion. It's a highly professional industry. It seems that the boundaries here are falling off. So they're after hospitals, critical national infrastructure and pretty much everything else. And want to cry open the kind of forms that we cannot close. Again, this slide too, I fucking hate them. The gangs are highly hierarchical. We expect that it's a criminal rig. They have a clear structure. The first part is obviously the tech part that we're going to see later on. But they also have ransomware negotiators and customer support. As pretty much any company has. Money lenders and payment processing. Because as we saw, they're processing 1.1 billion per year. And collaboration and partnerships. Because why not partner with a ransomware, right? The tech part. They have several specific and special users. One is the malware developers. I'm not going to explain what it is. Exploitation developers who are possibly developing either zero day or end day. They have special people for data theft and leaks. They have people for operational security. And last but not least, and usually we don't know about that. They have really good people on infrastructure and hosting. And that makes sense because imagine owning a unicorn company. Extracting half a terabyte of data and not being able to process it. Because your infrastructure or hosting was bad enough. Let's move to the ransomware models. First of all, there were lone wolves. At some point, right now, they are no longer it. Those were single people who were doing everything. Initial access brokers are a special way of ransomware groups. They are people who specialize in just that initial access. Getting it and then selling it to other ransomware groups. Only one ransomware groups, which is from start to finish. Everything done by them. And ransomware as a service, which you could consider it as software as a service. Or as I like to say, ransomware meets capitalism. How ransomware as a service are being paid. Flat monthly fee. Affiliate programs with a monthly percent of the profits. One time license. This is not as a service, I'm just saying. But they do advertise that. Pure profit sharing. Payments made to the RAS and then they give you a part of... They give their affiliate, not me, a part of the profits. And the most well-known were Lockbit, Blackcat, Klopp and some more. This is my only try of being a graphic designer. You see I'm not good. So we are going after the C2 server. As we can see, there's the user, there's the cloud and there is the hacker slash ransomware on the top with the red. Can anyone guess why he's the hacker? No one? He's wearing a hoodie, guys. If you wear a hoodie, you're a hacker. You should know that. You're DEF CON for fuck's sake. The extortion, how they do. They establish communications with victims with multiple ways. Talks, telegram, email or some internal web panels. Keep that in mind, you're going to see one. They lay their terms and then they extort victims in multiple ways. There are four ways of extorting people. The first is ransomware data. So they have encrypted their data. So they're wanting the money to decrypt data. This was easily fell over because now pretty much everyone has a proper backup system. I hope. Then the second level of extortion was releasing data to the public. So extorting the people that we have your data, we're going to release it on the public. The third was DDoS with knowledge obtained from data. And fourth was communicate with people that were the victims' customers or even the LEA. We have seen in 2024 a lot of groups going to the LEIA and saying that this company was hacked and they did not report it. So let's set some goals. First, we want to identify all the C2s and data leak sites. Try to find any vulnerabilities. And I mean any vulnerabilities. Identify any people behind them. Try to disrupt panels and threat actors. And the three last ones are really, really important. Do not disrupt with any active LEA investigation. Don't be a malakas. And don't get banned. So those two, the last, are my motto for the past couple of years. I have them as stickers. If you want them, come ask for them. So, the past couple of years I have been joking around that I will be banned. Which was mostly a joke and a tongue in the cheek thing. But right now, I'm trying to disrupt criminal rigs that handle more or less tens of millions of dollars. And they are criminal rigs. So this is no longer a joke, but an actual probable risk for me. Last night, when someone tried to enter my room by wrong, I literally thought that I was getting banned. This is not funny. A more probable situation, though, is me waking up again with this message. I don't know how many of you have woken up with this kind of message. It's either on your Google account or your iPhone. But when you wake up and you see that government backed attackers may be trying to steal your password, you are freaked out. So, I'm going to say it here in DEF CON. I also said it on Black Hat a couple of days ago. If anyone wants to burn his one million zero day to get access to my email or my phone, I'm going to delete the photos from my kids and give him my phone for just 100k plus VAT. There's no reason to burn your zero day for me. I want to state again that I had really low expectations into finding anything, and I didn't find as much as I would want. How did I identify pandemics? Those really nice people that are doing CTI, I'm not a CTI expert. I'm just a random guy who Googles and Doomscrolls on Twitter. So, I used Ransomlook.io, Ransomwave, Ransomware.live, the deep dark CTI in GitHub, and lots, and I mean lots of Doomscrolling and monitoring CTI companies for new posts. The research had certain limitations that we knew, I knew from the beginning. The C2s had a terribly small lifetime because they were live only during the actual phase of being of the ponies. And they're also really difficult to find because all the CTIs companies will keep them for themselves, obviously, and not going to post an active threat. The data link sites are well, very, very well looked after. And they're also behind Tor and Onion. So, it gives an extra obstacle that I would have to bypass in order to get to them and test them. My methodology is quite straightforward. I'm going to ignore malware distribution and reversing. First, because I'm a simpleton and I don't understand reversing. This is mostly because I'm, as I said, a simpleton, and two, because I hate assembly due to my college years and a certain person who tried to teach me. I would just run the malware in a sandbox, extract all the URLs, and use data link URLs found via CTI or other means. And then, I will introduce you to a newer Toyota Corolla. The Toyota Corolla of security testing, also known as web application penetration testing, will get you from place A to place B. It's not sexy, it's not nice, but by getting you from A to B, it will probably also give you some info about ransomware groups and potentially a couple of RCs. Methodology, boring stuff, but I have to say, because those tools literally made the whole research. Dirsearch, for the win. FFUF, Verbshoot. The Trifecta of Tor, which is Tor Expert Bundle, Tor Browser, and Tor Socks, which greatly helps to run any other tool. Coffee, and I mean a lot of coffee. Anyrun, for running all the malwares. Several droplets on DigitalOcean, because as I said, they had a lot of operation security, so I was getting banned en masse. So, done ION Census, so that you could potentially find websites outside of Tor. And did I mention coffee? I mean lots of coffee. How I'm going to approach the whole thing. Black box web application testing. Use any acquired information for furthering my attacks. Interact with data leaks and chat websites. Intentionally infect sandbox so that I could get a ticket. And by ticket I mean, you're going to see later, that all the chats wanted a ticket so that they can identify what company you were in. My first step was, as I did with malware, just blatantly run Deer Search and FFUF with a custom word list through Tor Socks. My results were disappointing. There were only 15 URLs that gave something interesting, which is not exactly interesting. Then I moved to manually check all of them. Five of them were WordPress. A couple of them were leaking IP addresses. And some of them were cheeky. When I say cheeky, I mean really cheeky. So one of them told me to fuck off. The other one told me to use the N word. I'm not going to use it because I respect people. And the cheeky was Abish who said, just business, nothing personal. Keep that. So let's go. Much like Alice in Wonderland. Let's take the little dumb bunny by hand and let's move inside Ransomware Land, shall we? First one is Mallocs. I don't know who is familiar with that. They're also known as Target Company, Fargo and Tonsomething. I cannot pronounce it. First appearance was June 2021. They target mostly Windows machines and specifically MS SQL servers. They brute force SA accounts. Last year, they started using also some end days. And they are in the hundreds of victims. This is their index page of their data leaks. As you can see, they have a lot of victims. And the slash malloc slash private signing, they requested a private key so that I could chat with them. So I had to, as I said, infect something. I infected anyone. I got a key. Is it clear? I said, hello. Guy didn't respond. So like I said again, hello. Nothing back. Sorry. I then decided to run their search and FFUF. There was an Apache server status page exposed, which was leaking URLs, server IP addresses. And it was also leaking tokens to check other people's messages. But that was not fun enough. So can you see the whole thing? There is a button underneath my hello that says reply. This is the post message. It's practically a quote. Can anyone guess what the issue is in here? No? Okay. So there was an either on reply ID parameter, which means I could quote pretty much any message in the world. Not in the world, in the server. The parameter was an incremental integer. So what I had to do was to take that post, write the Python script really badly, and do a for loop from one to, I don't know, 50 million, and export all the messages. That was also used for in-between messages, for in-organization messages. So first, there's the boss. Clearly a God complex. I work according to my own schedule, which does not change on anyone's request. As soon as I see the payment, I will send the decryptor. I have a well-maintained business, blah, blah. It will not be disturbed by any moron that could not secure their machines. Oh, the irony, right? And last one, I was on Special K for a couple of days, so fuck off and do the work that I'm paying you to do. I don't know exactly what Special K is, but I think it's a drag. So, employees. Boss, the budget for this client is only 15K. Do you agree? They don't need much data. And Jessica, probably to another employee, boss is not in a good mood today. Let's be careful. Yeah, be careful. Good for you, Jessica. And last, but really not least, the boss was sending the decryptors to the guys. Here's the decryptor for company A. Here's the decryptor for company B. I got those decryptors because I wanted them too. This is the actual organization. I said I wouldn't have another graphic, but I needed to do another graphic. You should forgive me for that. So, boss on the top, Panda, Jessica, Malox, and Ismail on the bottom. And then, after a day or so, unfortunately, my chat was disabled and my IDOR was fixed. Message was not delivered. Unfortunately, I couldn't quote it anymore. What did I get? I got internal knowledge of the team. I got pretty much all of their messages. I got some decryptors, which I communicated to the companies that were ransomed with, and they used it. Once the admin got up, or sober, I don't know what, it was fixed. So, all in all, result? Mediocre, I guess. Sorry about that, but I was too verbose. I was too blatant. I just did it all at once, but I wanted to do it. That's my second group. I think all of you know it. Black Hat and Alpha V. They're also known as Noberus. Their first appearance was in 2021. They operated as a ransomware as a service. They have a Rust-based malware and server-side C2, and they use the triple-extrusion scheme. The Rust loader that we're going to go after was researched by Lapuseanu. Sorry if I butchered your name, Andrei, by Bitdefender Labs. It was targeting only Mac. It was developed in Rust. I think all of the Black Hat malware was developed in Rust. And their C2 was used on all of Black Hat malware. Andrei Lapuseanu, that's the actual research that I saw while Doomscrolling, and there were 1, 2, 3, 4 CNC servers in there. I checked all the C2 URLs. One of them was online, but it was just returning 404. So, me being me, I have decided to put it in the loop of continuous scanning that I have in my rig. And two days later, it downloaded some documentation. The first documentation was for clients, so I could see all the malware-infected clients. And the second one was tasks, so I could see all the tasks that were ever run on the server, on the machines. Unfortunately, both of those endpoints were offline at that point. So, what I had to do is read the documentation, try to guess, not exactly guess, try to understand the documentation, create a Python script, automate the check, and put that in the loop again, and wait. And by wait, I mean really wait. I think seven or eight days after, I got a push notification on my phone. Yay, you got something. So, I extracted 197 commands in two minutes on a four-hour window. What does that say to us? It means that Blackcat was putting the C2 server only when using it and exploiting it. And when they are not using it to do any movement, any lateral movement or anything else, they were putting it off. And you can see that in here, it uploads a file. And this is the scary command. When you see the XXX in here was a command's name. So, when you see zipping someone's AWS and GCP environments on an env.zip and then being uploaded to another server, it means that someone is getting exploited as we speak right now. So, I had to switch to incident response mode. I hate incident response. I identified four companies. All of them were cryptocurrency related. Crypto is cryptography. Fuck cryptocurrency. Two of them were unicorns, which means their valuation was over a billion. All four of them were notified and they acknowledged the issue. None of them were an unsung. What did I got? I got all the info and understood the lateral movement that Blackcat was doing at that point. I stopped the whole campaign. Four companies were not ransomed and Blackcat got a really big financial hit. And after... Thanks. And after a month, under increasing federal scrutiny, Blackcat ransomware gang pulled XXX on its way out. I'm not going to say that this was all me, but I'm going to say that my exploitation and stopping that campaign probably helped them to make the decision to do that XXX scam. So, all in all, I would say not bad, right? Third one. Everest. Oh, my lovely Everest. Active since late 2020. They targeted high profile targets for the first three years. On the last year, they moved to also lower profile targets. They pivoted to initial access broker. They pivoted to just data leak. Fuck, they pivot around like they're startups. They graded as highly sophisticated by multiple researchers. And they're also well known for being paid and not getting... and then releasing the data. So, they are mentally unstable. Right? Why don't you go after a mentally unstable millionaire? This is their data leak page. Does it look like something you know? No one? It's fucking WordPress. Version 5.5.3. This version was done in 2020. That's four years ago. There, on the left, there is a login page. And on the right, there is also the readme.txt in case you didn't know how to install WordPress. Then, I ran WP scan via Torsox. Because, why not, right? It said it's really insecure, 42 vulnerabilities identified. Unfortunately, none of them was really exploitable by Selemy. The only thing that I could see in here was that error on RSS functions. As you can see in here, we can see that the PHP error reporting was on. It was a Windows machine, and we were running Vertigo server hosting, which is end of life for the past two years. They also had OpenDIR, so you could see pretty much everything. They had a couple of zip files, but nothing interesting. They also had phpMyAdmin. Why not, right? And I did what every super hacker does in the world. I googled Vertigo default MySQL password. Yeah, I got that. But unfortunately, it didn't work. And that was my talk up until 15th of July. Then, my nine-year-old son... okay, let me stop. In Greece, I have two sons. The one is nine-year-old, the other just became 13. So, can we all say happy birthday to Antonis? Because... Thanks for that. Happy birthday, Antonis. I should be there in Greece, but I'm here, so you know me. So, my nine-year-old was sitting at my computer, reading my 2000 open tabs. And at some point, he says, that's a really strange name to call your server. Why the fuck would you call it Vertigo? I'm like, no, it's not Vertigo, it's Vertigo. He says, no, I know how to read. It has two R's, it's Vertigo. I'm like, what, motherfucker? He then said that he's not the thing, I'm the thing, but it is what it is. And do you all know what that means? I have to reuse my favorite meme. I use Vertigo, and what that means is... I'm the fucking admin. WordPress administration, I did develop a WordPress plug-in. No, I didn't develop a WordPress plug-in, sorry. I took a PHP cell, pony cell, zipped it, named it cell.plugin, uploaded there, and I think I might have prematurely used the I'm the admin meme, because right now, I'm the fucking admin in the whole situation. Then, after doing things that most of the Red Teamers in here, I see a really good Red Teamer in here, would decapitate me of doing, but again, I'm a simpleton, sorry about that. I somehow run Mimikatz, got the whole, I don't know, token and shit and all that, which means they're Russians. Who the fuck would expect them to be Russians? It's a Windows 2012 server, and they have done a lot of crimes, but can anyone guess what's their biggest crime? They haven't paid for WinRAR. For fuck's sake, you make, I don't know, 20 million per year, pay the fucking WinRAR. So, database export, username extract, remote command execution on the server, got hold of their own secret keys, lots, and I mean lots of locks to analyze. I was hoping that it would be down by someone by now, but it's still there, so if anyone wants to play, go play. Result? Again, this was supposedly my talk up until this Saturday, but this Saturday, Dark Angels, it emerged in May 2022, high-profile targets, Babook-based, that means that they just stole the whole league of Babook and they're using it, they're focused on Linux and ESXi, and they received a record 75 million ransom, as we all saw last week. And then, Rakesh Krishnan, I hope I said it correctly, found their clear text, their open web IP, which means I had to take a look. This was on Saturday morning, and I was flying away Saturday evening, so I had six hours. You can go there right now. I should make it a demo, but I don't like demos. So, they have a different HTTPS and HTTP configuration. The HTTPS is on the slash public of their symphony. The HTTP, port 80, is on the root of symphony, which means if you go to .env, you are going to see .env, and you are going to see AppSecret and the MySQL password. You do what you want with that information. What did I find? Env file exposure, internal URLs exposure, some error logs exposed. I'm not going to say what those error logs were. You can look at it. One message mentioning 5.5 million payment exposed. This was nowhere to be found, so I guess they were paid and killed the whole thing. So, all in all, that was fast. I could do some stuff with AppSecret, but unfortunately I had to fly here, so you should excuse me for that. And we are getting to the end. My favorite part of Ethical Glimmers. Are we the baddies? What the fuck we are doing with our lives? I never wanted to become a vigilante. I'm not seeing myself as a vigilante or someone who wanted to do bad things. I always wanted to be considered, as we Greeks say, the Socratic fly or the god fly. I wanted to be the one that reinvents the status quo and tries to make the bad people, the ransomware gangs, give them a taste of their own medicine. And I also want to say to CTI companies that they would really need to be more open into sharing information. If I only had C2's information more quicker, I would have a really bigger talk right now. Except the two CTI companies that have already used my research without mentioning me. Those can go fuck off, I don't care. Conclusions. Some of us fail and fail miserably. Some of you really succeed and succeed gloriously. And I'm really happy with everyone that succeeds. I know that for the past two years, I have been looking. I really love VX Underground and their five horsemen paradigm. So for the past two years, from London 2022 with Spower, Defqon last year with Stealer and Botnet, and this year's Defqon and Blackhat with ransomware. I have been fighting all those five horsemen. And while I never had a clear win, I could never say that this was not the case, that I didn't look anyone, all of them in the eye and smiled. So, thank you. And if anyone has any questions, we have like five minutes to talk. There's the microphone. No one? Nice. Thank you guys. Oh, I have one. Where is he? Oh, nice. Hi, thank you. Great talk. My question is, which would you choose to fight? Five duck-sized horses or... Oh, I got it wrong. I got no question. Thank you for the talk. Thank you. Anyone else? Thank you guys.