WEBVTT

00:00.660 --> 00:04.020
Welcome to my talk, Where's the Money?

00:04.020 --> 00:06.020
Defeating ATM Disk Encryption.

00:06.020 --> 00:11.160
This is a Encore presentation to the MainStage Act I had just done earlier today.

00:11.160 --> 00:15.160
And before I came on stage you just found out I got a Wired article published.

00:15.160 --> 00:17.580
So all right.

00:19.100 --> 00:21.720
So starting off, my name is Matt Birch.

00:21.720 --> 00:26.440
I'm an independent security researcher with a passion for IOT and hardware devices.

00:26.440 --> 00:31.420
I am the developer of several MFA bypass tools affecting various MDM solutions.

00:31.420 --> 00:36.140
I have performed expert opinion against a major ATM manufacturer.

00:36.140 --> 00:41.920
And I've also had the opportunity of examining cartel designed ATM black box devices.

00:42.260 --> 00:54.520
For today's agenda, we'll take a brief look at the ATM industry, introduce Diebold Nixdorf's dynamic security suite, then dive a little bit deeper into the preboot authentication process of that software.

00:54.520 --> 00:57.460
And finally, we'll wrap up with a little bit of cat and mouse.

00:57.920 --> 01:00.760
So starting off, let's look at the industry.

01:00.940 --> 01:06.600
Essentially the ATM market is constructed of both consumer and financial class systems.

01:06.600 --> 01:12.120
The consumer devices are your standard ATMs that you see at your grocer, your gas station.

01:12.120 --> 01:17.320
Typically they run Windows CE and they're present everywhere in the market.

01:17.320 --> 01:23.020
They also lack a lot of the enterprise security controls that you typically see on most systems.

01:23.140 --> 01:27.180
However, the financial class systems are the enterprise ATM.

01:27.180 --> 01:38.380
These are the ones at your bank, the standalone units, through uh through wall units, and they're typically running Windows Embedded 10, uh some are now doing 11.

01:38.380 --> 01:42.640
And each manufacturer has their own ATM security stack.

01:42.640 --> 01:48.980
That security stack is designed to harden the ATM, provide endpoint protection and full disk encryption.

01:49.620 --> 01:50.940
Yep.

01:51.120 --> 01:57.940
So when you open up the ATM, uh it's essentially constructed across two hemispheres.

01:57.940 --> 02:04.540
You have the top half, which uh contains all the PC peripherals and computer components.

02:04.540 --> 02:11.360
And then you have the bottom half, aka the vault, which carries the cash cassettes and all the system's currency.

02:11.360 --> 02:14.340
Each halves are physically isolated from one another.

02:14.360 --> 02:19.240
And the physical security controls between the two vary drastically.

02:19.240 --> 02:27.040
The bottom half requires multi-factor authentication, has a digital combination lock, and uses an I button for secondary authorization.

02:27.140 --> 02:31.580
It's constructed with about an inch thick steel, has heavy bolt locking mechanisms.

02:31.580 --> 02:36.620
It is also equipped with seismic uh detection and tamper detection switches.

02:36.620 --> 02:38.700
However, the top half's significantly different.

02:38.700 --> 02:46.120
It's about one-eighth inch thick steel, has tons of vent holes, syst- uh the systems come with default tubular locks.

02:46.120 --> 02:56.740
And those locks leverage a cantilever locking mechanism where a cable's hooked up to the cylinder, so when you turn the key, the cantilevers come up and the front of the ATM will open.

02:56.800 --> 03:08.040
Uh additionally, the front of the ATM usually has a lot of plastic components, which makes it very easy for uh malicious entry- entry or destructive entry, maybe just stick a coat hanger in and pull the wire.

03:09.740 --> 03:19.640
Um and when we start looking at the attack vectors affecting ATMs, uh most of them all require some level of physical access.

03:19.880 --> 03:35.040
And with that, some of the most common attacks we usually see are black box devices, which are usually placed inside or outside the ATM, with the objective of intercepting the communications and getting the ATM to withdraw or dispense more funds than what was requested.

