YARA · SEKOIA.IO Community
SEKOIA_Apt_Flightnight_Malicious_Lnk
Detects malicious LNK used by FlightNight
- 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:
= "Detects malicious LNK used by FlightNight"
= "Sekoia.io"
= "06f33ece-ac9f-4dd3-98fb-cd69305ee995"
= "2024-04-02"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_flightnight_malicious_lnk.yar#L1-L21"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "3446852709fe425b2c053ffdb9c078cf20e442ef50fe20402d3b4c9e9d8b543a"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s0 | text | "/c start /B " | wide |
| $s1 | text | ".exe &" | wide |
| $s2 | text | ".pdf" | wide |
| $s3 | text | "%CD%" | wide |
Condition
uint32be( 0 ) == 0x4c000000 and $s1 in ( @s0 .. @s2 ) and $s1 in ( @s0 .. @s0 + 100 ) and $s3In 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.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
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
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-06-11
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-03-06