Latest / Blue Security / Secure Privileged Access
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:22Welcome to the blue security podcast.
- 0:24I'm Andy your host and I'm Adam your co-host.
- 0:27Adam sent me. This best practices document.
- 0:30Aunt earlier this week and said, hey Andy take a look at this, I
- 0:33think would make a great show and so we're going to go through
- 0:36one of the best practices. That Microsoft is actually
- 0:40published and it's something that I have not read before
- 0:42until Adam sent it to me this week and I thought it was really
- 0:46really well-thought-out and a lot of good information in this
- 0:50particular best practice. So we're going to talk about
- 0:52securing privileged access today and we're going to dive into
- 0:55what, Microsoft kind of recommends for organizations on
- 0:59how to secure. Are there privileged access and
- 1:02so organizations should really try to make this a priority
- 1:05because privileged access is something that a lot of
- 1:08attackers will go for and if they get those credentials they
- 1:12can cause a lot of damage. When we talk through some of
- 1:15these Concepts will have separate out like the different
- 1:18security levels, and we'll get a little bit more into it, but at
- 1:21the very, very highest level. If those credentials get
- 1:25compromised at the highest security level, those are the
- 1:27ones that are going to cause the most impact to an organization.
- 1:31So as far as strategy goes, we're going to talk through
- 1:34about how Microsoft recommends adopting this privileged access
- 1:37strategy so that you can lower your risk.
- 1:40If something happens if you get attacked and if those
- 1:43credentials get compromised, you can try to soften the blow.
- 1:47So to speak. The whole concept is built on
- 1:50zero. Trust principles with explicit
- 1:52validation these privileged access and Assumption of breach,
- 1:56and it's really important that when we talk through the That
- 2:00there really is no Silver Bullet as far as a technical solution.
- 2:04A lot of people are always looking for a specific solution
- 2:08to implement or by that will magically make all of their
- 2:11security worries go away. And there really isn't you're
- 2:14going to try to mitigate as much risk as possible.
- 2:17We have to kind of blend a lot of best practices together to
- 2:19try to make a holistic Solution on what you have at your company
- 2:23so that you can protect against multiple different attack entry
- 2:26points and the word, holistic, I think you'll hear throughout
- 2:29Throughout this discussion, in that you have to look at it from
- 2:33all angles, because you're only, as good as your weakest link and
- 2:36an attacker in charge of your privileged accounts can
- 2:39undermine or undo, all of your other security, assurances is
- 2:43one of the things, the documentation calls out here.
- 2:45And that's a really important concept to understand that this
- 2:47is kind of that Foundation. If you don't have this, right?
- 2:50You can do all the other work you want, but if somebody has
- 2:53privileged access, they can just work around those controls.
- 2:56So this is why it's so important and so foundational to I think
- 3:00we talked about so two goals that we want to lay out.
- 3:03When we talk about securing privileged access, we want to
- 3:06strictly limit the ability to perform privilege actions to
- 3:10only a few, authorized Pathways or users.
- 3:13And then we want to protect and closely monitor those Pathways.
- 3:17And as you read through the documentation on these best
- 3:20practices, one of the things that struck me as really, really
- 3:24important was the Strategic assumption as you read through,
- 3:28this is that cloud is the A source of security.
- 3:30And this may be something that may be a pain point for some
- 3:35organizations. Because if you're still on Prime
- 3:37where you trying to do a hybrid situation and you're sinking
- 3:40identities to the cloud from on-prem, that's not the
- 3:44Strategic overview of how Microsoft is recommending that
- 3:48you implement this type of privileged access.
- 3:50So when we talk about the cloud, there's a lot of benefits to
- 3:54having the cloud. Be your source of security, it
- 3:57has better capabilities, the software manager.
- 4:00Rent and security is pretty powerful these days and there's
- 4:04a lot of native integration, a lot of security intelligence.
- 4:07It's also easier and faster so if you're adopting cloud
- 4:10services, there usually is. Not a lot of infrastructure that
- 4:13you have to deploy on premise and it requires less
- 4:16maintenance. The cloud is managed and
- 4:17maintained by vendor organizations rather than your
- 4:20internal it and having to have maintenance time and downtime,
- 4:24and patching and all that. And then of course, the scaling
- 4:27and improving of the cloud is always going to be much Much
- 4:30better than what you can do. Internally.
- 4:31So that is the reason why the whole strategic assumption is to
- 4:36have the cloud and there was even more guidance on whether or
- 4:40not you should sink different identities to the cloud
- 4:43including privileged access in light of the salar gate attacks.
- 4:48Alex winner, who's one of our PMS for identity?
- 4:51He published a blog post on securing your M 365 environment
- 4:57against on-premise attacks and there were a couple Key Concepts
- 5:00you want to go through those Adam.
- 5:01Yeah. And before I do real quick just
- 5:03to kind of touch on what you would just going over with the
- 5:05Strategic Assumption of this whole kind of treatise on
- 5:09privileged access is that it's important to have a point of
- 5:13view when you're writing something like this and to share
- 5:15that point of view openly and say Here's the assumptions we're
- 5:18working from is we write this. And so you know different
- 5:21security vendors might publish something like this and they
- 5:24might have a different perspective.
- 5:25This is one of them and is based on some of those Cloud
- 5:28assumptions around. Round the amount of signal and
- 5:31Telemetry baked into the cloud that informs, some of its
- 5:35security tooling, the fact that it is easier and faster, it's
- 5:38more scalable, you know, spin up, spin down Services, the fact
- 5:41that there's no maintenance that you have to do or less
- 5:44maintenance. And then the fact that there's
- 5:46automatic improvements baked in overtime, with very little
- 5:49effort on your part, there's just a lot of benefits there and
- 5:51so that informs kind of the whole discussion as it's gone
- 5:54through in this conversation. So, I'm really glad you went
- 5:57over that Andy because it's really important to kind of
- 5:59understand the Effective here and then kind of staying on that
- 6:02same topic. Now, we talked about the two
- 6:05simple goals of securing privileged access and one of
- 6:07them was to limit the ability to perform privilege actions to a
- 6:12few authorized Pathways and then to protect and closely monitor
- 6:15those Pathways. And so this guidance from Alex
- 6:18weinert that you had mentioned here aligns with those two goals
- 6:21in that we want to close or limit or restrict as many of the
- 6:25pathways to move from on premises compromise to
- 6:29compromise. As the cloud make that harder to
- 6:31do and then give more protection and monitoring to those Pathways
- 6:35by closing, most of them off. So we have less places to look.
- 6:38And so the guidance from Alex weinert here, and again, this
- 6:40was published in the aftermath of the Soul or gate scenario.
- 6:44And by the way, we should mention one of the drivers
- 6:46behind that was when the attackers behind salora, gate
- 6:50gained access to on-premise infrastructure.
- 6:53The often stole Secrets, things used like signing keys to be
- 6:58able to sign. Certificates or sign tokens or
- 7:01create tokens that were literally signed in a way that
- 7:05they would be trusted by other services.
- 7:07They weren't like forged their legit.
- 7:09They actually are signed with that same key and so everything
- 7:13else would trust them. And so an example is, if you had
- 7:16a Federated identity provider of some kind and you had attackers
- 7:20inside your on-premises network and they stole the secrets used
- 7:23to create or sign. The tokens from that Federated
- 7:26identity provider, then those can be passed to a cloud.
- 7:29Add service in this case, Microsoft 365 or Azure active
- 7:33directory and say I am the global admin and again there's
- 7:36no vulnerability being worked here.
- 7:39It's not doing anything that represents like a failure of the
- 7:42code. The code is validating a this
- 7:44token was signed. It matches the private key that
- 7:47I have. So everything is legit and I'm
- 7:50going to let this person in and I'm going to grant them Global
- 7:52admin privilege. So anyhow all that's to say.
- 7:55Here's some of the guidance to help prevent against that
- 7:58escalation path. And number one is all
- 8:01administrative accounts in Microsoft 365 should be mastered
- 8:05in Azure ad. In other words, they should be
- 8:07Cloud. Only identities.
- 8:09That means there is no on-premises identity, that is
- 8:13synchronized to Azure 84 privileged accounts.
- 8:16That means there's nothing sitting with a Federated
- 8:19identity provider that I can potentially use as an escalation
- 8:22path. It's only in Azure ad and that's
- 8:25the only way to authenticate to it.
- 8:27And by the way, when I authenticate I should be And of
- 8:30course, to do multi-factor authentication, kind of obvious.
- 8:32But also I should be secured in some way by a sure, 80
- 8:36conditional, access that should be looking for additional
- 8:39assurances above and beyond. I had a valid username, I had a
- 8:42valid password and I did an MFA challenge successfully, there
- 8:45should be other assurances as well.
- 8:47Maybe I'm only coming from a certain IP range, or maybe I'm
- 8:50coming from in this case, a managed device.
- 8:53So now we have a device that's managed in the cloud and the
- 8:56cloud, only by Microsoft endpoint manager, and Validating
- 9:00that. That device is indeed managed
- 9:02its healthy, it's not under current threat before we allow
- 9:06it to get in. So now, we've gone from two
- 9:08factors, 23 or potentially, four factors before that privileged
- 9:12account can gain access to a thing and that is going to
- 9:14significantly strengthen and secure those Cloud privileged
- 9:18identities and ensure that even if I haven't compromised on
- 9:21premises, there isn't an easy, escalation path to the cloud.
- 9:25Those are two separate things. So concept that's going to come
- 9:28up as we go through this. Relation is, we want to worsen
- 9:32the return on investment for attackers.
- 9:34We want to make it that it takes more work to accomplish less,
- 9:38and this is a perfect example of that.
- 9:40If I can't seamlessly break into on premises and move to the
- 9:44cloud. Well, now my Roi just got worse
- 9:46because now I have to invest all the effort to get there.
- 9:48Some of the other guidance from mr.
- 9:50Weinert as well. Was that devices should be
- 9:52managed strictly in the cloud with Microsoft endpoint manager,
- 9:56like I mentioned and also use cloud.
- 9:59Medication to eliminate dependencies and on-premises
- 10:02credentials. So I mentioned they should be
- 10:04caught only identities but even for all your identities, move to
- 10:07a managed authentication method like password hash
- 10:10synchronization, and then from there, you don't have any
- 10:13on-premises dependencies for that authentication flow, even
- 10:16for your non-privileged users. So now you've not only in
- 10:20limited that escalation path for privileged accounts but you've
- 10:23even made it that just because I compromised an on-prem
- 10:26environment, doesn't mean I can even take that to move to a
- 10:28non-privileged. You sir in the cloud because
- 10:31that authentication flow is totally separate as well.
- 10:33So some good guidance there we will of course link to it in the
- 10:36show notes and I think we've linked to it a couple times
- 10:38before but the reason why we keep bringing it up is I know
- 10:41Andy and my day job and your day job to.
- 10:43We talk to a lot of customers that aren't doing a lot of this
- 10:46yet. So we're trying to spread the
- 10:48gospel here that these are some quick wins.
- 10:51You can get that if you ever do have a really bad day, you're
- 10:54going to have a bad day and not a worse day, this was one of the
- 10:58biggest key. Ups that I took away at my
- 11:01previous job. And I know a lot of
- 11:04organizations, they maybe start with one identity and that
- 11:09identity is your everyday identity.
- 11:11That is accessing your email, and your web, browsing and
- 11:14signing into your machine. And then they Grant those
- 11:16identities administrative. Privileges, maybe you've moved
- 11:20to separate those identities to administrative account and a
- 11:23regular user account but a lot of times you'll sink your domain
- 11:26admin to Azure ad and that same identity.
- 11:29We will be a global admin. It's very common practice to do
- 11:32that. And what mr.
- 11:34Wine art is saying and what really you should move to is
- 11:37trying to separate those identities and it can be
- 11:40difficult and can be somewhat jarring depending on how people
- 11:44are signing in because maybe an IT admin, will have a regular
- 11:48user account and on-prem admin account, and then now they have
- 11:51a cloud admin account. So that's three different logins
- 11:53that got to keep track of so that can be a little bit jarring
- 11:56and it can be not that great of experience but it is Important
- 12:00for security to keep these separated.
- 12:02So the next part of the documentation here got into
- 12:05talking about success criteria and by the way is we're having
- 12:08this conversation of course, would be really boring for us to
- 12:10just do a podcast that reads the documentation.
- 12:13If you want somebody to like, give you an audiobook of it, I
- 12:15think there are people that would do a better job than Andy
- 12:18and I on that. So what we're trying to do is
- 12:20just kind of summarize and pick out some highlights and have
- 12:22some discussion around them, so on this page on success
- 12:25criteria. The reason I sent this to Andy
- 12:27in the first place is because I I feel like there are some
- 12:31eyebrow-raising parts of this documentation in terms of things
- 12:34like the no Silver Bullet thing than Andy talked about at the
- 12:37top of the show. That is really kind of targeted
- 12:39at people who think hey I bought a pimp am solution from you know
- 12:43vendor X and now we have solved privileged access.
- 12:46We've completed the task. Good job guys.
- 12:48You know, mission accomplished and I think that first bullet
- 12:51really emphasizing that, there is no Silver Bullet is really
- 12:54important. This is another one that I
- 12:56thought was really interesting as well.
- 12:58I'm going to almost read this. Batum just because I thought it
- 13:01was so kind of powerful and so I'm quoting here.
- 13:04Ruthless prioritization is the practice of taking the most
- 13:06effective actions with the fastest time, devalue first,
- 13:09even if those efforts, don't fit, pre-existing plans,
- 13:13perceptions, or habits while, it's always tempting for
- 13:16Security Professionals to try to optimize familiar existing
- 13:19controls like network security and firewalls for newer attacks
- 13:23this path, consistently leads to failure.
- 13:26And so that's in quote, that comes from the Oft Response Team
- 13:31talking about, they've seen time and time again, that customers
- 13:33and Security Professionals since especially a lot of them kind of
- 13:36grew out of network security, because that's where a lot of
- 13:38infosec started. They tend to want to stick to
- 13:41what they're familiar with than continue to invest their and
- 13:43hardened. Their and what we have to do
- 13:45when we're trying to build this privileged access, kind of
- 13:49modernization is to be ruthless, privatization on what is going
- 13:53to deliver the most value. The fastest, where can we get
- 13:56our quickest wins first, that's the least amount of effort for
- 13:59Most amount of security Improvement and that's where we
- 14:03have to look in the mirror. Really, really hard and say, I'm
- 14:05familiar with this, I'm comfortable with this, but I'm
- 14:08going to have to learn new skills and new techniques and
- 14:10think about things differently from the attackers perspective,
- 14:13in order to really be effective in accomplish a lot here.
- 14:16And so I said this before but I'll say this again, your goal
- 14:19should be to increase the attackers costs while minimizing
- 14:22your own security investment level.
- 14:23So there's a nice little graphic on there that has two sides of
- 14:26it. And one of them is attackers
- 14:28cost and Of them is security investment.
- 14:31And the goal is that you invest as little as possible to most
- 14:34dramatically ratchet up the attackers cost there.
- 14:38And that's where this ruthless prioritization comes in of
- 14:40determining, what ways, let you accomplish that goal.
- 14:43And then finally something we always need to think about and
- 14:46what kind of mention like weakest link and all that the
- 14:49clean Source principle, which states that all security
- 14:51dependencies must be as trustworthy as the object being
- 14:54secured. So you have to start with a
- 14:57clean Source before you can build.
- 14:59They're on top of it in terms of privileged access.
- 15:02So for example, as we get into say privileged workstations, the
- 15:07theory here is that you start with a workstation that has
- 15:10hardened in privileged and then you can go less privileged on
- 15:13top of that. So, as an example, a Microsoft,
- 15:16if you have like a secure access workstation, that workstation
- 15:19itself is totally hardened, it doesn't run anything but what is
- 15:22required to do that secure Administration?
- 15:25And then if you need something to do like day-to-day
- 15:28productivity tasks that, Runs in a virtual machine but not the
- 15:32other way around. You can't build security back in
- 15:34when it's already kind of been lost.
- 15:37So if you have your base machine, you're like oh I'm
- 15:39going to run my privilege workstation in a VM, it doesn't
- 15:42work that way because the host operating system is potentially
- 15:45compromised, and then you can flow Downstream from there.
- 15:47So that's an important concept and part of our success
- 15:51criteria, as we think through, what does a successful
- 15:53implementation? Looks like it looks like we
- 15:56start from where we know. We have a clean source and we
- 15:59The outward from there, moving forward, and building off of
- 16:02that. The strategy that Microsoft
- 16:04really recommends is building a closed loop system.
- 16:09So, like, what Adam said here, you want to have trustworthy
- 16:13clean devices, clean accounts, clean intermediary.
- 16:16Systems that can be used for privileged access, so all of
- 16:19that stays kind of in a closed-loop.
- 16:21Now, you can have user accounts and user access and there are
- 16:26ways that you can authorize like, certain elevation, Paths
- 16:30like just-in-time access as your privileged identity management
- 16:33is one of those ways. Another one you may be familiar
- 16:36with is azure Bastion where you can have just-in-time access to
- 16:41our DP or SSH into a VM. And so those are great ways to
- 16:46kind of limit the standing access but still allow users to
- 16:52escalate an account to a privilege State.
- 16:55And then you have privileged access where again, you have
- 16:58separate accounts. I was recommended to have
- 17:00separate accounts with stricter conditional access around them
- 17:03stricter. Intermediary systems that have
- 17:06to gain access to the corporate data.
- 17:10So, as we talk through this strategy, Microsoft has
- 17:15different security levels. And I thought this was really
- 17:17neat and kind of a great way to summarize how to think about
- 17:22your privileged access, so they have three different levels.
- 17:25The first level is Enterprise security and that's your basic
- 17:28users. It's all Enterprise users
- 17:30productivity scenarios and those are the ones that serve as a
- 17:34starting point and you build progressively on top of that.
- 17:37So those are your normal users and your base level Enterprise,
- 17:41security controls that you would want to implement.
- 17:43Then you have specialized security.
- 17:45Specialized security are roles that have an elevated business
- 17:49impact, and you should have some sort of documented criteria for
- 17:54specialized accounts and privileged accounts.
- 17:57So maybe for example, a Business impact of over 1 million
- 18:01dollars. If this account were to be
- 18:03compromised and then identify all the roles and accounts that
- 18:07meet their criteria and then categorize those accounts as
- 18:10specialized accounts. Now, when I was going through
- 18:12the documentation, they gave you some examples and I thought
- 18:15these were great developers of business sensitive systems
- 18:19Executives and especially their personal assistants.
- 18:22I think we've talked about, you know, the admins of those
- 18:25Executives basically being more powerful than the executive
- 18:28sometimes they Know everything about their execs sensitive.
- 18:31It, admins, high-impact social media accounts.
- 18:34That's something that a lot of companies have to deal with
- 18:37these days. How do you secure the
- 18:39credentials for those social media accounts?
- 18:42And a lot of times, they don't have a way to have multiple
- 18:46users. It's not like a business card,
- 18:48like a Twitter account, you have one login.
- 18:50So how do you secure those? And so those are accounts that
- 18:53you would then classify as specialized security and a
- 18:56before you move on, also I like to call out here of Business
- 19:00rules which people I think don't always consider when they're
- 19:03building a practice like this. They laid out people like people
- 19:06who use Swift terminals or researchers who have access to
- 19:08sensitive data, people who have access to the financial reports
- 19:11before they're publicly released people who run payroll, people
- 19:15who run approval for sensitive business processes.
- 19:17So that's the other thing is we always think of, in terms of
- 19:20like because we're in Tech, we think it, we think technologist
- 19:23but there's plenty of people who have very privileged access in
- 19:27the business and those are sensitive rules.
- 19:29To they might not have broad impact across the entire orbit,
- 19:33they have sensitive access to a specific part of the business
- 19:37and that was to me. I mentioned a couple
- 19:39eyebrow-raising parts, that was one of them right there.
- 19:41I had never thought of that. When I was thinking of building
- 19:44a privileged access practice and so that was really, really good.
- 19:47Call it. And then I also appreciated the
- 19:49executive and admin, assistant, call out because we are trying
- 19:52so hard to get them to understand.
- 19:54Like, no, no, no. You don't want less security,
- 19:56you want more security, you are more.
- 19:59Packed full than me, you know? Well, maybe not me because I
- 20:02used to run the email system, but you get the point, like, the
- 20:04rank and file. Yeah, thanks for the call out.
- 20:06Adam, of course, the last one is the privileged security, which
- 20:10is the highest level, and those are the it rolls, right?
- 20:13Those are the domain admins, the global admins, the org, admins,
- 20:18you know, for other business critical systems and server,
- 20:21admins account operators which is like a built-in role in ad
- 20:26you know those are sensitive critical roles that if they were
- 20:29to Be compromised, like Adam said, they can essentially
- 20:32circumvent any other security controls that you have in place
- 20:35because they are the global admin or the domain admin.
- 20:38So any type of custom delegated groups, your help desk, your
- 20:41tier 2, tier 3 and all those are all privileged access local
- 20:46admins as well. So that's something that a lot
- 20:49of people don't think about but you know anyone who's a local
- 20:52admin on a workstation or local admin on servers, all those
- 20:55should be limited as much as possible users who can RDP into
- 20:59A sensitive servers. So as we talk through those
- 21:02three different ones, you know, they'll play a different role in
- 21:05how you want to scope out your privileged Access program
- 21:09strategy. Next the documentation moved on
- 21:11to privileged access intermediaries, which Andy I
- 21:14think you mentioned previously as we conversed and what are
- 21:17intermediaries? Well, those are things like
- 21:19vpns. Jump, servers, remote, desktop
- 21:22him, Pam Solutions. And so, there's really two
- 21:24things you need to think about. When you're evaluating the risk
- 21:27of an intermediary solution. Number one is, Going to be
- 21:29attacker opportunity. So that's the available attack
- 21:32surface. What can I get to from this
- 21:34solution? So if you look at things like
- 21:38VPN it's publicly exposed to the Internet.
- 21:40So that's attractive. They usually only have a few
- 21:43ports open but I only need a few ports.
- 21:45If I can get into that. VPN the potential Tucker value
- 21:49is tremendous because I gained full network connectivity.
- 21:52I might be able to observe account credentials flowing
- 21:54through that VPN solution. I might be able to impersonate
- 21:56device identities, all sorts of cool stuff, come by hitting That
- 21:59jump server, that's where really interesting one because you
- 22:02think of that is, oh well, that's a good practice, right?
- 22:04And what I guess I hadn't really considered there as well is.
- 22:07So if you have like one or two jump servers that all your
- 22:10admins, jump into to go to other things, you have loaded up that
- 22:14jump server with the hashes for all your administrative accounts
- 22:17and if somebody can figure out how to steal those hashes and
- 22:19pass those hashes. Oh baby.
- 22:21You know they've got the keys to the kingdom right there and Pim
- 22:25Pam Solutions. Those might be running in your
- 22:27local infrastructure. So if I gain access It's just a
- 22:30initial foothold into your on-premises network.
- 22:32I have an underlying OS. I can hit, I have an entire
- 22:36application interface that I can try to bang on and the attacker
- 22:39value. I mean, my goodness, what's more
- 22:41valuable than something? That holds all your privilege
- 22:43credentials in one place. All the eggs in one basket, so
- 22:46you need to look at both of those kind of angles, they're
- 22:49the attack surface, which is the attacker opportunity.
- 22:52And then the attacker value what they can gain from it.
- 22:54So then there's some security guidance that's provided on.
- 22:56So what can you do to help with some of these Solutions?
- 22:58Well, for I'm kind of the first thing to really think about is
- 23:01oftentimes they're presented as a silver bullet to solve all of
- 23:05these problems and if you've been listening to this podcast
- 23:08and you thought, oh well you know, we have vendor x4r Pam
- 23:12solution, we're solid. You know, we've got this figured
- 23:14out. That's where we kind of need to
- 23:15zoom out a little bit and look at the bigger picture because
- 23:19again, okay, you have this Pim Pam solution, but if I
- 23:22compromise your device then while you are in that solution,
- 23:26I can potentially observe things.
- 23:28You if you're And in with a privileged account, then I can
- 23:31use that again, hash, stealing, all sorts of different things I
- 23:35can do, if I compromise the device even though you have a
- 23:37pimp am solution. However, for the most part, you
- 23:40should just follow the guidance from the vendor on ways to
- 23:42harden that as much as possible. Another call out was for certain
- 23:46business, critical workflows, you should consider having to
- 23:49approvers because that will reduce your risk in case of a
- 23:53Insider kind of attack where Andy and I got together to, you
- 23:57know, plot against the company. And that way we Another approver
- 24:00to be able to break through that workflow so that's something to
- 24:03consider as well with VPN. You should connect those to a
- 24:07cloud identity provider. Through sam'l obviously I'd love
- 24:10you to use Azure ad but it would be just as good to connect it to
- 24:13a ping or an OCTA and using the stronger identity controls and
- 24:17do Solutions as the front gate for your VPN.
- 24:20So your VPN is just ingesting an accepting sam'l tokens as
- 24:24opposed to performing that authentication task itself.
- 24:27Again, you need to patch your vpns and you need to have
- 24:31business. Sign off that.
- 24:32You can do that, that you can take it down.
- 24:34If there is a patching window that you're allowed to do,
- 24:37maintenance having a standard that the VPN can never go down
- 24:40is probably not a good long-term strategy if you can't patch it.
- 24:44Because again, public-facing it's a very attractive Target
- 24:47because once I get in your VPN, I have unfettered access to your
- 24:50network again. Follow your vendor guidance as
- 24:53much as possible and then consider reducing your
- 24:56dependency and VPN as much as you can.
- 24:58So I think we've talked about Some of these Solutions on
- 25:00different shows but things like Azure app proxy, or there's
- 25:04other solutions to do that to like f5a p.m. where you do, you
- 25:08access to those like internally hosted web apps through some
- 25:11sort of proxy interface and you do access to them individually,
- 25:15as opposed to, I'm on the VPN and now I have access to all the
- 25:18things so reduce your dependency on it as helpful as well.
- 25:21And finally, with a remote desktop or a jump server, don't
- 25:24expose it. Directly to the internet.
- 25:25RDP, is not really designed to be public facing.
- 25:28It is Acceptable to things like password spray.
- 25:31So you're better off doing some sort of proxy or Gateway for
- 25:35your RDP environment and consider again, like a tool,
- 25:38like a sharap proxy to put in front of it and that can help
- 25:41Harden your RDP environment as well.
- 25:43So, something to think about with your intermediaries because
- 25:46again, you're only as good as your weakest link in some of
- 25:48those tools. While they can help in many key
- 25:50ways, they also introduced their own risks in their own potential
- 25:55vulnerabilities, so be aware of them and do what you can to
- 25:58mitigate them, I guess another We forgot to mention Andy, but
- 26:00would be valuable as well, would be to do things like credential
- 26:03guard would also help Harden, that sort of thing.
- 26:06So the documentation spends a lot of time on securing the
- 26:10devices which in my new role at Microsoft.
- 26:12I love talking about and this is really interesting because I've
- 26:16never used a paw or a secure access workstation before and
- 26:21reading through the documentation.
- 26:22It gets very very granular on what Microsoft recommends for
- 26:27secure access workstation. Now we talk through those.
- 26:29Has different security levels. The Enterprise is specialized in
- 26:32privileged and they have recommendations on specific
- 26:35policies that you should be deploying for those different
- 26:38levels of privileged access. Now, if we go back and think
- 26:42about it, that's specialised security level, you know, I'm
- 26:44just going to pull that one out because we talked about those
- 26:47developers executive admins, Finance, folks, payroll
- 26:51administrator. So, you know, think about those
- 26:52as getting a second Specialized or, you know, as their primary
- 26:56specialized workstation because their work Important and can be
- 27:00impactful if compromise to the organization.
- 27:03So there's a table that kind of summarizes all the different
- 27:06things, and at the beginning, we talked about how all of the
- 27:09devices should be managed by some sort of Cloud solution.
- 27:13Like Microsoft, endpoint manager, what I found was
- 27:15interesting in. This was already eyebrow-raising
- 27:17for me was if let's say Adam is a finance, payroll administrator
- 27:23and I'm just a normal call center guy.
- 27:25Well, in the documentation that Microsoft recommends, one of the
- 27:28policies is the denying BYOD device enrollment and so for me
- 27:32as normal Joe Blow at the call center if I want to enroll my
- 27:36own device using my identity to have in tune and email and all
- 27:40that, that's fine. But then for Adam because he's
- 27:43privileged we'd actually deny BYOD enrollment.
- 27:46And so what that means is the devices that he has to use for
- 27:50his job would be issued, you know, using some sort of
- 27:53automated device enrollment like autopilot or apple business
- 27:56manager or Android Enterprise, something like that.
- 27:59So, that was really, really interesting to me to deny BYOD
- 28:03device enrollment for those specialized and privileged
- 28:06accounts security baselines. You know, that's something that
- 28:09is in Microsoft endpoint manager, which is a great
- 28:12starting point for a lot of organizations.
- 28:14They have all this security best practices and policies that
- 28:18Microsoft, at least kind of carves out.
- 28:20If you're not sure where to start, you can use those
- 28:22baselines joining, a personal device via autopilot, you know,
- 28:25for privileged accounts, it actually says, don't do that for
- 28:28Enterprise and specialized accounts, go ahead and do that.
- 28:31But for the privilege, the high-level privileged accounts,
- 28:34no personal devices allowed for those identities.
- 28:36And then another really interesting one was the URL
- 28:39restriction. And I remember talking to Morgan
- 28:42when we had them on way, way back for our ad security show.
- 28:47And he talked about pause and how on his paw he would restrict
- 28:51all the internet access to specific URLs only.
- 28:55And that's called out here as well as part of the securing
- 28:58devices. Where Enterprise users you know
- 29:00you're going to allow them to go pretty much everywhere and we've
- 29:03talked about on the show kind of having a more liberal policy on
- 29:06where we allow our users to go to for websites except for the
- 29:10really bad stuff. The same thing for the
- 29:12specialized roles but then for the privileged roles Microsoft
- 29:15says that you should deny by default actually.
- 29:19So internet traffic is denied and then you allow explicitly,
- 29:23the sites that you need to go to for part of your job.
- 29:26So Edmund on microsoft.com or portal that azure.com Those
- 29:29would be URLs that you would explicitly, add to the allow
- 29:32list. And then by default, you're
- 29:34actually denying internet traffic admin rights removal.
- 29:37Well, that's something we've talked about at length on this
- 29:39show before and for privileged access workstations, we
- 29:43recommend that you remove local admin, we recommend that you
- 29:46remove local admin for those specialized roles and so you
- 29:49know, there's a whole list of these different policies and
- 29:52it's very granular and they walk through the entire
- 29:56implementation of how to do this.
- 29:58And so, you know, Going to give you a link to this whole best
- 30:01practice document. What part of this is the
- 30:04privileged access implementation and in that part of this
- 30:08documentation, they walk through exactly from the creation of
- 30:12different security groups, the aad configuration users that you
- 30:16should be adding to ADT Dynamic device groups.
- 30:20The entire Dynamic device query that you're going to be using
- 30:22device. Configuration configuration
- 30:25profiles within in tune and mem specific Azure active directory.
- 30:29Three conditional access rules, firewall settings, MKS
- 30:33restrictions to approved URLs. So I mean it walks through
- 30:36everything even down to an example.
- 30:38Cousteau query for advanced hunting for security events
- 30:42within Microsoft, Defender for endpoint.
- 30:44So highly recommend that you take a look at this, even if
- 30:47it's for fun and you just want to spin up a device and write
- 30:50these rules, just for one user like an example user, I
- 30:53recommend walking through this entire implementation and trying
- 30:57it out for securing a device. And seeing how that goes China's
- 31:01similar to our show with Shannon.
- 31:03We talked about Azure 80 joining devices, like just give it a try
- 31:07and then see what you can and cannot do.
- 31:09Like that would be my way of approaching.
- 31:11This is walking through this entire implementation
- 31:13implementing a secure access workstation and then using it
- 31:17and seeing what the pain points are because there's always going
- 31:19to be some sort of balance between productivity and
- 31:23usability. So one of the things that I
- 31:25thought was interesting with the going back, a little bit to the
- 31:29Village to access devices to was in a lot of ways, all this
- 31:32documentation kind of feels like the secret recipe.
- 31:36Like the secret sauce, this is best that I can tell, and again,
- 31:39I'm just rank-and-file guy at Microsoft.
- 31:40I'm not involved with securing Microsoft, the organization but
- 31:44best that I can tell this aligns pretty closely to how we run our
- 31:47business. So people are always asking like
- 31:49well, how's Microsoft doing? This is literally kind of the
- 31:52point-by-point, guidance on a lot of how we run our business.
- 31:56So I think that's really just an interesting call out in general,
- 31:59like Microsoft rank-and-file users do have admin rights on
- 32:02their machine. I do and he does and one of the
- 32:04call-outs here remember, and he's laid out like those three
- 32:07different levels of privilege. We're talking about Enterprise,
- 32:09specialized privileged Enterprise users, which are your
- 32:12rank. And file doesn't say, you have
- 32:13to remove admin rights for them. No.
- 32:15I mean in general, that's not a bad idea if you can do that, but
- 32:18it's not a specific call down here.
- 32:19That's a half to do and that's just interesting because that's
- 32:22actually how Microsoft runs their business.
- 32:24So I thought that was interesting to just in that if
- 32:26you want kind of the inside scoop, the I This aligns pretty
- 32:30closely to what I'm sure, it's not everything.
- 32:32And it's not exactly, you know, our internal doc but I think
- 32:35it's darn close in a lot of ways.
- 32:37Also. I mean, this walkthrough is
- 32:39really, really detailed and I agree and I think this is
- 32:42something I want to go do in my test environment, just to kind
- 32:45of understand a lot of the thought process than the mindset
- 32:48behind this because it's really easy to follow.
- 32:50And I think I'll learn a lot from doing it too.
- 32:53And I've done a lot of this before, but just kind of seen
- 32:56like how the guidance plays out in practice as far.
- 32:59Is getting down to, like you said, Dynamic device groups and
- 33:02you seen the query we're used to pull those devices in and then
- 33:05the policies were applying against that device group.
- 33:07That's all interesting stuff to kind of see how the guidance is
- 33:11to do all that. So there's a ton here with the
- 33:13complete walkthrough. There's also a modernization
- 33:17plan which I thought was very, very good.
- 33:19Again, it walks through several different things and we can dive
- 33:22into each. One of these may be deeper at a
- 33:25later show, but I wanted to give you some high-level examples of
- 33:29modernization when it comes to separating and managing
- 33:32privileged accounts. And so one of the things is you
- 33:34should have an emergency access account.
- 33:37These are usually accounts that are not included in conditional
- 33:41access policies. They're usually accounts that
- 33:44are not MFA enabled and you would have a super long, very
- 33:50complicated password that you would Store offline somewhere
- 33:53and it's like a break glass situation.
- 33:55And so it's always good to have one of those in case like MFA
- 33:58goes down. Which has happened or your
- 34:00identity provider, conks out, or something like that.
- 34:03So you having that break glass account is a good thing to have.
- 34:06Just in case, we talked about Azure active directory,
- 34:09privileged, identity management. This is that just in time
- 34:12escalation I implemented this at my previous company, it was
- 34:15really, really nice to have. So no one in the company had
- 34:19standing Global admin. Privileges, if you need a global
- 34:22admin, you had to escalate to it.
- 34:24And it's just a nice piece of mind that, you know, you can
- 34:27make it as Loose as you want. And in fact, at the previous
- 34:30company, we allowed you to escalate it 48 hours without
- 34:34having an approval process, you could put an approval process,
- 34:37you know, Adam talked about having two people approved for
- 34:39it to kind of prevent against abuse in a, we had it for eight
- 34:43hours during the work week. And, you know, that was nice
- 34:46because at the end of the day, you know, probably not using
- 34:48your Global admin account. And you know, that that
- 34:50privilege gets taken away automatically and so no one has
- 34:54it anymore. Even if you implement it in a
- 34:56very light use case there, it's just a nice piece.
- 34:59Going to know that at the end of the day on the weekend, no one
- 35:02has Global admins. You also want to identify and
- 35:04categorize like we talked about in those different security
- 35:06levels. You're privileged accounts
- 35:08separating out your accounts. We talked about that from your
- 35:11on-prem ad and having that separation between privileged
- 35:15accounts. So I'm not necessarily like all
- 35:17of your accounts, although that'd be nice to get to that
- 35:19point but for privileged accounts for sure, you want to
- 35:21separate that out and then, you know, having some sort of
- 35:24monitoring Microsoft has a tool called Microsoft Defender for
- 35:27identity, which used to be known as As a sure ATP, but having
- 35:30those signals and those alerts come up when someone's added to
- 35:35a privileged group, if someone gets added to domain admin
- 35:39group, or someone gets added to the Enterprise admin group or
- 35:42you have clear, text ldap. Authentication is going on in
- 35:45your ad environment. You know, those things are
- 35:48things that you want to get alerted on.
- 35:50So closely monitoring if those accounts are changed, if they're
- 35:53logged on a different times and used for activities that know if
- 35:57someone's running PS exact on your In controller, that's
- 36:00something that you'd want to know about.
- 36:01So some alerting tool like Defender for identity would be
- 36:04great to have. They also talked about improving
- 36:06credential management and this is something that not sure we've
- 36:09talked about too much but implementing a documenting
- 36:12self-service password reset, that's great for users.
- 36:15It's takes a lot of work, time away from your help desk.
- 36:18Now, there's a lot of time spent at a lot of companies at the
- 36:22help desk, just resetting passwords.
- 36:24So having self-service, password reset, then combining that with
- 36:27self registering Purity information like to be able to
- 36:31reset your MFA or reset like a security token.
- 36:34You want to enable MFA through conditional access and if you
- 36:36can, if you're using Azure ad password list, authentication
- 36:40haven't to not enter in your password.
- 36:42And having SSO is really, really good for all of your accounts,
- 36:46especially for your privileged accounts Legacy authentication
- 36:48is another one, you can block their through conditional
- 36:50access. It's sometimes at companies, I
- 36:53found that there are applications that people are you
- 36:56still using those Legacy authentication?
- 36:58Protocols, but For your privileged accounts, for sure.
- 37:01And this was something that I didn't think about.
- 37:02When I was configuring, my conditional access policies at
- 37:05my previous organization, that's something that you could do for
- 37:08sure, because you're privileged counts, shouldn't be using
- 37:11Legacy off at all, and so that's an easy, no carve out.
- 37:15Policy specific targeted at privileged accounts to say,
- 37:18let's block Legacy authentication for that.
- 37:20So, that would be something that I would take away, and
- 37:21definitely do. And then application consent
- 37:24process. All of those Oaths, you know,
- 37:26Microsoft recommends, to take that away from your users, you
- 37:29You want to have some sort of approval process again, there's
- 37:32that middle ground. Now, in Azure ad, where you can
- 37:35allow apps from trusted Publishers to be automatically
- 37:40approved, or you can have an approval process or even Grant
- 37:44custom policies to say this specific policy like this app
- 37:47can read a user's calendar, all users calendars or something
- 37:51like that. That's a little bit on the Lower
- 37:53Side, you can actually categorize that yourself as low
- 37:56risk and if those permissions come up for a nap, it You can
- 37:59automatically approve that themselves but shouldn't just
- 38:02grant blanket access to oauth Azure active directory or any
- 38:06IDP app for authentication. You know, you mentioned break
- 38:10glass accounts. And one of the things I saw
- 38:11people do that, I think is really clever.
- 38:14Yes. I've seen people do those with a
- 38:15Fido if I do two key. So, now, you instead of having
- 38:18like you're super long, password printed out and stored
- 38:21somewhere, you actually have a physical hardware token instead,
- 38:24that's you literally get a break, the glass to go get and
- 38:27use that for your break glass account.
- 38:28I thought that was interesting because that makes it, you know,
- 38:31completely unbreakable, unless you have physical access to the
- 38:35hardware token. So that's another clever way to
- 38:37do that. Everything else you said, what
- 38:39kind of stood out to me, is think of your wish list of
- 38:42things? You wish you could do for your
- 38:44Enterprise accounts. You know, that Rank and file and
- 38:47do all those things for your privileged accounts.
- 38:50So I wish we could turn off Legacy off.
- 38:52You can for your privileged accounts.
- 38:53I wish we could get to a device-based conditional, access
- 38:56model, you should for your privileged accounts stuff like
- 38:58that. Where the might be a someday
- 39:01kind of dream to turn on like this is where you turn it all
- 39:04on. Now because the amount of
- 39:06security it adds is just tremendous if somebody can't
- 39:09sign in with a privileged account unless they have your
- 39:13managed device their username, their password and their second
- 39:17Factor that's a lot of stuff that you have to all produce.
- 39:20And oh by the way we're going to look at the risk of the sign in
- 39:23as well. And if anything is anomalous
- 39:24we're not going to allow the sign in to proceed.
- 39:26So if they're signing in from an unfamiliar country or Location
- 39:29then we're going to you know, not allow that either.
- 39:31That's a lot of signal being looked at and determined before
- 39:35we allow a privilege to sign in to proceed and I think that's
- 39:38really, really powerful. So use all of the controls you
- 39:41can and those accounts in particular and then use as many
- 39:44of them as you can on Specialized accounts as well.
- 39:46You know, you kind of think of moving down the chain in how
- 39:49many controls you can Implement there.
- 39:50If you made it this far on the show, the final thing that I
- 39:53wanted to touch on was there's a section in this documentation
- 39:56that talks about privileged access administrator.
- 39:59And I found this to be really, really helpful and kind of hit
- 40:03home for me. Because as I read through this,
- 40:05I was like, yep, I've been in an organization that does poorly at
- 40:08this. Yep, I've been in organization
- 40:10does poorly at this so they talk about minimizing the number of
- 40:13critical impact admins. This is super important, in
- 40:16fact, in Azure ad, it yells at you if you have more than five
- 40:19Global admins so don't have more than five cloves weidman's for
- 40:23sure. It depends on how big your
- 40:24organization is but again you have those just in time if
- 40:28you're using some sort of just in time as you're a deal, only
- 40:30yells at you. If you have five Global admins
- 40:33at the same time and in reality you probably don't need five
- 40:36Global admins. At the same time doing the work,
- 40:38they probably can accomplish that with other roles.
- 40:42And speaking of rules, it talks about using the built-in roles.
- 40:45Microsoft has a bunch of built-in roles or ready and I'm
- 40:48sure at other idps or other solutions.
- 40:52They have built-in roles, you know, use those built-in roles
- 40:54because they're generally pretty good.
- 40:56When you start getting custom or granular polysilicon, Series
- 40:59that starts to get a little bit more complicated.
- 41:01And complexity is the enemy of security in general life cycle
- 41:05management. How do you manage your
- 41:07privileged accounts? I think a lot of organizations
- 41:10are really, really good at disabling, the standard user
- 41:13account when that user leaves. But what happens if they have a
- 41:16privileged account, is that part of your life cycle management,
- 41:19are you making sure that that admin is getting disabled?
- 41:22And if you're following this kind of guidance again it does
- 41:25kind of make it a little bit more difficult because if you
- 41:28disable Able the Ada account, you still have to go into the
- 41:32cloud and disable the admin accounts there.
- 41:35And that's even more important, because those Cloud accounts can
- 41:38be accessed from anywhere, right?
- 41:40You don't have to be on VPN in order to get to them.
- 41:42But if you're following the guidance with the secure
- 41:45devices, then those signals again, if you have a managed
- 41:48device and all this other stuff, those are signals that can
- 41:50prevent someone who has been terminated from Gaining access
- 41:54still. And then the final thing is
- 41:55attacks simulation for critical impact accounts.
- 41:58I thought this Was really interesting when you're going
- 42:00through your different, red team, or blue team exercises, or
- 42:04your pen test simulate. What happens.
- 42:07If a critical account gets compromised, what are your
- 42:10steps? Have a playbook for that and
- 42:13think about what would happen and how you would react.
- 42:16If one of those counts could compromise and to try to recover
- 42:19from that, this was a lot, dear listener, and thanks for
- 42:22sticking with us here. But the reason we brought this
- 42:25up is I had stumbled upon this new kind of section of the So,
- 42:29Soft docs page with all of these best practices.
- 42:31And in my day job, it's something people ask for
- 42:34frequently like what well, what's Microsoft recommend, what
- 42:36do you recommend to do? And again, it's not the end-all
- 42:39be-all, there's going to be different perspectives and
- 42:41different opinions on how to accomplish this, it's one
- 42:43opinion. And as we mentioned at the top
- 42:45of the show, it's written through the lens of the cloud is
- 42:49a security enabler and that aligns throughout all of what is
- 42:53written. But I think you can take a lot
- 42:55away from this and I think if you're not kind of taken a Step
- 42:59back a couple of times as you look through this or raising at
- 43:02least a couple of eyebrows. Then, I don't know if you're
- 43:04reading it that thoroughly because I don't know if there's
- 43:06anybody who can look through this documentation and not find
- 43:10at least a thing or two, that's going to make them.
- 43:12Say, man, I didn't thought of it that way or I hadn't looked at
- 43:14it that way. So that's why we brought it up
- 43:16and just how foundational and important it is to protect
- 43:19against things like human operated ransomware which is all
- 43:23the rage. These days.
- 43:24This is one of the most powerful things you can do to protect
- 43:29Your organization against being the next victim because if those
- 43:32attackers get in and the ROI is poor, they're going to go
- 43:35somewhere else where they can make money.
- 43:37And you do that by making it really, really hard for them to
- 43:40get the keys to the kingdom and start to do all the things.
- 43:43So, there's a lot here, there's a lot to think about and that's
- 43:46just because there isn't that Silver Bullet there isn't the
- 43:49one answer where, if you just go do this, you've solved the
- 43:52problem. There's a lot of different steps
- 43:55and vectors and things you need to consider as you go through
- 43:58this. So, Back to you, one of the
- 44:00first Concepts I brought up ruthless prior to zation.
- 44:03As you read through this as you listen to the show think of the
- 44:06gaps that are largest in your org and that you can remediate
- 44:10the quickest and go do them even if it's an area of discomfort
- 44:13for you or something that you're not familiar with.
- 44:15Maybe you've never really done much of a device management, but
- 44:18you've recognized that. There's a real opportunity here
- 44:21to link device identity with personal identity and use that
- 44:25as part of a sign-in process to choose whether or not to allow a
- 44:28sign indicating. Proceed.
- 44:29That's a huge win. You can get and eliminates a
- 44:32whole bunch of attack vectors, and that's just one of many.
- 44:35So thanks for sticking with us. Andy, any final thoughts.
- 44:37Before we wrap up, there's a lot here.
- 44:39And so my final thought is just take it one step at a time.
- 44:43No, look at him said, prioritize you don't have to go and deploy
- 44:46secure device for all of your admins.
- 44:48Tomorrow maybe it's just implementing some conditional
- 44:51access or MFA or just separating out your accounts, maybe you
- 44:55have one user account and that's doing your regular Of plus your
- 44:59admin stuff, or maybe it's separating out your domain,
- 45:02admins, from your Global admins, one thing at a time, you don't
- 45:06have to improve all of your security overnight.
- 45:08You know, it's a journey. So don't have to eat the entire
- 45:11elephant in one sitting essentially.
- 45:13Mmm, so thanks for sticking with us.
- 45:15This was a pretty detailed show that's our show for this week.
- 45:19All the documentation will include in the show notes as
- 45:22well as our contact information. If you have security topics, you
- 45:25want to talk about or comments on the show, please, reach out
- 45:28to us. I will talk to you guys next
- 45:30week. Thank you for listening to the
- 45:31blue security podcast. Please check out the show notes.
- 45:34Catch up on episodes, you may have missed and subscribe so you
- 45:37don't miss any future episodes. Find Andy, on Twitter at age 0,
- 45:410, and Adam at AJ Brewer. See you in our next episode