Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Dropper_Win_Konni_Cab

Detect the CAB files used to drop the KONNI malware

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

What this rule detects

Detect the CAB files used to drop the KONNI malware

Associated malware family: Konni.

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

Summary generated from the rule's metadata and condition.

Rule source

dropper-win-konni-cab.yarDetection Rule License 1.1
rule SEKOIA_Dropper_Win_Konni_Cab : FILE
{
	meta:
		description = "Detect the CAB files used to drop the KONNI malware"
		author = "Sekoia.io"
		id = "87a209d5-667a-4a81-837a-660ab98c33c8"
		date = "2023-09-26"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/dropper_win_konni_cab.yar#L1-L18"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "b49bb875d5ddd4b815da5bd184ec7f1d23cfb7ad316760c9a9876607245d0a95"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$magic = "MSCF"
		$file2 = "check.bat"
		$file3 = "wpnprv64.dll"
		$file4 = "wpnprv32.dll"

	condition:
		$magic at 0 and all of ( $file* )
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$magictext"MSCF"
$file2text"check.bat"
$file3text"wpnprv64.dll"
$file4text"wpnprv32.dll"

Condition

$magic at 0 and all of ( $file* )

In plain words (Heuristic)

  • All patterns in ( $file* ) must match.
  • Pattern $magic must be found at offset 0.

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: 87a209d5-667a-4a81-837a-660ab98c33c8

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Konni rules