03:35.080 --> 03:40.540
Everyone knows the card skimmers, you plop those on the front, you steal people's card information, super interesting.

03:40.700 --> 03:43.860
Uh and then you have the heavy destructive attacks.

03:43.860 --> 03:45.540
Uh this involves RAM raiding.

03:45.540 --> 03:51.120
Uh you wrap a chain around an ATM, hook it up to your fork pickup, just rip the thing right out of the ground.

03:51.120 --> 03:56.760
Or you borrow your local construction company equipment, rip a hole right through the wall, and run away with the ATM.

03:56.980 --> 03:59.520
Some of the less common attacks we see here in the U.S.

03:59.520 --> 04:05.900
are explosive-derived attacks because our money ha- uh has a heavy paper consistency.

04:05.980 --> 04:10.940
Uh usually when you involve fire, it ignites and is counterproductive to theft.

04:10.960 --> 04:18.020
However , internationally, uh with the plastic-based currency that's not necessarily the case, and you see more of these attacks.

04:20.300 --> 04:27.240
Uh the ATM landscape is constructed of thousands of ATMs, all of which hold very large sums of cash.

04:27.240 --> 04:34.680
And despite the need for physical access, the criminal element against these systems has grown exponentially over the last few years.

04:34.680 --> 04:39.640
This is mostly associated to the deficiencies within the logical infrastructure of the ATM.

04:39.740 --> 04:49.940
Mainly the use of an unauthenticated API known as XFS that interacts between the software and hardware, allowing funds to be dispensed out of the ATM.

04:49.940 --> 04:55.040
Most of the applications on the ATM also are executed in the context of local admin.

04:55.040 --> 05:03.880
And then the ATMs are also designed with layers of default accounts for system administration, OS access, and other various activities.

05:03.880 --> 05:08.580
All of these have made the devices very attractive to organized crime.

05:08.860 --> 05:19.840
And we can't necessarily talk about ATMs without briefly mentioning the ATM network, which is what the ATM must be connected to so you can save your money from the bank.

05:20.520 --> 05:27.420
The ATM network is essentially a private connection that's restricted from the hosting provider or gatekeeper.

05:27.460 --> 05:33.560
And access to the ATM network requires some level of certification from that gatekeeper.

05:33.600 --> 05:45.920
And pieces of software and hardware are individually certified, so in environments where you have multiple different ATM vendors, it becomes very difficult for a financial institution to administer those systems.

05:45.920 --> 05:51.340
And usually they'll partner with some kind of managed services provider to ease that overhead.

05:51.760 --> 06:00.240
This all brings us to the subject of today's talk, which is Diebold Nixdorf and their proprietary Vynamic Security Suite software.

06:00.240 --> 06:14.820
Unlike all the other ATM security stacks, Vynamic Security has multi -vendor certification, allowing their software to be installed on any ATM platform and granting access to the ATM network.

06:14.820 --> 06:20.020
In 2015, they were assumed to represent about 35% of the ATM market.

06:20.020 --> 06:26.480
And in 2018 and 2019, they partnered with two of the largest financial institutions representing the U.S.

06:26.480 --> 06:27.920
gaming industry.

06:28.160 --> 06:37.740
AKA, Vynamic Security is present in almost every casino in the United States, if not most, right here on the Vegas Strip.

06:38.840 --> 06:39.860
It's cool.

06:39.860 --> 06:43.820
So now that we understand uh the landscape, let's take a look at the software.

06:44.160 --> 06:49.100
So just like all other security stacks, Vynamic Security has a number of default protections.

06:49.100 --> 06:53.840
USB filtering, firewall policy, delegated access, and disk encryption.

06:54.300 --> 06:59.980
However, it's not full disk encryption, where there's two partitions that are unencrypted.

06:59.980 --> 07:03.960
There's a UEFI partition, which is pretty common in your corporate image.

07:03.960 --> 07:09.180
But then there's also a Linux partition, which is somewhat of a red herring in a Windows-designed system.

07:09.360 --> 07:15.440
So taking a closer look of that Linux architecture, it self-identifies itself as Super's Chaff.

