Skip to content

MachineAccountQuota


Default is 10 for domain users, this makes RBCD and kerberos relay attacks significantly easier to exploit and is worth reporting.

Identify

with nxc

nxc ldap <ip> -u user -p pass -M maq

with powerview

Get-DomainPolcy -Policy DC -domain <domain> | Select-Object -ExpandProperty PrivilegeRights | select seMachineAccountPrivilege
ConverFrom-SID <SID>

with powershell

Get-ADObject ((Get-ADDomain).distinguishedname) -Properties ms-DS-MachineAccountQuota

ldapsearch

ldapsearch -x -H ldap://<dcip> -b "DC=example,DC=local" ms-DS-MachineAccountQuota

What now?