YARA · SEKOIA.IO Community
SEKOIA_Rat_Win_Konni_Rat
Detect the KONNI RAT DLL files (x32 and x64)
- 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:
= "Detect the KONNI RAT DLL files (x32 and x64)"
= "Sekoia.io"
= "032f1c79-6f03-4588-a4af-38b1f3ca1cb8"
= "2023-09-26"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rat_win_konni_rat.yar#L1-L25"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "764e75d3e433a8784e826f436896c50c9622129412ff277b55ec9aaf1402ff5e"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | 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 < 120KBIn 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.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
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
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-09-26
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-09-26
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-09-12
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2023-11-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2023-11-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2022-09-12
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16