07:15.680 --> 07:25.340
Which, doing online reconnaissance didn't actually re- result in a whole lot of information being associated with that, but did identify this really cool game known as Worm's Armageddon.

07:25.340 --> 07:30.120
And in this game, you launch sheep as mobile projectiles against your enemies.

07:30.220 --> 07:37.520
The game was a lot of fun to play, I think we wasted at least 30 minutes on it, but that has nothing to do with ATMs at all.

07:38.060 --> 07:47.620
But what it did identify, because I'm really bad at foreign language, is Super's Chaff is actually German for Super Sheep.

07:47.800 --> 07:54.820
And Super Sheep was also an installation directly within the user directory path.

07:54.820 --> 07:59.380
And online reconnaissance of Super Sheep was much more resourceful.

07:59.440 --> 08:16.540
Specifically, in 2016 a consulting firm known as SecConsult released a blog article detailing code execution deficiency in a piece of software known as Cryptware, CryptoPro, and their underlying Super Sheep operating system.

08:16.780 --> 08:27.520
In this blog article there were a lot of similarities between dynamic security and Super Sheep , leading us to go back and then take a look at Debulb's user license agreements.

08:27.580 --> 08:33.080
And lo and behold, they specifically designated CryptoPro as being a third party licensed vendor.

08:33.080 --> 08:40.480
But that was only relevant in version 3.0 and all references to CryptoPro are removed from all later versions of dynamic security.

08:40.700 --> 08:42.540
So who is CryptoPro?

08:42.540 --> 08:50.200
It's a cryptographic spin-off started in 2002 designed to enhance the functionality of Microsoft BitLocker through pre-boot authentication.

08:50.380 --> 09:01.520
Today the organization is represented across numerous countries and a number of different domains, each one having a very unique and uh different online presence.

09:01.520 --> 09:12.180
However despite this suspicious representation they advertise over half a million licenses sold and they also uh state that employees love their encryption.

09:12.180 --> 09:14.980
So, you know, they got that going for them.

09:15.500 --> 09:23.580
So let's take a little bit deeper dive into how the pre-boot authentication function actually works.

09:23.580 --> 09:28.300
So powering on the ATM it executes a dual boot cycle.

09:28.300 --> 09:39.520
From UEFI a Linux partition is bootstrapped aka super sheep, does some black magic to the disk, shuts down, goes back through UEFI and then launches Windows.

09:39.520 --> 09:46.480
Windows performs an auto logon, bootstraps all the ATM software and the system comes up and becomes fully operational.

09:46.580 --> 09:53.900
Any attempt to modify the content of the Linux partition results into an integrity error page to be presented.

09:53.900 --> 10:02.300
But not all files are treated the same and modifying other directories or files results in a completely different integrity error uh to be shown.

10:02.420 --> 10:09.780
But this one has significantly more details represented in it and identifies about 253 elements are validated on the desk.

10:09.780 --> 10:16.300
Which uh leads us to need to understand what files are actually being checked.

10:16.300 --> 10:29.440
Going back to the Linux system we then start scouring the drive and looking to locate any uh hash sum indexes, tables or files that may have uh a list of what's actually being checked.

10:29.440 --> 10:36.060
Ultimately we found a log directory and in there there was a sum index of about 2500 files.

10:36.140 --> 10:44.300
Significantly larger than 253 however it did give us some indication of what was being checked.

10:44.300 --> 10:54.760
Uh the Linux partition itself had a little under 11,000 files giving us a delta of about 8200 files that needed to be validated as part of the integrity check.

10:54.760 --> 10:57.880
Or that weren't validated as part of the integrity check.

10:57.880 --> 11:05.180
So that's a whole lot of files to attempt to validate and identify a loophole in the validation uh process.

11:05.180 --> 11:11.100
But what I generally like to do is go back and take a look at a background image.

11:11.160 --> 11:18.700
I mean who really looks at background images uh and they have a very high visual representation when anything's modified.

11:18.700 --> 11:27.140
So we randomly pick an image, modify it, reboot the system and uh the default background is then presented.

11:27.140 --> 11:32.100
However just a few seconds later we got our hacked background.

