start	end	text
0	1180	Hello everyone.
1180	6960	My name is Ron Ben Yitzhak and I'm very excited to be here today and give you my talk.
6960	8280	You snooze, you lose.
8280	12360	RPC Racer winning RPC end points against services.
12640	18080	This year, this is the fourth year in a row I'm speaking here at DEF CON.
24590	26790	I'll introduce myself first.
26790	31570	I'm a security researcher at SafeBridge where I do vulnerability research.
31570	35390	I also like playing music and going to concerts.
36250	38670	This is our agenda for today.
38670	43110	At the beginning I'll explain some basic terms regarding RPC.
43130	49170	Then I'll expose some serious flaws in this very widely used protocol.
49170	67810	I'll take you step by step showing how I manipulated a core component of RPC and masqueraded as a legitimate built in service to force a protected process to authenticate against an arbitrary server and disclosing the NTLM hash of the machine account.
68870	73110	We're going to talk a lot today about the RPC protocol.
73110	76490	So let's first understand what it is.
76570	83470	The remote procedure call is used for inter process communication between clients and servers.
83470	88570	The server exposes functionalities, certain actions and logics.
88570	93230	And the client can request the server to execute them on its behalf.
93290	99450	The server can run on the same machine as the client or on another computer on the network.
100510	107890	Both RPC clients and servers use an interface definition language file or IDL file.
107890	118130	It contains the properties of the RPC interface like definitions of structs, functions and most importantly the UUID.
118130	126950	This unique identifier is used by the server when it registers to the machine and used by the client when it looks for its server.
127950	134270	Before a client can communicate with a server, it first needs to create a binding handle.
134270	136730	It is composed of three parts.
136810	139730	The first part is the protocol sequence.
139730	144690	This determines which protocol will encapsulate the RPC communication.
144770	155470	The three most common protocols are TCP, named pipes over SMB and the advanced local procedure call or LPC for short.
155470	164150	This protocol is used to transfer messages efficiently and securely between processes running on the same machine only.
165410	171730	The second component is the network address which can be an IP address or computer name.
172250	175170	And the last part is the end point.
175190	179050	The meaning of it is different for every protocol sequence.
179050	181310	For TCP it is the port number.
181310	183910	For SMB it is the name of the pipe.
183910	188030	And for LPC it is a unique string for that server.
188090	191850	Two RPC servers cannot have the same end point.
192330	200150	The examples in this talk are based on LPC end points because that is what most of the RPC servers in Windows use.
200290	204630	But what I'm about to show you is relevant for other protocols as well.
206030	212630	When an RPC server registers itself, it can either specify an end point or not.
212750	218510	If it does, then the communication with it will be based on a well known end point.
218510	223850	The client will have a hard coded string that it knows will match the server.
223950	230210	If the server doesn't register with an end point, a unique string will be generated for it instead.
230210	232810	This is called a dynamic end point.
232810	235670	In this screen shot we can see three names.
236670	239790	The first one starts with OLE.
239830	246890	And although this is a unique string with a generated characters, it isn't the dynamic end point we are talking about.
246890	252710	These end points are related to distributed com objects and are irrelevant for this talk.
253330	259190	The second name is a well known end point that is registered by the local session manager.
260590	266530	End points that start with LRPC are dynamic and contain generated characters.
267010	274490	But the question is, if a dynamic end point is random, how does the client know who to communicate with?
274490	277550	This is where the end point mapper comes in.
278770	286850	The end point mapper or EPM maps between an interface UUID and the end points that expose it.
287050	294890	If a server decides to use a dynamic end point, it needs to make sure it can be found by its clients.
294890	298730	The way to do it is by registering to the end point mapper.
300270	308330	After the registration of the server, the client will be able to establish an RPC connection using only a UUID.
308670	313730	The EPM will connect it to the first server that registered that interface.
313730	317230	There are two important tools the EPM works by.
317230	324770	First, entries can be removed only if the original process unregisters or terminates.
324810	330570	Second, the EPM will always use the first end point registered for an interface.
330570	332970	The order cannot be modified.
333750	341050	The EPM is managed by the DLL RPC EPM map which is loaded into the service RPC SS.
341050	345230	Once it is loaded, it can be reached using multiple protocols.
345230	348310	TCP, named pipes and LPC.
348310	351350	Each one has its own known end points.
352350	358810	The end point mapper can be queried locally or remotely using tools like RPC dump from impact.
359070	363270	It behaves very much like a DNS server.
363270	366470	It resolves UUID to an end point.
366710	368730	This gave me an idea.
368830	372870	Can an attack like DNS poisoning be applied to the EPM?
373730	381530	Can we masquerade as a legitimate RPC server and have clients connect to us instead of the real one?
381610	384130	We're going to create a new attack.
384130	385870	EPM poisoning.
387550	398050	Looking back at famous RPC experts, they usually target vulnerable coding servers to achieve remote code execution or privilege escalation.
398470	405510	We're going to make a U-turn and target vulnerable code in RPC clients instead.
406610	411690	The first step to achieve our goal is to figure out how to poison the EPM.
411790	418670	Once it will forward RPC connections to us, we'll need to act like a built in legitimate service.
418670	424130	Then send a malicious response to clients that will achieve privilege escalation.
424330	428350	We're going to perform this attack without admin privileges.
428350	430790	As a medium integrity process.
431650	437170	To poison the EPM, the first thing we need to do is to register to it.
437170	441170	We can do that with the API RPC EP register.
441230	445670	But we don't want to just register any interface.
445670	448550	We need to behave like a known server.
448550	451470	And copy exactly what it does.
451470	455030	Which means registering its interface.
455550	463010	I was expecting another hard day of battling with error codes and diving into security mitigations.
463010	472370	But then I just tried to register an interface that belongs to a built in service and apparently it worked.
472370	476550	Moreover, it didn't even require admin privileges.
477690	487510	I was shocked to discover that nothing stopped me from registering built in and known interfaces that belong to core services.
487730	496770	I would expect that if Windows Defender, for example, has a unique identifier, then no other process will be able to register it.
496770	498850	But that is not the case.
499250	503130	Even though I achieved that, clients didn't connect to me.
503830	511470	I didn't receive a connection because the original service registered an end point to its interface before me.
511470	519250	When I tried registering an interface of a service that is turned off, its client connected to me instead.
519570	521550	This is crazy.
521550	524910	There are no security checks done by the EPM.
524910	531130	It connected clients to an unknown process that isn't even running with admin privileges.
532870	538070	EPM poisoning is possible and it doesn't even require elevation.
538190	543250	As far as I can tell, this attack vector has never been explored before.
543250	547050	Now, let's see how we can weaponize it.
548430	551590	At this point, we made a proof of concepts.
551590	554230	We know that the goal we set is possible.
554370	557830	Now it's time to gather data and find our candidates.
557990	565530	Our discovery proves that every RPC server that isn't launched on boots is prone to a hijack.
565710	568510	Look at how many services there are.
568650	574530	The next step is to gather lists of all the interfaces that aren't mapped to an end point.
576190	584210	Like I mentioned before, dynamic end points can be retrieved from the EPM remotely or locally using win API.
584590	589250	To be thorough, we need to also find the well-known end points.
589250	591010	Several tools do that.
591010	593470	Most notably, RPC view.
593590	602990	It scans the memory of every process, locates the module RPC RT4 and passes internal structures to list the information shown here.
604690	610430	I needed a comprehensive tool that knows how to retrieve both types of end points.
610430	613190	So I developed RPC recon.
613190	619570	The purpose of it is to find interfaces that can be registered right after the system boots.
619570	622250	Before most services are launched.
623810	628090	It is designed to be launched with a scheduled task when a user logs on.
628090	637570	It will query the EPM and scan the memory of processes to gather a list of all the interfaces that are registered early in the boot process.
638510	644210	After the first scan, it waits for several minutes until the late services starts.
644250	651110	Then it performs the same retrieval again to gather a list of all the interfaces that are registered late.
652250	655270	The last step is comparing the results.
655470	660870	The difference shows interfaces that can be registered before the original service.
661090	671270	Since this tool is used for gathering information and not for the attack itself, we'll execute it with admin permissions so it can scan the memory of elevated processes.
671790	675570	And of course, this tool is now publicly available on GitHub.
678170	682470	We'll start by executing RPC recon with the flag register.
682490	688330	This will make it create a scheduled task that will be executed with elevated privileges when we log on.
688410	692230	Then we'll restart to make sure most services aren't running.
694850	698610	The tool will scan the system twice and compare the results.
698670	704390	After the comparison is made, we'll get a list of all the interfaces that are registered late.
705690	708530	Now we have a list of potential targets.
708530	711730	There are many interfaces that we can hijack.
715280	721420	My first surprise was that I can register to the EPM with any interface I want.
721420	727040	No matter if it is critical to system functionality or belongs to a core component.
727200	736080	I developed a generic RPC server that registers many interfaces and gathers information on the clients connecting to it.
737000	744260	Then I started receiving connections from various processes on multiple interfaces.
745340	757720	And when my server showed that those processes are services running as the local system account, I was sure I'm about to achieve the easiest privilege escalation ever.
758820	768920	The most intuitive method to leverage the connection for privilege escalation is calling RPC impersonate clients and spawn a new console with our token.
768920	771500	But it failed.
771620	779260	I was able to get a new token but creating a new process with it resulted in the error bad impersonation level.
779720	782520	Apparently MSRPC is broken.
782520	785060	But not that broken.
785240	788300	There is a policy for impersonation scenarios.
788300	794180	It prevents medium integrity threads from impersonating a token with a higher integrity.
794420	799220	To understand this mechanism better, let's go over the meaning of the levels.
800060	805380	The anonymous level means the server cannot know who connected to it.
805380	808300	The identification level is what I got.
808300	812840	It lets the server query the client's privileges and security identifier.
813060	817540	It is used to check if the client is allowed to access certain resources.
817920	821380	The impersonation level is what I wished I had.
821380	826940	It lets the server perform actions on the local machine with the client's security context.
827140	834160	If the client is more privileged than the server, the server can use the impersonation for privilege escalation.
835920	841720	Another idea I had is to leverage the connection for NTLM authentication.
841780	847880	I try to use my new token to authenticate against an SMB server that belongs to me.
848020	851700	That will usually disclose the NTLM hash.
851700	854760	But again, the impersonation policy prevents it.
854760	861700	To access remote resources over the network, we need the highest impersonation level, which is delegation.
863220	866580	We hit our first obstacle in this race.
866580	869120	Time to think what is our next move.
874850	879110	At this point, I understood that I can't abuse the RPC connection.
879350	885390	But maybe I can take advantage of the functionality the RPC server offers.
885450	892210	If I masquerade as a server used for authentication, the clients will provide me with sensitive credentials.
892330	900370	Out of all the vulnerable interfaces, I looked for ones with keywords such as credentials, identity and accounts.
900370	903110	And ended up with these three interfaces.
903630	909470	The vault service, Microsoft account signing assistant and the sync host service.
909630	914830	When I launch my rogue server and use their clients, none of them connected to me.
914830	917850	This is because of another security mechanism.
918910	924690	One of the properties a binding handle can have is security quality of service.
924710	937150	If the client is expecting the server to run as anti-authority system, it can specify a security identifier and that will prevent the connection to a server running as another user.
937350	939690	This is what the RPC clients did.
939690	942070	And this is why they didn't connect to me.
943290	954970	For example, we can see that the RPC client of Microsoft account signing assistant create a security quality of service structure with the security identifier of the local system account.
954970	957970	And then applies it to the binding handle.
959190	963490	I was sure this time I will win the race.
963490	965930	But I hit another obstacle.
967810	970450	Let's have a short recap of our attempts.
970490	974950	We received RPC connections from highly privileged services.
974950	981750	But we couldn't impersonate them because of the policy that determines we can only identify who the client is.
981750	983810	But not impersonate it.
983950	988070	We saw that there are authentication services that are launched late.
988090	992930	But their clients will only connect to a server that is running as a local system account.
993230	997890	At this point, I needed to go to the pit stop and strategize.
998030	1001070	I knew the potential of EPM poisoning.
1001250	1004710	I just needed to find the right way to abuse it.
1004870	1007890	Then I had an idea.
1009250	1015250	Another way to achieve privilege escalation is performing an action we aren't allowed to do natively.
1015250	1018810	Such as writing to the system 32 directory.
1018950	1029750	I thought that if I would masquerade as a file system service, another privileged service will ask me for data or file that it will then copy somewhere.
1029890	1034630	Looking through my vulnerable interfaces list, I found a storage service.
1034630	1040430	It is implemented in the file storage.dll and it is set to delayed start.
1041710	1045550	The next step was launching my rogue server again.
1045550	1050050	But this time registering only the interface of the storage service.
1050330	1057790	I monitored the machine for RPC connections that happened naturally and gathered data on the clients of storage we see.
1057850	1062430	The first service that connected to me was Windows updates.
1062430	1069930	This is a highly privileged service in the operating system that can modify drivers and core DLL files.
1069930	1075170	And it just connected to an unknown process running with low privileges.
1075290	1078350	This security gap is just insane.
1079550	1088390	Then I got a connection from storage service which doesn't make sense because that's who I'm pretending to be.
1088550	1094590	Apparently this service uses its own RPC client to connect to itself.
1094630	1099590	But since I registered the interface first, it connected to me instead.
1100530	1112590	The last connection I got was from the delivery optimization service which is responsible for downloading updates and packages from alternative sources to make the distribution more efficient.
1113070	1118550	Something interesting about this service is that it runs as a protected process light.
1118670	1122230	This shows the impact EPM poisoning has.
1122230	1125850	And the choosing storage we see is the right path forward.
1126050	1129770	Even the most protected services will connect to us.
1131610	1138190	The way to manipulate the process is to understand what it receives as inputs and what it is used for.
1138450	1143950	Out of 36 methods that the interface exposes, only three were invoked.
1143950	1145970	All of them are undocumented.
1145970	1149330	So it is difficult to understand what they are used for.
1149390	1153690	But two out of three return an integer back to the clients.
1153690	1157250	And this is very unlikely to have a major impact.
1157350	1162110	The third method on the other hand returns an undocumented structure.
1162190	1164630	That has more potential.
1166490	1173430	We want to understand what is the definition of the structure returned by the method gate storage device info.
1173510	1179110	One way to do that is to look at functions on the client side that receive this structure.
1179330	1185430	The call stack that led to the RPC call went through a DLL called app X deployment clients.
1185570	1195070	When I disassembled it, I was surprised to see its public symbols contain a lot of information about the interface of storage service.
1196250	1201730	It had enums, variable names, basically everything I needed.
1201870	1206950	And the best part was, it revealed our struct contains a path.
1207190	1215850	At this point, all I had to do is to apply this definition on the disassembly of other clients to see what they are doing with this path.
1217530	1229350	After digging through the disassembly of all the clients, I found out that the delivery optimization service performs a few sanity checks on the path it receives that I was able to bypass.
1229390	1233550	And then it creates a directory based on that path.
1233550	1236750	We found an action we can manipulate.
1236970	1243390	Our low privilege process can return a path that will be used by a highly privileged process.
1243790	1249370	The delivery optimization service is running as a user and authority network service.
1249510	1256330	And the easiest way to exploit this vulnerability is to create a directory in the home folder of this user.
1257230	1260910	As you can see in the screen shots, it works.
1260930	1271230	We returned a network share to the C drive of the local machine to bypass the security, the sanity checks and the directory hello DEF CON 33 was created.
1271690	1273970	But that's not enough.
1274250	1276230	Let's see what more we can do.
1277550	1286390	To gain the most out of this vulnerability, we first need to understand what is this user and what it is used for.
1286670	1292590	Processes running as network service have a token with a very high integrity level.
1292590	1295550	The same as the local system accounts.
1295770	1299110	But still, there is a difference between them.
1299190	1303370	The network service is not part of the administrator's group.
1303370	1311150	It means that it doesn't have right access to most of the sensitive directories, registry keys and processes on the machine.
1311290	1319430	The purpose of this user is to have a few privileges locally, but to be able to authenticate to remote machines.
1319430	1322370	And it does that with the machine accounts.
1322470	1325210	Now let's understand what is this account.
1326770	1335250	When a computer joins an active directory domain, an account is created in the NTTS database that represents this computer.
1335610	1340370	This account can be easily identified by the dollar character at the end of its name.
1340710	1350770	Like any domain user, it has a password , group memberships and can be used to access remote, to access resources in the domain network.
1352090	1357950	The machine account is often abused in pen testing, depending on the configuration of the domain.
1358070	1364110	And logged on users cannot authenticate to remote resources with those credentials.
1364130	1368670	They are only used by the local system and network service accounts.
1368870	1372470	That is where our vulnerability comes in.
1373470	1379890	We can bypass the limitation applied on logged on users and authenticate with the machine accounts.
1379910	1387690	Previously I showed you my RPC server returned a network share of the C drive to the delivery optimization service.
1387730	1401030	If I return a network share of an external server, the delivery optimization service will authenticate against it with the machine account credentials and I'll be able to relay the NTLM authentication.
1402250	1406790	We successfully crossed the security boundary and won the race.
1408350	1410590	Time to recap our attack.
1410610	1418010	As a medium integrity process, we can create a schedule task that will be executed when the current user logs in.
1418050	1422710	At this point, most of the RPC servers haven't launched yet.
1422850	1427070	Our first step will be to register the interface of the storage service.
1427170	1434070	Then we'll trigger the delivery optimization service to send an RPC request to the storage service.
1434070	1436970	It will connect to it with a dynamic end point.
1436970	1442670	Which means it will query the EPM and get the end points that we registered.
1442750	1446930	Then it will invoke the method get storage device info.
1446930	1452050	And in return, it will receive an SMB share to a server that we launched.
1452090	1459130	The final step will be the delivery optimization service authenticating to us with the machine account credentials.
1459130	1461770	And us relaying this authentication.
1463070	1468630	This attack is done by another new tool called RPC Racer.
1468630	1470470	And it is now available.
1470550	1478650	In addition to forcing the authentication of the machine account, RPC Racer is designed to launch rogue RPC interfaces.
1478670	1481990	It will print information about the clients connecting to it.
1481990	1486430	This is helpful for researching vulnerabilities in other servers.
1486630	1490570	The vulnerability in the storage service was acknowledged by Microsoft.
1490570	1493590	And a fix was released on July 8th.
1494690	1498610	We execute our tool without admin privileges.
1498610	1500830	As a medium integrity process.
1500990	1509070	If we could relay the machine account authentication back to the computer we are running on, we would escalate our privileges.
1509170	1513130	But that is not possible due to security mitigation.
1513290	1518510	An MTLM authentication can't be relayed back to the computer that originated it.
1518510	1522570	Therefore, we need to find another server in the domain.
1522930	1531030	To understand the impact of forcing and relaying a machine account authentication, we look at the machine account of the domain controller.
1531190	1540630	If we would execute our tool as a low privilege user on the domain controller, we can use authentication for an attack called ESC 8.
1542070	1551550	ESC 8 is an attack that achieves privilege escalation by leveraging the Active Directory Certificate Service or ADCS.
1551550	1554230	This server is part of the domain.
1554230	1559590	And the certificate it generates are recognized by other computers in the network.
1559590	1567150	Also, those certificates can be used for authentication against instead of plain text credentials.
1567470	1573550	To be specific, ESC 8 targets the web enrollment feature of ADCS.
1573610	1581690	This feature allows a user to log into a web server managed by ADCS and request to generate a certificate.
1581790	1593430	What happens in ESC 8 is that the attack relays an MTLM authentication to request from the web server a certificate that represents a privileged user in the domain.
1594470	1600870	Like I said before, MTLM authentication cannot be relayed back to the same computer.
1600870	1607270	We want to use the privileges of the DC machine account, but we need another form of authentication.
1607830	1615910	The first step to achieve that will be to relay the authentication created by RPC racer to the web server of ADCS.
1616230	1621290	It will generate for us a certificate that represents the machine account of the domain controller.
1621430	1625870	This is done by the tool MTLM relay X from in packets.
1627270	1632050	We cannot authenticate anywhere across the domain with this certificate yet.
1632090	1639010	Our next step will be to request from the domain controller a ticket granting tickets or TGT.
1639150	1645170	This is a legitimate Kerberos ticket that can be used to request access to resources in the domain.
1645370	1649050	This step is done by a tool called certify.
1650550	1657510	Once we have the TGT of the domain controller machine account, we can use it to execute several attacks.
1657630	1662830	The most common one will be to dump the password hashes of all the users in the domain.
1663150	1666050	For this, we will use in packets again.
1666050	1668750	But this time the tool secrets dump.
1670070	1672530	Let's see how it all comes together.
1673390	1680570	We'll launch a rogue SMB server with MTLM relay X and tell it to relay the authentication to the ADCS.
1681070	1684970	Then we log on to the server as an unprivileged user.
1687090	1690850	As you can see, we are running as a medium integrity process.
1691150	1694010	At this point, the storage service is running.
1694110	1703230	So, we'll execute RPC racer with the IP address of the relay server and tell it to register a schedule task that will start when we log on.
1704910	1708890	Our moment to strike will be after the machine reboots.
1715460	1725220	We can see that the delivery optimization service requested a path from us and that our SMB server received the authentication and relayed it to get a certificate.
1725980	1730980	Then we'll use certify to request a TGT based on that certificate.
1731520	1737560	Once we have a TGT of the machine account, we can dump all of the domain controller secrets.
1748090	1752450	Like I said before, EPM poisoning is a real attack.
1752450	1755530	And we saw just one way to abuse it.
1755550	1757790	There are a lot more to get out of it.
1757950	1768090	We can perform many in the middle by forwarding the request we received to the original service and filtering out calls to hide our foothold on the machine.
1769470	1773750	An additional option for us is to just cause denial of service.
1773750	1780350	By registering many interfaces and denying the requests, a lot of functionalities will be disabled.
1780390	1783290	This is a much more sophisticated method.
1783310	1790970	Instead of terminating processes or spamming them with packets, we can just register the RPC interface first.
1792170	1795610	Another thing I talked about is stealing credentials.
1795810	1799110	I looked at a few services that might be exploited for that.
1799110	1801310	But there are probably more.
1802950	1806730	We exposed some serious security issues at this talk.
1806730	1809750	And there are a few lessons that should be learned from that.
1809750	1815950	The first one is that the integrity of servers should be checked in every protocol.
1816090	1826950	Just like SSL pinning verifies that the certificate is not only valid but uses a specific public key, the identity of RPC servers should be checked.
1827090	1831030	The current design of the EPM doesn't perform this verification.
1831130	1834090	Therefore, it must be done by the clients.
1835410	1841310	The second point I want to leave you with is the danger of setting services to delayed start.
1841450	1849150	Software developers of RPC servers should be aware of the implications of launching the programs late in the boot process.
1850110	1854430	Services are often set to delayed start to make the boot process faster.
1854530	1858030	But performance cannot come at the expense of security.
1858030	1864090	Any stage where untrusted code can be executed should be considered unsafe.
1865750	1869190	The patch to this vulnerability was released on July 8th.
1869190	1871850	The fix was made to the RPC clients.
1871850	1874030	Storage usage dot DLL.
1874130	1877050	It improved how the binding was made.
1877230	1882630	Instead of creating a simple binding handle, a security quality of service was applied to it.
1882630	1889890	Now, the RPC connection will be made only if the RPC server is running as a local system account.
1891330	1902530	Since the patch was made only to the RPC client of storage service, it means that there are many other clients and interfaces that are vulnerable to EPM poisoning.
1902570	1906390	So, I have a, I have some suggestions to detect it.
1906430	1912030	Security products can use hooking to monitor calls to RPC EP register.
1912030	1921890	If a process wants to register a built in known interface to the EPM and it isn't a legitimate service, it should be detected.
1923150	1928750	Another detection technique is to use event tracing for Windows or ETW.
1928870	1934550	The operating system automatically generates events for many actions that occur in the machine.
1934590	1941170	The provider named Microsoft Windows RPC logs a lot of useful information in this case.
1941170	1954270	In these events, we can see the correlation between the process ID of RPC racer, the process ID of the delivery optimization service, and the interface of the storage service that we hijacked.
1954270	1961830	We can even see the exact procedure number that was invoked, which correlates to get storage device info.
1962070	1966550	These event types can be used to detect cases of EPM poisoning.
1966710	1971890	An unknown process received an RPC connection on a known interface.
1973510	1978550	I exploited the vulnerability I found to force the authentication of the machine accounts.
1978550	1983270	But I think it could even lead to an even stronger impact.
1983450	1992570	The password return to the delivery optimization service will be used as a private folder of the service where it will look for config files.
1992670	2001810	This means that if we can point it to a directory with poisoned configs, that will affect the behavior of the service.
2001950	2006010	One of the config files is key value LKG.dat.
2006010	2008550	It contains many URLs.
2008790	2018550	Regarding future work for this research, we would gain a lot more out of this vulnerability if we could change them to download payloads to the machine.
2019750	2025250	Another interesting config file is dosvcstate.dat.
2025250	2031550	This is a standalone registry hive used to manage jobs assigned to the delivery optimization service.
2031550	2039110	There are some values that definitely catch the eye, such as CDN URL and working directory.
2039110	2046350	Creating a key with certain values might result in the service downloading files to protected directories.
2046810	2055550	And of course, the most prominent attack vector I suggest you to chase is to find more vulnerable RPC servers.
2055550	2057270	There are so many.
2057270	2059710	I just began scratching the surface.
2059910	2064390	For example, Windows Security Center is set to delayed starts.
2064390	2067110	And Windows Defender interacts with it.
2067110	2072890	Maybe it is possible to neutralize Defender by sending it back a malicious response.
2073970	2081490	To conclude this talk, I presented a serious security issue in a core component of the RPC protocol.
2081570	2089750	There are no verifications on who is registering an interface that will be used by crucial services of the operating system.
2090350	2096210	I showed you how to map the operating system to find vulnerable RPC servers.
2096210	2100550	And RPC recon is now available for you to do it by yourself.
2102170	2107650	After the target is found, I described how to analyze and exploit the clients.
2107870	2108890	Here is
2121790	2127390	the link to the repository of the tools.
2127390	2129690	Feel free to reach out and contact me.
2129690	2130670	Thank you.
