Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Malicious_Lnk_Exploiting_Webdav_Share_Generic

Detects some malicious LNK

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

What this rule detects

Detects some malicious LNK

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

Summary generated from the rule's metadata and condition.

Rule source

malicious-lnk-exploiting-webdav-share-generic.yarDetection Rule License 1.1
rule SEKOIA_Malicious_Lnk_Exploiting_Webdav_Share_Generic : FILE
{
	meta:
		description = "Detects some malicious LNK"
		author = "Sekoia.io"
		id = "b228643c-ab23-46e1-b170-3da6bcb2dd23"
		date = "2024-11-22"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/malicious_lnk_exploiting_webdav_share_generic.yar#L1-L20"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "cffb40e13e3aa6761330090b42314c36"
		logic_hash = "8179ef8ac43cb67a1b70baf7824452834f498d988df84e138c857ac0ef164b4b"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "powershell.exe" wide
		$ = "-Name explorer; \\\\" wide
		$ = "@80\\"
		$ = "desktop-tcrdu4c"

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

Strings (4 patterns)

IdentifierTypeValueModifiers
$text"powershell.exe"wide
$text"-Name explorer; \\\\"wide
$text"@80\\"
$text"desktop-tcrdu4c"

Condition

uint32be( 0 ) == 0x4c000000 and 2 of them

In plain words (Heuristic)

  • The file must start with the Windows shortcut (LNK) header.
  • At least 2 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).

  • cffb40e13e3aa6761330090b42314c36

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: b228643c-ab23-46e1-b170-3da6bcb2dd23

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE