Detection rules › Splunk
Windows Gather Victim Network Info Through Ip Check Web Services
The following analytic detects processes attempting to connect to known IP check web services. This behavior is identified using Sysmon EventCode 22 logs, specifically monitoring DNS queries to services like "wtfismyip.com" and "ipinfo.io". This activity is significant as it is commonly used by malware, such as Trickbot, for reconnaissance to determine the infected machine's IP address. If confirmed malicious, this could allow attackers to gather network information, aiding in further attacks or lateral movement within the network.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Reconnaissance | T1590.005 Gather Victim Network Information: IP Addresses |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 22 | DNSEvent (DNS query) |
Stages and Predicates
Stage 1: search
search EventCode=22 QueryName IN ("*api.ip.sb", "*api.ipify.org", "*b.barracudacentral.org", "*cbl.abuseat.org", "*checkip.*", "*dnsbl-1.uceprotect.net", "*freegeoip.app*", "*geoip.*", "*icanhazip.*", "*icanhazip.com", "*ifconfig.me*", "*ip-api.com*", "*ip-api.io*", "*ip.anysrc.com", "*ipecho.net", "*ipfind.io*", "*ipgeolocation.io*", "*ipinfo.io", "*iplogger.org*", "*ipstack.com*", "*ipv4bot.whatismyipaddress.com*", "*ipwho.is*", "*myexternalip.com*", "*myip.com*", "*spam.dnsbl.sorbs.net", "*trackip.net*", "*wtfismyip.com", "*zen.spamhaus.org", "ident.me", "www.myexternalip.com")
Stage 2: stats
stats BY answer, answer_count, dvc, process_exec, process_guid, process_name, query, query_count, reply_code_id, signature, signature_id, src, user_id, vendor_product, QueryName, QueryResults, QueryStatus
Stage 3: search
search
Stage 4: search
search
Stage 5: search
search `macro`
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
EventCode | eq |
|
QueryName | in |
|