WEBVTT

00:00.000 --> 00:01.960
Good afternoon DEF CON.

00:02.060 --> 00:08.880
I'm Agostino aka Vanish and I'm here to talk about slaying dragons.

00:08.880 --> 00:19.320
Not the mythical one so we are not talking about the orbit but we are talking about the one that got modern software through sophisticated virtualization based techniques.

00:21.820 --> 00:24.960
This is the agenda for the next 45 minutes.

00:25.420 --> 00:28.300
We are going to start with a brief introduction.

00:28.740 --> 00:31.420
We are going to see the VM protection evolution.

00:32.060 --> 00:37.140
I'm presenting the VM dragon slayer architecture and we do a deep dive.

00:37.140 --> 00:39.720
We do some live demos because it's cool.

00:40.440 --> 00:53.740
We do some, we analyze some performance and validation and we analyze the limitation, the future work and the community that I hope to build around the project after this talk.

00:55.180 --> 00:57.680
Let's set up the expectation.

00:58.260 --> 01:03.440
Why VM protection is winning the arm race?

01:03.440 --> 01:06.100
This is what we are going to analyze today.

01:06.380 --> 01:14.640
How VM dragon slayer, that is the framework that I'm presenting today, defeats this protection using hybrid analysis techniques.

01:14.960 --> 01:24.760
We do some live demos as I said before and also after the talk the entire framework will be completely open source to everyone to use it.

01:25.900 --> 01:42.500
The talk is aimed for malware analyst, reverse engineer, instant response, instant responder, security researcher and frankly anyone who is tired of being defeated by obfuscated code or is trying to build better obfuscated code.

01:43.740 --> 01:50.000
So before we jump into the technical myth, let me introduce myself.

01:50.000 --> 01:57.540
I'm a security researcher with over 15 years in engineering.

02:00.300 --> 02:04.380
I'm the maintainer of the project that I'm presenting today.

02:08.000 --> 02:15.440
I'm also the maintainer of spider foot today, a fork of spider foot that is being revived.

02:16.220 --> 02:23.460
And the framework that is the framework for exploitation that I'm going to present tomorrow.

02:25.060 --> 02:30.540
My research focus is everything that's weaponizable.

02:30.640 --> 02:31.700
That's it.

02:32.240 --> 02:39.180
And when I'm not breaking things, I love scuba diving because I love the exploration.

02:39.740 --> 02:44.400
I'm also the owner, the proud owner of three cuts.

02:44.400 --> 02:49.840
And while I'm speaking they are probably planning the world conquest.

02:50.390 --> 02:52.460
That's why they are looking at us.

02:54.710 --> 03:04.610
Now, how many of you have ever tried to reverse engineer software protected by VM protect for instance?

03:04.610 --> 03:11.530
Or encounter custom VM based malware that made you question your career choice?

03:13.430 --> 03:18.170
I know some of you have done, otherwise you would not be here doing this talk.

03:18.690 --> 03:20.270
We all have been there.

03:20.510 --> 03:29.310
Staring at the sample code that looks like it was written by an alien civilization having a particularly bad day.

03:29.750 --> 03:32.530
Let me show you what we are dealing with.

03:33.570 --> 03:38.750
This is what happens when a simple three line function gets the VM protect treatment.

03:39.030 --> 03:43.150
On the left, we have an elegant readable assembly.

03:43.210 --> 03:49.270
A basic function that any first year computer science student could understand.

03:49.710 --> 03:51.750
Three sections, easy.

03:51.750 --> 03:54.850
Load two values, add them, return the result.

03:55.150 --> 03:59.950
On the right, we have what I like to call the algorithmic nightmare fuel.

04:00.410 --> 04:07.970
Over 500 lines of deliberately obfuscated code that will make Lovecraft proud.

04:08.610 --> 04:10.610
This isn't just obfuscation.

04:10.670 --> 04:13.930
It's a complete architectural transformation.

04:14.840 --> 04:19.550
But there is what makes it truly nightmare-ish from a technical perspective.

04:19.550 --> 04:29.130
Behind those 500 lines, we have a constraint satisfaction problem with over 1,200 pod constraints.

04:29.230 --> 04:33.330
More than 256 virtual registers.

04:33.710 --> 04:39.790
64 custom VM handlers implementing a unique instruction set.