11:32.460 --> 11:45.780
Being able to do this essentially establishes the foundation that the preboot authentication process is not completely infallible and there is an opportunity to redirect the execution workflow of the system.

11:45.820 --> 11:54.460
Ultimately with our modified background we were able to map out the authentic uh authentication process to occur across two phases.

11:54.460 --> 12:01.400
The first of which is executed within UEFI across the boot XSA or boot XSA2 system binaries.

12:01.400 --> 12:04.940
This is where the 253 contents of the disk were validated.

12:04.940 --> 12:15.800
Upon completing the UEFI validation uh Linux is then bootstrapped and from Linux out of root's profile phase two is initialized scanning the other 2500 files.

12:15.800 --> 12:20.340
Those 2500 files are then used as a seed to unlock the TPM.

12:20.640 --> 12:29.000
Unfortunately the ATM is configured with secure boots and all the binaries on the UEFI partition are digitally signed with the BIOS.

12:29.000 --> 12:33.640
Meaning we can't actually modify any of that content to gain control of the system.

12:33.640 --> 12:38.900
But what we can do is identify what files are validated during phase one.

12:39.160 --> 12:51.760
Identify anything that might be overlooked during the Linux initialization process allowing us to redirect the process of code execution prior to phase two being initialized.

12:52.220 --> 12:54.600
With that, challenge accepted.

12:54.600 --> 12:56.320
Let's play cat and mouse.

12:56.800 --> 12:59.340
We'll start off in version 18.X.

12:59.660 --> 13:04.820
In version 18.X we have uh the pre-boot authentication process carried out in UEFI.

13:04.820 --> 13:06.700
It's part of boot XSA2.

13:06.800 --> 13:09.020
253 elements are validated.

13:09.280 --> 13:17.300
Uh the system is then initialized through uh the SysV architecture and several RC initialization scripts.

13:17.300 --> 13:25.180
Upon completing the RC initialization process, root performs an auto logon and then phase two is launched out of root's profile.

13:25.500 --> 13:32.640
When we take a look at the running environment of the Linux operating system, it's designed on the back of several temporary uh mount points.

13:32.640 --> 13:34.040
Temporary file system mount points.

13:34.040 --> 13:43.120
This is used to give a pseudo read only perspective of the disk cause the contents of those temporary file systems are then populated from tar archives.

13:43.120 --> 13:49.320
Again, those tar archives are also validated as part of phase one and not a valid attack surface.

13:49.960 --> 13:52.100
So this leaves us with a challenge.

13:52.120 --> 14:02.940
We know the index of phase one, what files are being checked and we need to compare that to the full initialization process of phase two in the SysV architecture.

14:03.240 --> 14:12.140
253 elements though covers most of the RC initialization script and there's not a whole lot of uh attack surface or thread that we can take advantage of.

14:12.140 --> 14:15.040
Except they made one exception.

14:15.580 --> 14:17.560
Etsy init tab was overlooked.

14:18.100 --> 14:27.120
With that we have our uh initial foothold to perform code execution but we still need a staging directory to place uh things on the disk.

14:27.380 --> 14:42.300
Luckily like any good security solution, it ignores validation of most of its own integrity files and since the goal of this exercise was code execution, what better directory to use as a staging directory than super sheep of Europe.

14:43.220 --> 14:45.760
So with that, let's jackpot an ATM.

14:46.320 --> 15:00.880
Uh we cloned the RC initialization process over to our safe directory, patch global variables, inject uh proof of concept into the call to X, and then execute our new run level three from the unexamined Etsy init tab.

15:00.880 --> 15:05.260
With that, here's a demo, 2023-24064.

15:20.120 --> 15:21.920
Sorry guys.

15:36.580 --> 15:38.020
Okay.

15:46.680 --> 15:49.460
Unfortunately I have some technical difficulties with that.

15:49.460 --> 15:50.820
I apologize.

15:50.820 --> 15:55.380
Uh the videos are published as part of uh the media server.

15:55.380 --> 15:58.180
Apparently they don't execute well on this Macbook.

15:58.180 --> 16:05.760
Um anyhow in this video what I was demonstrating is we power on the virtualized file system.

