Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Koiloader_Lnk

LNK file leading to deploy KoiLoader

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

What this rule detects

LNK file leading to deploy KoiLoader

Associated malware family: Koiloader.

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

Summary generated from the rule's metadata and condition.

Rule source

koiloader-lnk.yarDetection Rule License 1.1
rule SEKOIA_Koiloader_Lnk : FILE
{
	meta:
		description = "LNK file leading to deploy KoiLoader"
		author = "Sekoia.io"
		id = "e82975b9-94b7-4de8-8cd5-d594aa80cf02"
		date = "2024-03-20"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/koiloader_lnk.yar#L1-L18"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "49953c76796f671ed80afa21872aac500d706f2af4426a5ec2854e16b9d0e474"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = "bat & schtasks /create" wide
		$s2 = "/sc minute /mo 1" wide
		$s3 = "c3RhcnQgL21pbiBwb3dlcnNoZWxsIC1jb21tYW5kICJJV1IgLVVzZUJhc2ljUGFyc2luZyAnaHR0cHM6" wide
		$s4 = " & certutil -f -decode " wide

	condition:
		uint32( 0 ) == 0x0000004c and all of them
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$s1text"bat & schtasks /create"wide
$s2text"/sc minute /mo 1"wide
$s3text"c3RhcnQgL21pbiBwb3dlcnNoZWxsIC1jb21tYW5kICJJV1IgLVVzZUJhc2ljUGFyc2luZyAnaHR0cHM6"wide
$s4text" & certutil -f -decode "wide

Condition

uint32( 0 ) == 0x0000004c and all of them

In plain words (Heuristic)

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

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: e82975b9-94b7-4de8-8cd5-d594aa80cf02

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Koiloader rules