04:39.790 --> 04:44.990
Dynamic propagation across more than 47 execution pods.

04:44.990 --> 04:46.450
That's what we have.

04:46.610 --> 04:57.050
And if it was not enough, a symbolic execution, the challenge that will break traditional analysis engine.

04:57.970 --> 05:01.450
The original control flow, it's gone.

05:02.690 --> 05:09.290
It's been completely destroyed and it's been replaced by custom virtual machine.

05:09.290 --> 05:18.550
The data flow, hidden behind constraint satisfaction problems that require advanced symbolic reasoning.

05:19.930 --> 05:29.650
This isn't just a problem, an academic problem or something that affects a few security researchers.

05:29.650 --> 05:32.130
Let me share some statistics.

05:32.270 --> 05:38.010
We are living through an arm race that's fundamentally changing the landscape of software protection.

05:38.250 --> 05:50.390
I analyze almost 300, 400 samples over 2024 of advanced threat factors.

05:50.470 --> 05:52.950
And the results are striking.

05:52.990 --> 06:00.110
70 percent of them employ some form of virtualization-based protection.

06:00.450 --> 06:03.270
Think about the numbers for a moment.

06:04.050 --> 06:14.990
Seven out of ten advanced threats are using techniques that completely breaks our traditional analysis approach.

06:15.890 --> 06:21.690
The success rate of existing tools, less than 15 percent.

06:22.070 --> 06:30.650
This means that 85 percent of the time, your current tool chain is failing you.

06:30.750 --> 06:41.330
Manual analysis time has ballooned to two to six months per sample.

06:41.370 --> 06:48.890
And we are seeing over 200 thousand variation per day nowadays.

06:48.890 --> 06:52.410
The mathematics are unforgiving.

06:52.410 --> 06:55.910
We are losing this world through shared numbers.

06:58.310 --> 07:04.590
But let me trace the evolution that brought us to this special circle.

07:06.130 --> 07:15.230
Do you remember the good old days when you peaks was the hate of sophistication?

07:15.910 --> 07:22.010
These early protection protectors focused on compression and simple encryption.

07:22.010 --> 07:23.090
That's it.

07:23.610 --> 07:31.510
You could defeat most of them with generic or just setting the right break point.

07:32.910 --> 07:35.730
Life was simple back then.

07:35.750 --> 07:38.290
We didn't realize it, but it was simple.

07:38.710 --> 07:42.070
The typical analysis process was almost ritualistic.

07:42.430 --> 07:44.290
Set a break point.

07:45.250 --> 07:47.810
Run until you hit it.

07:48.990 --> 07:51.050
Fix the import.

07:51.150 --> 07:53.790
Celebrate with beer because you're done.

07:54.290 --> 08:03.550
And then in 2010, VM protect 1.6 came out and everything changed.

08:04.210 --> 08:16.330
It was like going from child play to adult play to casino play.

08:16.330 --> 08:27.330
The introduction of 686 instructions were converted into custom VM byte codes.

08:27.690 --> 08:30.930
The protection wasn't just about adding code anymore.

08:30.930 --> 08:34.890
It was about a fundamental architecture transformation.

08:35.610 --> 08:38.650
But then we move on phase 3.

08:38.650 --> 08:39.690
It's like the MCU.

08:39.690 --> 08:41.170
We are going forward.

08:41.770 --> 08:44.150
And we got VM protect 3.X.

08:44.150 --> 08:45.850
We got VM.

08:46.070 --> 08:48.250
We got code visualizer.

08:49.330 --> 08:52.130
Those two raised the bar even higher.

08:53.310 --> 08:54.950
These weren't just protectors.

08:54.950 --> 08:58.390
They were more like code transformers engine.

09:01.010 --> 09:04.270
After that, we got to phase 4.

09:04.610 --> 09:06.970
We got to the next level.

09:07.370 --> 09:14.150
And perhaps the most concerning development is the proliferation nowadays of custom VM.

09:15.390 --> 09:20.430
We are no longer dealing with commercial protectors.

09:21.170 --> 09:23.130
That we can study.

09:23.130 --> 09:25.110
That we can analyze.

09:25.990 --> 09:33.310
We are dealing with malware family that now implement their own protection.

