Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Blankstealer

Detects BlankStealer / BlankGrabber / Blank-c Stealer

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

What this rule detects

Detects BlankStealer / BlankGrabber / Blank-c Stealer

Associated malware family: Blankstealer.

It defines 4 patterns (3 text, 1 hex, 0 regex).

YARA-X says: warning[text_as_hex]: hex pattern could be written as text literal

Summary generated from the rule's metadata and condition.

Rule source

malware-win-blankstealer.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Blankstealer : FILE
{
	meta:
		description = "Detects BlankStealer / BlankGrabber / Blank-c Stealer"
		author = "ditekSHen"
		id = "19686781-4be8-56c1-b606-d8fe14dbdc48"
		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#L10691-L10703"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "cc0c8d3e0061d192e445ef661387360644ab428a9e9fc2480e966db96bc8264c"
		score = 75
		quality = 75
		tags = "FILE"
		snort = "923829001"

	strings:
		$s1 = "Blank-c" ascii
		$s2 = "Stealer License" ascii
		$s3 = "UID=" ascii
		$h1 = { 42 6c 61 6e 6b 2d 63 0a 53 74 65 61 6c 65 72 20 4c 69 63 65 6e 73 65 0a 55 49 44 3d }

	condition:
		( uint16( 0 ) == 0x4152 and 2 of them ) or ( all of ( $s* ) or 1 of ( $h* ) )
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$s1text"Blank-c"ascii
$s2text"Stealer License"ascii
$s3text"UID="ascii
$h1hex{ 42 6c 61 6e 6b 2d 63 0a 53 74 65 61 6c 65 72 20 4c 69 63 65 6e 73 65 0a 55 49 44 3d }

Condition

( uint16( 0 ) == 0x4152 and 2 of them ) or ( all of ( $s* ) or 1 of ( $h* ) )

In plain words (Heuristic)

  • All patterns in ( $s* ) must match.
  • At least 2 patterns in the rule must match.
  • At least 1 patterns in ( $h* ) 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: 19686781-4be8-56c1-b606-d8fe14dbdc48

Metadata

snort923829001

Tags:FILE