Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Rat_Win_Konni_Rat

Detect the KONNI RAT DLL files (x32 and x64)

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 KONNI RAT DLL files (x32 and x64)

Associated malware family: Konni.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

rat-win-konni-rat.yarDetection Rule License 1.1
rule SEKOIA_Rat_Win_Konni_Rat : FILE
{
	meta:
		description = "Detect the KONNI RAT DLL files (x32 and x64)"
		author = "Sekoia.io"
		id = "032f1c79-6f03-4588-a4af-38b1f3ca1cb8"
		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/rat_win_konni_rat.yar#L1-L25"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "764e75d3e433a8784e826f436896c50c9622129412ff277b55ec9aaf1402ff5e"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = ".cab" wide
		$ = ".zip" wide
		$ = ".rar" wide
		$ = ".ini" wide
		$ = ".dat" wide
		$ = "%s(%d)" wide
		$ = "%s %s \"%s\"" wide
		$ = "\\Temp\\" wide

	condition:
		uint16( 0 ) == 0x5A4D and all of them and filesize > 60KB and filesize < 120KB
}

Strings (8 patterns)

IdentifierTypeValueModifiers
$text".cab"wide
$text".zip"wide
$text".rar"wide
$text".ini"wide
$text".dat"wide
$text"%s(%d)"wide
$text"%s %s \"%s\""wide
$text"\\Temp\\"wide

Condition

uint16( 0 ) == 0x5A4D and all of them and filesize > 60KB and filesize < 120KB

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 120KB (a cheap guard that skips large files).
  • The file must be larger than 60KB.
  • 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: 032f1c79-6f03-4588-a4af-38b1f3ca1cb8

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Konni rules