Ninjasta

Microsoft Identity, Enterprise Security & Automation

Identity & Security | Active Directory, Entra ID and Cybersecurity

Shadow Admins in Active Directory: The Privilege You Don’t See (Until It’s Too Late)

2–3 minutes

Everyone monitors Domain Admins.
Very few monitor Shadow Admins.
Shadow Admins are accounts that are not members of privileged groups, yet still have enough delegated permissions to compromise an Active Directory environment.
In other words, they possess effective administrative privileges without looking like administrators.
For example, a user with GenericWrite permission over a Domain Admin account can reset its password or modify critical attributes—effectively gaining full control of the domain without ever belonging to the Domain Admins group.
This is what makes Shadow Admins so dangerous: they hide in plain sight.

Common Shadow Privilege Escalation Paths

Several delegated permissions can create hidden administrative paths.

ACLs on Active Directory Objects

Misconfigured Access Control Lists (ACLs) may grant rights such as GenericAll, GenericWrite, or WriteDACL over privileged users, groups, or computers.

GPO Modification

If a user can modify a Group Policy Object linked to a privileged Organizational Unit (OU), they can deploy startup scripts, scheduled tasks, or configuration changes that execute as SYSTEM.

SIDHistory Abuse

Legacy SIDHistory values inherited from migrations may silently grant administrative privileges even when group memberships appear legitimate.

Write Access to Critical OUs

Permissions to create, move, or modify objects inside privileged OUs can become an indirect privilege escalation path by applying elevated Group Policies to attacker-controlled accounts.

Detecting Shadow Admins with PowerShell

One of the simplest ways to begin identifying Shadow Admins is by reviewing Active Directory permissions.

Import-Module ActiveDirectory
Get-ADObject -Filter * -Properties nTSecurityDescriptor | ForEach-Object {
$acl = Get-Acl "AD:\$($_.DistinguishedName)"
$acl.Access | Where-Object {
$_.ActiveDirectoryRights -match "GenericAll|GenericWrite" } |
Select-Object IdentityReference,
ActiveDirectoryRights,
IsInherited,
ObjectType

This script highlights accounts with powerful delegated permissions that deserve further investigation.

How to Reduce the Risk

There is no single mitigation for Shadow Admins. Instead, organizations should continuously review delegated permissions and apply least-privilege principles.
Recommended practices include:

  • Isolate Tier 0 assets using an administrative tiering model.
  • Audit Active Directory ACLs regularly.
  • Remove unnecessary delegated permissions.
  • Apply the principle of least privilege across all administrative roles.
  • Consider an ESAE (Enhanced Security Administrative Environment) or a dedicated administrative forest where appropriate.

Final Notes

Shadow Admins don’t appear when you run:

net group "Domain Admins" /domain

Yet they may be only one delegated permission away from becoming Domain Admins.
The real question isn’t who is an administrator.
It’s who can become one without anyone noticing.
Every unnecessary GenericWrite, GenericAll, or delegated permission on a privileged object is a potential attack path waiting to be exploited.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from Ninjasta

Subscribe now to keep reading and get access to the full archive.

Continue reading