Latest / Blue Security / Windows Defender Application Guard
Transcript
- 0:00Welcome 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 the blue security podcast.
- 0:23I'm Andy your host and I'm Adam your co-host.
- 0:26We are bringing you another episode today in our Our Windows
- 0:31security Series. Today, we're going to be talking
- 0:33about Windows Defender application guard.
- 0:35Now we've touched on this before in previous episodes, but this
- 0:39is one of my favorite Windows security features and it's not
- 0:42something that many people deploy at all, is something that
- 0:45I actually use my personal machines and we'll go through
- 0:48how it's deployed and different methods of deployment.
- 0:51But it is great for Information, Security Professionals, and to
- 0:54harden up your defenses at an Enterprise company.
- 0:57So, there's actually now two versions Of Windows Defender,
- 1:02application card, it originally was on edge and then about a
- 1:06year ago I think Adam is that correct?
- 1:09It came out for office and so on edge, what it does is it opens
- 1:14up that isolated container that we talked about that uses the
- 1:17hyper-v. If you refer back to our other
- 1:20episode on credential guard we did a deep dive on how that
- 1:24container the defender system Guard works and how that
- 1:28isolates certain Equal processes from the operating system.
- 1:32And so this uses that same feature to do the same thing
- 1:36within the browser itself. So for Edge, it opens up a
- 1:39different containerized version of Edge.
- 1:42And then for office, it does the same thing where if you launch a
- 1:46file from an untrusted Source, it will then open up word,
- 1:51PowerPoint and Excel. And now just recently also teams
- 1:56files within an isolated hyper-v container and that Is that
- 2:00anything? That's malicious will stay in
- 2:02that container and won't go into your host device.
- 2:06So, again, we talked about how the hardware isolation Works in
- 2:09our credential guard, it is at the kernel level.
- 2:12Those processes get separated out into a Defender system guard
- 2:16and for credential card it's all those different Kerberos tickets
- 2:19that get passed back and forth. Before application guard, it
- 2:23runs a containerized version of that application on top of the
- 2:27windows platform services. So there's a lot of Different
- 2:30ways that you can deploy application card or use
- 2:33application card. I'll go through my personal way
- 2:37of doing it and add them, if you want to touch on Enterprise
- 2:39devices and BYOD for our Enterprise Defenders.
- 2:43But for personal devices, this is great.
- 2:44And you can do this for either your own personal device, or
- 2:48your Enterprise device. That's just issued to you.
- 2:50There's something called a standalone configuration and
- 2:53configuring. It is done several different
- 2:55ways. You can go through the control
- 2:57panel and add the feature. You can run a Powershell You can
- 3:00do it through GPO but for Standalone, the best way to do
- 3:03it is just to add the feature. Go into Windows feature and add
- 3:06Windows Defender, credential guard.
- 3:08Sometimes it does require a reboot but that is just stand
- 3:11alone. There's no policies behind it
- 3:13and then you can configure your own policies within your
- 3:15browser. And when you launch your
- 3:17browser, the little radio buttons up in the upper
- 3:19right-hand corner, when you have it enabled, like the settings
- 3:22for wedge, there will be something called new application
- 3:25guard window. And when you launch that, you'll
- 3:27see that it looks a little bit different and you can configure
- 3:29different. Aunt policies on your own.
- 3:31Like if you want to cut and paste, or if you want to be able
- 3:33to download from the container into your host which generally
- 3:37I'd leave off. So, I use this a lot as infosec
- 3:41just in general where if I have a file or a link that gets sent
- 3:45to me and I'm really not sure if I want to click on this, I can
- 3:48open up a application guard window and launched it in there
- 3:52and I know that that is completely isolated.
- 3:54Yeah, those are great, use cases for personal devices and the
- 3:57Microsoft documentation calls out there use This of course for
- 4:00Enterprise devices but you might not think of this but also
- 4:04valuable use cases for BYOD devices.
- 4:07That might be brought into use for work scenarios and it's
- 4:10worth pointing out to if you heard Andy kind of describe this
- 4:13at the top of the show and you were thinking about, okay, well
- 4:16Microsoft Edge kind of went through a pretty big transition,
- 4:19a couple of years ago where it went from a Microsoft developed
- 4:23and managed HTML rendering engine to being built on top of
- 4:26the chromium open source. Project are there any
- 4:28differences to know about Out the ability to use application
- 4:31guard with that. And the answer is, it works with
- 4:33both of them. So it was originally created on
- 4:36that original Edge that shipped with Windows 10 but it has been
- 4:38completely ported and is supported on the current modern
- 4:42chromium-based, Microsoft edge browser as well.
- 4:44So in other words, don't sweat the details here, whatever
- 4:47you've got is going to work, although the chromium Edge is
- 4:49the only supported browser anyway, so you should be using
- 4:52that one if you're concerned about infosec.
- 4:53So for a Enterprise device or even a BYOD device, you're going
- 4:58to be able to push policy through Microsoft.
- 4:59Point manager through that InTune capability.
- 5:02But there's also ability to do this through any third-party MDM
- 5:05through the csps that are part of Windows 10.
- 5:08And of course, there's a lot of group policy, you can set as
- 5:10well to also implement the various settings for these
- 5:13tools. So, whatever kind of management
- 5:15plane you have on the device, you're going to be able to use
- 5:18with these capabilities. Just use the most modern one
- 5:21available to you. If you have co-management setup
- 5:23then use in tune, it's going to be the easiest way.
- 5:26If you're not there yet then you know gpos and option or if you
- 5:29have a third party. MDM then you see SP whatever is
- 5:31going to work for, you don't really get hung up on the
- 5:33configuration detail. But that's we're going to start
- 5:36setting some of the things that I think and he's going to talk
- 5:38about in a moment. But things like, how do we
- 5:40recognize when we're browsing to say a corporate site versus a
- 5:44untrusted site and when should we fire up that containerized
- 5:47instance of edge in what scenarios?
- 5:49And then I think Andy, you already mentioned a little bit
- 5:51of this but you'll probably go in a bit more detail.
- 5:53You can choose exactly. How hardened is that experience.
- 5:56Do I allow you to use Graphics drivers?
- 5:59Do I allow you? Copy and paste out of it.
- 6:01Do I allow you to pull files outside of it?
- 6:02Of how isolated do you want to get here if you want it?
- 6:05Super lock down that certainly achievable.
- 6:07If you want it just to really kind of prevent like in memory
- 6:09attacks or something like that, then you might not need all
- 6:12these hardening controls. So any do you want to kind of
- 6:14get into the actual details of deployment?
- 6:17But wait, before we do, maybe we should talk about requirements.
- 6:19Yeah. So there are some requirements
- 6:21and most of the time in a modern Enterprise environment.
- 6:25You already have these taken care of.
- 6:26But for Hardware requirements, it's worth mentioning that You
- 6:30do need a 64-bit computer with at least four logical cores
- 6:33capable of CPU virtualization need at least 8 gigs of memory
- 6:37and then recommended five gigs of hard drive space for software
- 6:40requirements. You did hear that.
- 6:42I use it on my personal devices and that's because I do have
- 6:44Windows 10 Pro and that is something that is required.
- 6:47So you do need to have at least Windows 10 Pro edu or Enterprise
- 6:51Edition 1809 or higher for Edge obviously you need to have Edge
- 6:56and as Adam mentioned the most recent Ported version is the
- 7:00chromium based version of Edge and then you do need to have at
- 7:03least one way of managing it if you're going to manage it and a
- 7:07mention all of them in tune Microsoft and point,
- 7:10configuration manager, or GPO. So you can do it with any of
- 7:13those methods or another MDM service provider that you might
- 7:18have to be able to push those policies out for application
- 7:22guard for office. This does require a separate
- 7:25licensing as well for office. So, in the Enterprise Sighs
- 7:30licensing, you do need security, E5, or em?
- 7:33365 P 5. So those are the two screws that
- 7:36are required for application. Run for office before Edge, you
- 7:39just need to have Windows 10 Pro and that's the base level.
- 7:42So when it comes to deploying obviously for Standalone, we
- 7:46talked about that. You can just go to the control
- 7:49panel, add the feature, and then you just manage it on your own
- 7:51within your own system. If you want to manage it as an
- 7:54Enterprise, you have to Define corporate boundaries by
- 7:57explicitly adding trusted It's so there's a setting both within
- 8:02in tune and within GPO, where you can define those domains as
- 8:06trusted. And then when your browser
- 8:09requests, a domain that is not in the trusted site, it will
- 8:13open it up within application guard.
- 8:16Automatically, this feature for Windows is turned off by
- 8:19default, so you do need to actually turn it on before you
- 8:23start deploying any type of policies in the settings
- 8:26themselves, if you're familiar with GPO, the first thing that,
- 8:29You need to do is to set up Network isolation, which is
- 8:33those trusted resources. You can either do it by IP range
- 8:36or you can do it by domains and those are located in the
- 8:39administrative templates under Network.
- 8:41So there's two of them that are important to note here.
- 8:44One of them is Enterprise resources, domains that are
- 8:48hosted in the cloud and domains categorized as both work and
- 8:51personal. So in both of those gpos, those
- 8:54are ones that will be trusted, so to speak by Edge and anything
- 8:59outside of those. Those would be considered on
- 9:01trusted the one that's categorized work and personal.
- 9:04That's kind of like a neutral domain.
- 9:06And then the enterprise resource domains hosted in the cloud.
- 9:09Those are work domains. So, any domains that you want to
- 9:11add to those would be considered trusted and would open up in the
- 9:14regular version of edge. Anything outside of that would
- 9:17be opened up in application guard.
- 9:19And then, of course, there is the GPO for turning it on which
- 9:23is under administrative templates, Windows components,
- 9:25Microsoft, Defender, application card and the GPO is called turn
- 9:28on Microsoft Defender. Application card in managed
- 9:31mode. So there's also an extension
- 9:34here. That's kind of interesting.
- 9:35If you don't standardized on Microsoft Edge, as your
- 9:39corporate browser, which by the way, I'd love you to take a
- 9:42second. Look, we think there's a lot of
- 9:43benefits there, and I think we've talked about those in our
- 9:45brushes security episode. But if you're not, let's say
- 9:47using Chrome or Firefox. There's extensions available to
- 9:50tie into this technology. And what they do is should say
- 9:54what they don't do is isolate like the Chrome browser or the
- 9:57Firefox browser, but instead, Help you so that your users can
- 10:01access their normal corporate web pages in those browsers as
- 10:04normal. So you keep any of your
- 10:06Enterprise apps in the browser you intend but again for those
- 10:10untrusted sites, untrusted scenarios, it can kick those out
- 10:13to that isolated edge browser just for those purposes.
- 10:16So if a user is say, in a call center and they're using their
- 10:19call center web page, that's going to come up in Chrome like
- 10:22you intend, but if they're trying to go to their Gmail
- 10:24account, or something, that might kick them out to the
- 10:27isolated Defender application card edge browser.
- 10:29And So those are available. Those extensions, are they in
- 10:32the Microsoft store and your? Where do I get those extensions?
- 10:35So the extensions themselves are in the respective browser
- 10:38stores, okay? And then you do need a companion
- 10:41app in the Microsoft store for business that goes along with
- 10:45it. And, you know, Adam you
- 10:46mentioned some of the policies that you can manage and I'll
- 10:49just kind of give you some examples of policies Once you
- 10:53turn it on. There are a lot of different
- 10:54settings. For example, you can configure
- 10:56whether or not you want to be able to print from the
- 10:58container. Configure whether or not you
- 11:01want clipboard functionality, that might be useful.
- 11:04You can also configure persistence.
- 11:06Do you want application guard to launch a clean version with no
- 11:10cookies and no sites remembered, or do you want it to be
- 11:12persistent? You can also, of course, allow
- 11:15files, to be downloaded to the host operating system at a
- 11:18mentioned, Hardware acceleration for video card drivers.
- 11:22You can also allow or disallow the camera and microphone access
- 11:26from application guard. There's a whole list of these
- 11:29that you can. Can go through and configure
- 11:32whether or not you want these settings to be enabled.
- 11:34It's the same thing on Standalone versus Enterprise
- 11:36manage. The only difference is you're
- 11:38configuring on your own versus, pushing it all through policy.
- 11:40So, as you talk through that, what kind of jumps in my mind
- 11:43here is I know as Security Professionals.
- 11:45We obviously want to get as big of a win as possible.
- 11:49If we could deploy this enterprise-wide, we would love
- 11:52to do that. And I think there's going to be
- 11:54scenarios where that's possible and sinners were that's going to
- 11:57be more challenging but what? Interested in with hearing about
- 12:01all these different settings and configuration you can do.
- 12:03It sounds like say you have a bunch of kiosk devices or
- 12:07devices that are publicly accessible, man, turn all this
- 12:10on and Harden the heck out of it and use this all of the time.
- 12:13I think that'd be great. It's going to severely restrict
- 12:16your attack surface on that device.
- 12:18And that's a huge win. And probably very little
- 12:20downside because like it's a kiosk device, if that's like
- 12:23doesn't work. Well, you know, it's not
- 12:24supposed to for your rank and files like, you know, daily
- 12:27carry devices. You might have a Changing time,
- 12:30shoving out. All of their untrusted sites to
- 12:32this instance, if you are starting with a clean every
- 12:35time, if you're not allowing them to print copy paste,
- 12:38download files, Etc. But it still could be a more
- 12:40meaningful security benefit than nothing because there is still
- 12:44isolation happening. In terms of like a zero-day that
- 12:47might be able to break out and execute code or read memory like
- 12:51okay it can execute code in that isolated instance it can read
- 12:54memory and that isolated instance there's nothing
- 12:56interesting there. So there's still a security win
- 12:59even if you Allow all of those kind of holes to be poked
- 13:02essentially between the regular instance of the OS and this
- 13:05isolated instance, that's still a win.
- 13:07So I think you can use these security controls and obviously
- 13:10turn the screws as tight as you can and buy it even with a lot
- 13:13of these kind of in a very lenient mode, you still have
- 13:16benefits of any zero-day attack on a browser is going to have a
- 13:20very restricted blast radius because there's just not a lot.
- 13:23They can get to since its living in that isolated instance.
- 13:26And if you follow Andy Jaws gut, Feeling on whether or not you
- 13:31want to use this security feature when you define these
- 13:34policies. If it's for that rank-and-file,
- 13:36I leave everything enabled. So to speak like allowing
- 13:39clipboard, allowing print features, camera all that stuff.
- 13:42So you can have a very seamless user experience with the
- 13:46exception of downloading files to the host system.
- 13:50That's the only one that I would enforce out of most of these
- 13:53maybe maybe not trusting the root certificate of the system.
- 13:57There's one more there, but for the most part I would Enable
- 14:00them for the rank-and-file. If it's going to be something
- 14:02that you're going to enable for most users that are on there
- 14:06every day, carry machine, with the exception of the ability to
- 14:10download files because that one would be a big attack surface.
- 14:14So for Windows Defender, application guard on office,
- 14:17this is something new like we mentioned.
- 14:19That's only been around for about a year or so.
- 14:22It does require a fairly current version of Windows 20 H 1, which
- 14:26is 2004. So, it's been around for about
- 14:29almost A year now. And then it does require the
- 14:31current Channel or monthly Enterprise Channel.
- 14:33Build for office, 2011 16.0. And then a bunch of numbers
- 14:38after it will put in the documentation.
- 14:40But, you know, you need to be up to date on your office client
- 14:44and it is supported on both 32-bit and 64-bit and there is a
- 14:47specific Update kb3035583 7 1756 that you do need to have
- 14:53installed on your windows machines.
- 14:55In order to enable this feature, before you even enable the
- 14:58feature, you got to have the He be installed and of course you
- 15:01have to turn on Windows Defender, application guard.
- 15:03Just like we talked about either by group policy or in tune or
- 15:07Powershell or or simply Standalone version, you got to
- 15:10have that turned on in managed mode.
- 15:12So again what it does is you define those untrusted Network
- 15:17boundaries and then when a file comes in from outside of those
- 15:21untrusted boundaries, it will open it up in a special version.
- 15:25Containerized version of Word Excel PowerPoint.
- 15:28And again, Fairly new also in teams now and you're not going
- 15:32to really notice a whole lot, like when you launch word, you
- 15:35know, there's that splash screen.
- 15:37You'll see something that says, launching it in application
- 15:40card, and then in the upper right hand corner, you have a
- 15:41little visual cue that says, this is showing in app guard and
- 15:45there's other policies as well. We talked about those policies
- 15:49that we can configure for Edge application card similar
- 15:52policies that you can go through for Office application card and
- 15:56those are done in config that office.com and I think I
- 15:59mentioned this on the show previously in one of our
- 16:01episodes, but if you haven't looked at config that
- 16:04office.com, highly recommend that you look at that.
- 16:07When you deploy office in a traditional environment, most
- 16:11people can figure the XML configuration file.
- 16:14That's either deployed in a task sequence through, config man, or
- 16:17you do it within in tune and it's that initial configuration
- 16:22things. Like how bars are showing or if
- 16:25you want to allow macros to be enabled, stuff like that and
- 16:29there's a Configuration designer and everything.
- 16:31That was moved to the cloud about two or three years ago and
- 16:35the beauty of it is one, you can configure the policies in the
- 16:37cloud and download the XML file still from there and add it to
- 16:40your office. Deployments on desktops, but a
- 16:43lot of organizations allow office to be used on personal
- 16:47machines. Well, guess what?
- 16:48When you do that and you sign in even if it's managed you're not
- 16:52getting those initial configuration policies.
- 16:54So in config that office.com, they're configured in the cloud.
- 16:57So wherever they are, they're associated with.
- 16:59User identity and they enforce those policies on whatever
- 17:03computer they decide to install office on and sign in with their
- 17:07corporate account. So, again, highly recommend that
- 17:09you take a look at those policies because not only are
- 17:12they really, really good to see what attack surface you have.
- 17:16The site also gives you an idea of what impact you may have when
- 17:21you enable a certain policy. So take office macros.
- 17:25For example, if I look at that policy and config that
- 17:27office.com, it'll show me how many Users are actually enabling
- 17:31macros by name on office documents and it will say maybe
- 17:35like one percent or maybe 50% of your organization has users.
- 17:38That are enabling that grows hopefully not.
- 17:40But it'll show you the impact. And then you can even send out
- 17:43targeted communication to those people and say, no, we're trying
- 17:46to enable those policy. Let's try to move to something
- 17:49else or carve out an exception for them.
- 17:51That's just another one of the ways.
- 17:53Our listeners can get modern with their management practice
- 17:56for their devices where you move away from Shipping some sort of
- 17:59configuration File with an installer, where you have to
- 18:01pull the installer internally and we've got a custom installer
- 18:04or this or that and instead it's just download it from wherever
- 18:07and when you sign in with your identity you get all the
- 18:10settings we want. Like it's so much easier and
- 18:12it's just another way you can move to that cloud management
- 18:15Paradigm where you just become so less focused on like the
- 18:18little details and you put your focus back where it belongs on
- 18:21the big things. So Defender application guard
- 18:22for office. Great summary there, andy, there
- 18:25are some things that don't work in this as well, macros being
- 18:28one of them but for the most A part of you kind of think of it
- 18:30as fairly analogous to. And what I'm going to try to do
- 18:33is parse out the different kind of protective modes office has
- 18:37had over the years. I think we're all familiar with.
- 18:39When you open an untrusted document in office, it opens in
- 18:42like a limited mode, where it doesn't load remote files.
- 18:45It doesn't run, macros. There's a lot of things that
- 18:47don't work initially to you, kind of click that enable button
- 18:50and you say well what's the difference between that and
- 18:52this? Well again as we've kind of made
- 18:54the point repeatedly this is actually a logically isolated
- 18:58instance of office in a Separate hypervisor base security,
- 19:02separate instance, ish of the Windows, operating system.
- 19:05And so if I do load this file and it does have some sort of
- 19:08malicious payload again, even if it can break out of the office
- 19:11client itself, to read memory of other you know, applications
- 19:15running or to execute arbitrary code.
- 19:17It's running in that isolated instance, where there's really
- 19:20nothing to read. That's interesting.
- 19:22You can execute called all you want.
- 19:23We're just going to shut that down and we're done with our
- 19:25thing. Anyways.
- 19:26And it's going to isolate it from the main operating system
- 19:29and Again, limit the exposure there.
- 19:31So it's a pretty fundamental difference between those two
- 19:34modes. The other thing is, there's a
- 19:36security feature you may be may be familiar with called safe
- 19:39documents for Office 365. And what that is is it's kind of
- 19:44a bringing the best of two different Defender apps
- 19:47together. So you have Defender for Office
- 19:49365 which does the safe links and save attachments for files
- 19:53and email in the Office 365 suite and then you have Defender
- 19:56for endpoint which is that antivirus and eat R and T VM
- 20:01solution for endpoint devices. Well, safe documents kind of
- 20:04brings both of those together to actually do a scan of a file
- 20:08before it's allowed to open in the office client and you can
- 20:12use that together. So, they're complementary
- 20:14Technologies with what we're talking about with app guard
- 20:17where you could say, open the file in app guard, until I have
- 20:21a verdict from safe documents. If safe document says, it's
- 20:24okay, then allow it to proceed to the non-isolated version of
- 20:28office. That might have More features
- 20:30and capabilities, especially around things like macros and
- 20:33external resources and stuff like that.
- 20:35That just doesn't work in the isolated instance.
- 20:37So they're complimentary you need the same licensing for
- 20:40both. So it's probably a good idea to
- 20:42turn both these features on app guard as well as safe documents.
- 20:46Because if you own one, you own both of them from a licensing
- 20:48perspective but they're complementary, they do two
- 20:51different things but they can work well and be better
- 20:53together. So important to understand the
- 20:55distinction there, too. So hopefully we gave you an idea
- 20:58of what this Feature can do for Defender for application guard
- 21:03in office. It does require that E5
- 21:06licensing. So if you are a customer of
- 21:08Microsoft and you have the security five or em 365 E5,
- 21:12definitely go and test this out for Edge.
- 21:14Again, that's just for Windows 10 Pro and if you have that at
- 21:18home, test it in Standalone mode, it's great.
- 21:20If you have it in your Enterprise environment, which
- 21:24most organizations, even small businesses have Windows, 10 Pro,
- 21:28definitely go and configure this and start testing it out.
- 21:30Yeah, there's so much security stuff that's in Windows 10 that
- 21:34a lot of folks just don't know about.
- 21:36So we hope as you listen to these different episodes.
- 21:39You know. It just comes as off as.
- 21:40Wow. I didn't know we had that and we
- 21:42already do have it. We should use that.
- 21:44And hopefully you listen to our credential guard episode a
- 21:47couple weeks ago and you started looking into what's it going to
- 21:49take for us to get this deployed, broadly at our
- 21:51organization, and hopefully kind of the same takeaway here.
- 21:54If you say, well, I can think of a couple scenarios where I could
- 21:56start using this right away, minimally impactful.
- 21:59I'd love to long-term, get it on my road map, to get it deployed
- 22:02to everyone. So we're going to keep doing
- 22:04this because there's a lot more cool stuff in Windows.
- 22:06That, again, there's security stuff built right in that are
- 22:08broadly owned by most Enterprises and are
- 22:11unfortunately not broadly deployed.
- 22:13So we're doing our part to, you know, let you know what you
- 22:16already have and you could be using to be even more secure
- 22:18moving forward. That's our episode for this
- 22:20week. Thanks for listening.
- 22:21Our contact information will be in the show notes as always
- 22:24reach out to us. If you have questions or
- 22:26comments or other security topics that you want us to talk
- 22:28about, we'll talk to guys. Next week.
- 22:30Thank you for listening to the blue security podcast.
- 22:32Please check out the show notes. Catch up on episodes.
- 22:35You may have missed and subscribe so you don't miss any
- 22:37future episodes. Find Andy, on Twitter at age 0,
- 22:410, and Adam at AJ Brewer. See you at our next episode?