YARA · Google Cloud Threat Intelligence (GCTI)
GCTI_Cobaltstrike_Resources_Template_Py_V3_3_To_V4_X
Cobalt Strike's resources/template.py signature for versions v3.3 to v4.x
- Author
- gssincla@google.com
- Date
- 2022-11-18
- Modified
- 2022-11-19
- Score / Quality
- 75 / 85
What this rule detects
Cobalt Strike's resources/template.py signature for versions v3.3 to v4.x
Associated malware family: Cobalt Strike.
It defines 6 patterns (6 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule GCTI_Cobaltstrike_Resources_Template_Py_V3_3_To_V4_X
{
meta:
= "Cobalt Strike's resources/template.py signature for versions v3.3 to v4.x"
= "gssincla@google.com"
= "16aef9a9-b217-5462-93dc-f6273c99ddd0"
= "2022-11-18"
= "2022-11-19"
= "https://cloud.google.com/blog/products/identity-security/making-cobalt-strike-harder-for-threat-actors-to-abuse"
= "https://github.com/chronicle/GCTI/blob/1c5fd42b1895098527fde00c2d9757edf6b303bb/YARA/CobaltStrike/CobaltStrike__Resources_Template_Py_v3_3_to_v4_x.yara#L17-L36"
= "https://github.com/chronicle/GCTI/blob/1c5fd42b1895098527fde00c2d9757edf6b303bb/LICENSE"
= "d5cb406bee013f51d876da44378c0a89b7b3b800d018527334ea0c5793ea4006"
= "3c26cea4b8f2b200bf58e939ae9ead7a7339d4ec0de8c72b3d9c7da897600081"
= 75
= 85
= ""
strings:
$arch = "platform.architecture()"
$nope = "WindowsPE"
$alloc = "ctypes.windll.kernel32.VirtualAlloc"
$movemem = "ctypes.windll.kernel32.RtlMoveMemory"
$thread = "ctypes.windll.kernel32.CreateThread"
$wait = "ctypes.windll.kernel32.WaitForSingleObject"
condition:
all of them
}
Strings (6 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $arch | text | "platform.architecture()" | |
| $nope | text | "WindowsPE" | |
| $alloc | text | "ctypes.windll.kernel32.VirtualAlloc" | |
| $movemem | text | "ctypes.windll.kernel32.RtlMoveMemory" | |
| $thread | text | "ctypes.windll.kernel32.CreateThread" | |
| $wait | text | "ctypes.windll.kernel32.WaitForSingleObject" |
Condition
all of themIn plain words (Heuristic)
- 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.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- d5cb406bee013f51d876da44378c0a89b7b3b800d018527334ea0c5793ea4006
Licence & attribution
Author: gssincla@google.com
Source repository: Google Cloud Threat Intelligence (GCTI) @ 1c5fd42b18
Licence: Apache License 2.0 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 16aef9a9-b217-5462-93dc-f6273c99ddd0
Related rules
- Hack toolGoogle Cloud Threat Intelligence (GCTI)· gssincla@google.com· 2022-11-18
- Hack toolGoogle Cloud Threat Intelligence (GCTI)· gssincla@google.com· 2022-11-18
- Hack toolGoogle Cloud Threat Intelligence (GCTI)· gssincla@google.com· 2022-11-18
- Hack toolGoogle Cloud Threat Intelligence (GCTI)· gssincla@google.com· 2022-11-18
- Hack toolGoogle Cloud Threat Intelligence (GCTI)· gssincla@google.com· 2022-11-18
- Hack toolGoogle Cloud Threat Intelligence (GCTI)· gssincla@google.com· 2022-11-18
- Hack toolGoogle Cloud Threat Intelligence (GCTI)· gssincla@google.com· 2022-11-18
- Hack toolGoogle Cloud Threat Intelligence (GCTI)· gssincla@google.com· 2022-11-18