Exploiting active directory with bloodhound

From xalgord/xalgorix · View interactive version

Exploiting active directory with bloodhound is an AI agent skill from the GitHub repository xalgord/xalgorix. BloodHound is a graph-based Active Directory reconnaissance tool that uses graph theory to reveal hidden and unintended relationships within AD environments. Red teams use BloodHound to identify attac

How to use this skill

Skill file

Exploiting Active Directory with BloodHound

Legal Notice: This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws.

Overview

BloodHound is a graph-based Active Directory reconnaissance tool that uses graph theory to reveal hidden and unintended relationships within AD environments. Red teams use BloodHound to identify attack paths from compromised accounts to high-value targets such as Domain Admins, identifying privilege escalation chains that would be nearly impossible to find manually. SharpHound is the official data collector that gathers AD objects, relationships, ACLs, sessions, and group memberships.

When to Use

Most Often Missed & How to Confirm

Prerequisites

Objectives

MITRE ATT&CK Mapping

Workflow

Phase 1: Data Collection with SharpHound

  1. Transfer SharpHound collector to compromised host
  2. Execute collection with appropriate method (All, DCOnly, Session, LoggedOn)
  3. Collect from all reachable domains if multi-domain environment
  4. Exfiltrate ZIP data files to analysis workstation
  5. Import data into BloodHound CE or Legacy

Phase 2: Attack Path Analysis

  1. Mark owned principals (compromised accounts)
  2. Query shortest path to Domain Admins
  3. Identify Kerberoastable accounts with admin privileges
  4. Find AS-REP Roastable accounts
  5. Analyze ACL-based attack paths (GenericAll, GenericWrite, WriteDACL, ForceChangePassword)
  6. Review GPO abuse opportunities

Phase 3: Exploitation Planning

  1. Prioritize attack paths by complexity and stealth
  2. Identify required tools for each step in the chain
  3. Plan OPSEC considerations for each technique
  4. Execute identified attack chain
  5. Document evidence at each step

Tools and Resources

| Tool | Purpose | Platform |

|------|---------|----------|

| BloodHound CE | Graph visualization and analysis | Web-based |

| SharpHound | AD data collection (.NET) | Windows |

| BloodHound.py | AD data collection (Python) | Linux/Windows |

| Cypher queries | Custom graph queries | Neo4j/BloodHound |

| PlumHound | Automated BloodHound reporting | Python |

| Max (BloodHound) | BloodHound automation | Python |

Key BloodHound Queries

| Query | Purpose |

|-------|---------|

| Shortest Path to Domain Admins | Find fastest route to DA |

| Find Kerberoastable Users with Path to DA | SPN accounts leading to DA |

| Find AS-REP Roastable Users | Accounts without pre-auth |

| Shortest Path from Owned Principals | Paths from compromised accounts |

| Find Computers with Unsupported OS | Legacy systems for exploitation |

| Find Users with DCSync Rights | Accounts that can replicate AD |

| Find GPOs that Modify Local Group Membership | GPO-based privilege escalation |

Validation Criteria

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.