Detection of BloodHound and SharpHound Enumeration Tools
Adversaries utilize BloodHound and SharpHound to perform automated reconnaissance and enumeration of Active Directory environments, facilitating lateral movement and privilege escalation.
BloodHound and its data ingestor, SharpHound, are widely utilized by threat actors to map and analyze Active Directory attack paths. By enumerating domain objects, sessions, and group memberships, these tools enable attackers to identify misconfigurations that lead to privilege escalation or lateral movement. SharpHound typically executes as a standalone binary or via PowerShell, generating JSON output that is then imported into the BloodHound graph database for visual analysis. Given the tool's effectiveness in identifying complex trust relationships and high-value targets within a domain, its usage is a strong indicator of an active discovery phase by a motivated adversary. Monitoring for specific command-line arguments and file metadata associated with SharpHound is critical for early detection of reconnaissance efforts within Windows environments.
Attack Chain
- Attacker gains initial foothold or executes code within the domain environment.
- Attacker drops SharpHound.exe or invokes the SharpHound PowerShell module onto the host.
- SharpHound initiates enumeration of Active Directory using specialized collection methods such as -CollectionMethod All.
- SharpHound executes port scans or session enumeration to map network connectivity and user sessions.
- The tool performs path discovery, identifying domain controllers and group memberships.
- Data is collected into JSON files on the local disk via the -JsonFolder and -ZipFileName parameters.
- The compressed collection files are exfiltrated from the environment for offline analysis.
- Attacker uses the graph analysis to identify paths for privilege escalation or lateral movement.
Impact
Successful execution of BloodHound provides an adversary with a comprehensive roadmap of an organization's Active Directory security posture. This significantly increases the risk of successful account takeover, domain dominance, and data exfiltration, as attackers can identify and exploit non-obvious attack paths that standard security controls may overlook.
Recommendation
- Deploy the provided Sigma rule to detect known SharpHound command-line patterns and binary metadata.
- Enable Sysmon process-creation logging to capture CommandLine, Product, and Company fields.
- Investigate occurrences of SharpHound execution to determine if unauthorized domain enumeration is taking place.
- Restrict the ability of non-administrative users to execute tools that perform automated LDAP queries against domain controllers.
Immediate actions
Deploy Sigma detection rule to SIEM
Threat Hunt
Search for rare process execution of SharpHound.exe
Data: Process creation events
Detection coverage 1
Detect BloodHound and SharpHound Execution
highDetects command line parameters and file metadata associated with BloodHound and SharpHound hack tools.
Detection queries are available on the platform. Get full rules →