SOAPHound
SOAPHound is a tool observed in security testing and discussed in relation to behavior seen in the wild. The provided content describes a manual SOAPHound attack simulation dated 2024-02-13 by Michael Haag in the attack_range environment, with Sysmon telemetry collected for MITRE ATT&CK technique T1059.001 and a dataset named Sysmon_soaphound used for detection validation in Splunk. The content also attributes to SOAPHound a distinctive LDAP query filter, "(!soaphound=)". Huntress reported that this filter does not appear directly in Windows LDAP Event ID 1644 logs because LDAP optimization transforms it into "(! (FALSE))" before logging, which can cause SOAPHound-related LDAP activity to evade straightforward 1644-based detections. High-confidence indicators and detection-relevant artifacts mentioned in the content include the LDAP filter "(!soaphound=)", its optimized logged form "(! (FALSE))", and the simulation dataset path /datasets/attack_techniques/T1059.001/soaphound/sysmon_soaphound.log. The provided content does not specify a threat actor, malware family classification, infection vector, or targeted industry beyond its use in attack simulation and LDAP-query-related detection research.
Techniques & procedures
13 distinct techniques documented for this family, organized by ATT&CK tactic.
Stealth
2 techniques
Stealth
Instead of using a generic query for the entire domain, SoapHound uses an obfuscated LDAP query, hiding its real intention.
"You could detect it with traffic to 9389 (ADWS) but there's an even bigger problem there, all of RSAT uses ADWS. So sysadmins doing normal operations would trigger false positives."
Credential Access
1 technique
Credential Access
"Pattern 2: Certificate template enumeration... Starting node: CN=Configuration... Attribute selection: ... certificateTemplates,cACertificate,msPKI-* ..."
Discovery
9 techniques
Discovery
Other capabilities include harvesting certificate templates and DNS nodes from the DC, providing deeper insight into potential attack surfaces... DNS nodes expose the internal naming structure of the domain, helping threat actors identify key systems, locate domain controllers, and map out paths for lateral movement or persistence.
LDAP is commonly used by criminals for lateral movement and critical assets enumeration in on-premises cyberattacks. | Threat actors often use LDAP for network enumeration during the discovery phase of an attack. Attackers query directories to extract sensitive information such as user accounts, group memberships and permissions, which they then use to escalate privileges and target critical assets.
Collector tools like SharpHound, SoapHound, and ShadowHound gather data on AD objects and relationships using a variety of protocols, including Lightweight Directory Access Protocol (LDAP), Server Message Block (SMB), and Active Directory Web Services (ADWS).
"Pattern Meaning Legitimate Use? ... SDflags:0x7 Full security descriptor request Very rare ... nTSecurityDescriptor in attributes ACL enumeration BloodHound pattern"
Detect AzureHound Command-Line Arguments ... Local Groups ... Detect SharpHound Usage ... Local Groups ... Group Discovery Via Net ... Local Groups
"Actual SOAPHound execution... Server controls: SDFlags:0x7" and "SDFlags:0x7 requests Owner (0x1) + Group (0x2) + DACL (0x4) = 0x7"
Detect AzureHound Command-Line Arguments ... Local Account ... Detect SharpHound Usage ... Local Account ... Windows SOAPHound Binary Execution ... Local Account
"My preferred way is using ADWS for AD collection... doing collection through ADWS has a large number of opsec benefits which depending on how detections are written can completely bypass some LDAP oriented detections."
Detect AzureHound Command-Line Arguments ... Domain Trust Discovery ... Detect SharpHound Usage ... Domain Trust Discovery ... Windows SOAPHound Binary Execution ... Domain Trust Discovery
Command and Control
1 technique
Command and Control
"The main thing differentiating the two protocols is with common LDAP diagnostic logging the host/device the collection appears to be coming from in the logs is always the DC the ADWS query is executed on due to the ADWS services interaction with the LDAP service on loopback..."
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.