09:34.210 --> 09:40.690
APT groups deploy custom protection scheme that can be analyzed with commercial tool.

09:40.690 --> 09:42.990
So they fail us completely.

09:43.430 --> 09:51.370
I've seen nation state malware with VMs that will make commercial developer jealous.

09:51.530 --> 09:52.370
Honestly.

09:53.630 --> 10:02.430
To understand why this is such a critical problem, let's examine what makes VM protection so effective.

10:02.430 --> 10:04.770
I call it the three headed dragon.

10:08.610 --> 10:12.230
The original code isn't just hidden.

10:16.310 --> 10:19.650
The original code isn't just hidden.

10:19.650 --> 10:24.310
It's completely transformed into a custom byte code.

10:25.070 --> 10:29.170
That exists nowhere else in the universe.

10:29.970 --> 10:31.950
That's frightening.

10:32.090 --> 10:40.050
We are dealing with custom instruction set that contain more than 200 opcodes with no documentation, no standards.

10:40.290 --> 10:46.470
We got polymorphic byte code generation, dynamic generation and context dependent semantics.

10:47.370 --> 10:50.450
Let me give you a concrete example.

10:50.850 --> 10:53.010
From VM protect.

10:53.290 --> 11:03.290
A simple instruction like the move is just one instruction representing one single memory load.

11:03.290 --> 11:11.490
From one instruction we get 247 instruction in the protected binary.

11:11.570 --> 11:16.110
This means that we have a 247 to one ratio.

11:20.100 --> 11:25.020
The VM itself is designed as a fortress.

11:25.720 --> 11:32.540
These protectors deploy an anti-analysis arsenal with over 50 techniques.

11:33.680 --> 11:38.040
Debugging detection include is debugger present, that is the common one.

11:38.240 --> 11:56.800
Debug, flag monitor, debug point detection, time based detection and everything can be actually mapped to understand what's going on at the VM .

11:56.800 --> 12:02.260
And if the sample is running in a safe environment for them.

12:03.640 --> 12:10.380
We got dynamic countermeasure that includes self modification dispatcher, the changes you analyze them.

12:11.160 --> 12:19.480
Code flow integrity check and exception based control flow that require symbolic execution across exception handles.

12:20.660 --> 12:35.780
But even if you manage to identify individual VM instruction, understanding the overall program logic require mapping the VM internals to something that should be meaningful.

12:37.180 --> 12:43.560
There is where even experienced analysts just give up on a certain point.

12:44.620 --> 12:47.480
VM register don't correspond to CPU register.

12:47.480 --> 12:56.740
A VM may have more than 246 virtual registers versus the 16 that we have in the x86 architecture.

12:57.000 --> 13:03.600
Using custom segmentation scheme and VM specific implementation, that's a nightmare.

13:03.880 --> 13:05.340
That's the idea.

13:06.620 --> 13:11.300
So when we face this threat, what we do?

13:11.300 --> 13:14.600
We try to forge better weapon.

13:15.060 --> 13:19.760
And that's what I've done with VM Dragon Slayer.

13:20.880 --> 13:34.400
After years hiding these dragons with stone knives and bare skin, I decided that it was time to build a proper dragon slaying weapon.

13:35.280 --> 13:41.080
VM Dragon Slayer represents a fundamental shift in how we approach VM.

13:41.940 --> 13:46.020
The core innovation lies in the analysis approach.

13:46.020 --> 13:52.620
We use dynamic team tracking plus symbolic execution plus machine learning.

13:52.620 --> 13:56.420
And we got an automated VM defecation.

13:57.600 --> 14:04.140
Here are some key insights on how this works and why this works.

14:04.560 --> 14:07.480
VM must read byte codes.

14:07.480 --> 14:09.680
That's our team source.

14:10.080 --> 14:13.160
VMs must dispatch the handler.

14:13.320 --> 14:16.480
And that's our control flow target.

14:16.480 --> 14:19.720
Handlers have semantic patterns.

14:19.760 --> 14:22.600
That's where symbolic analysis shines.

14:22.880 --> 14:27.200
Patterns are universal across protectors.

14:27.200 --> 14:31.880
And that's where machine learning does its job best.

14:34.920 --> 14:40.240
VM Dragon Slayer is built as a research framework, honestly.