16:05.760 --> 16:09.180
Uh it receives a preboot authentication error.

16:09.180 --> 16:10.460
We shut down the desk.

16:10.460 --> 16:17.700
We relocates uh our initialization files over to the uh staging directory.

16:17.700 --> 16:24.200
This then once root performs its auto log on, we receive code execution and a callback shell.

16:37.470 --> 16:49.570
So uh having code execution on the system uh essentially just having access to the Linux system itself.

16:49.750 --> 16:54.210
Uh the vanilla code execution is actually never enough.

16:54.210 --> 16:59.970
And uh the Windows partition is still technically encrypted.

16:59.990 --> 17:05.730
Uh however, Super Sheep comes with an app for that uh known as Mount Winpart.

17:05.730 --> 17:22.670
Uh Mount Winpart takes the TPM recovered disk encryption key and then passes that as a command line argument decrypting uh the Windows partition and giving it the uh opportunity to then execute a third phase of the integrity validation.

17:22.690 --> 17:38.230
So from uh having code execution on the Linux system, essentially all we need to do is uh resume the integrity validation process, monitor the proc command line, and then recover that TPM disk encryption key.

17:38.230 --> 18:00.070
From there, uh re-initializing the process just a few seconds later, we're able to recover the TPM disk encryption key, decrypt Windows, and uh load malware onto the system, interacting with the XFS API, giving us the ability to dispense funds from the ATM on demand.

18:03.350 --> 18:14.190
So uh doing the research essentially the timeline uh this vulnerability was observed to only impact version 18.X.

18:14.190 --> 18:23.030
Uh the vulnerability was identified in December of 21 and then confirmed remediated just a few days later in the next major release.

18:23.030 --> 18:37.730
At the time of this discovery, uh version 18 was designated to be end of life and uh Diebold Mixdorf had moved from uh to a new versioning number to introduce minor uh revision updates to their update.

18:37.730 --> 18:40.370
That's why it goes from 18 to 3.0.

18:41.270 --> 18:47.750
The way the attack surface was mitigated is phase one now validates Etsy and NetApp.

18:47.750 --> 18:54.870
So there's no opportunity to redirect code execution for the RC initialization process.

18:54.870 --> 19:07.330
However, what they also do is the PBA integrity process is decreased from 253 elements to only 56, about a 20% reduction.

19:07.670 --> 19:17.470
Reporting this to Diebold however, they did not designate this as a vulnerability and it indicated it was working by design because of the security protections that IMO provides.

19:18.410 --> 19:19.650
So what is IMO?

19:19.870 --> 19:30.110
Well IMO is an uh kernel integrity process where uh every binary on the system is digitally signed and that signature's also loaded into the Linux kernel.

19:30.110 --> 19:40.870
That signature carries details about the file name, the file path, very I know de- various I know details and that's appended as an extended attribute to every executable on the system.

19:40.890 --> 19:52.290
When you go to call those executables in a child or parent child relationship, uh the execution workflow and the signature is validated against the Linux kernel to decide whether or not that's allowed to be executed.

19:52.570 --> 20:00.370
However, the one thing that IMO doesn't do is it doesn't validate uh signature script interpretation.

20:00.370 --> 20:17.570
For example, if you call the system shell, which is an authorized signed binary, it's able to read uh the interpreted scripts, for example, root's profile script and then carry that execution workflow in the context of an authorized system binary.

20:18.650 --> 20:22.410
So let's carry on into service release nine.

20:23.170 --> 20:28.830
In service release nine, the Linux architecture is relatively unchanged.

20:28.830 --> 20:38.910
Uh however, examining the mountfs initialization script, there's a delete call that's initialized before the architecture of the system is actually mounted.

20:39.070 --> 20:51.970
Since the entire architecture of the system is mostly derived around the concept of a temporary file system, uh all we need to do is uh move fs tab to m tab.

20:51.970 --> 21:03.890
Then fs tab will be deleted before the mount command is called, removing all the instructions to build a temporary file system, allowing us to regain persistence to root's home directory.

21:03.890 --> 21:08.410
We patch the profile script and then again, gain code execution.

