The hypothesis is that the detection of EquationGroup Tool - April Leak indicates potential adversary use of sophisticated, previously disclosed malware to execute malicious activities within the network. A SOC team should proactively hunt for this behavior in Azure Sentinel to identify and mitigate potential advanced persistent threat (APT) activity that may have evaded initial detection mechanisms.
YARA Rule
rule EquationGroup_Toolset_Apr17_Gen3 {
meta:
description = "Detects EquationGroup Tool - April Leak"
author = "Florian Roth"
reference = "https://steemit.com/shadowbrokers/@theshadowbrokers/lost-in-translation"
date = "2017-04-15"
super_rule = 1
hash1 = "270850303e662be53d90fa60a9e5f4bd2bfb95f92a046c77278257631d9addf4"
hash2 = "7a086c0acb6df1fa304c20733f96e898d21ca787661270f919329fadfb930a6e"
hash3 = "c236e0d9c5764f223bd3d99f55bd36528dfc0415e14f5fde1e5cdcada14f4ec0"
hash4 = "9d98e044eedc7272823ba8ed80dff372fde7f3d1bece4e5affb21e16f7381eb2"
hash5 = "dfce29df4d198c669a87366dd56a7426192481d794f71cd5bb525b08132ed4f7"
hash6 = "87fdc6c32b9aa8ae97c7efbbd5c9ae8ec5595079fc1488f433beef658efcb4e9"
hash7 = "722f034ba634f45c429c7dafdbff413c08976b069a6b30ec91bfa5ce2e4cda26"
hash8 = "d94b99908f528fa4deb56b11eac29f6a6e244a7b3aac36b11b807f2f74c6d8be"
hash9 = "4b07d9d964b2c0231c1db7526237631bb83d0db80b3c9574cc414463703462d3"
hash10 = "30b63abde1e871c90df05137ec08df3fa73dedbdb39cb4bd2a2df4ca65bc4e53"
hash11 = "02c1b08224b7ad4ac3a5b7b8e3268802ee61c1ec30e93e392fa597ae3acc45f7"
hash12 = "690f09859ddc6cd933c56b9597f76e18b62a633f64193a51f76f52f67bc2f7f0"
strings:
$s1 = "Logon failed. Kerberos ticket not yet valid (target and KDC times not synchronized)" fullword ascii
$s2 = "[-] Could not set \"CredentialType\"" fullword ascii
$op1 = { 46 83 c4 0c 83 fe 0c 0f 8c 5e ff ff ff b8 }
condition:
( uint16(0) == 0x5a4d and filesize < 150KB and 2 of them )
}
This YARA rule can be deployed in the following contexts:
This rule contains 3 string patterns in its detection logic.
Scenario: Legitimate scheduled system maintenance using PowerShell
Filter/Exclusion: process.name != "powershell.exe" or process.parent.name != "schtasks.exe"
Scenario: Administrative task using Windows Task Scheduler to run a legitimate script
Filter/Exclusion: process.name != "cmd.exe" or process.parent.name != "taskhost.exe"
Scenario: Security software update using Microsoft Defender
Filter/Exclusion: process.name != "MsMpEng.exe" or process.parent.name != "svchost.exe"
Scenario: Network monitoring tool using Wireshark for packet capture
Filter/Exclusion: process.name != "wireshark.exe" or process.parent.name != "explorer.exe"
Scenario: Database backup job using SQL Server Agent
Filter/Exclusion: process.name != "sqlservr.exe" or process.parent.name != "sqlagent.exe"