14:40.500 --> 14:43.840
But it's built with enterprise in mind.

14:43.840 --> 14:46.000
So it has a modular architecture.

14:46.500 --> 14:48.980
Let me walk you through the system completely.

14:49.500 --> 14:53.440
We have a multi -platform plug-in suite supporting Ghidra.

14:53.440 --> 14:55.380
That is the one available today.

14:55.700 --> 14:59.800
We have the alpha release of IDA Pro.

15:00.260 --> 15:05.020
And we plan to do the same for Binary Ninja.

15:06.040 --> 15:12.960
This integrates with the REST API that is built on the server side.

15:13.260 --> 15:18.020
The core analysis engine includes the dynamic tracking using Intel pin.

15:18.020 --> 15:24.920
A symbolic execution with a Python implementation using Z3 and Angular.

15:25.120 --> 15:30.240
And a machine learning engine for pattern classification and confidence scoring.

15:30.240 --> 15:36.680
We also got some ZPU acceleration support for CUDA and OpenCL.

15:36.680 --> 15:37.680
But it's in alpha release.

15:37.680 --> 15:43.940
And you can make it work, but it's not really stable.

15:45.600 --> 15:49.560
The system includes some benchmarking and validation.

15:49.920 --> 15:54.680
But also it's CICD compliant.

15:54.680 --> 15:59.700
Means that you can use the framework in your pipeline without any issue.

15:59.700 --> 16:01.620
Because it's just an API.

16:03.380 --> 16:06.920
Let's deep dive into some of those models.

16:07.340 --> 16:11.360
The DTT implementation is built on Intel pin.

16:11.360 --> 16:13.340
With a custom Python wrapper.

16:13.800 --> 16:16.200
Let me show you how this works.

16:17.060 --> 16:24.060
The pin configuration use the custom DLL that is available in the source code.

16:24.060 --> 16:30.080
We are not going to cover it in detail because we are needing more than an hour just to go over there.

16:31.900 --> 16:34.880
With 300 second timeout.

16:35.000 --> 16:37.680
We define 10 source as VM by 10 second timeout.

16:37.680 --> 16:39.260
And we have a white code section.

16:39.820 --> 16:46.160
Typically for VM protect, we go for 4010 to 4050 in the other.

16:46.600 --> 16:50.620
The point is this is the only input that you have to take.

16:50.760 --> 16:52.560
We have to put into the framework.

16:52.620 --> 16:55.160
It's the only input that you have to get.

16:55.800 --> 17:00.700
Because if you put it too wide, this is going to run forever.

17:05.120 --> 17:11.400
Some features that we have in the DTT includes instruction level precision for memory reads.

17:11.400 --> 17:14.800
Automatic discovery via control flow analysis.

17:15.100 --> 17:17.560
Multithreaded propagation tracking.

17:17.700 --> 17:19.760
And real time confidence scoring.

17:20.120 --> 17:24.020
And this is just the DTT.

17:25.740 --> 17:28.240
This is how it works in practice.

17:28.240 --> 17:29.560
Everything is a library.

17:29.560 --> 17:33.740
So you can call the entire framework or you can call part of it.

17:34.680 --> 17:37.980
If you run it, you have just the output.

17:39.620 --> 17:43.680
And then the Python process it and produce the summary statistics.

17:44.220 --> 17:51.180
In this case for this sample, we have 47 VM discovered in 2.3 seconds.

17:51.960 --> 17:54.440
2,847 instruction.

17:55.320 --> 17:58.680
156 propagation chains identified.

17:58.680 --> 18:03.120
And we have a 100 percent accuracy rate for entry points.

18:04.700 --> 18:10.980
Our symbolic execution engine is completely implemented in Python supporting Z3.

18:12.000 --> 18:18.540
The configuration uses symbolic execution with a maximum depth of 100.

18:18.580 --> 18:21.260
Up to 1,000 concurrent paths.

18:21.340 --> 18:23.600
We have a timeout of 300 seconds.

18:24.140 --> 18:26.500
And the state merging is usually enabled.

18:26.500 --> 18:27.400
But you can disable it.

18:27.400 --> 18:29.560
It's just from configuration perspective.

18:30.040 --> 18:33.320
VM context modeling include program counter tracking.

18:33.320 --> 18:35.480
Symbolic values for registry and memory.

