Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Konni_Check_Bat

Script used to performs check before executing Konni

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

What this rule detects

Script used to performs check before executing Konni

Associated malware family: Konni.

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

Summary generated from the rule's metadata and condition.

Rule source

apt-konni-check-bat.yarDetection Rule License 1.1
rule SEKOIA_Apt_Konni_Check_Bat : FILE
{
	meta:
		description = "Script used to performs check before executing Konni"
		author = "Sekoia.io"
		id = "f05e6ba2-c128-4c17-8f74-f7640103c859"
		date = "2023-11-27"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_konni_check_bat.yar#L1-L23"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "13a9dd6978985eb17960794c6de2ee2e6411e6afeb705ff95ced72bc0efb5d8c"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = ":64BIT"
		$ = ":32BIT"
		$ = ":INSTALL"
		$ = ":EXIT"
		$ = "netpp.dll"
		$ = "wpns.dll"
		$ = "netpp64.dll"
		$ = "wpns64.dll"
		$ = "rundll32"

	condition:
		filesize < 1MB and 7 of them
}

Strings (9 patterns)

IdentifierTypeValueModifiers
$text":64BIT"
$text":32BIT"
$text":INSTALL"
$text":EXIT"
$text"netpp.dll"
$text"wpns.dll"
$text"netpp64.dll"
$text"wpns64.dll"
$text"rundll32"

Condition

filesize < 1MB and 7 of them

In plain words (Heuristic)

  • The file must be smaller than 1MB (a cheap guard that skips large files).
  • At least 7 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: f05e6ba2-c128-4c17-8f74-f7640103c859

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Konni rules