YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Konni
Konni payload
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Konni payload
Associated malware family: Konni.
Targets: Windows PE.
It defines 11 patterns (11 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-konni.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Konni : FILE
{
meta:
= "Konni payload"
= "ditekSHen"
= "86eae9f6-60b0-5720-8528-ddbe32b6d4a6"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L512-L530"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "d57c51f7ede28b74395e5e0fbcc5fd9247b3353330f3e549d5abf99bbd7a1b93"
= 75
= 75
= "FILE"
strings:
$s1 = "uplog.tmp" fullword wide
$s2 = "upfile.tmp" fullword wide
$s3 = "%s-log-%s" fullword ascii wide
$s4 = "%s-down" ascii wide
$s5 = "%s-file-%s" fullword ascii wide
$s6 = "\"rundll32.exe\" \"%s\" install" fullword wide
$s7 = "subject=%s&data=" fullword ascii
$s8 = "dll-x64.dll" fullword ascii
$s9 = "dll-x32.dll" fullword ascii
$pdb1 = "\\virus-dropper\\Release\\virus-dropper.pdb" ascii
$pdb2 = "\\virus-init\\Release\\virus-init.pdb" ascii
condition:
uint16( 0 ) == 0x5a4d and ( 7 of ( $s* ) or ( 3 of ( $s* ) and 1 of ( $pdb* ) ) )
}
Strings (11 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "uplog.tmp" | fullword wide |
| $s2 | text | "upfile.tmp" | fullword wide |
| $s3 | text | "%s-log-%s" | fullword ascii wide |
| $s4 | text | "%s-down" | ascii wide |
| $s5 | text | "%s-file-%s" | fullword ascii wide |
| $s6 | text | "\"rundll32.exe\" \"%s\" install" | fullword wide |
| $s7 | text | "subject=%s&data=" | fullword ascii |
| $s8 | text | "dll-x64.dll" | fullword ascii |
| $s9 | text | "dll-x32.dll" | fullword ascii |
| $pdb1 | text | "\\virus-dropper\\Release\\virus-dropper.pdb" | ascii |
| $pdb2 | text | "\\virus-init\\Release\\virus-init.pdb" | ascii |
Condition
uint16( 0 ) == 0x5a4d and ( 7 of ( $s* ) or ( 3 of ( $s* ) and 1 of ( $pdb* ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 7 patterns in ( $s* ) must match.
- At least 3 patterns in ( $s* ) must match.
- At least 1 patterns in ( $pdb* ) 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: ditekSHen
Source repository: ditekSHen detection @ e76c93dcde
Licence: BSD 2-Clause License (repository licence)
Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 86eae9f6-60b0-5720-8528-ddbe32b6d4a6
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· 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· 2034-02-17