18:35.480 --> 18:39.460
And machine learning guided path prioritization.

18:40.060 --> 18:44.700
Path exploration because you can explore the binary that you have.

18:44.700 --> 18:46.720
Use machine learning guidance.

18:47.800 --> 18:54.940
With VM pattern weights, priority scoring for an intelligent exploration.

18:56.860 --> 19:00.100
Let me show you how it's implemented.

19:00.100 --> 19:02.260
The symbolic execution is implemented.

19:02.480 --> 19:06.680
The core class initialized with a path prioritizer.

19:06.980 --> 19:12.300
Execution queue management and configuration from the VM configuration.

19:12.420 --> 19:18.620
The main execution loop runs asynchronously.

19:18.620 --> 19:23.660
So it means that it just runs without you needing to pull it.

19:24.440 --> 19:26.460
Processing the execution queue.

19:27.180 --> 19:34.020
For each context, we get the highest priority path.

19:34.200 --> 19:36.600
Execute one symbolic step.

19:37.180 --> 19:44.940
And process result by adding terminal states to completed path and non-terminal states back to the queue.

19:45.560 --> 19:52.760
The path prioritizer use machine learning guided path exploration with VM pattern weights.

19:52.980 --> 19:59.220
We define the dispatcher access with a weight of 2.5.

19:59.320 --> 20:02.120
The handler entry gets a 2.

20:02.120 --> 20:05.820
The VM registry access gets a 1.8.

20:06.040 --> 20:09.340
The byte code fetch gets a 2.2.

20:09.340 --> 20:13.240
And the anti-analysis checks gets a 3.

20:15.670 --> 20:22.230
Our pattern classifier implements a multi-method approach with automatic method selection.

20:22.350 --> 20:29.430
The system supports rule-based classification, similarity matching, machine learning classification, and hybrid approach.

20:30.530 --> 20:36.870
The auto-classification logic tries rule-based first because it's fastest.

20:37.710 --> 20:45.010
If confidence of the rule base is below 0.8, it tries similarity matching.

20:45.010 --> 20:50.650
If that's below 0.7, it falls back to machine learning exploratory mode.

20:51.270 --> 20:54.890
The pattern database user is back to SQLite.

20:55.930 --> 21:06.810
The full pattern that had been added to the platform are, for instance, VM add stack, VM conditional branch, and so on.

21:08.450 --> 21:11.750
But that's just part of the framework.

21:11.750 --> 21:13.530
We also have the Guider plugin.

21:14.130 --> 21:16.830
Let's have a quick view of the Guider plugin.

21:17.970 --> 21:24.350
The Guider plugin just shows how you can interact with the framework.

21:24.350 --> 21:31.350
So you can define which kind of engine you want to use, which kind of confidence you can set from the framework.

21:32.450 --> 21:34.030
You can get the result view.

21:34.030 --> 21:38.210
So you have all the path, all the VM discovered, all the path, everything.

21:39.530 --> 21:44.890
And you have statistics over the engines that are running.

21:47.090 --> 21:49.290
But let's begin the hunt.

21:49.290 --> 21:50.890
Let's see how it works.

21:51.930 --> 21:56.310
Let's start with a real VM protect 3.6 sample.

21:56.890 --> 22:03.270
This is a commercial license validation function that contained initially 47 instructions.

22:03.470 --> 22:11.350
After VM protect, it became 2,847 instructions.

22:12.370 --> 22:14.970
A 60 to 1 ratio.

22:15.450 --> 22:21.210
Protection feature includes virtual machine byte code, anti debugging and so on.

22:21.710 --> 22:27.850
The manual analysis estimated for this sample is from three to four weeks.

22:30.530 --> 22:42.290
As you can see, the VM layer initialized the dynamic team tracking and launched the Intel pin with our custom DLL.

22:42.630 --> 22:48.630
Within seconds it detects the VM entry point with high confidence.

22:48.850 --> 22:54.230
The ender table is discovered and contains 51 entries.

22:54.870 --> 22:58.470
The symbolic execution phase starts from there.

23:00.290 --> 23:06.990
And ender analysis complete with 47 ender discovered and 43 analyzed.

23:07.210 --> 23:11.310
We have a roughly 90 percent success rate.

