Detectionhightest
Query Tor Onion Address - DNS Client
Detects DNS resolution of an .onion address related to Tor routing networks
Nasreddine BencherchaliCreated 2022-02-20Updated 2025-09-128384bd26-bde6-4da9-8e5d-4174a7a47ca2windows
Log Source
Windowsdns-client
ProductWindows← raw: windows
Servicedns-client← raw: dns-client
Definition
Requirements: Microsoft-Windows-DNS Client Events/Operational Event Log must be enabled/collected in order to receive the events.
Detection Logic
Detection Logic1 selector
detection:
selection:
EventID: 3008
QueryName|endswith:
- '.hiddenservice.net'
- '.onion.ca'
- '.onion.cab'
- '.onion.casa'
- '.onion.city'
- '.onion.direct'
- '.onion.dog'
- '.onion.glass'
- '.onion.gq'
- '.onion.guide'
- '.onion.in.net'
- '.onion.ink'
- '.onion.it'
- '.onion.link'
- '.onion.lt'
- '.onion.lu'
- '.onion.ly'
- '.onion.mn'
- '.onion.network'
- '.onion.nu'
- '.onion.pet'
- '.onion.plus'
- '.onion.pt'
- '.onion.pw'
- '.onion.rip'
- '.onion.sh'
- '.onion.si'
- '.onion.to'
- '.onion.top'
- '.onion.ws'
- '.onion'
- '.s1.tor-gateways.de'
- '.s2.tor-gateways.de'
- '.s3.tor-gateways.de'
- '.s4.tor-gateways.de'
- '.s5.tor-gateways.de'
- '.t2w.pw'
- '.tor2web.ae.org'
- '.tor2web.blutmagie.de'
- '.tor2web.com'
- '.tor2web.fi'
- '.tor2web.io'
- '.tor2web.org'
- '.tor2web.xyz'
- '.torlink.co'
condition: selectionFalse Positives
Unlikely
False positives are unlikely for most environments. High confidence detection.
MITRE ATT&CK
Tactics
Sub-techniques
Related Rules
SimilarDetectionhigh
DNS Query Tor .Onion Address - Sysmon
Detects DNS queries to an ".onion" address related to Tor routing networks
Detects similar activity. Both rules may fire on overlapping events.
SimilarDetectionmedium
DNS TOR Proxies
Identifies IPs performing DNS lookups associated with common Tor proxies.
Detects similar activity. Both rules may fire on overlapping events.
Rule Metadata
Rule ID
8384bd26-bde6-4da9-8e5d-4174a7a47ca2
Status
test
Level
high
Type
Detection
Created
2022-02-20
Modified
2025-09-12
Author
Path
rules/windows/builtin/dns_client/win_dns_client_tor_onion.yml
Raw Tags
attack.command-and-controlattack.t1090.003