T1590.001 Sumo Logic CSE · Sumo

Detect Domain Properties in Sumo Logic CSE

Adversaries may gather information about the victim's network domain(s) that can be used during targeting. Information about domains and their properties may include a variety of details, including what domain(s) the victim owns as well as administrative data (name, registrar, etc.) and more directly actionable information such as contacts, business addresses, and name servers. Adversaries gather this information via direct collection (WHOIS queries, DNS enumeration), passive data sets, or by querying publicly accessible API endpoints such as Microsoft's GetUserRealm and autodiscover APIs in Office 365/Azure environments. Tools such as AADInternals leverage these public APIs to enumerate tenant domain details, federation configuration, and company metadata — all without authenticating to the target environment.

MITRE ATT&CK

Tactic
Reconnaissance
Technique
T1590 Gather Victim Network Information
Sub-technique
T1590.001 Domain Properties
Canonical reference
https://attack.mitre.org/techniques/T1590/001/

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
(_sourceCategory=*sysmon* OR _sourceCategory=*windows* OR _sourceCategory=*endpoint*)
| where EventCode=1 OR EventCode=3
| parse regex field=CommandLine "(?i)(?P<aad_cmd>Get-AADIntTenantDomains|Get-AADIntLoginInformation|Get-AADIntTenantDetails|Invoke-AADIntReconAsOutsider|AADInternals|Get-AADIntTenantID|Get-AADIntOpenIDConfiguration|Get-AADIntTenantDomainNames)" nodrop
| parse regex field=CommandLine "(?i)(?P<o365_cmd>GetUserRealm|autodiscover)" nodrop
| parse regex field=CommandLine "(?i)(?P<whois_cmd>whois\.exe|Get-Whois|Invoke-Whois)" nodrop
| parse regex field=DestinationHostname "(?i)(?P<whois_svc>whois\.iana\.org|who\.is|whois\.domaintools\.com|whois\.verisign|rdap\.org|rdap\.arin\.net|rdap\.verisign\.com)" nodrop
| where !isNull(aad_cmd) OR !isNull(o365_cmd) OR !isNull(whois_cmd) OR !isNull(whois_svc) OR (EventCode=3 AND DestinationPort=43)
| eval DetectionType = if(!isNull(aad_cmd), "AADInternals_DomainRecon",
    if(!isNull(o365_cmd), "O365_API_DomainRecon",
    if(!isNull(whois_cmd), "WHOIS_Tool_Execution",
    if(EventCode=3 AND DestinationPort=43, "WHOIS_Protocol_Port43",
    "WHOIS_WebService_Access"))))
| table _time, host, User, Image, CommandLine, DestinationHostname, DestinationPort, DetectionType
| sort by _time desc
medium severity high confidence

Sumo Logic query detecting domain property reconnaissance (T1590.001) across Sysmon EventCode 1 (process create) and EventCode 3 (network connect) telemetry. Uses chained nodrop regex parse operators to extract AADInternals cmdlet hits, O365 public API patterns (GetUserRealm, autodiscover), WHOIS tool invocations, and outbound WHOIS/RDAP hostname matches. Assigns a DetectionType label per matching event for analyst triage prioritisation. Field names reflect standard Sumo Logic Sysmon XML parsing.

Data Sources

Sumo Logic Continuous Intelligence PlatformSysmon operational log via Sumo Logic Windows Installed CollectorWindows Security Event Log via Sumo Logic Installed Collector

Required Tables

Sysmon event logs (_sourceCategory=*sysmon*)Windows Security logs (_sourceCategory=*windows*)

False Positives & Tuning

  • IT helpdesk staff or domain administrators running WHOIS lookups from corporate workstations during phishing investigation, spam source analysis, or DNS troubleshooting workflows
  • Authorized identity governance tooling that calls O365 GetUserRealm or autodiscover endpoints to verify tenant configuration, test hybrid identity flows, or validate federation settings during maintenance windows
  • SOAR playbooks or SIEM enrichment pipelines that automatically query WHOIS or RDAP services to enrich IP or domain observables during automated alert triage, producing events from service account processes
Download portable Sigma rule (.yml)

Other platforms for T1590.001


Testing Methodology

Validate this detection against 5 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1AADInternals Tenant Domain Reconnaissance

    Expected signal: Sysmon Event ID 1: Process Create for powershell.exe with CommandLine containing 'Get-AADIntLoginInformation' and 'AADInternals'. PowerShell ScriptBlock Log Event ID 4104 with the full module import and command. Sysmon Event ID 3: Network connection from powershell.exe to login.microsoftonline.com (port 443). Azure AD Audit Logs may show GetUserRealm API access from the source IP.

  2. Test 2WHOIS Protocol Query via PowerShell

    Expected signal: Sysmon Event ID 1: Process Create for powershell.exe with CommandLine containing 'TcpClient' and 'whois.iana.org' and port 43. Sysmon Event ID 3: Network Connection from powershell.exe to whois.iana.org on DestinationPort 43. Security Event ID 4688 (if command line auditing enabled).

  3. Test 3Azure AD Domain List Enumeration via Graph API

    Expected signal: Sysmon Event ID 1: Process Create for az.cmd or python.exe (Azure CLI) with CommandLine containing 'graph.microsoft.com' and 'domains'. Sysmon Event ID 3: Network connection from the Azure CLI process to graph.microsoft.com on port 443. Azure AD Audit Logs: OperationName='List domains' with the initiating user, IP address, and application 'Microsoft Azure CLI'.

  4. Test 4AADInternals External Tenant Reconnaissance (Outsider Mode)

    Expected signal: Sysmon Event ID 1: Process Create for powershell.exe with CommandLine containing 'Invoke-AADIntReconAsOutsider' and 'AADInternals'. PowerShell ScriptBlock Log Event ID 4104 with the full function invocation. Multiple Sysmon Event ID 3 records: outbound HTTPS connections to login.microsoftonline.com, autodiscover.microsoft.com, and related Microsoft identity endpoints. Azure AD Audit Logs may record the GetUserRealm API calls with source IP.

  5. Test 5Bulk DNS Record Enumeration for Domain Mapping

    Expected signal: Sysmon Event ID 1: Process Create for powershell.exe with CommandLine containing 'Resolve-DnsName' and multiple DNS record types. Sysmon Event ID 22 (DNS Query): multiple DNS queries for the target domain with QueryType values MX, NS, TXT, SOA. Windows DNS Client Event Log (Microsoft-Windows-DNS-Client/Operational): corresponding DNS resolution events.

Unlock Pro Content

Get the full detection package for T1590.001 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections