Active Directory · Learn

What is a DACL backdoor?

Every Active Directory object has an access control list. An attacker who can edit those lists can quietly grant themselves powerful rights, and leave them behind as a persistent backdoor.

Active Directory · LearnAll services Download PDF
TL;DR

A DACL backdoor is persistence created by editing the discretionary access control list (DACL) on Active Directory objects to grant an attacker hidden rights, for example DCSync on the domain, GenericAll on a privileged group, or password-reset on an admin account. The rights survive password resets and blend into normal object permissions, so they are easy to miss. Defend by auditing ACLs on tier-0 objects with BloodHound and monitoring for DACL changes.

By John Dill, Red Team Lead, SecureLayer7Updated

What a DACL backdoor is

Access in AD is controlled by DACLs on each object. Powerful rights, such as Replicating Directory Changes (DCSync), WriteDACL, GenericAll, or force-reset-password, can be granted to any principal. An attacker who reaches those permissions once can grant themselves a durable foothold that looks like an ordinary ACL entry, not an obvious backdoor account.

How the attack works

With enough rights the attacker adds an ACE granting themselves control, for example DCSync on the domain via Add-DomainObjectAcl -TargetIdentity 'DC=corp,DC=local' -Rights DCSync, or GenericAll on a privileged group, or password-reset on an admin. From then on they can dump hashes or seize the account at will. Impacket's dacledit does the same over the network. Payloads are shown for defensive testing.

How to defend against it

Baseline and audit the ACLs on tier-0 objects (the domain head, privileged groups, admin accounts, the AdminSDHolder) and alert on changes to them. Map object permissions with BloodHound the way attackers do, remove unexpected rights, and watch for grants of DCSync, WriteDACL, and GenericAll to non-tier-0 principals.

References

  1. [1]MITRE ATT&CK Enterprise Matrix(MITRE ATT&CK)
  2. [2]Microsoft: How access tokens and ACLs work(Microsoft)
Related terms

A single hidden ACE can give an attacker your domain on demand. Talk to a security expert about auditing your tier-0 permissions.

Related service
Red Team Assessment
Goal-based adversary emulation across your people, apps, and network, the full path an attacker would take.
Red team assessment

FAQ

DACL backdoors, asked often

Scope an engagement

Test your Active Directory before an attacker does.

Our red team maps the real path from a foothold to domain dominance, and ships findings with reproducible attacks and fixes your team can implement.