21:10.130 --> 21:21.310
Um I had a demo for this, uh 2023, 24063 , uh unfortunately I I it's not playing properly on the Macbook, so I do uh apologize greatly for that.

21:21.310 --> 21:43.010
Uh but anyhow in the demo, uh if it were to play, it's uh we patch the offline disk, we uh move fs tab to m tab, uh the system auto boots back up, and then once root logs in, we get code execution and receive a callback to the initialization process.

21:46.320 --> 21:56.940
So this time, uh the scope and the timeline, uh this was observed to impact all prior versions of 330 as part of the dynamic security suites.

21:56.940 --> 22:08.060
Uh the vulnerability was identified in June of 22, and then confirm remediated the day after magically in uh version or service release 10.

22:08.680 --> 22:20.700
In service release 10, the mitigations were enforced by an uh update to the mount fs initialization script, now removing the delete call from uh to etsy m tab.

22:20.700 --> 22:26.760
So without etsy m tab there, uh we don't long we no longer have the opportunity to remove fs tab.

22:27.800 --> 22:31.280
Carrying on into service release 10.

22:32.020 --> 22:43.740
So as part of service release 10, uh we now have init tab validated, m tab does nothing, but what about the mount logic of the architecture?

22:44.720 --> 22:49.220
So mount is actually a very interesting command.

22:49.220 --> 22:57.440
Uh again, most of the security architecture of the security stack requires building a temporary file system.

22:57.920 --> 23:09.080
However, if we're able to use mount to stop uh that architecture from getting mounted, uh we then have an advantage to regain uh persistence to root's home directory.

23:09.080 --> 23:20.120
One very interesting limitation to mount is if you happen to execute mount against the mount point that's previously been leveraged, the call to mount will fail.

23:20.200 --> 23:25.660
In a Linux architecture, what's the default uh mount point that's used by the system?

23:25.900 --> 23:27.900
The root file system.

23:27.940 --> 23:43.820
So if we flatten the file system and then redirect root bar and temp to root, uh we're able to regain persistence to root's home directory because when those temporary file systems go to mount, the mount point already exists and that call will fail.

23:43.820 --> 23:52.040
This then gives us the opportunity to uh jackpot root's profile and regain code execution on the system.

23:53.120 --> 24:12.700
Again, I had a demo uh 2023-24064 uh where we uh flatten the file system and uh are able to redirect code execution powering back on the system uh once root logs in, we receive code execution.

24:15.160 --> 24:31.080
So this time going through uh going through the timeline, uh all prior versions of 330 were known to be vulnerable including uh this time 4.0, 4.1 and 4.2.

24:31.080 --> 24:41.520
The vulnerabilities were identified in June of 2022 and then confirmed remediated in version in service release 12 immediate uh in December of 22.

24:42.840 --> 24:50.380
In service release 12, the mountfs initialization script was then updated with several uh additional delete calls.

24:50.380 --> 25:03.080
Now we're moving root bar and temp and mount and uh removing any opportunities for us to do sim links or redirect the execution essentially ensuring those directories are empty.

25:03.640 --> 25:06.360
Let's carry on in service release 12.

25:07.380 --> 25:11.940
In service release 12, how do you work around a delete call?

25:12.080 --> 25:25.660
Well, mount still has some magic logic tied into it where earlier on in the initialization process, uh the kernel uh kernel run space is mounted to specific mount points.

25:25.660 --> 25:29.520
And whenever you place a file on a mount point, it no longer becomes accessible.

25:29.520 --> 25:38.160
Since all the previous mitigation uh steps were initiated as part of mountfs, uh essentially we just move mountfs to proc.

25:38.160 --> 25:47.160
Once the uh kernel initializes, the temporary file systems are built allowing us to regain persistence to root's profile script.

25:48.800 --> 25:57.280
Again, this was recognized as CVE-2023-28865 uh in the demo if it had played.

25:57.520 --> 26:12.580
Uh it would show that um we're able to uh redirect uh the file location uh move that over to proc and once the Linux kernel powers on, we receive code execution and our callback.

