Latest / Blue Security / Windows Defender Exploit Guard
Transcript
- 0:06Welcome to the blue security podcast, a weekly podcast for
- 0:10information security Defenders, where we bring you two sessions
- 0:13on best practices, tools and implementation for Enterprise
- 0:17security. Now here are your hosts for
- 0:19today's show, Andy jaw, and Adam Brewer.
- 0:21Welcome to this week's episode of the blue security podcast on
- 0:25Andy your host. I'm Adam your co-host.
- 0:27So this week there was a ability that had a lot of chatter on the
- 0:33infosec Twitter. It is cve, 2022, 30 1990,
- 0:39Microsoft, support, diagnostic, tool vulnerability, and it was
- 0:43dubbed Felina before it was given a cve.
- 0:46Now, Adam and I are full-time, Microsoft employee.
- 0:49So we do have some talking points but the nsrc blog on this
- 0:55is actually very very good. It goes through kind of what it
- 0:58is and what some of them Gatien's are.
- 1:00So the vulnerability is something with the m, s DT URL
- 1:05protocol where the URL can grant remote execution code without
- 1:12user interaction, and if the file that it, the code is
- 1:16executing from is saved in Rich, Text format, or RTF, the Windows
- 1:21Explorer preview pane can execute that without user
- 1:24interaction. Now, if it's rendered within
- 1:27office applications then If you're using it in protected
- 1:31mode or office Defender application guard, those will
- 1:35block it. But the concern is this non
- 1:38user, interaction remote code execution.
- 1:41So the nsrc blog says, you should disable the m s DT URL
- 1:46protocol, which does prevent some trouble shooters from being
- 1:48launched. And that could be an issue in
- 1:51the long-term, but probably not in the short term, but the
- 1:54troubleshooters can still be accessed through the get help
- 1:56application within windows. And to do this, you can delete
- 1:59the Keys, of course, we'll put the blog in the show notes and
- 2:03there's a detail walkthrough of which registry keys that you
- 2:06need to delete in order to remove the URL protocol.
- 2:10It also tells you that you should back up the register key
- 2:13so that you can restore it later on.
- 2:14Another thing that you should do is disable the preview pane or
- 2:19Windows Explorer, or you can disable Windows search.
- 2:22So, one of the things that the cybercriminals are trying to do
- 2:25is use like a phishing campaign that will automatically launch
- 2:29Windows search. When they open up the document
- 2:31and then it will launch into the malware through the preview
- 2:33pane. So, you can either disable
- 2:35Windows search or disable the preview pane in Explorer to get
- 2:38rid of it. And, of course, like I mentioned
- 2:40protective you, an application guard for office, does protect
- 2:43against this, if it's opened up within those applications, but
- 2:47if it's not, and it could execute AV detections and
- 2:50signatures have been updated to detect it EDR.
- 2:53Detections have also been updated to include suspicious
- 2:56behavior, for office applications and suspicious
- 2:59behavior for MSD T, .xz, which is what gets executed to launch.
- 3:04This URL protocol. And finally, you can implement
- 3:07the attack surface reduction rule block.
- 3:10All office applications from creating child processes.
- 3:13So, that's a good summary of all the medications you can take.
- 3:16And hopefully you've already implemented them, but if you
- 3:18haven't, you're you go. My thought on this was I have a
- 3:21beef with how this was reported, and my perception was that,
- 3:24there is a former Microsoft FTE, who is his made it really clear
- 3:29that he is an I grind for some reason, reported this, like out,
- 3:32just very publicly on Twitter and was kind of like yeah, I
- 3:35tried to report it and they didn't believe me.
- 3:36So here it is. Public disclosure, like I've
- 3:38talked on this show many times. That while the goal should be
- 3:41perfect code, perfectly secure environments and perfectly
- 3:45secure os's and applications. That is an unreachable goal.
- 3:48So I believe extremely strongly improper disclosure disclosing
- 3:53something privately to the company, and allowing them a
- 3:57valid length of time to patch it before.
- 3:59It's Papa Disclosed and just because they say no we don't
- 4:02think this is an issue. The first time you don't go.
- 4:04Oh well, forget you guys and by the way I hate your economic
- 4:06model. So I'm just going to announce
- 4:08this publicly and maybe I'm getting some of the details
- 4:10wrong. But that's my perception of how
- 4:12this went down and I just want to say and I don't know if we
- 4:15have a ton of security researchers listening to The
- 4:17Show by any means, but if that is a business, you go into.
- 4:20You don't get to choose. Like, I'm going to not properly
- 4:22disclose this, because I used to work for that company.
- 4:25I don't like them, or I don't like that companies economic
- 4:27model. I don't like how they make
- 4:29money. I don't like What they choose to
- 4:30sell versus what they choose to bundle, or the cost of their
- 4:33products, that's not how it works, right?
- 4:35And so it's really important to me and I just kind of wanted to
- 4:38use my tiny little platform of the world to vent here that I
- 4:42got kind of fired up about this and again like stuff.
- 4:45Like this is gonna happen in Mac OS and Android in Windows, but
- 4:50proper disclosure helps keep everyone safe as long as
- 4:53possible. So I'm just, I don't like the
- 4:55way this all went down there. Mitigations are there?
- 4:58The nsrc? Some great resources on how to
- 5:01mitigate this your EDR, vendor your AV vendor probably has
- 5:04detections now. So for the most part, we're in
- 5:06pretty good shape here on mitigating, this they'll
- 5:08eventually be a patch to Windows, that will eliminate the
- 5:12basically, the sanitization that's not occurring with that
- 5:14URL. Handler and Life, Will Go On but
- 5:16just kind of wanted to get on my soapbox about that too.
- 5:18Let's move on to the zero patch. Andy.
- 5:20Yeah. So as you said Adam there isn't
- 5:23a patch for it yet and there are medications out there and
- 5:26detections Microsoft is probably racing to pass.
- 5:29This now, but for the moment, if you want to patch it, there is a
- 5:34legitimate Place although it's unofficial place called zero
- 5:37patch and they've been releasing micro patches for a long time.
- 5:41They released a patch for this particular vulnerability, it is
- 5:45free but you do need an account with them and it does require an
- 5:49agent in order to install their patch.
- 5:51And so if that's of interest and you think it's an issue and
- 5:56you're not able to scope some of these medications right away?
- 5:59Zero Josh does have an unofficial fixed for it already.
- 6:02But on to the main topic for tonight, this is something that
- 6:05is part of the windows defense that we haven't actually talked
- 6:09about yet. We've talked about some of it
- 6:11way, way back in our ransomware episodes.
- 6:13But Windows Defender exploit guard is part of a very
- 6:18comprehensive device, hardening solution that you can Implement
- 6:22that is included in Windows the ASR rules or attack surface
- 6:26reduction rules that was part of this fix is Art of Windows.
- 6:30Defender, X, Y card. First off, let's talk about
- 6:32licensing. You do need to be on Windows
- 6:35Enterprise or edu in order to use this.
- 6:38Most of the licensing, in the documentation calls out for
- 6:41Defender for endpoint plan to or plan one or Windows Enterprise
- 6:46Windows edu. So make sure that you have the
- 6:49correct licensing because the security features are part of
- 6:52what makes enterprise and edu more secure than Windows.
- 6:56Pro Defender exploit guard is made up of several components.
- 7:00And they may not even use that particular term anymore.
- 7:02And marketing I still use it because that's what we used to
- 7:06call it but it's made up of several components like
- 7:08hardware-based isolation for Microsoft Edge which we talked
- 7:11about in the application guard container so container Rising
- 7:15Microsoft Edge application control which was Windows
- 7:18Defender, application control which we also had a show doing a
- 7:21deep dive on that. The other for control folder
- 7:24Access Network, protection exploit protection, attack,
- 7:28surface reduction rules Those are the four that we're going to
- 7:31do a deep dive on tonight and then finally Windows Defender
- 7:34Firewall, which we will have an episode on.
- 7:36Just not going to do a deep dive on tonight.
- 7:38So the for that, we're going to go over.
- 7:40We'll start with the ASR rules because that is very prevalent
- 7:44And Timely for this exploit out there.
- 7:46So, the ASR rules, you do need to be on Server, 2012 R2, or
- 7:52Windows 10, 17, 09 or higher, and that's for the majority of
- 7:55these features as well. So that's kind of all up attack
- 7:58surface rules. Certain software behaviors like
- 8:01launching executables file scripts that are attempting to
- 8:05download a run files off. He skated scripts suspicious
- 8:09scripts apps that don't normally initiate during normal
- 8:12day-to-day work. And so there's a ton of
- 8:14different rules. I highly highly recommend that
- 8:16you look at the documentation that we're going to link in the
- 8:19show notes because it has a list of all the rules and what it's
- 8:23there to do or help you prevent, you can run any of these rules
- 8:27and audit mode. You can deploy it.
- 8:29Using Powershell group policy, or in tune, there are a couple
- 8:33of caveats. So because Windows attack
- 8:37surface reduction rules, use Defender AV for enforcement,
- 8:41Windows Defender AV must be enabled in used as the primary
- 8:45AV in active mode. So that does mean that if you're
- 8:49using a third-party EDR or AV solution and that's doing the
- 8:53enforcement for you, then you won't be able to use most if not
- 8:57all of the ASR rules. Additionally, you want to have
- 9:01cloud-enabled protection enabled, which I would recommend
- 9:04to do that. Anyways, even if you're not
- 9:05using the ASR rules and then if you have a bunch of developers,
- 9:09some of the rules, don't really work that.
- 9:11Well, if you have a lot of unsigned, internally developed
- 9:14application or scripts that are in high use, it is a lot more
- 9:18difficult to deploy a Sr rules if code signing is not enforced.
- 9:23So, that's another caveat. But again, you can run all this
- 9:25in audit mode and then inspect the events and see how many Now
- 9:29things are getting blocked, you can plan your deployment you
- 9:32know very similar to any type of roll out project right scope
- 9:36which rules you want put it in them audit mode.
- 9:38Assess, what is getting blocked? Put in some exclusions and then
- 9:42move on to enforce them. Some example, the rules are like
- 9:45what we talked about block all office applications from
- 9:47creating child processes, block credential stealing from
- 9:50Windows, local security Authority, subsystem or else
- 9:54ass. And you may be like, hey doesn't
- 9:56Windows Defender credential guard do that.
- 9:58Well some organizations. Can't Implement Windows
- 10:01Defender, credential guard. Do to maybe some compatibility
- 10:05issues. You can use the ASR rules to do
- 10:08the same thing but again, remember the some of the
- 10:10caveats, with the ASR rules, but you can do the same thing.
- 10:13If Defender credential guard is incompatible with your
- 10:16environment, other things like block executable content from
- 10:19email clients and web males like .x e, dot DL Ells, script files
- 10:24like Powershell scripts Visual Basic script JavaScript.
- 10:28Like these are some basic things.
- 10:29That like, you're looking at it and just like, this makes sense
- 10:32for me to implement some of these areas are rules.
- 10:34So, take a look at the rules are highly recommend, if you are
- 10:38able to and meet some of the prerequisites, to start testing
- 10:42some of these and rolling them out.
- 10:43What was the tool in Windows? 7, that was the equivalent to
- 10:47this. Do you remember what that was
- 10:48called? Yeah.
- 10:49So that is actually part of exploit protection, which we
- 10:52will talk about, but it is cement.
- 10:54Yes, that's a mitigation experience.
- 10:56Yes, yes. Okay.
- 10:57That's what I was trying to think of.
- 10:58So, okay. That's more of the expert.
- 10:59And stuff got it. Correct.
- 11:01I just remember the early days of Windows 10, you know, and
- 11:04people call that different things are pronounced in
- 11:06different ways. Like he's I think you said, 'I
- 11:07met some people called it Emmett more, like the name, anyhow, I
- 11:10just was trying to map that here.
- 11:12So this is I mean attack surface reduction.
- 11:14There were, I think a little bit of this in Windows 7.
- 11:16But obviously way more robust and Windows 10 and and windows
- 11:1911 and really, really, really powerful stuff here.
- 11:23I think you mentioned, there's the ability to run a lot of this
- 11:24in audit mode initially so you can get a feel for like a if we
- 11:27turn all his on how How bad are we going to get blown up on this
- 11:31stuff? Do we have something internally?
- 11:32That's going to light this up and we might want to manage that
- 11:35at first. So I think there's options to
- 11:37get there. But we talk all the time on the
- 11:40show about like doing the basics.
- 11:41I mean, like we Bang the Drum of this all the time.
- 11:43Just do the basics first, do the basics.
- 11:45Like this is the basics right here, so certainly there is
- 11:48effort involved in configuration and tuning of these things.
- 11:52But this is work worth doing. Because if you had some of these
- 11:56ASR rolls turned on, even when this new Embassy DT thing came
- 11:59out, If you had turned on like prevent office apps from
- 12:02creating child processes, you are already somewhat protected,
- 12:04right? Yeah.
- 12:05So, I mean why should office apps be able to spawn child
- 12:08processes? Like I don't want them to so
- 12:10this is a natural you know, a great real world example of you
- 12:14know for orgs that did their homework.
- 12:15They weren't sweating a whole lot earlier in the week.
- 12:17So the next one that we're going to talk about is control folder
- 12:20access and this was the one that we had talked about during the
- 12:24ransomware episodes because this is a specific feature to
- 12:28mitigate Ence ransomware. So what control folder access
- 12:31does is that it looks at folders that are trusted and then only
- 12:35allows trusted apps which are on another list to make changes to
- 12:39those protected folders. So if it's not on the list of
- 12:43applications that is trusted, then you're not able to make
- 12:46changes. So for example, if I have my
- 12:48documents folder and that's a protected folder, and I have
- 12:51word as a trusted application, word will be able to make
- 12:55changes within that fault. But if I have some Conte
- 12:58ransomware, so Suspicious process executable and it's not
- 13:02on the trusted apps list, then it won't be able to make changes
- 13:04within that folder or encrypted. So, the Windows systems are
- 13:09protected by default and you can't remove them from the list
- 13:12again, you can run this in audit mode.
- 13:14The common protective folders are like the documents, the
- 13:18pictures, the videos music favorites, you can add more
- 13:22folders. If you wanted to, this is
- 13:24something that does also require tuning.
- 13:26So again, you can run this in audit mode.
- 13:28You do need. To have Defender AV real-time
- 13:31protection turned on. So that again, this is one of
- 13:33those features that probably need Defender AV to be your
- 13:37primary antivirus agent, you can deploy through GPO into inner
- 13:40power shell. So very powerful thing, I have
- 13:43tested this before. I will tell you it is one of the
- 13:46more invasive features. So I wouldn't deploy this to
- 13:50like, all of your users. It could be very productivity
- 13:55inhibiting but for high-risk or Cool systems.
- 14:00This would be something that I would absolutely take the time
- 14:03to scope out, right. This is one of those things that
- 14:05Adam and I talked about where it may not make sense for all of
- 14:08your users, but it definitely will make sense for some.
- 14:11Yeah, totally agree. It's one of those things where
- 14:14you may have higher risk users or you may have users that have
- 14:17simpler needs and have more predictable, use cases and it
- 14:20would be easier to implement like opposite ends of the
- 14:22spectrum. I have these users that use an
- 14:24extremely lockdown set of apps. There are call center.
- 14:27They need these three apps and that's it.
- 14:29Okay? Control folder access might be
- 14:31for you. And that use case because much
- 14:33simpler to implement in somebody who might use any random app or
- 14:35on the opposite end, I want to build some sort of hardened
- 14:39workstation, you know like a paw or a saw my want to use
- 14:43something like this and that scenario.
- 14:44So I think still any time you reduce attack surface, it's
- 14:48worthwhile. Just because this doesn't apply
- 14:50to all use cases. Doesn't mean it's not worth
- 14:52doing the third. One is exploit protection, which
- 14:55we kind of alluded to when Adam was asking about Emmett the
- 14:58enhancement. Experience toolkit.
- 15:00And if you're familiar with Windows 7 and Windows 8, this
- 15:03was like an add-on thing that you could do to harden your
- 15:07systems. There are some examples of
- 15:09policies like arbitrary code guard block untrusted fonts
- 15:14validate API invocation. There's a lot of different ones
- 15:18this is more almost like more system level or kernel-level
- 15:22protections whereas I would say the base our rules are more of
- 15:26on the application layer but also worth looking at NG at you
- 15:30can run these in auto mode as well.
- 15:32You can actually enable these locally Through The Window
- 15:34Security application or again through in tune.
- 15:37This one can be deployed through SCCM or Microsoft and point.
- 15:41Configuration manager can also again be done through group
- 15:43policy or Powershell. So worth looking at, if you're
- 15:45familiar with Emmet, you can actually import some of those
- 15:49rules from Emmett into X by guard directly through an XML
- 15:53file. And then the final one is
- 15:55Network protection. And so what network protection
- 15:58does is it Bands on smartscreen smartscreen is meant for web
- 16:02pages and downloading malicious files.
- 16:04So if you've enabled this, which again, I highly do recommend
- 16:07that you do because it's a built-in feature and it's based
- 16:09off of reputation. So if it's see something, it can
- 16:12just pop up and users can usually override them as well,
- 16:15if you have a more lenient policy, but this, expands on it,
- 16:18where it blocks all outbound HTTP and https, traffic that
- 16:22connects to low reputation sources based on domain or host
- 16:25names. So, it extends that web
- 16:27protection to the operating system Level right?
- 16:30And it's all reputation based. So it does work off of the
- 16:34threat intelligence, that Microsoft provides but there is
- 16:37a way to submit false positives or false negatives.
- 16:41And then of course you can add your own exclusions.
- 16:44If you need to if something pops up and you don't have time and
- 16:47you need to do it, you can add an exclusion again.
- 16:49You can run it in audit mode. Just like the rest of them.
- 16:52You can review the network protection events in the, The
- 16:54Event Viewer, just like with all these other features and then
- 16:57deploy it again, very easily again through Powershell InTune
- 17:01GPO or SCCM. That's all of the features for
- 17:05Defender exploit card that we wanted to talk about tonight.
- 17:08Again, there is one other one which is the Defender Firewall,
- 17:11which it's a bigger topic. It is a bigger topic and we'll
- 17:15do a deep dive on that in one of our later episodes.
- 17:18But this is something that is built in with Windows.
- 17:21For most of you who might be listening who our Enterprise
- 17:24customers, if you're using Windows 10 and Enterprise or
- 17:26Windows 11, Enterprise or edu versions of Them or servers, you
- 17:31know these are all built in to those operating systems and can
- 17:34be configured. I will say a lot of them are a
- 17:37little bit more heavy-handed so definitely do your testing, do
- 17:41your audit but I think they are definitely worth it.
- 17:43Yeah. Absolutely.
- 17:44I mean it's built into the OS. They're incredibly powerful.
- 17:48We gave a real world example tonight on leading the show with
- 17:51kind of the latest, you know, security story of the week and
- 17:55how had you done some of these attack surface reduction rules,
- 17:58you are already pretty. All protected.
- 18:00So just a great example on how doing a little bit of homework
- 18:04ahead of time pays dividends later.
- 18:06So this is really nice because it ties in with all the other
- 18:08shows we've done on the security features built into Windows.
- 18:11We've done a lot of those just because again people don't know
- 18:13about them and so if you if you like the content from tonight if
- 18:16you're like oh this was cool to learn about ASR and exploit
- 18:20protection and network protection then go back and
- 18:22check out our catalog because we've done other shows on things
- 18:24like Windows Defender, application guard, Windows
- 18:27Defender, credential guard and some These other security
- 18:30features that are built into the operating system that you may
- 18:33already own and maybe in your environment trivial to deploy or
- 18:38relatively straightforward to deploy for some orgs deploying
- 18:40credential guard doesn't have to be a huge deal, you know, as an
- 18:43example. So if you like tonight, go check
- 18:45out some of those other ones too because there's a lot there
- 18:48built in the windows OS. And I will say, before I came to
- 18:50Microsoft, I didn't know about any of this stuff either.
- 18:52Like I was shocked at how much security capability is built
- 18:56into the OS that you don't need to go procure, anything else for
- 18:59Work and can really, really, really help you harden your
- 19:01environment but do so in a way that's not negatively impactful.
- 19:05Yeah, I read something on Twitter where this person was
- 19:09saying, you know, Windows is actually one of the most secure
- 19:12operating systems out there because we've invested so much
- 19:16into the security of it. What happens is that there's all
- 19:20these things that are there and not everybody turns them on.
- 19:23And that's just part of being, you know, in a large
- 19:25organization where we have to try to cater to all the
- 19:28different kind of Tumors that are out there, right?
- 19:30And so there's organizations that may need this feature, but
- 19:34then there's other organizations that are like, yeah, we don't
- 19:36really need it or too much to deploy or doesn't work in our
- 19:39environment. And so, they're, they're part of
- 19:41what was the security story for Windows 11 was, we were turning
- 19:45on some of these by default and that was new, right?
- 19:48Whereas right now in Windows 10 if you're still on Windows 10
- 19:51these are all optional you can turn them on but then in Windows
- 19:5311, some of these features or getting turned on just by
- 19:57default, right? If you've heard the term, likes
- 19:59it. Shared core PC, what?
- 20:01That means is a lot of like the hypervisor base security
- 20:04controls, and windows are enabled by default.
- 20:06That's how it ships out of the box.
- 20:08You turn it on. It's already configured that
- 20:09way. And that's where, you know, we
- 20:11could get out of real slippery slope here and we say that's why
- 20:14you want to do things like autopilot and you want to use
- 20:17that known good OS. That's already configured in a
- 20:20hardened state by the OEM and just layer in your security
- 20:24controls in your apps on top of it.
- 20:25But maybe that's another story for another time but it's
- 20:28interesting how it All ties together.
- 20:30And I think your point is sound that, you know, Windows is used
- 20:32on over a billion devices and each org is going to have
- 20:36different methodologies for deployment.
- 20:38Different security, standards set and enforced in different
- 20:41methods of doing those. But if you do things the right
- 20:44way and you really start with a fundamental operating system in
- 20:48use the native controls to harden it, you can get to a
- 20:51very, very secure State. Now, you know, the bad guys are
- 20:54always trying. So we got to stay one step
- 20:56ahead, but this stuff you can deploy here.
- 20:58It's good stuff. So check it out and that's our
- 21:00show for this week. Thanks for watching and
- 21:02listening. As always, our contact
- 21:03information will be in the show notes.
- 21:05If you guys have any questions or topics you want to talk
- 21:07about, thanks, and we'll talk to you next week.
- 21:09Thank you for listening to the blue security podcast.
- 21:12Please check out the show notes. Catch up on episodes, you may
- 21:14have missed and subscribe so you don't miss any future episodes.
- 21:18Find Andy, on Twitter at age 0, 0, and Adam at AJ Brewer.
- 21:23See you in our next episode