Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Flightnight_Malicious_Lnk

Detects malicious LNK used by FlightNight

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

What this rule detects

Detects malicious LNK used by FlightNight

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

Summary generated from the rule's metadata and condition.

Rule source

apt-flightnight-malicious-lnk.yarDetection Rule License 1.1
rule SEKOIA_Apt_Flightnight_Malicious_Lnk : FILE
{
	meta:
		description = "Detects malicious LNK used by FlightNight"
		author = "Sekoia.io"
		id = "06f33ece-ac9f-4dd3-98fb-cd69305ee995"
		date = "2024-04-02"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_flightnight_malicious_lnk.yar#L1-L21"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "3446852709fe425b2c053ffdb9c078cf20e442ef50fe20402d3b4c9e9d8b543a"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s0 = "/c start /B " wide
		$s1 = ".exe &" wide
		$s2 = ".pdf" wide
		$s3 = "%CD%" wide

	condition:
		uint32be( 0 ) == 0x4c000000 and $s1 in ( @s0 .. @s2 ) and $s1 in ( @s0 .. @s0 + 100 ) and $s3
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$s0text"/c start /B "wide
$s1text".exe &"wide
$s2text".pdf"wide
$s3text"%CD%"wide

Condition

uint32be( 0 ) == 0x4c000000 and $s1 in ( @s0 .. @s2 ) and $s1 in ( @s0 .. @s0 + 100 ) and $s3

In plain words (Heuristic)

  • The file must start with the Windows shortcut (LNK) header.
  • Pattern $s1 must be found within the range @s0 .. @s2.
  • Pattern $s1 must be found within the range @s0 .. @s0 + 100.
  • Pattern $s3 must be present.

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: 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: 06f33ece-ac9f-4dd3-98fb-cd69305ee995

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE