Domain Administrator Only Administer the Domain

Introduction

We all know that we should reduce the number of domain admins on our network, however we should also control what a domain admins can and can not do. I'm not talking about "No Domain Admin for You".

 

What I'm talk talking about is "Phenomenal Cosmic Powers!!!!!!"

"In a itty bitty living space."

The domain admin role is only needed to administer the domain, however may organization allow for these accounts to login to a laptop, database, and servers. A simple configuration of you're domain will prevent domain admins from logging into any where except your domain controllers.

CYA

First some CYA. Any users that uses the domain admins role to administer anything other than the domain will need to have a new account and/or security group with the correct permissions. Then be removed of the domain admins security group. 

Next, the method I will be showing is from a brand new freshly built domain, and uses the default security groups and GPOs. Odds are your domain, and GPOs are not fresh, and very well may be smelly. Before doing this understand your domain, and GPOs (this is good practice anyways). You may want to deviate from my example, however the concept should still apply.

Finally, we will be setting up an explicit deny with GPOs to prevent domain admins from logging in to systems. We must ensure that we do not apply this deny to the domain controllers or to domain admins security groups.

Let get started.....

Process

  • Open "Group Policy Management" editor on your domain controller.
  • In the left-hand pane locate, and select the "Default Domain Policy"
  • Within the "Scope" tab select "Authenticated Users"
  • Click "Remove" (this will prevent the GPO being applied to "Authenticated Users" including domain admins)
  • Click "Add..."

 

Next, 

  • Type "Domain Computers" (domain controllers are NOT in this security group by default)
  • Click "OK"

 

The scope now should just included "Domain Computers".

 Next...

  • Next right click on the GPO, and select "Edit..."

  

  • In the left-hand pane navigate to "Computer Configuration" -> "Policies" -> "Windows Settings" -> "Local Policy" -> "User Rights Assignment" 
  • In the right-hand pane locate the following policies
    • "Deny access to this computer from the network"
    • "Deny log in as a batch job"
    • "Deny log on as a service"
    • "Deny log on locally"
    • "Deny log on through Remote Desktop Services"

  •  Add "Domain Admins" security group to each policy 

 

Now when attempting to login to any computer that is not a domain controller you'll received the following message.

S 

Summary

Should we remove unnecessary domain admins? Yes.  However, we should also prevent what domain admins' ability to administer anything other than the domain.

Comments

Popular posts from this blog

Mapping CIS Critical Controls to Gartner Markets

Malware Can Hide But It Must Run

PCAP Doesn't Lie Part 2