Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Unkcobaltstrike

Detects unknown malware, potentially CobaltStrike related

MalwareUnkcobaltstrikeditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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

malware-win-unkcobaltstrike.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Unkcobaltstrike : FILE
{
	meta:
		description = "Detects unknown malware, potentially CobaltStrike related"
		author = "ditekSHen"
		id = "24ddccc7-3700-57a1-999c-ddefae6911bb"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7335-L7354"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "2fb4e87eec3b56773b812ce6a5c28143183087e0f93d92d76c1103563f8e0891"
		score = 75
		quality = 75
		tags = "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)

IdentifierTypeValueModifiers
$s1text"https://%hu.%hu.%hu.%hu:%u"ascii wide
$s2text"https://microsoft.com/telemetry/update.exe"ascii wide
$s3text"\\System32\\rundll32.exe"ascii wide
$s4text"api.opennicproject.org"ascii wide
$s5text"%s %s,%s %u"ascii wide
$s6text"User32.d?"ascii wide
$s7text"StrDupA"fullword ascii wide
$s8text"{6d4feed8-18fd-43eb-b5c4-696ad06fac1e}"ascii wide
$s9text"{ac41592a-3d21-46b7-8f21-24de30531656}"ascii wide
$s10text"bd526:3b.4e32.57c8.9g32.35ef41642767~"ascii wide
$s11hex{ 4b d3 91 49 a1 80 91 42 83 b6 33 28 36 6b 90 97 }
$s12hex{ 0d 4c e3 5c c9 0d 1f 4c 89 7c da a1 b7 8c ee 7c }

Condition

uint16( 0 ) == 0x5a4d and 6 of them

In 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.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

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).

Original rule

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