Latest / Blue Security / Active Directory Security with Special Guest Morgan Patzwald
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:23Welcome to this week's episode of the blue security podcast.
- 0:26I'm Andy your host and I have Adam here as my co-host.
- 0:30What are you doing? Adam?
- 0:31Andy looking forward to today. So we have something special for
- 0:34you today. We have our first guest on the
- 0:37podcast. Our Guest is Morgan and he is a
- 0:41great security professional that I met at ignite last year Morgan
- 0:45and I got to talking about security and you know, once to
- 0:49people who are interested in security start talking, it takes
- 0:52up the entire night. So we had great conversation.
- 0:54I'm super excited to bring him on the show today to talk to you
- 0:57guys about on-prem ad security. Again want to give a little
- 1:00background and hello to our listeners.
- 1:03All right, thank you. Andy for the gracious
- 1:06introduction. Their name is Morgan Pat old.
- 1:08I am a system administrator /. Security analyst how working in
- 1:12the healthcare industry over and the great state of Michigan.
- 1:16Original background is networking few years ago,
- 1:19transition order the system side.
- 1:20And now I'm dabbling lobe into the security as well.
- 1:24Hey Morgan, welcome to the show. So where I want to start today
- 1:28is talking about account separation.
- 1:30So last week, Andy and I were talking about self-service
- 1:33password reset, and one of the challenges we got into was a
- 1:37scenario where you can perform a cloud password, reset, and that
- 1:41password would be written back to the domain controller.
- 1:43But then, the challenge would be that if you have a domain join
- 1:46machine, that doesn't have Network line of sight to the
- 1:48domain controller, you're still not gonna be able to sign in
- 1:50say, if the password was expired or the credential cash was in.
- 1:54Sort of unhealthy state. So the really the only way to
- 1:56resolve this in the field without telling somebody bring
- 1:59your computer back in the office would be to use the built-in
- 2:01administrator account. So Morgan, what are some of your
- 2:03recommendations when it comes to the local administrator account,
- 2:06including how to manage that password in an Enterprise
- 2:09environment? Sure.
- 2:10So for the local administrator account.
- 2:12Obviously, you want to minimize the use of this account as much
- 2:16as possible. If you have the local admin
- 2:18account you own the machine. So there is definite drawbacks
- 2:22to given out this account and its crew.
- 2:24Essentials. But there are solutions out
- 2:26there such as the local administrator password solution
- 2:29or commonly known as laps. A demise is another one out
- 2:32there. But what each of these do is at
- 2:35the Domain that will set the local administrator password for
- 2:38each device. And from there, what it would do
- 2:40is on a set interval or can be triggered manually, you can
- 2:43trigger that password be changed.
- 2:45So, as far as the Cure in the account itself, I would
- 2:47recommend setting one of these Solutions in place such as laps
- 2:51and that way, if you do give out the credentials as soon as this
- 2:54Voices online. You can reset that or aspire to
- 2:56that password. As far as actually securing
- 2:58itself. I mean, there's things you can
- 3:00do with a user rights assignment with user rights assignments,
- 3:03you can obviously control how the local administrator account
- 3:06can perform so you can deny it from being able to use remote
- 3:10access to another device but even this may or may not be
- 3:14necessary depending on how the accounts at recep.
- 3:16If you have laps, it's a unique password per account.
- 3:19So user rights assignments may not be applicable.
- 3:22But if you are using the same password, Word for whatever
- 3:25reason, definitely invest in user rights.
- 3:27Assignments and your deny policies to prevent this account
- 3:30for being able to Traverse to multiple devices.
- 3:33That's really good advice. I think a lot of companies for
- 3:36just Simplicity will set the local administrator account to
- 3:40the same password for all their domain devices.
- 3:43And that's definitely not recommended.
- 3:45We previously also discussed on our podcast, one of the security
- 3:49recommendations that would protect against ransomware,
- 3:52which is not allowing There's to have local admin privileges on
- 3:56their workstations, Adam. I discussed that.
- 3:58It was a good idea but also very hard to implement.
- 4:01It's great, if you started out that way, but if you're a
- 4:04company that needs to roll into that change, taking away local
- 4:08administrator, privileges suddenly can be very difficult.
- 4:11But what's your opinion in General Morgan on if this is a
- 4:14good security implementation for companies, should users have
- 4:19local admin? If it's easier or should we take
- 4:21away local admin as a security precaution. 100% take away local
- 4:26admin rights. When you have the local
- 4:28administrator password who are local administrator, privileges
- 4:31in any capacity, you own that device.
- 4:33So even if you have employees application, allow listing, such
- 4:37as a blocker at bloggers, not designed to control a man
- 4:40straighter accounts. Actually, nothing is designed to
- 4:43control a man straighter accounts.
- 4:44Some of the scarier side is having the local admin account
- 4:47is if your company uses BitLocker so you can obviously
- 4:51disabled BitLocker mess with other security settings.
- 4:54Modify your set policies as well.
- 4:56So you can clean out any denying statements for any accounts can
- 4:59also create additional accounts for local administrator
- 5:03privileges on there. So, 100% remove it continuing on
- 5:07that track. Some of the other ways that this
- 5:09account is dangerous. Is you can use a disable UAC,
- 5:13user account control. So once this is a bold, it can
- 5:15switch from UAC. Prompt can switch from actually
- 5:18prompting for credentials on the secure desktop which is the
- 5:21preferred method to a yes, no prom Wild Yes, no prompt is
- 5:25convenient. It is not secure by any means.
- 5:28You AC was never meant to be a security boundary and as a
- 5:31result when it's on the yes no prompt.
- 5:33You can actually have automated processes that can click yes or
- 5:37select. Yes, for that prompt for you.
- 5:40So any and all scenarios and local administrator rights
- 5:43should absolutely be removed from the user.
- 5:45And if your user does require it definitely invest in the time to
- 5:49see what applications need it. And if they can be shimmed,
- 5:52yeah, one of the things that we did My company to look at
- 5:56whether or not a user needed local administrator privileges
- 5:59was there was a use case that an entire department needed.
- 6:02Local administrator for modifying a specific file that
- 6:06was used for development but it was in a folder for an
- 6:09application. And so instead of giving them
- 6:11local administrator privileges, we just granted them full access
- 6:14to just the specific folder for that application and that's it.
- 6:19And they had the rights to modify it as needed, but the
- 6:21rest of the machine was not compromised, if Their
- 6:24credentials were compromised. So there are definitely ways
- 6:26that you can reduce the footprint by looking at what
- 6:30Morgan said specifically, what the user needs local admin for,
- 6:33and paring down those permissions if you can.
- 6:36So before we move on, and talk about server admin, I had one
- 6:39more question on kind of a local administrator workstation.
- 6:42Administrator conversation tool called laps, was brought up and
- 6:47then there was conversation around while if you actually do
- 6:50set all the passwords to be the same on all your workstations,
- 6:52what would be a reason? What prevent an organization
- 6:55from using laps? Or is there one it hurt?
- 6:58Is it one of those things where there's really not an excuse not
- 7:00to use it? I'm kind of curious because it
- 7:01seems like a no-brainer to me. So I'm interested in a reason
- 7:04why an organization would not use it.
- 7:07Technically there is no reason. So outside of technical, it
- 7:10might be political reasons. Ease of access for like your
- 7:13help desk. If there is not already
- 7:16dedicated credential for them to access our stations at the local
- 7:20Minister level. Okay, that's what I suspected,
- 7:23but it's good. To have that confirmed.
- 7:24So overall it kind of goes back to a concept, Andy, and I bring
- 7:28up on the show frequently is that one of our responsibilities
- 7:31as Security Professionals is being able to be persuasive,
- 7:33being able to articulate risk and being able to get buy-in to
- 7:37the things we need to do. And it sounds like if there's
- 7:39not really a good technical blocker to prevent deploying
- 7:42laps, you really should try to get that done or some of the
- 7:45equivalent tools as well. So, I had a question around
- 7:48server. Administrator accounts, they're
- 7:50difficult to manage as well, especially once you have
- 7:52hundreds of servers out there. Our Morgan, do you recommend
- 7:55granting local administrator to users discreetly for each
- 7:58server? Or should we manage the admin by
- 8:01GPO or some other method? Now, this would vary per
- 8:04organization. I mean, if you're in an
- 8:05environment where you have hundreds of servers or even
- 8:08dozens of servers, you may have dedicated teams, you may have a
- 8:11decade sequel team or an applications team or just
- 8:15general system administrators. Each of these should be
- 8:18controlled in my opinion via Group Policy.
- 8:21So, if you're a d structure is sound, you can assign sign these
- 8:24accounts, local administrator privileges.
- 8:26If they need it via group policy that way.
- 8:28It's all controlled and you're following a standard scheme that
- 8:31you had previously designed at all costs.
- 8:33I would avoid going into computer management and manually
- 8:37set an account to be a local administrator, because it's not
- 8:40as easy control. You can of course, restrict a
- 8:43local administrators group. So only accounts that are
- 8:46supposed to be, there will show up there, but most organizations
- 8:49probably will not go down this line.
- 8:51So, Group Policy is really your best bet to manage.
- 8:54And it's fairly simple and straightforward provided.
- 8:57You have a proper OU structure to hold your servers.
- 9:01Yeah, I think that last part is key because you need to group
- 9:05your servers bio use, in order to apply discrete group policies
- 9:08to them. I'm trying to imagine our active
- 9:11directory structure and how we have our servers and right now
- 9:15they're all in 10, you. And so if that's the case, it
- 9:18would be very difficult to apply specific security groups to just
- 9:22individual servers or Or server groups, you'd have to break them
- 9:25up into different OU's. And what your when you say by
- 9:29Group Policy, are you referring to the restricted administrator
- 9:32Group Policy, where you would apply that specific security
- 9:36group or user by Group Policy to that server?
- 9:38Or is it a different group policy that you're talking about
- 9:40Morgan either or so you can do the restricted version or just
- 9:45generalize it to you in group policy preferences.
- 9:47So if it matches his so you these groups are added to the
- 9:50local administrator or even remote desktop users.
- 9:53There's Very little that you can't actually delegate
- 9:56permissions to at the local level.
- 9:58So as you previously mentioned user or in this case an
- 10:01administrator needs access to a specific folder.
- 10:04You can delegate those permissions you can delegate
- 10:06permissions to Services as well, so it's really a Valium whether
- 10:10or not the individual needs to be a server admin.
- 10:13I do they need full control of it or just a subset of it.
- 10:16If it's just a subset, really just focus on doing the
- 10:19delegations enough to get them on the server.
- 10:21You're the remote desktop, users are another good and then just
- 10:25delegate permissions down to exactly what they need to do.
- 10:28That makes sense. Add ignite last year you.
- 10:30And I had a very in-depth conversation about
- 10:33administrative accounts and I want you to walk our users
- 10:36through this because it was super beneficial for me.
- 10:39And since we've had that discussion, I've used our
- 10:42discussion as a model at how to create administrator Accounts at
- 10:47my organization. I haven't gotten to the point
- 10:49where you are at yours, but I think it's a good road map and
- 10:53so if you can Walk us through. If you have administrators user
- 10:57accounts, what type of administrator accounts you
- 11:00recommend, and what each one is used for, in your opinion.
- 11:05So, this is an interesting discussion in my personal
- 11:07experience. Companies had previously worked
- 11:09for. I walked in, we're either one
- 11:11account is used for everything, so, your day-to-day account
- 11:13might be a domain admin, or you may even have two accounts,
- 11:17write a standard user account for your day-to-day activities
- 11:20and then a domain admin account now for It's separation and
- 11:24account delegation, the number varies, and you can get as
- 11:28granular as you want to this. But generally around three or
- 11:31four counts of three or four different accounts is around
- 11:34your sweet spot. So you can go as granular as
- 11:37four counts, which would be a domain admin a server admin,
- 11:41which would include your active, directory permissions server,
- 11:44administrator Rights group policy, permissions as well.
- 11:48And then from there, you can go to a more local account or
- 11:52workstation level kind of work. Administrator where this account
- 11:55is used just for low-level activities such as requiring,
- 11:59local administrator on workstations or even to just
- 12:03pull a lapse password from active directory.
- 12:06So you have the local admin credentials and then the fourth
- 12:08account being your standard day-to-day account.
- 12:10Account. Separation is important.
- 12:12If you're using one account or even two accounts and that
- 12:15heavily privileged account is compromised, what?
- 12:18Exactly. You're giving up the majority of
- 12:20users and it do not need domain administrator unless Sir
- 12:24actually administering, the domain standing up DC's
- 12:27decommissioning DC's or even extended schemas you don't need
- 12:31server. Administrator, you can decide
- 12:33how much access as is now, in my experience, this would be
- 12:36actor-director. So, at this level, I can reset
- 12:40passwords for other accounts at this level and below.
- 12:43So envelope would include standard users and where
- 12:45stationmaster's, I can't touch anything above likewise
- 12:49workstation administrator accounts, just work at the
- 12:51workstation level, they can't go up and they do.
- 12:54So do not touch user accounts either.
- 12:56These are counts are just purpose-built accounts.
- 12:59Yeah. So just to give you an idea of
- 13:02what I've done so far too kind of roadmap it.
- 13:04Fortunately, at my company, we started off where all users are
- 13:08not local administrators. So that was in place already and
- 13:12another practice that was well done.
- 13:14Was if a user required, local administrator, we did Issue them
- 13:18a specific local administrator account for their workstation,
- 13:22which is separate from their user.
- 13:23Counts. And then what I did was I
- 13:25started creating administrator accounts because that wasn't
- 13:28done previously. And then now I'm moving into
- 13:31separating, the administrator accounts to have specific domain
- 13:35admin accounts because the administrator accounts were
- 13:37domain admins. But they're also Cloud accounts
- 13:40that are synced to the cloud. Best practice is that you
- 13:42shouldn't sink, your domain, admin credentials to any type of
- 13:46cloud Source Azure or other IDP and to keep those on-prem.
- 13:50And so that's where we're moving next.
- 13:52And so it can be Process is what I'm saying.
- 13:55For, any listeners, if you are in that state where you have one
- 13:59account, and it's doing everything you can slowly
- 14:01migrate to a state, where it's more secure and you start
- 14:04separating these accounts. Yeah.
- 14:06Absolutely. Start small on this as the
- 14:08ending point out, start at the local admin level focus on one
- 14:12tier at a time. The higher you go up is more
- 14:15granular. You're going to get as far as
- 14:17delegations permissions and privileges go.
- 14:19So definitely take your time as you work.
- 14:21These account, likewise at the Admin level.
- 14:24If you decide to allow this, count to do group policy, have a
- 14:28structure in place with this account, cannot modify gpos that
- 14:32affect highly privileged accounts such as domain, admins
- 14:36or likewise, tears your devices, such as your DC's, you never
- 14:39want a lower level account, building affect anything above
- 14:42it and group policy is an area, you really want to pay attention
- 14:45for and delegate properly. So while we're in this kind of
- 14:49subject area, how do you handle service accounts, a lot of
- 14:52organizations create user accounts?
- 14:53Service accounts. Do you do this or do you use the
- 14:57built-in service accounts role in ad?
- 14:58So where possible you should use group managed service accounts.
- 15:03So these accounts cannot be logged in by Nature.
- 15:06So it's account. That's the password, is set by
- 15:09active directory. It's on a rotating schedule, and
- 15:11only devices that you delegate permissions to can actually
- 15:14retrieve this password to run services.
- 15:16So at all possible, definitely avoid user-created, service
- 15:20accounts. Now, there are absolutely
- 15:22scenarios in which you do not, Need user create service
- 15:25accounts and GM. Essays are not possible which
- 15:28case delegate these permissions on these accounts to just only
- 15:31what it needs to do. If the account is not need to be
- 15:34a local administrator and it likely doesn't delegate to what
- 15:37our application and needs to control or handle but also set
- 15:41user rates assignment. So these accounts cannot be used
- 15:43elsewhere. So set deny local logins or deny
- 15:47log on to remote desktop or Traverse the network from
- 15:50workstations or even other servers.
- 15:52So get granular with these So as well active directory is many
- 15:56different built-in groups like domain admins account operators
- 16:00DHCP, admins, Etc Morgan. What's your take on using the
- 16:03built-in adgroups versus creating your own security
- 16:06groups and delegating permissions for any of the
- 16:08built-in groups and I'll pick on account operators here.
- 16:11And my experience is a group that's been heavily utilized to
- 16:15allow helped us users to reset passwords or create computer
- 16:19objects. Now, the issue with these
- 16:21built-in groups is 0ver permission over.
- 16:23A privilege. So it's very difficult to tell
- 16:27exactly how much permissions are privileges these have and in
- 16:30general, it's just best to avoid them domain.
- 16:32Admins is the only one you can't avoid.
- 16:34There is no permissions that you can delegate to be equivalent to
- 16:37domain admins. But everything else, you can
- 16:39absolutely 100% delegate DHCP. Admins you can delegate count
- 16:43operators, you can delegate Group Policy owners, definitely
- 16:46delegate. This one did not use that group
- 16:49because that would be equivalent to using a domain admin for a
- 16:52group policy. So I all Cause avoid these
- 16:54groups because they're it's difficult to track exactly how
- 16:57much access a have and Penny nine-year-old you structure and
- 17:01how deep it goes. It's going to be a mess.
- 17:03It's difficult to audit. Yeah, that was another
- 17:06conversation that we had at ignite and I also followed your
- 17:09advice and created my own security groups and then
- 17:12delegated permissions as needed. And it was also a process
- 17:16because the users who had account operator, previously
- 17:19they were used to certain things and as I was delegating
- 17:22permissions, I had to get feedback.
- 17:24So I would use some test users and put them with test counts
- 17:28and put them into these security groups as I was building them.
- 17:30And as things came up the they couldn't do.
- 17:34They would give me feedback and I'd find the correct permission
- 17:36to delegate to that security group and kind of build
- 17:38permission to the point where they could do everything that
- 17:40they needed to do. And I knew exactly what I had
- 17:42delegated versus being in the account, operators group,
- 17:46whereas Morgan said, you're not sure exactly what all the
- 17:49permissions are so it was discreet delegated correctly and
- 17:53they had Exactly the permissions that they needed.
- 17:55So when it comes to delegation and permissions, what are your
- 17:59recommendations, and any pitfalls or things that people
- 18:02might avoid, when it comes to permission delegation for
- 18:06permissions, and I'll choose this at the help desk level.
- 18:09A typical help desk made need to add a user to your group.
- 18:12Reset, a password, unlock an account, maybe create an account
- 18:17and move groups, computer objects users and so forth
- 18:20between no use where possible definitely.
- 18:23Avoid using full control. Now, some of these delegations
- 18:27you actually do need full control of the object and you'll
- 18:30have to play around with this a little bit.
- 18:32But start small start by thinking, what is you're
- 18:34actually trying to do? So if you're trying to move a
- 18:38group or modify a group, well set permissions on that object
- 18:41level to modify a group. Now, to move it, you actually
- 18:45may need create delete permissions because as certain
- 18:48objects are move, it is technically deleted, and then
- 18:51recreated so it's in a sense trial.
- 18:54But definitely start small about what it is you're trying to do
- 18:56and then work your way up. If full control is required
- 19:00limited to just that object, don't try to group multiple
- 19:03things under 11 delegation. So, if you're focusing on users,
- 19:07Focus, just on users at the time, go back through and then
- 19:10focus on your next object. Yeah, that was definitely, one
- 19:13of the things that I learned that you need is the ability to
- 19:17delete objects, if you're moving them between OU's and because we
- 19:21only wanted certain roles in the Organization to be able to
- 19:24delete objects in ad. We had to be really careful who
- 19:28we gave that permission to knowing that if we did not give
- 19:31them delete permissions, they would not be able to move user
- 19:34or computer objects between OU's.
- 19:37Yep, absolutely. So likewise you also want to
- 19:40check your permissions on your target OU so it's possible from
- 19:44your Source. Oh you do you have permission to
- 19:46be able to delete the object, or create the object to move from
- 19:48OU a 2-0. You be, now once you're at OU B,
- 19:51if you do not create the same, Since our delegations you may
- 19:55not be able to move that object or manipulate that object.
- 19:58So it's important to check and make sure that both your source
- 20:01and destination matchup. If that's what you're trying to
- 20:03achieve and as long as we're on the subject here, how granular
- 20:07can you or should you get when it comes to delegating
- 20:10permissions for servers? Workstations gpos?
- 20:14Etc. I would say get as granular as
- 20:17you need to. You can definitely get
- 20:18overboard. There's very little that you
- 20:21cannot delegate but the Or you can delegate out to just
- 20:26role-based permissions, the overall more sound.
- 20:30Your environment is going to be. So in this case for servers only
- 20:33Grant server administrators, if these people actually
- 20:35administering the server, otherwise grant them permissions
- 20:39to just connect to the server and then within the server do
- 20:42your appropriate permissions on the service or the application
- 20:46or whatever else that does need manipulation for that particular
- 20:49user. Same thing for workstations
- 20:51group policies. This is where you Want to
- 20:54heavily rely on your, a dou structure.
- 20:57Ideally, you want some sort of tearing for instance, I tr0
- 21:01through to tr0 being any highly privileged devices are accounts
- 21:06such as domain administrators, you're a privileged access or
- 21:09station domain controllers, Etc. Tier one might be your server
- 21:13admin accounts and then to your to might be your first dish
- 21:16administrator or even your standard user accounts but for
- 21:19group policy, make sure that you can go above into Other tier.
- 21:24So, if you're delegating your admin account, to have the
- 21:27ability to create delete modify gpos, make sure they can only
- 21:31apply gpos to the OU's that you intend them to.
- 21:34So this where you want to get granular with even your group
- 21:36policies as well. Try to avoid General broad group
- 21:40policies that affect something. If something just affects a
- 21:43privileged access workstation or even a DC, create a policy, just
- 21:47for that and apply to the appropriate OU, which is
- 21:49hopefully tiered and go from there.
- 21:51Separate out, your server gpos, it works.
- 21:53GPS, you use a GPS and get as granular as you really need to
- 21:57be with us. But the more you can, the more
- 22:00level of access and control you really have over your
- 22:02environment. I'm curious what your opinion on
- 22:04when it comes to the default policy where domain admins are
- 22:09granted local admin automatically to servers that
- 22:13are spun up as well as workstations that are joined to
- 22:16The Domain. Do you keep that in place or do
- 22:19you think that domain admins shouldn't have local admin
- 22:22privileges to every mmm? Oisin in the domain.
- 22:25So for this absolutely remove de minimis answers from the default
- 22:29built-in groups for servers and workstations.
- 22:32If your Spain up a domain controller, as soon as that's
- 22:35promoted domain admins, it's are eager be there.
- 22:38There's no issues there for servers.
- 22:40There is really no need for a domain admin to be on this
- 22:43device. Same thing with workstation.
- 22:45So remove that especially where stations removed with domain
- 22:48admins, from local Ministry, because ideation never logged
- 22:51into a workstation or run as under Any circumstances.
- 22:54But you can also back this up with sending user rights
- 22:57assignments to deny the local logins deny.
- 22:59The log on, through remote, desktop services, and then you
- 23:01just have this. Secondary level of security.
- 23:05Okay, let's switch gears for a second, Morgan.
- 23:07You mentioned, you have some background coming from a network
- 23:10Focus. So what's your recommendation
- 23:13for local firewall rules and restricting traffic on servers?
- 23:17Do you allow all outbound and only restrict inbound
- 23:19connections or do you also restrict outbound traffic?
- 23:23Ideally, you should be monitoring and restricting, both
- 23:27Ingress, and egress egress is a little bit more difficult but
- 23:30even with your basic, local firewall rules set to audit for
- 23:34connections, that would be blocked or out of her
- 23:36connections, that would be allowed.
- 23:37You can start to build up a list of what ports actually need to
- 23:41be opened up for outbound and from there instead of just open
- 23:44up a port will maybe you can specify a little bit further if
- 23:47it's within the same network what are their servers that can
- 23:50talk to as well? So big part of Prem active
- 23:54directory, security is security groups, and how to manage those
- 23:58when it comes to security, groups, Morgan, what is your
- 24:00recommendation as far as naming structure?
- 24:04Delegation, how do you recommend users manage security groups in
- 24:09general for this? You just want to pick a naming
- 24:12scheme, that makes sense, right? And it's consistent throughout.
- 24:14So, for example, if it's a security group, you might be
- 24:17able to start off with something like, security underscore list,
- 24:20the team or abbreviation for a team underscore, what?
- 24:23The function, right? So for this instance it might be
- 24:26like security underscore MP. That's my initials underscore
- 24:30essay for Server administrator. And here I delegate permissions
- 24:33for Server administrator levels to this group but being
- 24:36consistent, doing the type of group security, the team.
- 24:39And then the purpose, this can also help for automated
- 24:42processes as well. So when you're doing Mass
- 24:44delegations, you should be scripting some of these,
- 24:46especially, in instances of, like, Group Policy.
- 24:49It's a lot easier if you have a standardized naming scheme, to
- 24:52be able to say any That made this get these permissions or
- 24:56delegations, keep everything organized and make sure that in
- 25:00the name itself to some capacity or maybe even the description
- 25:04what it actually does. So, nothing's worse than having
- 25:07all these one-off security, groups, or groups in general
- 25:10that have all these random permissions, or delegations and
- 25:13it's used as and functions are unknown.
- 25:15So any previous groups you have maybe recreate those and to
- 25:19purpose-built groups have a group specifically for Server.
- 25:21Admins have a group specifically, A group policy,
- 25:24have a group for XYZ get granular here, assign
- 25:28permissions to these groups. I think one of the things that a
- 25:31lot of organizations as they go down the security groups when
- 25:34you're delegating permissions, it can be very easy to use.
- 25:38One Security Group to start adding permissions to it, and it
- 25:42becomes kind of this monstrosity over time where you get over
- 25:46permissioned. As you would say, if you add a
- 25:49user to it, they may need a specific function, but then they
- 25:52get granted access to All these other things that have grown.
- 25:55So I think one of the recommendations would be to have
- 25:59security groups for a specific purpose and not start adding
- 26:02permissions to that. Yeah, absolutely.
- 26:04This is where you want to get Grandeur that way, you don't
- 26:07have over permission or over privileged groups that end up
- 26:10being your catch-all. What are your opinions on nested
- 26:14security groups when you're dealing with permissions and
- 26:17privileges avoid them? So there shouldn't really be any
- 26:21instances where you need to start nesting.
- 26:22Some of these groups. Soooo there are scenarios.
- 26:24Of course it may be that it's easier to have a group
- 26:28specifically for a subset of admins.
- 26:31And then at and say, I'm in group a and then admin group b
- 26:35instead of necessary delegating permissions to each admin group,
- 26:38it may be easier in some instances just soon as he's
- 26:41under a certain group such as a server admin.
- 26:43But then make sure this group only applies to where it's
- 26:45needed. So, instead of doing two sets of
- 26:47delegations for two teams, you're doing one delegation, but
- 26:51it's now a new purpose-built that can encompass Both of these
- 26:54as far as we're talking with nested security groups.
- 26:57One of my pet peeves is also nested OU's.
- 27:00And when it comes to GPO inheritance, how do you
- 27:03recommend a d structure and making OU's so that it makes
- 27:07sense? And do you recommend breaking
- 27:10inheritance where it's needed? Or do you keep it enabled at
- 27:13all? At all costs I should say in my
- 27:16experience or at least in my environment.
- 27:17Any nested OU's if they exist, are separate for one reason or
- 27:22another, in which case, Inheritance would be broken.
- 27:24There isn't really any gpos that should be applied to both.
- 27:28I mean, there is some common ones but there's not enough.
- 27:31Common GPS between the two that the whole, the rest of the list
- 27:34should apply, but you can break inheritance here, or you can
- 27:37leave enable but then you still have to go down to the actual
- 27:40individual OU itself and then apply everything else needed on
- 27:43some cases or at least in my experience it's easier just to
- 27:46break and heritance and apply only what you need.
- 27:49If your environments that separate enough, they need
- 27:52separate. No use for even Queen
- 27:53workstations as worth the effort to spend a couple minutes to
- 27:56just apply only the unnecessary gpos even if there is some
- 28:00common groups. So one thing I like to add
- 28:02whenever I can based on the visibility I have in my role are
- 28:05things. They see people doing customers
- 28:08doing since I get a chance to interact with a lot of different
- 28:10customers and something, I'm running into a frequently right
- 28:14now. And so I'm, as long as we're on
- 28:16the subject of security groups. So place where I can save
- 28:18people, potentially some time in and I'm going to get cloudy for
- 28:21a second, but there's this Concept of a Microsoft 365 group
- 28:26that exists in the Microsoft 365 service and this is used for
- 28:30things like teams and like power bi in particular.
- 28:34And so what I've seen several customers run into trying to do
- 28:37recently, as they want to Nest a security group inside of a
- 28:40Microsoft 365 grew in order to do permissioning for Microsoft
- 28:44teams, or they just want to associate a security group
- 28:47directly with the team and before you go and create all
- 28:50your perfect security groups on premises and then try to sink
- 28:53under the Out and use them for those Services.
- 28:55Just wanna let you know, you can't do that Microsoft 365
- 28:58groups, their Cloud only and they don't support group nesting
- 29:01of any kind. The membership has to be direct
- 29:03in those. Now, there is concept of dynamic
- 29:05groups, where you can dynamically assign membership
- 29:08based on attributes, but you're not going to build a nest, like
- 29:11a security group inside of it. So anyhow, I didn't mean to get
- 29:14way off the beaten path here, but as long as we're talking
- 29:16about security groups, it made me think of that, as something
- 29:19where people have run into with kind of trying to do group
- 29:21management in the past. And if I can say, If somebody on
- 29:24this podcast, some time, trying to bang their head against the
- 29:26wall and make it work, when it's just not designed to function
- 29:29that way. Hopefully, that helps somebody
- 29:31out a little bit. And then kind of tying off on
- 29:34this discussion here, more going to be curious to get your take
- 29:36on or your recommendation when it comes to controlling access
- 29:40to privileged groups. So, for example, if a domain
- 29:43admin is going to promote another user to become a domain
- 29:46admin, what's your take on that as far as managing that having
- 29:49visibility into that sort of thing?
- 29:51I think you said the key word there, right?
- 29:53Loyalty. So you cannot restrict, Ms,
- 29:55Traders. And that's just by Design,
- 29:57whether it's a local administrator, or even a domain
- 30:00administrator systems aren't built to deny administrator.
- 30:03But what you can do is through a service or even Powershell,
- 30:07create some scripts to create water services or have Watcher
- 30:10services at monitor, the use groups for editions, ideally
- 30:14domain, admins other highly privileged groups, such as our
- 30:16prize admins or schema admins, either one can be used to
- 30:20achieve any group membership between those three.
- 30:22But even your Server level admins or your workstation
- 30:25admins have some sort of service or watch or set up that when a
- 30:31counter added or removed the that's logged and tracked and
- 30:34possibly even email alert it to your team to someone higher up.
- 30:38But have someone or multiple people that will have the same
- 30:41information to watches, ideally no one should just be creating
- 30:45an accounts out of the blue that you're unaware of especially
- 30:48when it comes to these more highly privileged groups.
- 30:50But having that visibility into when Happens kind of helps
- 30:55reinforce these self-governing, amongst the team, a tool that's
- 30:59been mentioned on the show. A couple of times is Microsoft
- 31:03Defender for identity formerly known as a sure ATP.
- 31:06And that's a tool for Microsoft where you install a agent that
- 31:10sits on your domain controllers and monitors activity in your
- 31:13environment. And it detects a lot of
- 31:15different things. I think I've mentioned in the
- 31:16past like, pass the hash past, the ticket golden ticket
- 31:19enumeration reconnaissance. It does this as well.
- 31:22What what Morgan's talk Seeing about is it will alert you when
- 31:25new administrators are added to some of these more sensitive
- 31:28permission levels or groups and will generate alerts in that
- 31:31tool and then those flow two different components of the
- 31:35Microsoft threat protection stack.
- 31:36So that's, that's another way to do and get more visibility into
- 31:40this as well. And there's a bunch of other
- 31:42third parties as well in the industry, like Quest metrics
- 31:47stealth bits. And there's a few other ones,
- 31:49but you can get certainly a tool to do it if you're not a
- 31:52Powershell. Roo, of course that does involve
- 31:55funding as well, but there are certainly tools that can do this
- 31:58exact thing have a GUI and alert you to different activity.
- 32:02That is happening when users are added to privileged groups.
- 32:05Yep. And I base all, this really
- 32:07comes down to logging, right? So whether you're using a paid
- 32:10service or paid solution, or even Windows Event, forwarding
- 32:14and Powershell do kick off a email.
- 32:17This is all based on logging. So you really want to control
- 32:20logging as well and access to logging.
- 32:22So one of the all topics I want to talk about and just give our
- 32:26listeners. A an idea of is the concept of
- 32:30privileged access workstations. Now we've mentioned that acronym
- 32:33on the show today paw but this is something that Morgan you and
- 32:37I talked about as well at ignite and it was a very interesting
- 32:41conversation. I just wanted to give our users
- 32:43an idea of what a paw is and how you've kind of constructed it at
- 32:48your company. So are privileged access
- 32:50workstation or paw is a purpose-built Administrative
- 32:54workstation. So I did simplest form.
- 32:57It is a device or essentially, a handheld server if you want.
- 33:01Think of it this way that is a hardened system you log into the
- 33:04device using for example, your admin credentials, right?
- 33:08So your main server admin to remain active directory.
- 33:11I'm going to credentials you log onto the device using that
- 33:13account, which is not local administrator by the way.
- 33:16No accounts you log into should be a local administrator for any
- 33:19daily activity on the Paul host. But you log into this
- 33:23workstation and from there you actually launch a VM.
- 33:26Now this VM is going to be where you do like your day-to-day
- 33:28activities and you log into this using a non-privileged non local
- 33:32admin account or your day-to-day standard user accounts.
- 33:35So the Paw host itself, this will have all your admin tools,
- 33:39right? So this will have active
- 33:40directory, this will have your windows admin Center.
- 33:42This will have sequel Studio, whatever tools you need at the
- 33:46administer. A little, this device will have
- 33:48that, but what it won't have is access to the internet or if it
- 33:52does, it's highly Tests such as through.
- 33:55And I as proxy, for example, where you only allow outbound
- 33:58ports enough to connect to a shirt, for example, their power
- 34:02shell, the Paw should be treated as a server, think of it, as
- 34:05sensitive as your domain controller.
- 34:07So chances are you if you have a demand mr.
- 34:10Account. You're running it from your paw
- 34:12hose itself. So, you have to treat this as a
- 34:14highly sensitive tr0 device because you're logging into it
- 34:18with one a highly privileged account, and to the nature of
- 34:21work that's done on this device. So you want that.
- 34:23Separation from day to day to admin tasks.
- 34:25And the reason this in my particular instance, it set up
- 34:28where I log into, with a, am an account, and then launch a VM
- 34:32is, if you did the reverse where I logged into the device with my
- 34:36standard day, a day and then launch the administrator VM,
- 34:39this would be equivalent to a jump server and jump server's
- 34:42aren't good in the fact that you're not controlling the
- 34:44source, you just controlling the destination.
- 34:46So if my host is compromised, anything below it, including the
- 34:51VMS is compromised as well. So my This is my day-to-day
- 34:54driver and that gets compromised.
- 34:56Well now my administrator VM is compromised as well and with
- 34:59that you probably have some sort of credentials that you can
- 35:01Harvest from there as well. So that's why you do the
- 35:03opposite. You log into a very secure
- 35:05workstation that has limited access.
- 35:07You have all your user rights. Assignments applocker is proxies
- 35:13web filtering. Local firewall, both Ingress and
- 35:16egress filtering set to make this the most hardened system
- 35:19that you can get it, and then you do all your work on a VM on
- 35:22the I'd wear if my VM is compromised it's just a VM
- 35:26that's compromised it's not coming back to the host.
- 35:29This is exactly how paw or saw is designed at Microsoft.
- 35:33They do exactly what Morgan just describe to the tee with the
- 35:36exception of Administrators have to use Smart cards still.
- 35:41But other than that, exactly spot-on.
- 35:43Where the the host OS, is the hardened OS, that is the
- 35:46environment that you absolutely cannot have any exceptions to
- 35:49maintaining the security posture of that environment.
- 35:52And then you have the VMware. Can kind of be more free with
- 35:54what you do. Because like Morgan said if the
- 35:57VM gets compromised you just throw it away and start over and
- 36:00that's no big deal, but you can't go the other way around.
- 36:02So this is this is totally spot-on and it's exactly how
- 36:05Microsoft does it as well if you were curious and there's
- 36:08documentation to which I'll put in the show notes, from
- 36:11Microsoft, for how to spin up your own privileged access
- 36:14workstations. Well, that was a great show for
- 36:17everyone and that's all the time we have for today.
- 36:20There's a link in our show notes to our voicemail.
- 36:22Leave us a voicemail or Send us a DM on Twitter or LinkedIn.
- 36:25If there's a security topic, you want to talk about or ask our
- 36:28opinion on. Thanks so much to talk to you
- 36:29guys next week. Thank you for listening to the
- 36:32blue security podcast. Please check out the show notes.
- 36:35Catch up on episodes. You may have missed and
- 36:37subscribe so you don't miss any future episodes.
- 36:39Find Andy, on Twitter at age 0, 0, and Adam at AJ Brewer.
- 36:44See you at our next episode?