- Podcasts
- CyberSecurity Summary
- Malware Analysis Using Artificial Intelligence and Deep Learning
Malware Analysis Using Artificial Intelligence and Deep Learning
CyberSecurity Summary
- March 12, 2026
- 20 min
About this episodeFocusing on its unpacking process and reflective DLL loading techniques. Using tools like capa, IDA, and Hiew, researchers identified that…
You can listen and download our episodes for free on more than 10 different platforms:
https://linktr.ee/cyber_security_summary
Get the Book now from Amazon:
https://www.amazon.com/Malware-Analysis-Artificial-Intelligence-Learning-ebook/dp/B08R3BT6JH?&linkCode=ll2&tag=cvthunderx-20&linkId=fd4234a2f7165e5f9c5cf70efc8de149&language=en_US&ref_=as_li_ss_tl
Discover our free courses in tech and cybersecurity, Start learning today:
https://linktr.ee/cybercode_academy
Transcript
From the publisherThis transcript comes from the podcast’s own feed, shown as the publisher wrote it.
Malware Analysis Using Artificial Intelligence and Deep Learning
Imagine, imagine, if you will, that you're holding a Russian nesting doll, you know, Matriasha. On the outside, it looks totally innocent, maybe a bit decorative painted wood, nothing scary at all. Yeah, but then you crack it open, expecting to find whatever the prize is inside, but instead you just find, well, another doll.
Yeah, a repin Welcome to the deep dive. Today we're unpacking, and I mean literally unpacking, a piece of digital malware that absolutely terrorized the corporate world. We are talking about the Agrigor ransomware Gregor. Yeah, and we aren't just you know, skimming the headlines or reading a Wikipedia summary for you. Today. We're going straight to the source. We are walking looking through a highly technical forensic analysis report from the team at LIFARS.
That's right, The report is titled Malware Analysis Unpacking of Eggregore Ransomware, and unpacking really is the operative word here. The life Fars team actually got their hands on a live sample of eggregor during a real incident response. They didn't just watch it run in a sandbox. They reverse engineered it. They took it apart, bite by bite, layer by layer, just to see what makes it tick.
And what they found reads like a like a detective story where the villain just keeps changing disguises. This isn't your average I clicked a bad link and now my computer is slow kind of virus. This is a high stakes, targeted extortion tool designed to take down absolute giants. So let's just jump right in.
Protections RWX So that's read write execute correct. Okay, let's unpack this a bit for everyone listening. Why is that specific combination the read, write, and execute such a massive warning sign for security teams Because in modern computing, and specifically in the Windows security architecture. You almost never want a program to be able to write data and execute code in the exact same place, right It's a fundamental security principle called wkret X or write x or execute. The idea is you either write data to a space or you run code from a space. You do not do both in the same spot because if you can do both, If you can do both, you can literally rewrite your own instructions while you are running. You can change your own code on the fly.
To remember, these people are writing, compiling, and testing this highly destructive code on their own machines. Oh right, They do not want to accidentally double click their own creation and encrypt their own hard drives. That would be disastrous for them, so they place this dummy file on their own systems. It effectively acts as it do not detonate.
That is wild. It is, and it could also be a way to mark specific servers within a victim's network that they want to keep alive. What we mean, well, for example, if they're using a specific compromise server to exltrate gigabytes of data back to their headquarters, they don't want to encrypt that specific server mid heist. It would cut off their own cannet, So they dropped this Python file there to mark that machine as safe.
That shows a level of operational discipline. I really wasn't expecting. It's not just random destruction. It's highly controlled exactly. Okay, So assuming that magic Python file isn't there, the loader proceeds and the report talks about a technique called reflective DLL loading. That sounds incredibly fancy. What does that actually mean for the person trying to stop the attack.
It's a very advanced stealth technique. Traditionally, if you want to run a program, you save the file to the hard drive and you double click it, right, But antivirus software scans the hard drive constantly. It watches every single file that touches the disc. Reflective loading bypasses the hard drive entirely. The malware allocates that RWX memory we talked about earlier, and it manually writes the next stage of the attack directly into the RAM.
That's a great way to put it. It uses native Windows functions like virtual allock and virtual protect to trick the operating system into treating this blob of raw data in the RAM as a legitimate running program sneaky very and the analysts actually found proof of this happening in the code through a really nerdy detail involving indianness.
Yes, exactly. It refers to the order of bytes in memory. Some computer architectures read left to right, some read right to left. We call them big Indian and little Indian. Now, every single Windows executable file starts with a standard header marked by two letters M and Z MZ right for Marx s. Pokowski.
You got it. But when the analysts looked at the code in memory, they didn't see MZ. They saw ZM dyslexic malware. No, just the indian ness the bytes were reversed in memory. Seeing ZM and EP instead of MZ and PE confirmed to the analysts that the code was actively parsing a Windows executable header right there in the memory.
The text following that dash pe wasn't just a random command flag, it was a cryptographic password. If you didn't type the correct password into the command line when launching the malware, the decryption would just fail. The payload would basically scramble itself in the GARB code. It wouldn't detonate.
That is the crucial takeaway here. This implies a human operator on the keyboard. Greg wor isn't designed to just spread wildly like the flu. It is designed for a highly skilled hacker to break into a network, move around quietly, maybe steal some admin credentials, and then only when they're absolutely ready, they manually tack that password to detonate the ransomware on the target machines.
And it's brilliant for evading security systems. Automated sandboxes don't know the password right, how could they exactly So if an anti virus system grabs this file and tries to run it in a test environment to see if it's malicious, it fails. It looks total harmless. It only becomes a weapon when the thief is standing right there holding the key.
No, brute forcing high level encryption isn't really feasible in a timeframe like that. They got lucky. The report mentions they obtained the sample from colleagues who were responding to an actual live incident. They likely recovered the password from the command line logs or the memory dumps of a victim's machine where the attackers had already typed it in.
Yes, whole of the month. They really have a twisted sense of humor, they really do. In the timeframe of this specific report, that section featured two very large gaming companies, But there was an incredibly chilling detail added to that entry. The attackers left of ps PostScript warning users to think about possible backdoors in those companies products.
If your users think your next game update or software patch might contain a virus because the source code was compromised. That destroys trust instantly. And the insidious part is whether the attackers actually planted backdoors or were just bluffing. The thread alone causes massive damage.
So let's bring this all back to the start. We began with a nesting ball. We had klang Deal, the camouflage loader allocating that highly suspicious RWX memory inside that payload. One dot Deal the lock box that needed a manual, human typed password to even open, and inside that payload, two dot Deal the rsa encrypted weapon that ruthlessly kills everything from SQL databases to steam.
They're navigating our networks, learning our specific systems, figuring out what we value most, and choosing the exact perfect moment to strike. They are manually entering a password to destroy your business. That means our defenses can't just be set and forget automated antivirus, right. We need human threadhunters who can spot that subtle behavior, the lateral movement, the quiet reconnaissance before that password ever gets typed.
So here is a thought to leave you all with. In the old days, a burglar would break in steal your TV and maybe your jewelry. It was bad, but it was replaceable. A grigor doesn't just steal your diary, it threatens to read it out loud to the entire town square. In a world where data is our most valuable asset, how do you successfully defend against a thief whose most dangerous weapon isn't the encryption itself, but the humiliation?
