Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Daolpu_Str

Finds Daolpu Stealer samples based on specific strings.

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

What this rule detects

Finds Daolpu Stealer samples based on specific strings.

Associated malware family: Daolpu.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-daolpu-str.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Daolpu_Str : FILE
{
	meta:
		description = "Finds Daolpu Stealer samples based on specific strings."
		author = "Sekoia.io"
		id = "dde1cf12-48d8-45b6-b453-b7196e6b1271"
		date = "2024-07-23"
		modified = "2024-12-19"
		reference = "https://www.crowdstrike.com/blog/fake-recovery-manual-used-to-deliver-unidentified-stealer/"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_daolpu_str.yar#L1-L26"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "9372a88efcdca6ca57f354fb31569522e5458271cc51dfedf09c6178a47a5b67"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "Content-Type: %s%s%s" ascii
		$str02 = "Content-Disposition: %s%s%s%s%s%s%s" ascii
		$str03 = "\\CocCoc\\Browser\\User Data\\Local State" ascii
		$str04 = "\\Microsoft\\Edge\\User Data\\Default\\Login Data" ascii
		$str05 = "\\Mozilla\\Firefox\\Profiles" ascii
		$str06 = "No MAC Address Found" ascii
		$str07 = "C:\\Windows\\Temp\\" ascii
		$str08 = "C:\\Windows\\Temp\\result.txt" ascii
		$str09 = "Privatekey@2211#$" ascii
		$str10 = "CryptStringToBinaryA Failed to convert BASE64 private key." ascii
		$str11 = "taskkill /F /IM chrome.exe" ascii

	condition:
		uint16( 0 ) == 0x5A4D and 8 of them
}

Strings (11 patterns)

IdentifierTypeValueModifiers
$str01text"Content-Type: %s%s%s"ascii
$str02text"Content-Disposition: %s%s%s%s%s%s%s"ascii
$str03text"\\CocCoc\\Browser\\User Data\\Local State"ascii
$str04text"\\Microsoft\\Edge\\User Data\\Default\\Login Data"ascii
$str05text"\\Mozilla\\Firefox\\Profiles"ascii
$str06text"No MAC Address Found"ascii
$str07text"C:\\Windows\\Temp\\"ascii
$str08text"C:\\Windows\\Temp\\result.txt"ascii
$str09text"Privatekey@2211#$"ascii
$str10text"CryptStringToBinaryA Failed to convert BASE64 private key."ascii
$str11text"taskkill /F /IM chrome.exe"ascii

Condition

uint16( 0 ) == 0x5A4D and 8 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 8 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: dde1cf12-48d8-45b6-b453-b7196e6b1271

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE