YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Unkcobaltstrike
Detects unknown malware, potentially CobaltStrike related
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects unknown malware, potentially CobaltStrike related
Associated malware family: Unkcobaltstrike.
Targets: Windows PE.
It defines 12 patterns (10 text, 2 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule DITEKSHEN_MALWARE_Win_Unkcobaltstrike : FILE
{
meta:
= "Detects unknown malware, potentially CobaltStrike related"
= "ditekSHen"
= "24ddccc7-3700-57a1-999c-ddefae6911bb"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7335-L7354"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "2fb4e87eec3b56773b812ce6a5c28143183087e0f93d92d76c1103563f8e0891"
= 75
= 75
= "FILE"
strings:
$s1 = "https://%hu.%hu.%hu.%hu:%u" ascii wide
$s2 = "https://microsoft.com/telemetry/update.exe" ascii wide
$s3 = "\\System32\\rundll32.exe" ascii wide
$s4 = "api.opennicproject.org" ascii wide
$s5 = "%s %s,%s %u" ascii wide
$s6 = "User32.d?" ascii wide
$s7 = "StrDupA" fullword ascii wide
$s8 = "{6d4feed8-18fd-43eb-b5c4-696ad06fac1e}" ascii wide
$s9 = "{ac41592a-3d21-46b7-8f21-24de30531656}" ascii wide
$s10 = "bd526:3b.4e32.57c8.9g32.35ef41642767~" ascii wide
$s11 = { 4b d3 91 49 a1 80 91 42 83 b6 33 28 36 6b 90 97 }
$s12 = { 0d 4c e3 5c c9 0d 1f 4c 89 7c da a1 b7 8c ee 7c }
condition:
uint16( 0 ) == 0x5a4d and 6 of them
}
Strings (12 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "https://%hu.%hu.%hu.%hu:%u" | ascii wide |
| $s2 | text | "https://microsoft.com/telemetry/update.exe" | ascii wide |
| $s3 | text | "\\System32\\rundll32.exe" | ascii wide |
| $s4 | text | "api.opennicproject.org" | ascii wide |
| $s5 | text | "%s %s,%s %u" | ascii wide |
| $s6 | text | "User32.d?" | ascii wide |
| $s7 | text | "StrDupA" | fullword ascii wide |
| $s8 | text | "{6d4feed8-18fd-43eb-b5c4-696ad06fac1e}" | ascii wide |
| $s9 | text | "{ac41592a-3d21-46b7-8f21-24de30531656}" | ascii wide |
| $s10 | text | "bd526:3b.4e32.57c8.9g32.35ef41642767~" | ascii wide |
| $s11 | hex | { 4b d3 91 49 a1 80 91 42 83 b6 33 28 36 6b 90 97 } | |
| $s12 | hex | { 0d 4c e3 5c c9 0d 1f 4c 89 7c da a1 b7 8c ee 7c } |
Condition
uint16( 0 ) == 0x5a4d and 6 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 6 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.
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: 24ddccc7-3700-57a1-999c-ddefae6911bb
Tags:FILE
Related rules
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06