Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_LNK_Smallscreensize

check for LNKs that have a screen buffer size and WindowSize dimensions of 1x1

Suspicious / huntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Greg Lesnewich
Date
2023-01-01
Modified
2023-12-05
Score / Quality
65 / 85

What this rule detects

check for LNKs that have a screen buffer size and WindowSize dimensions of 1x1

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

Summary generated from the rule's metadata and condition.

Rule source

susp-lnk-smallscreensize.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_LNK_Smallscreensize
{
	meta:
		description = "check for LNKs that have a screen buffer size and WindowSize dimensions of 1x1"
		author = "Greg Lesnewich"
		id = "6194a76b-36d6-51d1-8d53-2e11172e29d2"
		date = "2023-01-01"
		modified = "2023-12-05"
		reference = "https://github.com/Neo23x0/signature-base"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_100days_of_yara_2023.yar#L22-L44"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "285985c21e34f8412b49dbfe04abad9f93af195801d0a8870ec3795b8a9a3787"
		score = 65
		quality = 85
		tags = ""
		version = "1.0"
		DaysofYARA = "1/100"

	strings:
		$dimensions = {02 00 00 A0 ?? 00 ?? ?? 01 00 01 00 01}

	condition:
		uint32be( 0x0 ) == 0x4c000000 and all of them
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$dimensionshex{02 00 00 A0 ?? 00 ?? ?? 01 00 01 00 01}

Condition

uint32be( 0x0 ) == 0x4c000000 and all of them

In plain words (Heuristic)

  • All 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: Greg Lesnewich

Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

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: 6194a76b-36d6-51d1-8d53-2e11172e29d2

Metadata

version1.0
DaysofYARA1/100