Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Hacktool_Mimikatz_Obfuscated

Detects Mimikatz on strings obfuscation

Hack toolMimikatzSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-07-22
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects Mimikatz on strings obfuscation

Associated malware family: Mimikatz.

Targets: Windows PE.

It defines 10 patterns (10 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

hacktool-mimikatz-obfuscated.yarDetection Rule License 1.1
rule SEKOIA_Hacktool_Mimikatz_Obfuscated : FILE
{
	meta:
		description = "Detects Mimikatz on strings obfuscation"
		author = "Sekoia.io"
		id = "bac4bb61-d250-4fc3-95a5-edd4e3c7ff83"
		date = "2022-07-22"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/hacktool_mimikatz_obfuscated.yar#L1-L25"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "9f75e10122df0f57382e939d82b0ab4047d3d42f198c59faa22177d6d5d9afd7"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$xor1 = "Benjamin Delpy" xor
		$xor2 = "sekurlsa" xor wide
		$xor3 = "minidumpfile.dmp" wide
		$xor4 = "lsadump_dcsync" xor wide
		$xor5 = "kuhl_m_lsadump_getSamKey" xor wide
		$b1 = "Benjamin Delpy" base64
		$b2 = "sekurlsa" base64 wide
		$b3 = "minidumpfile.dmp" base64 wide
		$b4 = "lsadump_dcsync" base64 wide
		$b5 = "kuhl_m_lsadump_getSamKey" base64 wide

	condition:
		uint16be( 0 ) == 0x4d5a and 3 of them and filesize < 5MB
}

Strings (10 patterns)

IdentifierTypeValueModifiers
$xor1text"Benjamin Delpy"xor
$xor2text"sekurlsa"xor wide
$xor3text"minidumpfile.dmp"wide
$xor4text"lsadump_dcsync"xor wide
$xor5text"kuhl_m_lsadump_getSamKey"xor wide
$b1text"Benjamin Delpy"base64
$b2text"sekurlsa"base64 wide
$b3text"minidumpfile.dmp"base64 wide
$b4text"lsadump_dcsync"base64 wide
$b5text"kuhl_m_lsadump_getSamKey"base64 wide

Condition

uint16be( 0 ) == 0x4d5a and 3 of them and filesize < 5MB

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 5MB (a cheap guard that skips large files).
  • At least 3 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: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

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

Rule id: bac4bb61-d250-4fc3-95a5-edd4e3c7ff83

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Mimikatz rules