Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Kimsuky_Malicious_Gotopwsh_Lnk

Detects malicious LNK used by Kimsuky

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

What this rule detects

Detects malicious LNK used by Kimsuky

Associated malware family: Kimsuky.

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

Summary generated from the rule's metadata and condition.

Rule source

apt-kimsuky-malicious-gotopwsh-lnk.yarDetection Rule License 1.1
rule SEKOIA_Apt_Kimsuky_Malicious_Gotopwsh_Lnk : FILE
{
	meta:
		description = "Detects malicious LNK used by Kimsuky"
		author = "Sekoia.io"
		id = "cfe9adf5-2c06-4d04-8006-c4eea0dab549"
		date = "2023-09-11"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_kimsuky_malicious_gotopwsh_lnk.yar#L1-L15"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "1537ea232e745b1ed9e4b7f6b9ba779a3498f5edf0c46bdccfdc511137b2bb3a"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = {67 00 6f 00 74 00 6f 00 26 00 70 00 5e 00 6f 00 77 00 5e 00 65 00 5e 00 72 00 73 00 5e 00 68 00 65 00 5e 00 6c 00 5e 00 6c}

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

Strings (1 patterns)

IdentifierTypeValueModifiers
$hex{67 00 6f 00 74 00 6f 00 26 00 70 00 5e 00 6f 00 77 00 5e 00 65 00 5e 00 72 00 73 00 5e 00 68 00 65 00 5e 00 6c 00 5e 00 6c}

Condition

uint32be( 0 ) == 0x4c000000 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: cfe9adf5-2c06-4d04-8006-c4eea0dab549

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Kimsuky rules