YARA · Google Cloud Threat Intelligence (GCTI)
GCTI_Cobaltstrike_Resources__Template_Vbs_V3_3_To_V4_X
Cobalt Strike's resources/btemplate.vbs signature for versions v3.3 to v4.x
- Author
- gssincla@google.com
- Date
- 2022-11-18
- Modified
- 2022-11-22
- Score / Quality
- 75 / 83
What this rule detects
Cobalt Strike's resources/btemplate.vbs signature for versions v3.3 to v4.x
Associated malware family: Cobalt Strike.
It defines 10 patterns (9 text, 1 hex, 0 regex).
YARA-X says: warning[text_as_hex]: hex pattern could be written as text literal
Summary generated from the rule's metadata and condition.
Rule source
rule GCTI_Cobaltstrike_Resources__Template_Vbs_V3_3_To_V4_X
{
meta:
= "Cobalt Strike's resources/btemplate.vbs signature for versions v3.3 to v4.x"
= "gssincla@google.com"
= "62f35d02-1e4e-5651-b575-888ce06b8bdd"
= "2022-11-18"
= "2022-11-22"
= "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_Vbs_v3_3_to_v4_x.yara#L17-L41"
= "https://github.com/chronicle/GCTI/blob/1c5fd42b1895098527fde00c2d9757edf6b303bb/LICENSE"
= "e0683f953062e63b2aabad7bc6d76a78748504b114329ef8e2ece808b3294135"
= "c9df0e287eb0eacf7c6cfcf3f6d1043ae6f2fdacd3b22bd42ac71f4b0d7226ff"
= 75
= 83
= ""
strings:
$ea = "Excel.Application" nocase
$vis = "Visible = False" nocase
$wsc = "Wscript.Shell" nocase
$regkey1 = "HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\" nocase
$regkey2 = "\\Excel\\Security\\AccessVBOM" nocase
$regwrite = ".RegWrite" nocase
$dw = "REG_DWORD"
$code = ".CodeModule.AddFromString"
$ao = { 41 75 74 6f 5f 4f 70 65 6e }
$da = ".DisplayAlerts"
condition:
all of them
}
Strings (10 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ea | text | "Excel.Application" | nocase |
| $vis | text | "Visible = False" | nocase |
| $wsc | text | "Wscript.Shell" | nocase |
| $regkey1 | text | "HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\" | nocase |
| $regkey2 | text | "\\Excel\\Security\\AccessVBOM" | nocase |
| $regwrite | text | ".RegWrite" | nocase |
| $dw | text | "REG_DWORD" | |
| $code | text | ".CodeModule.AddFromString" | |
| $ao | hex | { 41 75 74 6f 5f 4f 70 65 6e } | |
| $da | text | ".DisplayAlerts" |
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).
- e0683f953062e63b2aabad7bc6d76a78748504b114329ef8e2ece808b3294135
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: 62f35d02-1e4e-5651-b575-888ce06b8bdd
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