The hypothesis is that the detection of EquationGroup Tool - April Leak indicates potential adversary activity leveraging known malicious tools associated with advanced persistent threats. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify and mitigate early-stage compromise attempts by sophisticated adversaries.
YARA Rule
rule EquationGroup_Toolset_Apr17_PC_Level_Generic {
meta:
description = "Detects EquationGroup Tool - April Leak"
author = "Florian Roth"
reference = "https://steemit.com/shadowbrokers/@theshadowbrokers/lost-in-translation"
date = "2017-04-15"
hash1 = "7a6488dd13936e505ec738dcc84b9fec57a5e46aab8aff59b8cfad8f599ea86a"
hash2 = "0e3cfd48732d0b301925ea3ec6186b62724ec755ed40ed79e7cd6d3df511b8a0"
hash3 = "d1d6e3903b6b92cc52031c963e2031b5956cadc29cc8b3f2c8f38be20f98a4a7"
hash4 = "25a2549031cb97b8a3b569b1263c903c6c0247f7fff866e7ec63f0add1b4921c"
hash5 = "591abd3d7ee214df25ac25682b673f02219da108d1384261052b5167a36a7645"
hash6 = "6b71db2d2721ac210977a4c6c8cf7f75a8f5b80b9dbcece1bede1aec179ed213"
hash7 = "7be4c05cecb920f1010fc13086635591ad0d5b3a3a1f2f4b4a9be466a1bd2b76"
hash8 = "f9cbccdbdf9ffd2ebf1ee84d0ddddd24a61dbe0858ab7f0131bef6c7b9a19131"
hash9 = "3cf7a01bdf8e73769c80b75ca269b506c33464d81f574ded8bb20caec2d4cd13"
hash10 = "a87a871fe32c49862ed68fda99d92efd762a33ababcd9b6b2b909f2e01f59c16"
strings:
$s1 = "wshtcpip.WSHGetSocketInformation" fullword ascii
$s2 = "\\\\.\\%hs" fullword ascii
$s3 = ".?AVResultIp@Mini_Mcl_Cmd_NetConnections@@" fullword ascii
$s4 = "Corporation. All rights reserved." fullword wide
$s5 = { 49 83 3c 24 00 75 02 eb 5d 49 8b 34 24 0f b7 46 }
$op1 = { 44 24 57 6f c6 44 24 58 6e c6 44 24 59 }
$op2 = { c6 44 24 56 64 88 5c 24 57 }
$op3 = { 44 24 6d 4c c6 44 24 6e 6f c6 44 24 6f }
condition:
uint16(0) == 0x5a4d and filesize < 400KB and ( 2 of ($s*) or all of ($op*) )
}
This YARA rule can be deployed in the following contexts:
This rule contains 8 string patterns in its detection logic.
Scenario: Scheduled System Maintenance Task
Description: A legitimate scheduled task running a script or tool like schtasks.exe or task scheduler that performs system maintenance (e.g., log cleanup, disk defragmentation).
Filter/Exclusion: Exclude processes initiated by the Task Scheduler service (svchost.exe -s schedule) or filter by command-line arguments containing clean, log, or defrag.
Scenario: PowerShell Script for Log Analysis
Description: A PowerShell script (e.g., powershell.exe) used by the security team to analyze system logs or perform compliance checks.
Filter/Exclusion: Exclude processes with command-line arguments containing Get-EventLog, Get-WinEvent, or audit in the command line.
Scenario: Admin Tool for System Configuration
Description: A legitimate admin tool like regedit.exe or gpedit.msc used to modify registry settings or group policy configurations.
Filter/Exclusion: Exclude processes with parent process explorer.exe or services.exe, and filter by command-line arguments related to registry or group policy modifications.
Scenario: Software Update Deployment
Description: A tool like Windows Update or WSUS (e.g., wuauclt.exe) running to deploy software updates or patches.
Filter/Exclusion: Exclude processes with parent process svchost.exe and command-line arguments related to update, patch, or install.
Scenario: Database Backup Job
Description: A database backup job using tools like sqlbackup.exe or mysqldump.exe executed by a scheduled job.
Filter/Exclusion: Exclude processes with command-line arguments containing backup, restore, or dump, and filter by parent process