Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_TOOLS_Edrsandblast

Detects EDRSandBlast

Suspicious / huntingditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekShen
Date
2020-11-06
Modified
2024-09-25
Score / Quality
75 / 75

What this rule detects

Detects EDRSandBlast

Targets: Windows PE.

It defines 15 patterns (13 text, 2 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

indicator-tools-edrsandblast.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_TOOLS_Edrsandblast : FILE
{
	meta:
		description = "Detects EDRSandBlast"
		author = "ditekShen"
		id = "85d6d82b-a30e-5c79-93e7-8a3bbbf4a403"
		date = "2020-11-06"
		modified = "2024-09-25"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_tools.yar#L1745-L1767"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "9b801f053e42fbd646cf62fecf6cbf5f2cceeec82bed93ecd8625984eccb08c6"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "credguard" fullword wide
		$s2 = "\\cmd.exe" fullword wide
		$s3 = "ci_%s.dll" fullword wide
		$s4 = "cmd /c sc" wide
		$s5 = "fltmgr_%s.sys" fullword wide
		$s6 = "ntoskrnl_%s.exe" fullword wide
		$s7 = "ProductDir" fullword wide
		$s8 = "lsass.exe" fullword wide
		$s9 = "0x%p;%ws;%ws;;;" ascii
		$s10 = "MiniDumpWriteDump" ascii
		$s11 = "EDRSB_Init: %u" ascii
		$s12 = "ntoskrnloffsets.csv" fullword wide nocase
		$s13 = "wdigestoffsets.csv" fullword wide nocase
		$o1 = { eb 0e 8b 85 34 15 00 00 ff c0 89 85 34 15 00 00 }
		$o2 = { 74 48 8b 85 34 15 00 00 41 b9 04 01 00 00 4c 8d }

	condition:
		uint16( 0 ) == 0x5a4d and 7 of them
}

Strings (15 patterns)

IdentifierTypeValueModifiers
$s1text"credguard"fullword wide
$s2text"\\cmd.exe"fullword wide
$s3text"ci_%s.dll"fullword wide
$s4text"cmd /c sc"wide
$s5text"fltmgr_%s.sys"fullword wide
$s6text"ntoskrnl_%s.exe"fullword wide
$s7text"ProductDir"fullword wide
$s8text"lsass.exe"fullword wide
$s9text"0x%p;%ws;%ws;;;"ascii
$s10text"MiniDumpWriteDump"ascii
$s11text"EDRSB_Init: %u"ascii
$s12text"ntoskrnloffsets.csv"fullword wide nocase
$s13text"wdigestoffsets.csv"fullword wide nocase
$o1hex{ eb 0e 8b 85 34 15 00 00 ff c0 89 85 34 15 00 00 }
$o2hex{ 74 48 8b 85 34 15 00 00 41 b9 04 01 00 00 4c 8d }

Condition

uint16( 0 ) == 0x5a4d and 7 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 7 patterns in the rule must match.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Licence & attribution

Author: ditekShen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 85d6d82b-a30e-5c79-93e7-8a3bbbf4a403

Tags:FILE