23:12.090 --> 23:21.830
The semantic operation discovered include VM load license, string compare, conditional jump and return value.

23:22.290 --> 23:27.810
And everything is done in roughly three minutes.

23:30.770 --> 23:35.790
The transformation that comes from this process is actually pretty dramatic.

23:35.970 --> 23:42.030
The version shows thousands online of unreadable assembly.

23:42.950 --> 23:46.850
The version reveals the true algorithm.

23:47.150 --> 23:56.330
Load license key, decrypt XOR using the key, compare with the expected value and jump if invalid, return success.

23:57.170 --> 24:00.070
Clear algorithm after the process.

24:00.670 --> 24:06.970
Just three weeks reduced to three minutes plus the analyst enrichment time.

24:06.970 --> 24:08.230
That's it.

24:09.890 --> 24:12.450
Let's analyze the second sample.

24:13.790 --> 24:20.670
It targets a real world bank in Trojan from an instant response case.

24:20.730 --> 24:29.850
This sample used completely custom VM architecture and three teams completely failed to analyze it over six months.

24:31.970 --> 24:39.010
VM layer in exploratory mode handles also unknown architecture.

24:39.870 --> 24:44.330
Automatically if it doesn't find any signature it goes.

24:45.870 --> 24:55.830
The custom VM implementation is discovered with a 64 entry ender table using ash base dispatch.

24:56.910 --> 25:12.150
It's 4K of XOR encrypted content and VM context 256 bytes and roughly 60 bit opcodes.

25:12.150 --> 25:18.630
Everything is being done in roughly 18 minutes.

25:21.290 --> 25:23.650
But there is more.

25:23.650 --> 25:28.330
The actual framework automatically identifies VM operation and their purpose.

25:28.430 --> 25:32.150
This is part of the report that the framework gave you.

25:32.550 --> 25:40.670
We have VM load URL that loads the URL from an encrypted config.

25:40.890 --> 25:52.470
We have VM hook browser that install browser API hooks using set windows hook X and plus DLL injection.

25:52.690 --> 25:59.410
We have VM capture creds that extract credentials from browser, chrome, firefox and ash in this case.

26:00.090 --> 26:10.950
And we have VM custom crypto that implements a custom CRC 32 variant that it was never seen before.

26:10.990 --> 26:16.890
So it was a good attribution part, technical attribution IOC.

26:17.890 --> 26:21.450
The intelligence value from this report is actually immense.

26:21.990 --> 26:25.530
The complete behavior profile extracted automatically.

26:25.530 --> 26:33.570
The attribution markers in custom crypto algorithm and we have the TTP that can be easily mapped to the attack framework.

26:34.090 --> 26:40.370
Everything being done in less than 20 minutes.

26:40.370 --> 26:48.010
Plus the time that the analyst needs to read the report and then reach it.

26:50.640 --> 26:55.660
But now let's see some more dynamic demo.

26:56.540 --> 27:09.170
Let me show you what happened if we load multiple samples to the platform and how we handle it.

27:09.810 --> 27:17.310
In this case we have three samples that are loaded through API.

27:18.070 --> 27:25.090
Those three samples are VM protect base and the custom VM.

27:25.430 --> 27:34.090
We have the first one that is actually analyzed in almost three minutes.

27:34.330 --> 27:47.510
And we get the actual handler number and the handler type.

27:55.040 --> 27:59.100
Then we have the second sample that is the one.

27:59.340 --> 28:02.360
It's a little bit more difficult to analyze.

28:03.180 --> 28:06.660
So we got some details from it.

28:08.340 --> 28:16.940
And some of those details are also regarding the handler and all the address of the handler and how it has been used.

28:18.000 --> 28:21.100
So we have DTT, a symbolic execution.

28:21.100 --> 28:23.980
Everything is guided through machine learning.

28:24.820 --> 28:27.340
The third sample is just custom VM.

28:27.340 --> 28:28.720
So we don't have anything.

28:28.720 --> 28:30.240
We don't have documentation.

28:30.240 --> 28:31.660
We don't have standards.

28:32.420 --> 28:40.120
And also in this case we got some handlers to lift the sample and try to decrypt it.

28:40.120 --> 28:42.360
And try to deobfuscate it.

28:47.350 --> 28:55.050
But let's see how it works from a statistical perspective.