26:14.280 --> 26:23.920
Just as before, all prior versions of 330 were known to be vulnerable to this attack surface, including uh all versions of 4.0, 4.1, and 4.2.

26:23.920 --> 26:29.600
Essentially representing the entire security stack of dynamic security at this time.

26:29.600 --> 26:38.920
The vulnerabilities were identified in December of 2022 and then confirmed or mediated in February of 23 as part of service release 15.

26:39.320 --> 26:49.280
In service release 15, the uh phase one integrity check was further updated to include a number of null sum values.

26:49.280 --> 26:56.700
Essentially validating a number of critical mount points to truly be empty before the Linux partition was allowed to boot.

26:56.860 --> 27:04.500
With this, uh we don't have much opportunity to modify the disk and it closes a lot of the previous attack surfaces.

27:05.360 --> 27:08.760
So let's carry on with service release 15.

27:09.100 --> 27:25.740
So in service release 15, introducing those null sum values, uh I like to come across the idea that the more complex a security control is, the more likely that something is gonna be overlooked as part of that validation process.

27:25.740 --> 27:36.780
If we try to create a file or create a sim link to a known file, that produces a hash hash sum as part of the phase one integrity check and the pre-boot authentication process fails .

27:36.780 --> 27:45.400
However, if we establish a directory or a tree of uh empty directories, no sum value is created.

27:45.440 --> 27:51.640
Additionally, broken sim links also do not produce a hash sum value.

27:52.800 --> 27:56.200
However, to take advantage of this, we need this new staging directory.

27:56.200 --> 28:09.340
Uh to identify one, we would return to the previous attack surface and look to identify any directory structures that are created once the Linux kernel is initialized, but don't have a presence on the offline disk.

28:09.340 --> 28:17.560
Essentially allowing us to establish a transversal point to redirect uh to a new staging directory.

28:17.660 --> 28:28.500
Luckily after just a few seconds, we're able to locate dev block, which was a special mount point mod gate or uh associated to the block device of the Linux partition itself.

28:28.500 --> 28:33.620
This was also observed to be present in all versions of dynamic security.

28:34.100 --> 28:41.680
So, what we need to do is move uh our uh critical mount points over to a new staging location.

28:41.680 --> 28:43.960
For example, root to root 2.

28:43.960 --> 28:48.200
And then we link to those through our transversal point dev block.

28:48.200 --> 28:51.480
Offline on the disk, those sim links are then broken.

28:51.480 --> 29:02.760
However, once the Linux kernel initializes, those links then become valid, allowing us to redirect code execution and regain persistence to root's home directory.

29:03.500 --> 29:09.640
Uh this was identified as CVE-2023-33206.

29:09.760 --> 29:22.180
Again, uh in the demo, had it played uh properly, it would show that we uh create the new staging directories and redirect to our staging points.

29:22.180 --> 29:28.640
Once the virtualized system powers on, we would receive code execution and our callback shell.

29:30.620 --> 29:45.000
So, just as before and all the previous attacks, this vulnerability impacted all prior versions of dynamic security, including all versions, prior versions of 4.0, 4.1, 4.2, and 4.3.

29:45.000 --> 29:54.920
The vulnerability was identified in April of 2023 and then confirmed remediated in July of 23 as part of service release 16.

29:56.040 --> 30:08.240
In service release 16, the phase 1 integrity process was further updated, this time validating uh whether or not sim links were broken or valid uh on the Linux partition.

30:08.240 --> 30:15.380
Broken sim links now produce a uh pre-boot authentication failure, disabling the system to boot up.

30:15.380 --> 30:27.080
But, interestingly enough, they also, dbold also walked back the previous mitigation strategies that were observed in the mount FS uh initialization script.

30:27.080 --> 30:41.500
Although it doesn't necessarily reproduce the same attack surfaces, because now we're doing null sum validation and sim link validation, uh it is interesting that uh mitigation strategies are are backwalked.

30:42.240 --> 30:48.200
So, finally, this brings us to service release 16.

30:48.800 --> 30:54.340
As part of service release 16, we have sim link validation and null sums.

30:54.340 --> 31:00.300
The attack surface of the Linux architecture is relatively reduced.

