AD - Post-Compromise Enumeration

ldapdomaindump

โžก๏ธ ldapdomaindump - Active Directory information dumper via LDAP account

  • value targets

  • domain users

  • other types of access

  • descriptions

  • Domain Admins, Enterprise Admins, Computers, etc

mkdir -p ~/tcm/peh/ad-attacks/marvel.local
cd ~/tcm/peh/ad-attacks/marvel.local

sudo pip install -U ldap3
sudo pip install pycryptodome

sudo ldapdomaindump ldaps://hydra-dc.MARVEL.local -u 'MARVEL\fcastle' -p Password1

# Dumped files
domain_computers.grep
domain_computers.html
domain_computers.json
domain_computers_by_os.html
domain_groups.grep
domain_groups.html
domain_groups.json
domain_policy.grep
domain_policy.html
domain_policy.json
domain_trusts.grep
domain_trusts.html
domain_trusts.json
domain_users.grep
domain_users.html
domain_users.json
domain_users_by_group.html

BloodHound

โžก๏ธ BloodHound - uses graph theory to reveal the hidden and often unintended relationships within an Active Directory or Azure environment

  • Open the link http://localhost:7474/ and setup with user neo4j:neo4jbh

  • Run BloodHound and login with neo4j user

  • Collect the data by using an ingestor

  • Back to BloodHound interface, import all the json files via Upload data

    • Check interesting data via Node Info and Analysis

BloodHound

PlumHound

โžก๏ธ PlumHound - BloodHoundAD report engine

PlumHound

PingCastle

โžก๏ธ PingCastle - tool designed to assess quickly the Active Directory security level with a methodology based on risk assessment and a maturity framework

  • Run it from SPIDERMAN VM for example

    • Run a Healthcheck analysis

    • Open the ad_hc_marvel.local.html file and check for the domain risk score and results

PingCastle
PingCastle Report

Extra

Forest Druid

โžก๏ธ Forest Druid - free attack path discovery tool, natively compatible with Active Directory, that helps cybersecurity defensive teams quickly prioritize high-risk misconfigurations that could represent opportunities for attackers to gain privileged domain access

Forest Druid - Semperis.com

Purple Knight

โžก๏ธ Purple Knight - standalone utility that queries the Active Directory and Entra ID environment and performs a set of tests against many aspects of Active Directoryโ€™s security posture, including AD delegation, account security, AD infrastructure security, Group Policy security, and Kerberos security

Purple Knight - Semperis.com

Last updated

Was this helpful?