Summery
SeMachineAccountPrivilege is a Windows security privilege that allows a user to add computer accounts to an Active Directory domain.
By default, authenticated domain users can create up to 10 computer accounts (unless domain policy changes this).
You can use netexec to verify the amount of computer accounts a user can create:
netexec ldap brunodc.bruno.vl -u "svc_scan" -p "Sunshine1" -M maq
Exploitation
If a set of requirements is met, this right can be exploited for privilege escalation, most famously with a Kerberos relay attack.
Requirements:
- LDAP signing not required on Domain Controller - It’s set by default - can be checked with netexec
- Ability for the current domain user to add computers to the domain - it’s set by default - or an owned computer account by itself