28:55.710 --> 29:04.250
We have performed a complete evaluation and we use roughly 300 samples over 12 months.

29:04.690 --> 29:17.170
Those 300 samples were de-obfuscated and then we divided between 15 protected families and almost 50 malware families.

29:17.170 --> 29:20.670
Among those we have 25 nested samples.

29:20.670 --> 29:22.710
It means VM inside the VM.

29:23.690 --> 29:26.910
And this is the success rate of the platform.

29:27.570 --> 29:38.330
So we got from roughly 60 percent of manual success rate for VM protect 2.X to 84.

29:38.330 --> 29:44.990
And we got an overall 70 percent of success rate from different families.

29:44.990 --> 29:47.190
But that's not the point.

29:47.190 --> 29:50.570
The real improvement comes from the time.

29:50.730 --> 29:57.790
Because we went from two to six months in analyst time to roughly one hour.

29:57.950 --> 30:00.090
That's the key point.

30:00.090 --> 30:03.150
So we are saving analyst time.

30:03.210 --> 30:08.950
In this way the analyst can focus on something that is truly important for the organization.

30:09.650 --> 30:20.150
For instance, for example, we went from roughly $40,000 of analyst time to 50.

30:20.170 --> 30:22.170
That's a huge drawing.

30:24.250 --> 30:31.370
Let's see some case study in which we used VM Dragon Slayer.

30:31.770 --> 30:36.770
The case study involves a financial institution facing a bank in Troia.

30:36.890 --> 30:42.350
The sample used custom VM plus VM protect 3.6.

30:42.710 --> 30:46.810
The traditional analysis took over three months.

30:46.810 --> 30:48.570
Showed complete failure.

30:49.970 --> 30:56.890
We have a partial analysis using IDA pro and x-ray the compiler failed completely.

30:58.590 --> 31:03.810
We required six senior reverse engineers on the case.

31:03.810 --> 31:09.650
Means roughly $200,000 in analyst time.

31:09.650 --> 31:11.370
For four months.

31:12.510 --> 31:25.090
The VM Dragon Slayer took the sample and the results after three hours of analysis were 73 VM endless, 91 percent of endless classification.

31:25.210 --> 31:33.650
We identified seven novel evasion methods and provided full integration with a documented binary.

31:33.650 --> 31:38.110
Total cost, $150 roughly.

31:38.330 --> 31:40.590
Plus the computational resource.

31:43.480 --> 31:54.840
The technical breakthrough of this implementation includes the finding of a novel browser certificate bypass never been documented before.

31:55.000 --> 31:59.420
A polymorphic VM handler with a four hour mutation cycle.

31:59.460 --> 32:02.980
And a complete attack chain reconstruction for defensive development.

32:04.600 --> 32:06.920
That's the second case study.

32:07.460 --> 32:19.720
In which we analyze a batch of state sponsor generated malware that contain almost 47 implants.

32:19.720 --> 32:23.660
Developed all with VM protection technology.

32:24.520 --> 32:32.060
Traditional approach will require six analysts, mostly, 12 to 18 months to analyze everything.

32:32.080 --> 32:38.780
Means almost $1 million in analyst time.

32:39.420 --> 32:42.660
We take it in one weekend.

32:42.660 --> 32:52.400
So we batch it, we give them to the platform and in 48 hours we go back to the platform and we analyze the data .

32:52.400 --> 32:56.120
And we got 70 percent success rate across all the samples.

32:57.580 --> 33:08.020
The intelligence breakthrough of this analysis include infrastructure, the campaign infrastructure completely mapped.

33:09.140 --> 33:13.980
The code reuse pattern we find across the samples.

33:14.380 --> 33:23.320
And also, and this is important, the development timeline was reconstructed from VM evolution over time.

33:23.320 --> 33:28.300
Because we see how they change over time, the implementation of the VM.

33:28.880 --> 33:36.940
And this is actually a unique IOC for the specific architecture.

33:38.620 --> 33:42.020
But the platform is good.

33:42.320 --> 33:44.320
I developed it so I can say that.

33:45.100 --> 33:47.000
But it's imperfect.

33:48.200 --> 33:53.300
We have a 30 percent failure rate across challenge scenario.

33:53.660 --> 34:02.060
We have complex control flow that accounts for roughly 13 percent of failure.

