Latest / Blue Security / Active Directory Security Tips
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, welcome to this week's
- 0:22episode of the blue security podcast.
- 0:24I'm Andy your host, I'm Adam your co-host the last week Adam
- 0:28I was at a security conference Reference in Atlanta called the
- 0:31experts conference or Tec Tec and it's hosted by Quest.
- 0:37It's honestly, one of the best Microsoft Centric security
- 0:41conferences that I've ever been to, and highly recommend anyone,
- 0:45who is a Microsoft customer to take a look at it even though
- 0:49it's hosted by Quest. They don't really like shove
- 0:51their product down, your throat. Every session that I was there
- 0:55was hosted by a Microsoft MVP, or internal Microsoft people.
- 1:00One of the keynote speakers was Alex White Hart, which we talk
- 1:02about all the time on the show, and it was honestly really,
- 1:06really good. So, take a look at that.
- 1:08But while I was there I attended a talk that was hosted by
- 1:12Trimark security who is founded by Sean Metcalfe and he gave the
- 1:17talk and he's like an 80 Master. He did a session on protecting
- 1:22service principles and hybrid accounts and 80 security and if
- 1:26you remember, Christina Mora low.
- 1:28Who is friend of the Pod? She actually, He was hired by
- 1:30Sean to work at Trimark. So that's where she's working
- 1:32today. But I thought we'd go through
- 1:34something that they mentioned in that talk, which was a webcast
- 1:39white paper that was put out, which was some of his discussion
- 1:43about 80 security. And we haven't done any podcast
- 1:47episodes on 80 security since our very first year like episode
- 1:529 and so I thought it'd be really good to go through this.
- 1:54We had some emails come through asking about ad security.
- 1:57So let's go through this white paper.
- 1:59I We recommend that you look through it yourself.
- 2:02I'm going to go through the high level tips today, but the white
- 2:05paper is going to have a link in the show notes, and highly
- 2:08recommend that you go through it yourself.
- 2:09If you're wanting to learn about how to secure your active
- 2:12directory. So the very first tip is
- 2:14password policy and I know that we talked about passwords quite
- 2:17a bit actually recently, we talked about passwords with
- 2:20Kerberos tubal accounts but a lot of 80 environments are still
- 2:24using that Legacy, a character password.
- 2:26And in the white paper it'll actually show you one of the
- 2:29charts that Um and I saw last week and the week before, which
- 2:32was using today's gpus, an eight character password can be
- 2:36cracked in under an hour. So you should migrate to 12
- 2:40characters or plus as soon as possible for all your accounts
- 2:43and all your users at 14 characters, just an FYI.
- 2:47If you're looking at this chart even if you just use all lower
- 2:49case characters it'll take four years to crack.
- 2:52So imagine switching to 12 plus I mean it it'll take much longer
- 2:56time to crack those passwords. Also in some older age
- 2:59Environments. If you've been around for a
- 3:01while and you're 80 environment is fairly old.
- 3:03You might be storing. LM hashes which are less secure
- 3:07than NT hashes and LM hashes can be cracked using a rainbow table
- 3:11in just a couple of seconds. So if you're using passwords
- 3:14more than 14 characters by default, those LM hashes aren't
- 3:18stored and you can also prevent LM hashes from being stored via
- 3:22GPO. Something that I learned which
- 3:24is really interesting that I'd actually didn't know before.
- 3:26Was that using Group Policy? You can only Require up to 14
- 3:31characters, to be mandated. Of course, you can always set
- 3:35longer passwords, but require is only up to 14 using GPO in order
- 3:39to get more than 14, say, 15 plus to be required, you have to
- 3:43use what's called fine-grained password policies.
- 3:46And so one of the recommendations is to move to
- 3:49fine-grained password policies for your admin accounts and for
- 3:54any non human service accounts, which means you have to Target
- 3:57like a security group with This password policy and then anyone
- 4:02in that security group would have to set something higher
- 4:05than that. So very different than being
- 4:07able to set a long password versus requiring, a 15 plus
- 4:11character password. So you got to use these
- 4:13fine-grained password policies in order to do that and that
- 4:15does require all of your DC's to be Server 2012 or above.
- 4:20If you want to do it via the gooey.
- 4:22You can do it via Powershell for Server 2008, but you should be
- 4:27migrating off 2008, pretty soon so well, I commend, you do that
- 4:30for your admins and service accounts first and then if you
- 4:33want to, of course, you can always Target the entire org
- 4:35after that to go 15 plus. But at least moved to 12, plus,
- 4:39for everyone and then admins, and non-human service accounts
- 4:43should be required 15 plus. And then the final thing is,
- 4:47we've talked about this before, but password protection, if
- 4:49you're an Azure, um, 365 III or EMS III or a ADP, One customer
- 4:57you have password protection. Is included with that that gives
- 5:01you those custom password lists as well as the comparison with
- 5:06compromised passwords and you can integrate that with your
- 5:08on-prem 80 environment when users are setting or resetting
- 5:12their passwords. So password complexity frequent
- 5:15subject on this show and certainly adding more characters
- 5:18is really helpful. One thing Andy said that I
- 5:20thought was interesting is he mentioned that even if you have
- 5:24a 14 character, all lowercase password.
- 5:26So one character set just lowercase letters that still For
- 5:30years, which is pretty much sufficient, right?
- 5:32And then if you would add at least an uppercase character set
- 5:35as well, now, you're even longer so point, being my
- 5:38recommendation and this kind of aligns to a lot of password
- 5:41guidance given is, you're better off increasing length but
- 5:44removing complexity requirements when you do that, so you can
- 5:47actually make this a user education thing and say
- 5:49something like we're moving away from passwords or moving to pass
- 5:51phrases and we're going to get rid of all the complexity
- 5:54requirements with numbers and symbols and all that.
- 5:56But instead we're going to ask you to make it longer so you can
- 5:59make it a Is or couple words or whatever, but that's actually
- 6:03going to deliver better security overall than 8 characters with
- 6:07all the characters set complexity.
- 6:08And honestly, probably make easier passwords to remember to
- 6:11so, very, very helpful here. And then, as long as I'm on my
- 6:14soapbox password, expiration doesn't help with any of this
- 6:17because password expiration, at its core is a control only
- 6:20against when an attacker already has compromised credentials, you
- 6:24know, if you haven't compromised them yet, then changing it,
- 6:26delivers, no security benefit. And if they already do have it,
- 6:29you're probably Lee too late to wait for a password change
- 6:32interval for to deliver meaningful protection Because
- 6:34unless you nailed it just right to where the attacker
- 6:37compromised, the password, two days before it expired and blast
- 6:40when that expired and changed you caught them.
- 6:43You know, normally that is not actually a meaningful
- 6:46requirement. So you can do everything and
- 6:48he's talking about but you could take this as an opportunity to
- 6:50kind of communicate and change how you approach passwords in
- 6:53your organization and then one other call out.
- 6:55And you mentioned a surety password protection, which is a
- 6:58really beneficial Thing from the perspective of blocking known
- 7:02bad passwords like band password list even if you don't have an
- 7:06ashtray D premium subscription at all.
- 7:08If you don't subscribe to any in 365 services and you just have a
- 7:12charade e like the free edition, you can still use this, you
- 7:15won't be able to set your own custom band, password list.
- 7:18However you still get the Azure ad top, 50 top 100, whatever it
- 7:23is most commonly use bad passwords and it will ban them
- 7:27from being used in your active directory environment as well.
- 7:29Which is still a helpful control because you have that global
- 7:33scale and you're at least getting the worst of the worst
- 7:35out of there but it's even better.
- 7:37If you do have a charade, a premium like EMS iii-i'm 365 E3
- 7:41because then you can set those custom band password list for
- 7:45things like common sports teams or common words in your local
- 7:49area. So some good things there to
- 7:51kind of modernize your password security well at the same time,
- 7:54reducing your attack surface so that's kind of win-win.
- 7:57The second tip is admin hide. And so if you don't have a good
- 8:01way of reviewing, your ad admins and or are doing it regularly,
- 8:05this is something you should do as soon as possible whether it's
- 8:08through Powershell scripts manually through a duct or you
- 8:12have a third-party tool to do it.
- 8:14You're going to want to review who's in The Domain.
- 8:16Admins group regularly, as well as Enterprise admins.
- 8:20If you don't have multiple forests, then you shouldn't need
- 8:24anyone in the Enterprise, admins on a daily basis.
- 8:27So, for a companies with multiple for yes, and if you're
- 8:30having to actually manage different Forest using the
- 8:33Enterprise admin, then maybe. But if you just have one Forest,
- 8:36then you should just elevate it when you actually need it and
- 8:39then remove it. When necessary, another one is
- 8:41account operators, that's a built-in role in active
- 8:44directory and it has a lot of permissions, a lot of people use
- 8:47account operators for their help desk and honestly, I think
- 8:51that's a little over commissioned.
- 8:52And so you should look at custom delegations for your help desk
- 8:56and go through what they actually need.
- 8:59And And if you know, they don't have enough, how I did it at my
- 9:02previous company was I scoped what I thought they needed and
- 9:05let them roll with it. It was pretty restrictive and
- 9:07then they come across something that they couldn't do.
- 9:09And I would re-evaluate give that permission specifically and
- 9:12keep on going until they had everything that they needed on a
- 9:15daily basis and it was less than what was granted through account
- 9:18operators. You should also look at accounts
- 9:20with the flag password, never expires, most likely if you have
- 9:23a legacy ad, there's going to be accounts there with a characters
- 9:27or maybe even less password protection like We mentioned
- 9:30only works on password sets and changes.
- 9:32So if you have accounts that are never expire, at least change
- 9:36the password so that it is longer and will be compliant
- 9:40with the password protection policies that you have in place
- 9:43and you should remove still admin accounts.
- 9:46There are probably people in that group that haven't used
- 9:50their permissions in a really long time.
- 9:52You should remove them if they're not actually
- 9:54administrating, active directory.
- 9:57There's no reason for them to be a domain admin you can.
- 9:59Different permissions delegate to her from Russians.
- 10:01If they need like certain things like a password, change our, you
- 10:04don't need to be a domain admin to change.
- 10:06Somebody's password. Also, look at the service
- 10:08accounts that have domain admin, privileges contact, the vendor,
- 10:11if there's a specific tool that you see in there that needs it,
- 10:15when I did this review at my previous company, there were at
- 10:17least a handful of domain admins that were removed, right?
- 10:21Like you shouldn't have 15 domain admin accounts in
- 10:24reality. I would treat it the same as
- 10:26Global admin well why man gets flagged.
- 10:28If you have 0 more than five, So review those stale accounts
- 10:31check to see when the last time they were used and if they're
- 10:33not being used remove them. This one is also something that
- 10:37I learned restricting domain, join now by default any
- 10:40authenticated user can join up to 10 machines to active
- 10:44directory. I didn't think that was a big
- 10:45deal but what I learned was when a regular user creates a
- 10:49computer account in ad there are set as the owner of that object
- 10:53and so that means that several rights on the computer account
- 10:56are assigned to the user including the ability to Modify
- 11:00computer attributes and read extended attributes, so this can
- 11:03be a way for attackers to do reconnaissance of your
- 11:07environment by joining a device to active directory.
- 11:11So if you don't have that need, you can restrict it to like your
- 11:14helpdesk folks or a couple of service counts like SCCM to just
- 11:18do that join and then remove it from any other user to do that.
- 11:21This is one I didn't know just because at least the Orcs I
- 11:25worked at already had this buttoned up.
- 11:27They are always had it configured so that you Had to be
- 11:30some sort of administrator to do a domain join.
- 11:32So, I assumed that was normal behavior.
- 11:34I learned that it's not on the podcast just now, which is
- 11:38really interesting, but I think this is one of those 80 hygiene
- 11:41things. Security thinks that I think
- 11:42most workers are buttoned up on because this has generally been
- 11:45my experience as someone who worked in corporate it for years
- 11:47and years, like I knew normal user accounts couldn't domain
- 11:50join in almost any place I've ever been.
- 11:52So they got it, right? You should also review accounts
- 11:55with unrestrained delegation and remove any without spns and so I
- 11:59didn't know this as well. This is something I learned from
- 12:02reading the white paper unconstrained delegations.
- 12:04One of the oldest and least, secure form of Kerberos
- 12:06delegation and it can be used to impersonate any account
- 12:09including ad Edmund and domain controllers if they're not
- 12:13protected properly. So in this white paper it's
- 12:16actually really good. It goes through what it is that
- 12:18the action is why you need to do it and then it actually walks
- 12:22you through how to do it, whether it's with Powershell
- 12:24scripts or a Powershell command lit.
- 12:27There's actually scripts that Work provides for free to do
- 12:31some of the actions that they're talking about.
- 12:32So if this hits like a nerve and you're like, oh I should
- 12:35probably do this, I don't know about it.
- 12:37Read through the white paper, walk through the steps and at
- 12:39least do the reconnaissance because a lot of them are just
- 12:42like, let's look for accounts with unrestrained delegation and
- 12:45maybe you run that command lit and you don't have any rate.
- 12:48Let's move on, right? Most likely, you're probably not
- 12:51going to Grant any accounts, going forward with it if you
- 12:53don't have any already, but if you're in a very Legacy
- 12:55environment you might have some so you should review those and
- 12:58remove them. You can also Protect ad admins
- 13:01from Kerberos delegation. So there's two ways to protect
- 13:0480 user accounts from either inadvertently or maliciously
- 13:08delegated for Kerberos authentication.
- 13:10The first method is to set the account as sensitive and cannot
- 13:15be delegated, and that's a flag on the user account.
- 13:18When you enable this setting, it's one of the quickest wins
- 13:20for most active directory environments.
- 13:22When it isn't specifically protected.
- 13:25It can be delegated or impersonated by any form of
- 13:28Kerberos delegation. So Setting admins counts as
- 13:31sensitive as one of the few protections that you have
- 13:33against unconstrained, delegation.
- 13:35It's important to note though. If they are non-human service
- 13:39accounts, then you probably shouldn't set this for those
- 13:43service accounts because setting a nonhuman service account could
- 13:47break the service if you're sending it to sensitive.
- 13:49So, take a look at that. But user accounts certainly can
- 13:52do that. And then protected users, this
- 13:54was something that we have mentioned way way back in the
- 13:57day and it was also something that I learned looking through
- 13:59it. Security that I didn't
- 14:00previously learned before but there is a built-in group in
- 14:04active directory, called protected users.
- 14:07Now be careful. You should test this and roll it
- 14:11out in phases but it is very very beneficial to add your
- 14:15admins to the protected users group because you'll gain some
- 14:19protections. Number one, the plaintext
- 14:21credentials are not cached, so if those users are logging into
- 14:27machines, they're not going to be cached.
- 14:29That's one of Of the easiest ways for attackers to escalate
- 14:32privileges or, you know, literally move all that stuff,
- 14:35right? So, by default anyone in the
- 14:37protected users groups are not going to have their credentials
- 14:39cashed. Their nt1 one-way function is
- 14:42also not cash. The Kerberos ticket granting
- 14:44ticket is acquired at log on and can't be reacquired
- 14:47automatically. There's a whole list of benefits
- 14:50to this and essentially, it's for the purpose of protecting
- 14:53that account, just in time access to log in.
- 14:57There's no delegation or on constrained delegation By
- 15:00default no ntlm authentication. The TGT renewal can't be Beyond
- 15:04four hours lifetime. So there's a lot of security
- 15:07things but it does limit certain things that the user can do.
- 15:11So it may affect how they're accessing active directory or a
- 15:15duct to administer certain things.
- 15:17So again, test this but highly recommend that you move your
- 15:20admins to the protected User Group.
- 15:22There is a lot here seeing that all spelled out and I'm thinking
- 15:26back to, and it's been almost three years now, since I did my
- 15:29My certified ethical hacker training, but so many of these
- 15:32things you talked about ntlm and cached credentials and
- 15:36everything else. Like I think of all of those as
- 15:38we used to do privilege escalation or lateral movement
- 15:41within an environment. This is definitely something you
- 15:44should try to get to just reading that list like reading
- 15:47that out loud. You're like holy smokes, that
- 15:49really protects your privileged accounts and eliminate so many
- 15:53methods that you don't have to worry about anymore.
- 15:55So it's hard because sometimes we talk about this theoretically
- 15:59in Docume, and I'm sure that you might roll this out or test it
- 16:03and discover that your admins can't do some sort of function.
- 16:06They have to do some sort of Legacy administrative package
- 16:09doesn't work or something. Okay.
- 16:11You know, you can deal with that then but it doesn't hurt to try
- 16:14and see where you're at. And then kind of go from there,
- 16:16especially when your admin should ostensibly technical
- 16:19users who can understand that stuff breaks and can help you
- 16:22work around it. So, that's really, really cool.
- 16:24I love that the seventh tip. So we're on number seven here
- 16:28actually is to Sable principal errs on all domain controllers,
- 16:32any services that do not perform print services.
- 16:35So there was the principal or nightmare vulnerability.
- 16:38Honestly, if you're not printing you should just disable it.
- 16:42I'm not sure why it's on by default.
- 16:44Anyways maybe Microsoft at some point thought that all servers
- 16:47needed to act as a print server but for sure you don't need it
- 16:51on domain controllers. So disable it, if you're using
- 16:53Microsoft threat and vulnerability management.
- 16:56There's always going to be a recommendation in there to
- 16:58disable it. You can just go There and scope
- 17:00of GPO to turn it off. The eighth one is patching,
- 17:03probably don't need to dive too deep on it.
- 17:06We did a whole session on patching but you should review
- 17:09any software that's installed on your domain controller as in.
- 17:12There shouldn't be any. So review that because domain
- 17:17controllers are like appliances, they have one function is to run
- 17:20active directory and there shouldn't be any notepad plus
- 17:23plus or Adobe Acrobat or anything like that installed and
- 17:27certainly not Chrome like don't install anything.
- 17:29Third-party browsers, you shouldn't install Azure active
- 17:32directory, connect on your domain controllers.
- 17:34It specifically states that in the documentation unless it's
- 17:37like a lab environment, you should run it on a different
- 17:39server and then also treat that as a domain controller, SCCM
- 17:42Management console anything, right?
- 17:44So don't run anything that you don't need as part of active
- 17:47directory and if you have to install agents make sure that
- 17:50they're updated. Like for example, a third-party
- 17:53agent or something even like first party for Microsoft like
- 17:56Defender for identity has an agent that has to be up.
- 17:59It on the domain controllers, you can automatically update it
- 18:03or you can patch it at your convenience for me.
- 18:07I always set it to automatic because then I know it's going
- 18:09to be updated. And that's the easiest way to do
- 18:12it. It doesn't cause any down time,
- 18:13especially if you have replication among multiple DC's.
- 18:16So make sure that you're reviewing software.
- 18:19That's on there. Something else I learned is
- 18:22anonymous access. So, apparently, when active
- 18:25directory domain Services was released with Windows Server.
- 18:282000, Adam You always talk about 20 plus years.
- 18:31Active directory has been out it included configurations, for
- 18:34backwards, compatibility with Windows NT, and other Legacy
- 18:37operating systems. And this included, a pre
- 18:40compatible access group that was used for backwards,
- 18:43compatibility with computers that are running, Windows NT,
- 18:464.0 or earlier. And anyone in this group has
- 18:49read access to all users and groups in the domain.
- 18:52So you should only add users in there if there are running
- 18:55Windows NT 4.0. So the first thing is, let's
- 18:59hope you Not running any Windows NT, 4.0 in your environment.
- 19:03You never know though, I can X be still out there for sure
- 19:07whether or not Windows NT, 4.0 is.
- 19:09That's I'd be scared if there was no, but by default this
- 19:15compatibility group contained, everyone or Anonymous login.
- 19:18And if it did any unauthenticated user could
- 19:21perform ldap queries on active directory.
- 19:24So that's pretty scary. So I attackers can do a lot of
- 19:28reconnaissance this sway if you have this enabled, so check that
- 19:32group. It's called the pre Windows
- 19:342000, compatible access group, and there shouldn't be anyone in
- 19:38it. Hearing all those kind of
- 19:40throwback OS has Windows 2000. Windows, NT 40.
- 19:43Just reminded me total side note here, but I read a really
- 19:47awesome book recently, and I'm going to plug it here again.
- 19:50Not paid or anything. Just thought it was fun and
- 19:53maybe our listeners would enjoy it as well.
- 19:54It's called showstopper the Breakneck race to create Windows
- 19:58NT and the Next Generation Microsoft and was written by G
- 20:01Pascal Zachary and it's available on Kindle for ebook
- 20:04format if you prefer or you know, good old paperback as
- 20:07well. It's phenomenal.
- 20:09I did not know all of the inside story of how Windows NT was
- 20:12first created and the team that had actually been brought in to
- 20:16do it with Dave, Cutler coming from digital computer, and all
- 20:20the higher ends, he was able to make and just how it was kind of
- 20:23this pirate team inside of Microsoft, that built basically,
- 20:26the technology that still runs all versions of Windows today,
- 20:30you know, 22 years later and Counting.
- 20:32So, or sorry, Windows NT came out in their 90's.
- 20:35So, we're talking 30 years. Anyhow, it's really, really
- 20:37good. It's really compelling.
- 20:39If you consider yourself a student of computing history,
- 20:41complete side note. But speaking of nt4 and Windows
- 20:442000, it's really really compelling book.
- 20:46And I think any of our listeners on might find it really, really
- 20:49interesting because I find it amazing that today, like in our
- 20:51modern Computing environment outside of Linux based OS is
- 20:55like Android. Most commercial OS is today are
- 20:58either a descendant of window. And T.
- 21:00So this story or the other story is next computer.
- 21:03And next computer was acquired by Apple and the next step
- 21:06operating system. Formed the basis of Mac OS 10,
- 21:09which became iOS to became iPad OS and TV, OS, and watch OS on
- 21:13all those things. So this is an opportunity to
- 21:15hear about how something was created that runs a billion
- 21:17devices today. And then maybe on a future show,
- 21:20I'll plug a book about the history of next computer, which
- 21:23I think is one of the most under-told stories in Computing
- 21:26history. And that is the Genesis of where
- 21:28everything Apple. Does today came from, from a
- 21:30software perspective, so equally as interesting but we'll talk
- 21:33about that another time. So the last tip that they had in
- 21:37this white paper and I'll have a couple bonuses for you
- 21:40afterwards, like Andy's tips. But the last tip that Trimark
- 21:44had is a top level tier 0, 0 U, which is definitely something
- 21:48that I recommend. Okay, I did this at my previous
- 21:50company, so you should have a tier 0 you for your critical
- 21:54computers workstations, servers, as well, as user accounts.
- 21:58And that old Should be locked down so that nobody else can
- 22:02have access to it, that shouldn't need access to it.
- 22:05So like my help desk or level 2 service, folks could not access
- 22:10anyone who was in server, admins or even change people who are in
- 22:14the helpdesk admin. So all our back rolls security
- 22:17groups were all in this top, tier OU.
- 22:20And of course, you can have tr0 and Tier 1 and whatnot.
- 22:23But for sure, your domain admins and probably anyone survive
- 22:26ends. All that should be in this 2001.
- 22:29Some bonus ones something that you can work towards or at least
- 22:32think about is removing domain admin, privileges from servers
- 22:37and end points. So what I mean by privileges are
- 22:39administrative privileges, local admin, privileges to endpoints
- 22:43and servers for sure on endpoints to me, because why
- 22:47does a domain admin need local admin on an endpoint of a
- 22:51computer that a user is using most likely you have someone
- 22:54else outside of that working on it, that probably would use it,
- 22:57right? So this is a concept of our
- 22:59back. Your administrative roles domain
- 23:01admins don't need local admin on and point in my opinion they
- 23:04probably don't need local admin on servers really domain.
- 23:07Admins should just be accessing the domain controller.
- 23:10You shouldn't be logging in to them on a daily basis.
- 23:13You only need to use them if you have to scope a GPO domain wide,
- 23:17which should be very far less than if you have an established
- 23:21environment. And so my previous company, we
- 23:24did this, we remove domain admins from endpoints because
- 23:27that made sense servers probably was a A longer road to get to,
- 23:30but eventually you have server admin like a server admin group
- 23:34that has access to local admin on servers.
- 23:37And then you have a help desk group that has local admin on
- 23:39workstations. And then you domain, admins has
- 23:41completely separate account that has no administrative
- 23:44Privileges. And if you don't do this by
- 23:46default, of course, domain, admins have local admin on
- 23:49everything, right? So I would go ahead and remove
- 23:52it and our back those roles. And then, of course, this was
- 23:55mentioned by Alex wine hard because he wrote The Blog on it
- 23:59also, Was mentioned by several, Microsoft MVPs.
- 24:02But I'll mention it one more time since we're talking about
- 24:04kind of 80 security, but this is a little bit more hybrid, but
- 24:07you shouldn't sink your admin accounts to Cloud, right?
- 24:10So sinking it to Azure your domain admin account should
- 24:14remain as domain, and then you can have a separate ID, if you
- 24:17want to sink a separate ID, like maybe your server admin account
- 24:21to the cloud. That's one thing.
- 24:23But I would not sink your domain admin to the cloud for sure.
- 24:28Ideally you have separate Identities that you sink up to a
- 24:31cloud that are just for cloud Administration but certainly
- 24:34understand that that could get a little bit out of hand.
- 24:37If you have, like a server admin domain admin.
- 24:39Now you have like a cloud admin account that's just sinking to
- 24:42the cloud and then you have your regular user admin so it can get
- 24:45quite granular and probably confusing.
- 24:48But let's just start with, don't sink your domain admin cloud.
- 24:52And the guidance we've given on this show in the past is kind of
- 24:55the reverse Direction you're talking about, don't take
- 24:58privileged accounts on. Since sync them up, the other
- 25:01idea is that accounts that are privileged in the cloud should
- 25:05not be synchronized Accounts at all.
- 25:07Those should be Cloud only accounts because that prevents
- 25:10compromising on-premises identity environment in some way
- 25:14and then using that to move laterally and have privilege in
- 25:16the cloud as well. So if you keep those isolated,
- 25:19you've cut off that easy, escalation path, to cloud.
- 25:22And we saw a lot of this, especially with a lot of the
- 25:25attacks in the late 2000s, which the attack groups.
- 25:29Name Escapes. Me, was it hafnium or a couple
- 25:31of the other ones? They did a lot of this like out
- 25:34of the solarwinds compromise or they were compromising on
- 25:37premises identity infrastructure, like Duo and
- 25:40then using that to move, laterally to the cloud.
- 25:42So different thing but related, as long as we're on the subject,
- 25:46I think what most organizations who are hybrid will
- 25:50automatically think to, especially if you have a pretty
- 25:52buttoned-up provisioning process being able to like service
- 25:55tickets to come into provision and account a new employee and
- 25:59then d. Vision them.
- 26:00When they leave is. If you do just have Cloud
- 26:03admins, that's probably outside of your normal process and if
- 26:07they leave and you don't, you know, like, you have one lever
- 26:10to turn, if it's 80, right? You disable the account in ad
- 26:13and then you're done. But if they have, you know, my
- 26:16admin accounts and everything like that, you disable their
- 26:19admin accounts, but then you also have this Cloud admin that
- 26:22you have to manually go there. And if you don't turn that off
- 26:24then and Global admins, this is why you do need to limit Global
- 26:28add mint as of Of roll Global admins actually, don't need an
- 26:31Office 365, license assigned to them in order to perform
- 26:35administrative functions. So, you know, be careful there
- 26:38if you do want to build that process into disabling.
- 26:41Those Cloud accounts. If they are purely Cloud only
- 26:44and that's been the argument customers have given me in the
- 26:46past to not follow that advice, is that it will add more
- 26:50complexity to have a separate account to manage and disabled.
- 26:54If that admin leaves and they feel like that attack surface is
- 26:57greater, because of that risk of Getting to disable that, then
- 27:01there is that risk of lateral, movement course.
- 27:03That's kind of a privileged position to take when you
- 27:06haven't been through a compromise like that, you know,
- 27:08you don't have the scar tissue yet, it can't happen to you.
- 27:11So, you know, we'd rather place our bets here.
- 27:13So we know sometimes ideal is one thing and reality is another
- 27:18and and sometimes you have to balance that right?
- 27:20If that is biting off too much to manage those Cloud accounts
- 27:23than don't do that yet. But ideally what you get to is a
- 27:26place where privilege Cloud accounts are totally separate.
- 27:29It's A goal for some day. Absolutely.
- 27:31So hopefully you learn something through this is was the top 10
- 27:35tips prevents it by Trimark Security in the white paper as
- 27:39well as a couple bonus and then some commentary for me and Adam
- 27:42but I would honestly read through this white paper and
- 27:45look at it, it has very technical information on how to
- 27:48accomplish each one of these things and so if you're
- 27:50interested, this peak your interest.
- 27:52Take a look at it. The link will be in the show
- 27:53notes and that's our show for this week.
- 27:55Thanks for listening and watching.
- 27:57Our contact information will be in the show notes.
- 27:59Have any questions or future topics?
- 28:00You want us to talk about? Thanks, we'll talk to you guys
- 28:02next week. Thank you for listening to the
- 28:04blue security podcast. Please check out the show notes.
- 28:07Catch up on episodes. You may have missed and
- 28:09subscribe so you don't miss any future episodes.
- 28:11Find Andy, on Twitter at age 0, 0, and Adam at AJ Brewer.
- 28:16See you at our next episode?