Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Redhotel_Maliciouslnk_Strings

Detects RedHotel's malicious LNKs

APT / threat actorSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2024-09-06
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects RedHotel's malicious LNKs

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

Summary generated from the rule's metadata and condition.

Rule source

apt-redhotel-maliciouslnk-strings.yarDetection Rule License 1.1
rule SEKOIA_Apt_Redhotel_Maliciouslnk_Strings : FILE
{
	meta:
		description = "Detects RedHotel's malicious LNKs"
		author = "Sekoia.io"
		id = "df2f0002-7921-4378-a936-ea0de5fbfa5a"
		date = "2024-09-06"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_redhotel_maliciouslnk_strings.yar#L1-L25"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "8e2c17040ec78cbcdc07bb2cf9dd7e01"
		hash = "dc613a519e515ca817fdfb88f81fc9d7"
		hash = "6f7d85c196c277a6a619f6d94b8f69b9"
		hash = "b04d484d1e1d793b04af2a5fb88a8a57"
		logic_hash = "c1d64b3eca5961d7eaab82a6934299642a70301ef791493a371ae5a29376225f"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "desktop-" ascii
		$ = ".\\1.docx" wide
		$ = ".\\1.pdf" wide
		$ = ".\\1.doc" wide
		$ = ".\\1.ppt" wide
		$ = ".\\1.pptx" wide
		$ = "MACOS" wide

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

Strings (7 patterns)

IdentifierTypeValueModifiers
$text"desktop-"ascii
$text".\\1.docx"wide
$text".\\1.pdf"wide
$text".\\1.doc"wide
$text".\\1.ppt"wide
$text".\\1.pptx"wide
$text"MACOS"wide

Condition

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

In plain words (Heuristic)

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

  • 8e2c17040ec78cbcdc07bb2cf9dd7e01
  • dc613a519e515ca817fdfb88f81fc9d7
  • 6f7d85c196c277a6a619f6d94b8f69b9
  • b04d484d1e1d793b04af2a5fb88a8a57

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: df2f0002-7921-4378-a936-ea0de5fbfa5a

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE