Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_UNK_Infostealer

Detects unknown information stealer

MalwareUNKditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 75

What this rule detects

Detects unknown information stealer

Associated malware family: UNK.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-unk-infostealer.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_UNK_Infostealer : FILE
{
	meta:
		description = "Detects unknown information stealer"
		author = "ditekSHen"
		id = "f6f9816f-79bd-527c-9c0f-24e09c95ae35"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L8221-L8246"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		hash = "b7a2cb34d3bc42d6d4c9d9af7dd406e2a5caef8ea46e5d09773feeb9920a6b21"
		hash = "dd95377842932d77e225b126749e1e6e8ecd6f5c6540d084a551a80a54d02d7d"
		hash = "12f790d9a0775b5e62effc6ea9e55bbef345fffbfb2f671f85098c4f7661dd0f"
		hash = "0a4cea763dffde451c75a434143fc5d014c32c6d1f8f34920ea5f2854e62118f"
		logic_hash = "ca57ebf4b56020d278ec8a7e721c72de7a1f925a8e7f1f3a9edc8a70b88ff9d1"
		score = 75
		quality = 75
		tags = "FILE"
		snort_sid = "920263"

	strings:
		$s1 = "%s\\%s\\%s-Qt" fullword wide
		$s2 = "%s\\%s.json" fullword wide
		$s3 = "*.mmd*" fullword wide
		$s4 = "%s\\%s.vdf" fullword wide
		$s5 = "%-50s %s" fullword wide
		$s6 = "dISCORD|lOCAL" fullword ascii nocase
		$s7 = "sTORAGE|LEVELDB" fullword ascii nocase
		$s8 = ".coin" fullword ascii
		$s9 = ".emc" fullword ascii
		$s10 = ".lib" fullword ascii
		$s11 = ".bazar" fullword ascii
		$s12 = "id=%d" fullword ascii
		$s13 = "2:?/v /v /v /^Y" fullword ascii

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

Strings (13 patterns)

IdentifierTypeValueModifiers
$s1text"%s\\%s\\%s-Qt"fullword wide
$s2text"%s\\%s.json"fullword wide
$s3text"*.mmd*"fullword wide
$s4text"%s\\%s.vdf"fullword wide
$s5text"%-50s %s"fullword wide
$s6text"dISCORD|lOCAL"fullword ascii nocase
$s7text"sTORAGE|LEVELDB"fullword ascii nocase
$s8text".coin"fullword ascii
$s9text".emc"fullword ascii
$s10text".lib"fullword ascii
$s11text".bazar"fullword ascii
$s12text"id=%d"fullword ascii
$s13text"2:?/v /v /v /^Y"fullword 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

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • b7a2cb34d3bc42d6d4c9d9af7dd406e2a5caef8ea46e5d09773feeb9920a6b21
  • dd95377842932d77e225b126749e1e6e8ecd6f5c6540d084a551a80a54d02d7d
  • 12f790d9a0775b5e62effc6ea9e55bbef345fffbfb2f671f85098c4f7661dd0f
  • 0a4cea763dffde451c75a434143fc5d014c32c6d1f8f34920ea5f2854e62118f

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: f6f9816f-79bd-527c-9c0f-24e09c95ae35

Metadata

snort_sid920263

Tags:FILE