Skip to content
StrikeOps

Users Can Add Computers to the Domain (MachineAccountQuota)

MediumTypical severity Active DirectoryCWE-269

01Description

The domain's ms-DS-MachineAccountQuota attribute was set to its default value of 10, allowing any authenticated user to create up to ten computer accounts in the domain.

02Impact

Attacker-controlled computer accounts are used in several privilege escalation techniques, including resource-based constrained delegation abuse and certain AD CS and relay attacks. The setting also allows unmanaged devices to be joined to the domain.

03Severity

Typically

Medium

Typically Medium. Medium alone. Higher when combined with relay or delegation weaknesses, where an attacker-created computer account is a key step in several escalation techniques.

04How to verify

  1. 1Read the ms-DS-MachineAccountQuota attribute on the domain object.
  2. 2Check which users hold the 'Add workstations to domain' user right.
  3. 3Where authorized, create and then delete a test computer account to confirm.

Testing note: only test systems you are authorized to test, within the agreed scope and rules of engagement. Verification steps are written for professional testers and avoid destructive techniques.

05Remediation

  1. 1Set ms-DS-MachineAccountQuota to 0.
  2. 2Delegate the ability to join computers to the domain to a specific group or service account used by IT.
  3. 3Monitor for computer account creation by non-administrative users.

06References

Draft findings like this from your own evidence

Book a demo
Book a demo