Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_LNK_Embedded_Worddoc

check for LNK files with indications of the Word program or an embedded doc

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

What this rule detects

check for LNK files with indications of the Word program or an embedded doc

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

Summary generated from the rule's metadata and condition.

Rule source

susp-lnk-embedded-worddoc.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_LNK_Embedded_Worddoc : FILE
{
	meta:
		description = "check for LNK files with indications of the Word program or an embedded doc"
		author = "Greg Lesnewich"
		id = "9677d41a-9d29-510c-98cd-122dc0ca9606"
		date = "2023-01-02"
		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#L3-L20"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "120ca851663ef0ebef585d716c9e2ba67bd4870865160fec3b853156be1159c5"
		logic_hash = "a53fbfe0ccb5a4ab2320cde10d17f29770d888cf21cda4fdccc3d7ae8d123293"
		score = 65
		quality = 85
		tags = "FILE"
		version = "1.0"
		DaysofYARA = "2/100"

	strings:
		$doc_header = {D0 CF 11 E0 A1 B1 1A E1}
		$icon_loc = "C:\\Program Files\\Microsoft Office\\Office16\\WINWORD.exe" ascii wide

	condition:
		uint32be( 0x0 ) == 0x4C000000 and filesize > 10KB and any of them
}

Strings (2 patterns)

IdentifierTypeValueModifiers
$doc_headerhex{D0 CF 11 E0 A1 B1 1A E1}
$icon_loctext"C:\\Program Files\\Microsoft Office\\Office16\\WINWORD.exe"ascii wide

Condition

uint32be( 0x0 ) == 0x4C000000 and filesize > 10KB and any of them

In plain words (Heuristic)

  • The file must be larger than 10KB.
  • At least one pattern 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).

  • 120ca851663ef0ebef585d716c9e2ba67bd4870865160fec3b853156be1159c5

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: 9677d41a-9d29-510c-98cd-122dc0ca9606

Metadata

version1.0
DaysofYARA2/100

Tags:FILE