Windows DNS Client Query for .onion and Tor-related Domains
Alerts on Windows DNS queries resolving .onion and related Tor/hidden-service domains.
- Product
- windows
- Service
- dns-client
- Author
- Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
- Published
- 2022-02-20
- Updated
- 2026-07-31
ATT&CK techniques
C2Recon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
Exfiltration
Impact
What it detects
This rule identifies Microsoft Windows DNS Client events where a queried name matches .onion and Tor-related domain patterns associated with hidden services and Tor gateways. Attackers may use these lookups to reach onion services or blend Tor usage into normal network activity. The detection relies on DNS Client telemetry capturing DNS queries, including EventID 3008 and the queried name field (QueryName).
Reporting behind it
- logpoint.comhttps://www.logpoint.com/en/blog/detecting-tor-use-with-logpoint/
- github.comhttps://github.com/Azure/Azure-Sentinel/blob/f99542b94afe0ad2f19a82cc08262e7ac8e1428e/Detections/ASimDNS/imDNS_TorProxies.yaml
- github.comhttps://github.com/SigmaHQ/sigma/blob/master/rules/windows/builtin/dns_client/win_dns_client_tor_onion.yml
Changelog
v2- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
title: Windows DNS Client Query for .onion and Tor-related Domains
id: 363dfe7f-6101-4755-aed8-c113d73d59ab
related:
- id: b55ca2a3-7cff-4dda-8bdd-c7bfa63bf544
type: similar
- id: a8322756-015c-42e7-afb1-436e85ed3ff5
type: similar
- id: 8384bd26-bde6-4da9-8e5d-4174a7a47ca2
type: derived
status: test
description: This rule identifies Microsoft Windows DNS Client events where a queried name matches .onion and Tor-related domain patterns associated with hidden services and Tor gateways. Attackers may use these lookups to reach onion services or blend Tor usage into normal network activity. The detection relies on DNS Client telemetry capturing DNS queries, including EventID 3008 and the queried name field (QueryName).
references:
- https://www.logpoint.com/en/blog/detecting-tor-use-with-logpoint/
- https://github.com/Azure/Azure-Sentinel/blob/f99542b94afe0ad2f19a82cc08262e7ac8e1428e/Detections/ASimDNS/imDNS_TorProxies.yaml
- https://github.com/SigmaHQ/sigma/blob/master/rules/windows/builtin/dns_client/win_dns_client_tor_onion.yml
author: Nasreddine Bencherchali (Nextron Systems), Huntrule Team
date: 2022-02-20
modified: 2025-09-12
tags:
- attack.command-and-control
- attack.t1090.003
logsource:
product: windows
service: dns-client
definition: "Requirements: Microsoft-Windows-DNS Client Events/Operational Event Log must be enabled/collected in order to receive the events."
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: selection
falsepositives:
- Unlikely
level: high
license: DRL-1.1