31:00.420 --> 31:08.020
However, the whole architecture of the system is based around the requirement of hash sum values.

31:08.480 --> 31:11.080
You know what doesn't change a file's hash sum?

31:11.080 --> 31:14.120
The file attributes associated to that hash sum.

31:14.120 --> 31:22.840
So, for example, if we remove uh the execute permission of a file, the file still has the hash the same hash sum value.

31:23.100 --> 31:37.960
For example, if we just remove the execute permission from IMA, we're able to disable all signature verification processes of the Linux architecture entirely and then obtain the ability to execute any code that we want.

31:39.100 --> 31:45.720
This vulnerability was identified as CVE-2023-40261.

31:46.840 --> 31:59.860
Again, the video is not playing, um, but in the video, uh, we disabled the execute permissions of IMA and uh power on the virtualized file system.

31:59.860 --> 32:10.660
Once root performs its auto logon, we then re-regain code execution and receive our callback shell, essentially defeating the whole system once again.

32:12.900 --> 32:25.400
Just as before, this attack surface was observed to impact all prior versions of 330, including all prior versions of 4.0, 4.1, 4.2, and 4.3.

32:25.400 --> 32:31.780
Again, representing, uh, an impact against the entire dynamic security suite software.

32:31.780 --> 32:43.300
The vulnerability was identified in July of 23, and then DBolt had designated it was patched as part, as a November 2023 patch and service release 17.

32:43.480 --> 32:50.100
Additionally, version 3.3 was designated to be end of life in December of 23.

32:51.080 --> 33:09.680
So, with that, uh, through this talk, I've essentially demonstrated that the entire dynamic security suite can be impacted by a single vulnerability, and that attack surface represents a recursive impact against all prior versions.

33:10.140 --> 33:18.800
Although, although the system is still patched, the root cause is still derived around the fact that the Linux partition itself is unencrypted.

33:18.800 --> 33:25.320
So there is a high likelihood that new vulnerabilities or new attack surfaces are going to be identified.

33:25.540 --> 33:34.720
However, uh, you can rest assured because there are still some requirements of physical access in order to take advantage of this attack surface.

33:34.720 --> 33:38.400
So, with that, let's discuss some mitigation strategies.

33:39.700 --> 33:52.120
Uh, first and foremost, the, uh, ATM software should be patched up to the latest version representing each major version that any environment, uh, is currently running.

33:52.120 --> 33:56.400
With the goal of ultimately moving into version 4.4.

33:56.400 --> 34:11.600
I'm proud to announce as a direct result of the security research and working with Deepold next door, they have redesigned the SuperSheep architecture and now offer full encryption of the Linux partition.

34:11.600 --> 34:15.580
This was released this year in April of 24.

34:15.580 --> 34:19.920
Additionally, there's a security check known as enable signature check.

34:19.920 --> 34:31.600
Disabling this prevents the TPM disk encryption key from being handed over to mount Winpart, essentially reducing the attack surface from Linux to recover the TPM encryption key.

34:31.840 --> 34:38.420
Additionally, you could just replace dynamic security with an industry recognized, uh, full disk encryption solution.

34:38.940 --> 34:48.660
Several secondary actions are also monitor for any malicious top hat entry, disable u- disable the USB ports, and ensure the hard drive can't be easily removed.

34:48.660 --> 34:53.480
There is no business pur- purpose for the hard drive to be able to pull- be pulled out of the system.

34:54.320 --> 35:04.040
With that, I apologize, uh, my demo videos weren't great, but, uh, please feel free to reach out to me, uh, via social if there's any comments or questions.

35:04.180 --> 35:04.180
..

35:04.180 --> 35:04.700
.

35:05.420 --> 35:05.940
..

35:05.940 --> 35:06.060
...

35:06.900 --> 35:07.420
...

35:08.040 --> 35:08.560
...

35:08.560 --> 35:08.740
...

35:08.740 --> 35:08.880
...

35:08.880 --> 35:09.780
...

35:09.780 --> 35:09.820
...

35:09.820 --> 35:09.860
...

35:09.860 --> 35:09.920
...

