start	end	text
1220	8560	Good? Alright. Hello everyone and welcome to my talk. Today I'm going to share with you my
8560	12800	journey of researching downgrade attacks on Windows and their severe implications on
12800	19240	Windows' platform security. My name is Alon and I'm a security researcher at SafeBridge. I'm
19240	24540	22 years old and mainly self-taught. My focus reside in operating system internals, reverse
24540	28580	engineering and vulnerability research and before joining the security field I was a
28580	34920	professional Brazilian G2 athlete where I won several world and European titles. This is
34920	38600	what I will be talking about today. We have a lot of interesting topics to cover so let's
38600	45100	jump right in. Starting with the research background. So first things first, what are
45100	49760	downgrade attacks? Downgrade, downgrade attack is the act of downgrading immune and fully
49760	55340	up to date software to uh, to uh, an old and vulnerable software. And this act allows to
55340	62140	expose past vulnerabilities in updated software and then exploit such vulnerabilities. My
62140	66500	research started from, from studying the Black Lotus UEFI bootkit and what caught mine and
66500	71120	everyone else's attention with Black Lotus was the fact that it was able to bypass secure
71120	76280	boot on a fully updated Windows 11. But in fact, Black Lotus did not exploit a new zero
76280	82500	level vulnerability. Instead it exploited an already known and patch vulnerability. And that
82500	88020	was of course done by employing a downgrade attack. To give you a better understanding of
88020	92220	how Black Lotus' downgrade was formed to bypass secure boot, you first need to know what
92220	97180	is secure boot. So simply put, secure boot is a security feature which is responsible to
97180	101640	verify that each component in the boot chain is digitally signed. It is very simple. If you
101640	105680	are not signed, you are not loaded. And so the days of floating a custom bootkit by
105680	112060	replacing the boot manager are gone. Instead, what Black Lotus did was to downgrade the
112060	116640	Windows boot manager to signed but vulnerable version of it. And this allowed to then
116640	120840	exploit an old vulnerability sourced in the vulnerable boot manager to then bypass
120840	126980	secure boot. Microsoft's mitigation against secure boot downgrades included multiple
126980	131720	actions with the main one being revoking vulnerable boot managers and boot applications. And
131720	137680	revoked images are of course not allowed to be loaded. But here comes the critical
137680	142980	question. Are there any other components other than secure boot that may be vulnerable to
142980	148480	downgrade attacks? My goal in this research was to evaluate the state of downgrade,
148480	153480	downgrade attacks on Windows and to find if components other than secure boot may have been
153480	159640	overlooked. Now I'm sure you're all familiar with bring your own vulnerable driver attacks
159640	164580	targeting third party drivers. My vision was to target first party entities, not only
164580	170360	drivers but even entities residing in a lower level than the kernel. My vision was to
170360	176860	create a new category of bring your own vulnerable Windows. To kick off my research I've
176860	181000	had to first form a reliable downgrade ability which led me to define what would be
181000	185260	considered a perfect downgrade attack. So first the downgrade must be fully
185260	190080	undetectable so that EDRs will not block the downgrade. Thus I aimed to perform the
190080	196860	downgrade in the most legitimate way possible. Second, the downgrade must be invisible so
196860	202660	that future updates, so that the downgraded components will not appear up to date even if
202660	207660	they're technically downgraded. Third, the downgrade must be persistent so that future
207660	212200	software updates are not overriding the downgrade. And then fourth, the downgrade must
212200	217100	be irreversible so that scanning and repairing tools will not be able to detect or repair
217100	222900	corruptions. Having the downgrade requirements defined I then looked for a suitable
222900	228880	component. But before I expose the target component I want to ask you, what would be the
228880	237780	least expected component to perform downgrades? That would be of course Windows updates. So
237780	245800	let's talk about Windows updates and see if they can be abused to perform downgrades. The
245800	250380	Windows update architecture is as follows. We have an update client and an update server and
250380	254760	they communicate over com. For those of you who are unfamiliar with com, this is just an
254760	258120	enterprise communication method in Windows and this is how the client and the server
258120	264100	communicate. Administrator is usually forced on the client side and trusted installer is
264100	269640	always enforced on the server side. And the last piece and the most important one is that
269640	275280	system files once owned and updated by Windows updates are only accessible to trusted
275280	282380	installer. So even administrators or anti-system cannot directly modify these system files.
284160	289160	And this is where I found the first design problem in Windows updates. Administrator to
289160	293680	trusted installer is not considered a security boundary and there are multiple working public
293680	300000	proof of concepts of such elevation. So the Windows update team attempted to secure the update
300000	305600	process by enforcing trusted installer. However, since updates are only accessible to
305600	311380	administrators, trusted installer is rendered completely ineffective. The only issue though
311380	316400	is that administrator to trusted installer elevations are considered malicious and are
316400	321600	blocked by EDRs which of course contradicts my first downward principle which is being fully
321600	327060	undetectable. Now I could of course try to bypass the elevation detection which may have
327060	331260	been possible but then I would have to implement the update process myself which could
331260	336140	still be seen as malicious. And so the best option for me was to find the flaw in the update
336140	343000	process which solves all of those problems. So let's take a look on a simplified flaw of the
343000	348500	Windows update process. First, the client asks the server to perform an update given an update
348500	355360	folder. The update folder is supplied by the client. Second, the server validates the
355360	361920	integrity of the update folder. Third, following the verification, the server operates on the
361920	367220	update folder to finalize the update files and these are saved to a server control folder, one
367220	371740	that is not accessible to the client. And so at that point the client cannot modify the
371740	379240	finalized update files. Fourth, the server saves an action list to a server control folder as
379240	385220	well, not accessible to the client. This action list is named pending.xml and it contains
385220	389760	the update actions to perform. So for example it specifies the files to update, the source
389760	396100	and destination files, et cetera. Lastly, when the operating system is rebooted, the action
396100	401300	list is operated on and the actions uh and the update actions are performed during the
401300	408460	update, during the reboot. Now the client only controls the initial update folder and so I
408460	413240	decided to look at this folder first and see maybe I can modify it resulting in custom
413240	419820	downgrading update files. And as we already know, integrity checks are performed on the
419820	427360	update folder so let's see how well the integrity checks are performed. The update folder
427360	433100	contains update components and each update component contain a manifest, mom, differential
433100	439760	and catalog files. The mom files are Microsoft update metadata, they contain metadata
439760	445740	information, so component dependencies, installation order, et cetera. The manifest
445740	450740	files contain installation specific information such as file path, uh registry keys, which
450740	456720	is sourced to execute as part of the installation and more. The differential files are
456720	462660	delta files from the base files and so a base plus delta would result in the full final update
462660	469680	file. And lastly we have the catalog files which are the digital signatures of the mom and
469680	474960	manifest files. Catalogs allow signing multiple files at once instead of having the file
474960	480560	that we want to sign embed its digital signature inside of it. In addition, the catalog
480560	486120	files are digitally signed themselves which makes it impossible to modify them or any of the
486120	490160	files that they protect. So we can't modify the catalogs and we can't modify the files that
490160	496200	they protect, that they sign. To recap, only cat- only the catalog files are digitally
496200	500920	signed. The manifest and mom files are not explicitly signed but they are signed in the
500920	505980	catalog files. And the differential files are not signed at all and the differential files
505980	512580	also control the final update file content which is very, very interesting. Is there any
512580	519700	chance the differential files were left behind in terms of verification? No luck because the
519700	524740	expected update file hash is hardcoded in the manifest and the manifest cannot be changed
524740	532020	since it will break its signature in the, in the catalog. Now at that point I decided to look
532020	536980	at the action list. I knew that it's con- it's, it's, it cannot be changed because it is
536980	541720	trusted in folder enforced so I cannot change the action list directly but I also knew that
541720	545760	the update up, that, that update process is performed over multiple reboots and so I
545760	550520	assumed that the state of this list is saved somewhere. And if I could modify the state,
550520	557940	maybe I was, I would be able to uh, create a custom downgrading action list. So I searched
557940	563700	the action list path in the registry and then I found this very interesting key named POQXX
563700	569160	CMD line. It holds the executable that parses the list and the list path. I then looked at
569160	574100	the security attributes of this key and I was extremely surprised to find that this key is
574100	582520	not trusted in solar enforced. And this allowed me to control all of the update actions. This
582520	587000	is how the action list looks like in practice. It is an XML file that gives the functionality
587000	591700	of creating files, deleting files, moving files, hard linking files, creating registry keys
591700	598300	and values, deleting keys and values and much much more. In order to downgrade we can use
598300	606640	the hard link file action and the source will replace the destination. To initiate
606640	612120	an update all that is needed is to set the trusted in solar service as auto start and add the
612120	617300	action list and its identifier in the registry. The identifier is a dynamic number which
617300	621680	is compared with the action list identifier. So the identifier is needed for integrity
621680	627080	purposes but since we control both the registry identifier and the identifier in the
627080	631240	action list because we control the action list path then this is not a problem because we
631240	636240	can adjust them accordingly. Now the most important thing is that none of these 3
636240	642820	actions is trusted in solar enforced. And this allowed me to update the system with a
642820	647960	custom downgrading action list. All of the integrity verifications are bypassed since the
647960	653100	action list is assumed verified as it is created post verification. There is no need to
653100	657680	perform the malicious trusted in solar elevation. Instead Windows updates does all of the
657680	663960	work for me and this is a complete Windows update takeover. Now revisiting the
663960	668660	downgrade principles of course the downgrade is fully undetectable. There is no better way
668660	675400	to downgrade Windows. In terms of invisibility the system will appear up to date as we
675400	681400	basically updated the system and we didn't uninstall anything. In terms of persistency of
681400	685660	the downgraded components I found that the action list sparser is not digitally signed and
685660	690660	so I patched it to install empty updates. And as a result even after the downgrade when new
690660	697580	updates are available they will be falsely installed. And in terms of recovery the
697580	701920	integrity and repair utility is not digitally signed as well and so I patched it as well as
701920	708420	part of the downgrade. And the patched version will no longer detect any corruptions. With
708420	713680	that let's see the first demo of the day. This demo will demonstrate downgrading a kernel
713680	718820	driver named afd.sys to an old and vulnerable version of it by using the Windows update
718820	725300	cover. And then we'll see how the same kernel driver is exploited to achieve kernel code
725300	731340	execution. So first we check the Windows version and then we will make sure that we are
731340	735960	fully up to date and that we have no missing updates as you can see. We'll then uh use
735960	740660	CMD and we'll use the seek check utility to see what is the current version of afd.sys, the
740660	744500	driver that we are targeting. Is it fully up to date? You can see that the current version
744500	749960	is 3672 which is patched to the vulnerability that I want to exploit. If we use task list to
749960	754480	find the current process ID and then we try to actually exploit a vulnerability which the
754480	758220	exploit gets a process ID and tries to elevate the system you can see the LP failed because
758220	762560	the driver is patched. So we'll then use Windows downdate which gets a config file that
762560	767860	says downgrade the afd.sys driver to an old and vulnerable version of it. You can see that
767860	772040	that patch succeeded. We now need to restore the machine in order for the update to take
772040	778300	place. You can see um we we fast forward a bit, we'll log back into the machine. After the
778300	782860	update we'll launch CMD and let's see what is the current version of the driver that we are
782860	790550	targeting. Was it updated? And you can see that the current version is the base version.
790550	795150	Although the system was updated, what actually happened is that it downgraded. We can see
795150	799610	that we are not currently system. If we try to exploit a vulnerability again, we get a
799610	805570	process ID and then we execute the exploit again. You can see that it succeeded and we are
805570	817070	now anti-authority system. Thank you. Thank you. We're just getting started guys. If we check for
817070	824930	updates you can see that we are fully up to date. So what did we achieve so far? We gained a
824930	829530	perfect downgrade ability and we gained kernel code execution. Our starting point was
829530	834230	administrator so that was an administrator to kernel elevation. Now administrator to kernel
834230	838370	is not considered a security boundary in Windows, but gaining kernel code execution is
838370	842310	still a threat and of course it gives much more functionality than administrator
842310	848750	functionality. Although it is not a boundary, admin to kernel is still a threat and a serious
848750	853990	one. Because nowadays lots of users are still running as administrators and running as
853990	859510	administrator is also the default on Windows. And as a result, many users could easily
859510	865730	compromise the kernel and this is an issue that Microsoft aimed to solve. Microsoft's
865730	869870	solution was to deprivilege the kernel to make kernel access less valuable than it
869870	875110	previously was. And the way that this privileging, deprivileging was done is by introducing
875370	883490	a feature called virtualization based security or VBS for short. VBS is a secure and isolated
883490	890690	virtual environment powered by the IPV hypervisor for isolation. And again the reason that
890690	895750	VBS was introduced is because the kernel is assumed compromised and can no longer be
895750	901550	trusted. There was a need for a secure place to implement critical security features and store
901550	908870	secret keys. VBS features include the famous credential guard, HVCI, system guard secure
908870	913870	launch, um, shielded VMs and much more security features that really improved the security
913870	919610	of Windows. And now that I've praised VBS so much, you may wonder how all of this works in
919610	926430	practice. So before VBS, this is how Windows architecture looked like. We've had user
926430	931010	mode in ring three, we've had kernel mode in ring zero and then we've had the hypervisor
931010	938850	running in ring minus one. With VBS, the hypervisor introduces virtual trust levels or VTS
938870	944810	and the way it works is that the higher the VTL, the more privileged it is. So simply put,
944810	949470	VTLs are like virtual machines. Lower VTLs should not be able to access memory or
949470	956910	compromise higher VTLs. Currently in Windows, only two VTLs exist. VTL zero known as
956910	963770	normal mode and VTL one known as secure mode. Normal mode contains the original operating
963770	968930	system and secure mode contains only the critical security features and mitigations as
968930	973230	well as key isolation technologies. And everything that is implemented in the secure mode
973230	978090	should not be compromised from normal mode. Even if we talk about normal mode's kernel.
980800	985660	Now, when looking at security features and mitigations, the first thing to do is of
985660	990580	course to check if the security features that we are targeting can be easily turned off. I
990580	996300	wondered if VBS features could be easily turned off. Since they protect from administrators,
996300	1000580	configuration modifiable by administrators would be ineffective because an attacker would
1000580	1007460	just turn off VBS instead of dealing with it. The way that VBS protects such disablements
1007460	1014100	is by implementing a feature called a UEFI lock. The UEFI lock is a UEFI boot service
1014100	1019560	variable that holds the VBS configuration. So if VBS is configured with a lock, the lock is
1019700	1024800	a source of configuration instead of the Windows registry. Then changing the registry
1024800	1031260	configuration will have no effect. The UEFI variable is a source of truth. And of course, the
1031260	1035700	boot service variable that holds the configuration cannot be accessed in run time from the
1035700	1043920	operating system but only during boot. So this is a very simple and reliable protection. If
1043920	1048940	the user really wants to disable VBS, if it's configured with a UEFI lock, he must load a
1048940	1055160	custom UEFI application signed by Microsoft. And this UEFI would then ask the user during
1055160	1060540	boot to physically approve the disablement. And only if the user approves, VBS is
1060540	1066600	disabled. Now the key element here is that all of this is performed during boot and the
1066600	1071560	assumption is that only signed code is allowed to run because of secure boot. And the only
1071560	1077200	signed code that touches the configuration, the variable, requires physical access. So without
1077200	1085140	physical access to the target machine, it should not be possible to disable VBS. With the
1085140	1089020	ability to control any file on the operating system, I wondered what would happen if I
1089020	1094000	tried to replace the secure kernel or the hypervisor, hypervisor powering VBS with
1094000	1100540	invalid files. For example, files that are not digitally signed, attacker controlled files. I
1100540	1104820	believed that the result would be the machine booting into the recovery environment and
1104820	1112760	that is because invalid files are a sign of compromise. Instead, I was extremely surprised
1112760	1118140	to find out that if the operating system loader fails to validate one of VBS's files, it
1118140	1123880	would just boot normally, abandoning VBS. I repeat, if the OS loader fails to validate one of
1123880	1130840	VBS's files, it just boots normally. And this can be used to disable VBS by passing the
1130840	1136420	UE file lock. And as far as I know, this is the first bypass of VBS's UE file locks and this
1136420	1140460	is a very simple bypass. All we need to do is to replace the secure kernel, the hypervisor
1140460	1147380	of any VBS's files with invalid files. Very simple. So now it's time for another demo of
1147380	1152280	chaining all the capabilities gained so far together. In this demo I will show credential
1152280	1158120	extraction against the most restrictive settings. Those settings will be PPL enabled for
1158120	1165320	LSS with UE file lock protecting LSS dumps. Credential guard will be enabled with UE file lock
1165320	1170860	protecting secrets in VTL1 and Windows Defender will be up and running. The way that all
1170860	1175560	of these will be bypassed is by first reverting the PPL full patch to allow PPL bypass.
1175660	1179940	Second, disabling credential guard by passing the UE file locks. And third, turning Windows
1179940	1186640	Defender on functional by invalidating the main Defender executable MSMP engine. Now just
1186640	1190860	before I show you the demo, it is important to understand that credential guard and PPL
1190860	1197260	for LSS are complementary. So if only credential guard is bypassed, LSS cannot be dumped. And
1197260	1201880	if only PPL is bypassed, credentials are encrypted and not usable. So this is what you will
1201880	1207000	see if you try to dump credentials on a system with credential guard on. So let's see the
1207000	1211740	demo of bypassing credential guard, PPL for LSS and Windows Defender all in once by
1211740	1218300	utilizing downgrades and the UE file lock bypass. So first we check the Windows version and
1218300	1222280	then we'll make sure that we are fully up to date. Which you can see we have no missing
1222280	1229300	updates. We'll then use SKTool to see um, which is still supp- supplied by Microsoft to see
1229300	1234400	what VBS features are running. You can see that the uh, the VBS is protected with UE file
1234400	1239500	lock. It's locked in UE file and credential guard and key guard are currently running. We
1239500	1244640	then use system informer to see what is the current state of LSS. You can see that it's run,
1244640	1248560	it runs as PPL and then let's check the Windows Defender is up and running as well. We try
1248560	1252460	to copy malicious files outside of the excluded directory. You can see that we can't use
1252460	1258280	them and that Windows Defender detects them as malicious because it's up and running. Now
1258280	1264860	it's time to execute the attack. We will use Windows downdate. We'll change directory to the
1264860	1269180	Windows downdate directory and we will supply Windows downdate with a config file that
1269180	1276080	will say, downgraded PPL fault patch, bypass the UE file to disable VBS and invalidate the
1276080	1280100	main Defender executable to turn it on functional. You can see that the attack was
1280100	1285300	successful. We finished the attack. These are the files that were updated and all we need to
1285300	1290460	do is restore the machine. So you can see, you will see now that updates are underway but
1290460	1296300	in practice what happens is that downgrades are underway. We fast forward, we log back
1296300	1305410	into the machine. Now let's launch SK tool again to see what is the current state of VBS. Now
1305410	1308890	you will see that the secure kernel is not currently running, credential guard is not
1308890	1312810	currently running as well. So the UE file has been bypassed and credential guard is no
1312810	1317890	longer protecting credentials. We'll then launch uh system informer and we will see what is
1317890	1322050	the current state of others. You can see it runs as PPL. So we'll need to bypass it. And now
1322050	1326490	let's check what is the state of Windows Defender. We'll copy malicious files outside of
1326490	1331510	the excluded directory. And you can see that it worked successfully. So we defeated Windows
1331510	1337890	Defender as well. We'll launch CMD again and now it's time to bypass PPL. We'll change
1337890	1343550	directory, we'll get the process ID of others and then we'll try to execute PPL fault. And
1343550	1348450	remember PPL fault should have been patched in the system and it is seemingly patched in
1348450	1356540	the system. We'll execute the attack and let's see what happens. So PPL fault was
1356540	1360920	successful. The dump file was created on the desktop as you can see. We'll now use Mimikatz to
1360920	1364960	parse the dump file and extract credentials that should have been protected by credential
1364960	1370300	guard. We'll load the dump file and extract credentials. You can see credentials are
1370300	1376960	extracted and this credential should have been protected by credential guard. Now
1376960	1381280	just to make sure that we are fully up to date and that everything looks correct, we'll
1381280	1393360	check for updates. And you can see that we are fully up to date. Thank you. Thank you.
1397100	1403480	Okay so we bypassed the UE file locks and defeated VBS. But now it's time to talk about real
1403480	1409500	security boundaries. The security boundaries that VBS introduces are any VTL 0 to VTL 1
1409500	1415080	transition is considered a security boundary, an elevation of privilege. No VTL 0 code
1415080	1421940	should be able to compromise VTL 1 code. And another boundary is ring 3 to ring 0, sorry any
1421940	1429060	ring 3 to ring 0, sorry any ring 3 or ring 0 to ring minus 1. So user mode or kernel 2
1429060	1433360	hypervisor is considered an elevation of privilege. And due to the way that VBS is
1433360	1440840	implemented, compromising the hypervisor gives complete control over all of the VTLs. Now
1440840	1445040	when looking at VBS downgrades my main goal was to understand if there was a downgrade
1445040	1450900	detection mitigation such as versioning checks or evocation mechanism. And if no downgrade
1450900	1456340	mitigation was found regardless of how far I could go with the downgrade I considered this as
1456420	1461400	a vulnerability. And that is because when new vulnerabilities will get patched in the target
1461400	1466500	component it will make the exploitation much easier. So even if not immediately exploitable
1466840	1473960	it is truly something that needs to get fixed. Firstly I targeted secure modes isolated
1473960	1479680	user mode processes. And the most known isolated user mode process is credential guard. So I
1479680	1485060	decided to target it first. Credential guard is implemented as an isolated user mode
1485060	1491540	process named LSAISO which stands for LSA isolated. With credential guard running, secrets are
1491540	1497440	stored in LSAISO in VTL1 instead of in the original LSAISO process. And this is why dumping
1497440	1501820	LSAISO with credential guard is no longer valuable. Because LSAISO only contains the
1501820	1507640	encrypted blobs and the real secrets ones that are, ones that the attacker is interested in
1507640	1519580	are only accessible um to in VTL1 and not in VTL0. I decided to target a downgrade with CV202234709
1519580	1524580	which is a fixed elevation of privilege in credential guard. I found both the vulnerable
1524580	1529660	module which is Kerpli insured and the vulnerable version. Downgrading the vulnerable
1529660	1534500	module using the Windows update decoverer worked well on a fully patched machine. And this
1534500	1540160	allowed escalating privileges from ring 3 VTL0 to ring 3 VTL1 compromising credential
1540160	1545300	guard and all of the secrets that it protects. There was no downgrade detection on VTL1
1545300	1551800	isolated user mode. Now isolated user mode privileges are great but I wanted to gain even
1551800	1555900	higher privileges. So I then moved on to target secure mode's kernel which is more
1555900	1562700	privileged than isolated user mode. The kernel of secure mode is called secure kernel and
1562700	1567800	it is a minimal kernel that only implements security features such as HVCI, hyper guard
1567800	1575620	and more. I decided to target this downgrade with CV202127090 which is a fixed elevation
1575620	1580660	of privilege in secure kernel. The only vulnerable module here could be secure kernel
1580660	1585800	itself but in this case downgrading only the secure kernel did not work. It wasn't enough
1585800	1592080	for me. I've had to downgrade dependency modules as well and only then it worked on a
1592080	1597940	fully patched machine. And this allowed escalating privileges from ring 3 VTL0 to ring 0
1597940	1605160	VTL1 compromising the entire VTL1 and any of the mitigations including HVCI, hyper guard
1605160	1610920	and more. There was no downgrade detection on the secure kernel and the secure mode either.
1612860	1617260	Now secure kernel privileges are great but I wanted to gain even higher privileges. So I
1617260	1623080	then moved on to target the most privileged entity of VBS which is the Hyper-V hypervisor.
1624280	1632580	The hypervisor is HVIX on Intel systems and HVAX on AMD systems. The hypervisor is a
1632580	1639700	standalone microkernel which makes it a valuable target for downgrades. With the hypervisor
1639700	1644620	though it was more challenging to target a specific vulnerability. And that is because many
1644620	1650540	vulnerabilities titled Hyper-V Elevation of Privileges were fixed over the last 2 years. But
1650540	1655600	Hyper-V is a very large component. And in CV descriptions Microsoft do not share which
1655600	1662580	component in the Hyper-V stack is the vulnerable one. So it could be an elevated user mode
1662580	1666840	process, it could be a kernel driver or it could be the hypervisor itself which is the only
1666840	1671700	component that I am targeting in the Hyper-V stack. And so I decided to go 2 years
1671700	1676520	backward to prove the vulnerability. Because 2 years is old enough to be confident that there
1676520	1680980	was at least one hypervisor elevation of privilege vulnerability unfixed in the old
1680980	1686500	hypervisor. Downgrading the hypervisor and the hypervisor loader worked well on a fully
1686500	1691820	patched machine and the cross security boundary here was ring 3 VTL 0 to ring minus 1
1691820	1696840	potentially compromising the entire visualization stack. And this rendered the entire
1696840	1702540	visualization stack vulnerable to downgrade attacks. So let's see a demo of the
1702540	1708120	hypervisor downgrade. First as usual we check the Windows version and then we make sure
1708120	1714640	that it is fully updated and that we have no missing updates as you can see. We'll then
1714640	1718600	launch SK tool again but this time we're interested to see what is the current state of the
1718600	1722860	hypervisor. You can see the Microsoft hypervisor was detected and the current version is
1722860	1728140	22621 which is the base version. You can also see the VBS runs as usual. We'll then use
1728140	1732780	Windows downdate with a config file that will say downgrade the hypervisor to a 2 years old
1732780	1737220	hypervisor. The attack was succeeded, you can see the update files. We now restore the
1737220	1745000	machine in order for the update to take place. We fast forward, Windows is updating. What
1745000	1749980	happens under the hood is that the hypervisor is being downgraded. We log back into the
1749980	1757720	machine and let's see what is the current state of the hypervisor. Run SK tool again and we
1757720	1763880	can see that the hypervisor is still detected but its version is 22000 which is a 2 year old
1763880	1768480	version. You can also see what's interesting here is that VBS is running as usual. So
1768480	1772260	credential guard everything is running with an old hypervisor. And if we check that we are
1772260	1781610	fully up to date, you can see that we are. Okay so overall I found no downgrade mitigation. In
1781610	1787210	any component of the virtualization stack. The entire stack was found to be vulnerable to
1787210	1793550	downgrade attacks. Now let's talk about one last vulnerability that exposed all of the
1793550	1799650	attack vectors to unprivileged attackers in certain scenarios. So it all started with this
1799650	1803910	Windows dot all folder which I came across in some of my machines and looking at it and
1803910	1808370	Googling it, I found that this is the old Windows operating system and it is saved for
1808370	1812410	restoration purposes after a quality update is installed. So when you install a quality
1812410	1819210	update, Windows dot all is saved uh Windows is saved to Windows dot all. Of course the
1819210	1824670	first thing I did was to try to modify files inside Windows all but I noticed that access
1824670	1829170	lists are copied from the old operating system and so it was impossible to temper files that
1829170	1834930	could not be previously tempered with. The next thing I did was to try to check access to
1834930	1840610	Windows dot all folder itself. And I found that as an unprivileged user I have full access
1840610	1847070	to this folder. The exploitation strategy is straight forward. First renaming the original
1847070	1851530	Windows dot all folder to any name and then creating an attacker controlled Windows all
1851530	1855930	folder and the attacker controlled operating system will be used in case of update
1855930	1860850	restoration. So then in a restoration scenario triggered by administrator, the attacker
1860850	1865350	controlled operating system will be used instead of the backup operating system. So this is
1865350	1869410	another way to perform the same downgrades from an unprivileged user in a restoration
1869410	1876730	scenario. Closing remarks. Let's talk about the disclosure process, next steps and
1876730	1882890	takeaways. Starting from the disclosure process, we notified Microsoft of our research
1882890	1894230	findings in February 2024. Microsoft issued CV 2024-21302 and CV 2024-38202. This is
1894230	1898430	Microsoft's official response to the research and I would like to thank Microsoft here for
1898430	1904930	the great cooperation and effort on these cases. For those of you who want to further
1904930	1909410	research the topic that we explored today, here are some of the topics that I would
1909410	1915430	recommend looking at. First and foremost, the critical question still arises. Are there
1915430	1921610	additional Windows features vulnerable to downgrade attacks? So far, both secure boot and
1921610	1926130	the virtualization stack was found vulnerable. Do you have in mind additional critical
1926130	1931510	features that you think are vulnerable to downgrades? Another interesting feature
1931510	1936810	introduced not too long ago is Linux virtualization based security. And this is a game
1936810	1942030	changer for Linux security. Would the same design issues exist in the Linux implementation?
1943250	1948150	Lastly, are there any other operating systems such as Mac OS or Linux that may be
1948150	1953490	vulnerable to downgrade attacks? May the implications on those operating systems be
1953490	1960690	similar to the Windows implications? What are the takeaways for this talk? First, the
1960690	1964810	cyber security industry should raise its awareness of OS downgrade attacks and the
1964810	1969030	danger that they pose. I found no mitigation preventing the downgrade of critical
1969030	1973670	operating system components suggesting the downgrade attacks were not the focal point
1973670	1979930	barrier to my research. The significant implications made um made by downgrade attacks
1979930	1984530	emphasize the danger that they pose. And while Windows is currently affected, could Mac
1984530	1992110	OS or Linux be next? We need to address these questions before real attackers do. Second,
1992110	1996170	design should always be reviewed and regarded as a relevant attack surface. The
1996170	2000030	downgrade attack on the virtualization stack was possible due to a design flow that
2000030	2004450	permits less privileged VTLs or rings to update components residing in more privileged
2004450	2010750	VTLs or rings. Even though virtualization based security has become more popular and
2010750	2015150	makes security researchers in recent years with some great research papers papers on the
2015150	2019810	subject, this attack surface, the downgrade attack surface has existed since the very
2019810	2025350	beginning of VBS when Microsoft first announced it in 2015. And this indicates that the
2025350	2031990	design was probably not thoroughly examined. Third, in the wild attacks should be
2031990	2036490	thoroughly examined and expanded upon whenever possible. With the Black Labus UEFI
2036490	2040310	boot kit employing downgrade attacks, we realize that the concept of downgrade attacks was
2040310	2045790	right under our noses. Although a year has passed, it seems that this time we were able to
2045790	2051050	study and expand upon downgrade attacks before attackers did. So we exp- we expanded uh
2051050	2056570	secure boots downgrade to virtualization stack downgrades. This is not always
2056570	2060590	guaranteed. And this emphasizes the importance of studying in the wild attacks and always
2060590	2066050	considering what other components or areas may also be affected by an in- an in the wild
2066050	2073170	attack. Now before we wrap everything up, I would like to credit these talented people for
2073170	2081000	their work. It was a pleasure for me to share with you my journey of researching downgrade
2081000	2085880	attacks on Windows and their severe implications on Windows as platform security. Using the
2085880	2090400	findings that I revealed today, you can bring back to life thousands of old and fixed
2090400	2095340	vulnerabilities. Windows downdate essentially makes the term fully patched meaningless
2095340	2101420	across any Windows machine worldwide. If you have any question- questions, please catch me
2101420	2107320	in the wrap up room or here and also feel free to reach out on social media and with that, I
2107320	2112000	would like to thank you all for joining me today and have a great rest of your day. Thank you.
2114940	2116940	We'll- we'll- we'll go back to our questions.
