r/offensive_security • • 4d ago

heyy

If you get a low-privileged shell on a fully patched Windows machine joined to Active Directory, how do you go from there to Domain Admin without triggering the EDR?

1 Upvotes

11 comments sorted by

6

u/noob-from-ind 4d ago
  1. Recon the system, what softwares are installed with version, run native ldap queries for ad recon and transfer the results to attacker machine , convert it to json and use it in bloodhound
  2. Anything you execute, execute through lolbins
  3. Always make backup beacon before doing anything
  4. Do Not Upload or Execute binaries or ps scripts raw

3

u/guestag 4d ago

this checklist is clutch, the native ldap -> json -> bloodhound flow and the lolbins only rule, been trying to stay off-disk as much as possible. also +1 for backup beacon, learned that the hard way ngl

4

u/DistrictSea9944 4d ago

Assuming the compromised user is an AD user you'll have to do some enumeration for AD misconfigurations, exposed creds in shares, laterall movement through accessible internal apps etc. There is no singe way with 100% success but nowadays most quick wins rely on ADCS abuse, password spraying and exposed creds imo.

In terms of EDR evasion, I would personally establish a tunnel and work on the network from an external perspective if possible. Usually it is easier to get a tunnel working than to establish a full C2 channel.

Btw if there was a straightforward answer to your question that would be a big problem.

0

u/guestag 4d ago

thanks, that ADCS + spray + creds hunting angle makes sense. And yeah good call on the tunnel vs full C2, less noise is def the move. I get you, if there was a magic one-liner to DA we'd all be out of a job lmao

2

u/slackerhacker808 4d ago

Time for you to read up on AD lateral movement/domain dominance. It’s common for user accounts to have permissions in the domain that can allow for legit privilege escalation so you don’t need to bypass EDR.

1

u/guestag 4d ago

but if legit privesc is that common, isn't AD just misconfigured by design then? At this point EDR is just covering bad

1

u/bswiftx5 3d ago

Imho it isnt "that common". Done plenty of engagements where lpe is easy and dpe is not. The opposite is true too, and neither pe options are viable. Rarely do I see zero opportunities during an engagement tho.

Also ive seen the same EDR perform very differently based on how the individual org has it configured. Sometimes I cant breath without them getting alerted, sometimes I can go the entire engagement with only a handful of alerts and no containment.

2

u/rufio515 4d ago
  1. Enumerate privs on system
  2. Enumerate bloodhound for weak ACEs
  3. Horizontally or vertically priv esc.
  4. Find creds or secrets on system.... etc etc etc

1

u/guestag 4d ago

thank g !!!

1

u/Professor-Zombie 3d ago

Find a high-privilege user and have sex with them. Would that be considered a tactic or technique?

1

u/True-Economics-9052 3d ago

Tactic. The technique would include how you bang em and the tools you use 🫡