Sigma rule: Potential SocGholish Second Stage C2 DNS Query
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-94b98b285183, updated 2023-02-23T00:00:00.000Z.
Rule
- Title
- Potential SocGholish Second Stage C2 DNS Query
- Status
- test
- Level
- high
- Author
- Dusty Miller
- Date
- 2023-02-23
- File
- rules-emerging-threats/2023/Malware/dns_query_win_malware_socgholish_second_stage_c2.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects a DNS query initiated from a "wscript" process for domains matching a specific pattern that was seen being used by SocGholish for its Command and Control traffic
Log source
- product
- windows
- category
- dns_query
Detection
selection:
Image|endswith: '\wscript.exe'
QueryName|re: '[a-f0-9]{4,8}\.(?:[a-z0-9\-]+\.){2}[a-z0-9\-]+'
condition: selectionFalse positives (as the rule lists them)
- Legitimate domain names matching the regex pattern by chance (e.g. domain controllers dc01.company.co.uk)
Tags
- attack.command-and-control
- attack.t1219.002
- detection.emerging-threats
MITRE ATT&CK ids this rule names
References
- https://www.virustotal.com/gui/file/0e2854753d17b1bb534de8e765d5813c9fb584a745978b3d92bc6ca78e3e7735/relations
- https://www.virustotal.com/gui/file/d5661009c461a8b20e1ad22f48609cc84dd90aee9182e026659dde4d46aaf25e/relations
- https://www.proofpoint.com/us/blog/threat-insight/part-1-socgholish-very-real-threat-very-fake-update
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-emerging-threats/2023/Malware/dns_query_win_malware_socgholish_second_stage_c2.yml
Sources and licences
SigmaHQ
"Potential SocGholish Second Stage C2 DNS Query" by Dusty Miller (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-emerging-threats/2023/Malware/dns_query_win_malware_socgholish_second_stage_c2.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Potential SocGholish Second Stage C2 DNS Query",
entity page, dataset version ref-94b98b285183, updated 2023-02-23T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/70761fe8-6aa2-4f80-98c1-a57049c08e66 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 70761fe8-6aa2-4f80-98c1-a57049c08e66, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.