Join our Newsletter — 33% off our NHI Course
Home› Glossary› Governance, Ownership & Risk› MachineAccountQuota (ms-DS-MachineAccountQuota)
Governance, Ownership & Risk

MachineAccountQuota (ms-DS-MachineAccountQuota)

← Back to Glossary
By NHI Mgmt Group Updated October 20, 2026 Domain: Governance, Ownership & Risk

MachineAccountQuota (ms-DS-MachineAccountQuota) is the Active Directory setting that controls how many computer accounts a standard user can create. If it is left at the default or set too high, attackers can add machine accounts to support abuse of delegation, resource access or domain escalation. Defenders should review and minimise this quota.

What MachineAccountQuota Controls in Active Directory

MachineAccountQuota, or ms-DS-MachineAccountQuota, sets how many computer accounts an ordinary domain user can create. That seemingly small permission can materially change the shape of an Active Directory environment because a new machine object can become a foothold for delegation abuse, access path manipulation, or escalation planning.

Why This Setting Matters

The quota is not just an administrative convenience setting, it is a trust-boundary control. In environments where standard users can create machine accounts, attackers can manufacture principals that may be used to fit into delegation flows, impersonation paths, or domain abuse chains that would be harder to build from a normal user account. Hardening guidance for Active Directory and Entra ID Hardening Guide treats delegation and privileged group exposure as part of the same attack surface because a permissive directory design often creates unexpected escalation paths.

How Attackers Use Excessive Machine Creation Rights

The main danger is not the computer object itself, but what it enables in the directory. A low-friction machine-creation privilege can be combined with delegation misconfiguration, Kerberos abuse, or resource access assumptions to move from an ordinary user context into a more powerful position. The Kerberos Delegation Security Guide is especially relevant here because machine-account creation and delegation abuse often appear together in real attack paths, including resource-based constrained delegation and other identity-substitution techniques.

Once a machine account exists, it can also become a durable object for staging authentication material, requesting service access, or participating in flows that defenders did not intend to expose to standard users. The operational problem is that the quota expands the number of identities a user can introduce into the directory, which increases both the attack surface and the review burden.

Defensive Review and Hardening Priorities

Defenders should treat this setting as an exception-driven control, not a default convenience. The practical question is whether ordinary users truly need to create machine accounts at all, and if they do, whether the number should be tightly constrained and monitored. The safest posture is to minimise the quota, review who can create machine accounts, and look for directory configurations that turn those objects into delegation or access-control footholds.

That review should sit alongside broader directory hardening. The Active Directory and Entra ID Hardening Guide is a useful reference for understanding how machine-account creation interacts with tiering, delegation and privileged access decisions. For control alignment, NIST SP 800-53 Rev 5 Security and Privacy Controls supports the wider need for least privilege, account management, auditability and configuration oversight in directory environments.

Detection and Response After Suspicious Use

Suspicious machine-account creation is worth reviewing as a potential indicator of preparation for later abuse, especially when it appears in bulk, from unusual users, or in environments where the control should be tightly bounded. Detection should focus on account-creation events, unusual naming patterns, unexpected delegation relationships, and post-creation activity that suggests the new machine object is being used for access expansion rather than normal administration. MITRE ATT&CK Enterprise Matrix remains useful for mapping the downstream techniques that often follow directory abuse, including privilege escalation and lateral movement.

If exploitation is suspected, review not only the machine account itself but also the surrounding directory state, including delegation settings, privileged group membership, and any access paths that changed after the object was created. If the environment allows suspicious creation at scale, the problem is usually broader than one account and should be treated as a directory-hardening gap, not an isolated event.

Risk and Threat Considerations

Excessive machine-account creation rights can create a quiet but meaningful escalation path in Active Directory. The risk is highest when the setting combines with weak delegation hygiene, because a standard user may be able to introduce a computer object that later participates in trust relationships or access flows the defender did not intend.

Failure mechanism: A user creates one or more machine accounts, then uses those objects to support delegation abuse, impersonation, or other access-path manipulation that changes the effective trust boundary of the directory.

Impact: The result can be privilege escalation, broader resource access, or a foothold that makes later domain compromise easier to stage and harder to spot.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5AC-2 — Account ManagementMachine-account creation is an account management issue in Active Directory.
AC-6 — Least PrivilegeThe quota controls a user privilege that should be minimized to reduce abuse paths.
AU-2 — Event LoggingSuspicious machine-account creation must be visible for investigation and detection.
Recommendation — Restrict who can create computer accounts and review account lifecycle approvals for exception use. Minimise standard-user authority to create machine accounts and remove excess privilege. Log machine-account creation events and alert on anomalous creation patterns or creators.
CIS Controls v8CIS-5 — Account ManagementCIS account governance directly covers limiting and reviewing account-creation paths.
CIS-6 — Access Control ManagementThe setting is an access-control lever that should be governed to prevent unnecessary privilege.
Recommendation — Limit computer-account creation rights and periodically review directory account provisioning settings. Reduce unnecessary directory privileges that allow ordinary users to create machine accounts.

Practitioner Guidance

Governance implication: Treat ms-DS-MachineAccountQuota as an ownership decision, not a background default. If standard users do not need to create machine objects, reduce the quota to the minimum defensible level and document why any exception exists.

What to watch for: Repeated machine-account creation, unusual creators, or newly created computer objects that quickly acquire delegation or access relationships deserve immediate review. In practice, the safest teams pair a minimal quota with directory monitoring that can explain why a machine account was created and what it was used for.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org