34:02.200 --> 34:08.840
In some cases it's really because the sample is too complex or is too unneeded.

34:10.300 --> 34:15.980
And other things that cause failure is actually the resource constraint.

34:16.240 --> 34:22.360
Because sometimes we have individual ender that exceeding 10,000 instruction.

34:22.880 --> 34:26.320
Deeply nested obfuscation with more than five layer obfuscation.

34:26.320 --> 34:34.120
In those cases it's really difficult to have the resource to handle this kind of computational capability.

34:34.120 --> 34:39.280
That's why we are moving over the GPU acceleration part.

34:40.780 --> 34:45.880
But also some novel techniques produce some failure.

34:46.580 --> 34:58.440
And including a generated or quantum resistant technology that can generate some failure in the analysis process.

35:01.020 --> 35:02.840
But what's the future?

35:05.060 --> 35:14.080
The first thing that I would like to develop from year to the end of the year and I hope that someone will join me.

35:14.480 --> 35:19.380
It's a machine learning advancement.

35:19.560 --> 35:31.200
That includes transformer based classification, anomaly detection for techniques using unsupervised learning.

35:31.580 --> 35:35.780
Probably the idea is with three sigma deviation threshold.

35:36.760 --> 35:49.560
Transfer learning for cross protectors that require this knowledge, this knowledge I hope is going to require 70 percent less training data.

35:50.480 --> 35:59.140
The other thing that I want to develop, it's an enhancement of the plugin to be more integrated with the platform.

36:00.200 --> 36:07.580
In which we have a real time ender notation that is not there now, you need to do it manually unfortunately.

36:08.700 --> 36:12.760
Automated function naming based on semantic analysis.

36:12.760 --> 36:15.260
And detailed commenting with confidence score.

36:15.260 --> 36:17.800
But even a cooler feature.

36:18.100 --> 36:20.880
The cooler feature is binary rewriting.

36:21.220 --> 36:26.020
So you took the binary and you rewrite it in clean code.

36:26.020 --> 36:27.320
That's the idea.

36:27.380 --> 36:28.960
I think it's doable.

36:29.900 --> 36:34.520
I didn't have a lot of success with it I have to be honest.

36:34.520 --> 36:37.800
But I think it's doable in an automated way.

36:38.280 --> 36:48.240
In which we provide a complete pipeline with full VM structure discovery and semantic analytics, control for reconstruction and clean code generation.

36:49.760 --> 37:03.100
So to conclude, to wrap up what we have seen today, the VM protection actually dominates the modern malware.

37:03.100 --> 37:08.480
We have a lot of modern malware that use that.

37:09.740 --> 37:12.540
Manual analysis cannot scale.

37:14.560 --> 37:16.940
That's why we need automation.

37:18.120 --> 37:21.000
And it's not just possible, it's needed.

37:21.220 --> 37:22.640
It's essential.

37:24.560 --> 37:29.580
Hybrid approach works if you choose the right tool to do the right thing.

37:29.700 --> 37:32.740
Not like LLM, you use LLM for everything.

37:34.060 --> 37:37.820
Open source I hope is going to accelerate the process.

37:37.820 --> 37:42.760
Having more research on board that can help develop this kind of technology.

37:43.640 --> 37:47.000
Because the defender advantage is achievable.

37:47.400 --> 37:54.220
If you have the right tool, if you have the right techniques and if you have the right community behind it.

37:56.560 --> 38:01.020
VM Dragon Slayer is going to be available on github after the talk.

38:01.020 --> 38:03.740
Just the time to go back to the hotel.

38:05.480 --> 38:07.260
Add this address.

38:08.420 --> 38:08.480
It's going to be available on github .

38:08.480 --> 38:15.620
This is open source because I firmly believe in democratizing these capabilities.

38:16.440 --> 38:23.260
And just remember, every dragon can be slayed with the right sword.

38:23.980 --> 38:26.820
And the right community welding it together.

38:27.100 --> 38:28.320
Thank you for your time.

38:28.320 --> 38:29.920
I hope you enjoyed the talk.

38:32.780 --> 38:37.140
I'm going to stick around if you want to ask some questions.

38:37.220 --> 38:38.620
So I'll be around.

38:38.620 --> 38:39.540
Thank you.

