YARA · CAPE Sandbox (CAPEv2)
CAPE_Quasarrat_Kingrat
No description has been set in the source file - CAPE
- Author
- jeFF0Falltrades
- Date
- 2024-10-09
- Modified
- 2025-02-03
- Score / Quality
- 75 / 70
What this rule detects
No description has been set in the source file - CAPE
It defines 11 patterns (6 text, 5 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
quasarrat-kingrat.yarGNU General Public License v3.0
rule CAPE_Quasarrat_Kingrat
{
meta:
= "No description has been set in the source file - CAPE"
= "jeFF0Falltrades"
= "dc0139e1-9f69-51da-b28f-212358b2f68b"
= "2024-10-09"
= "2025-02-03"
= "https://github.com/kevoreilly/CAPEv2"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/AsyncRAT.yar#L268-L287"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
= "1f4296a592134edbe52e256dc353143af02e897ff1afad98f3dac0c5ab13f3f7"
= 75
= 70
= ""
= "QuasarRAT Payload"
strings:
$str_quasar = "Quasar." wide ascii
$str_hidden = "set_Hidden" wide ascii
$str_shell = "DoShellExecuteResponse" wide ascii
$str_close = "echo DONT CLOSE THIS WINDOW!" wide ascii
$str_pause = "ping -n 10 localhost > nul" wide ascii
$str_aes_exc = "masterKey can not be null or empty" wide ascii
$byte_aes_key_base = { 7E [3] 04 73 [3] 06 25 }
$byte_aes_salt_base = { BF EB 1E 56 FB CD 97 3B B2 19 }
$byte_special_folder = { 7e 73 [4] 28 [4] 80 }
$patt_config = { 72 [3] 70 80 [3] 04 }
$patt_verify_hash = { 7e [3] 04 6f [3] 0a 6f [3] 0a 74 [3] 01 }
condition:
6 of them and #patt_config >= 10
}
Strings (11 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str_quasar | text | "Quasar." | wide ascii |
| $str_hidden | text | "set_Hidden" | wide ascii |
| $str_shell | text | "DoShellExecuteResponse" | wide ascii |
| $str_close | text | "echo DONT CLOSE THIS WINDOW!" | wide ascii |
| $str_pause | text | "ping -n 10 localhost > nul" | wide ascii |
| $str_aes_exc | text | "masterKey can not be null or empty" | wide ascii |
| $byte_aes_key_base | hex | { 7E [3] 04 73 [3] 06 25 } | |
| $byte_aes_salt_base | hex | { BF EB 1E 56 FB CD 97 3B B2 19 } | |
| $byte_special_folder | hex | { 7e 73 [4] 28 [4] 80 } | |
| $patt_config | hex | { 72 [3] 70 80 [3] 04 } | |
| $patt_verify_hash | hex | { 7e [3] 04 6f [3] 0a 6f [3] 0a 74 [3] 01 } |
Condition
6 of them and #patt_config >= 10In plain words (Heuristic)
- At least 6 patterns in the rule must match.
- Pattern $patt_config must occur >= 10 times.
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: jeFF0Falltrades
Source repository: CAPE Sandbox (CAPEv2) @ 6b15e76f28
Licence: GNU General Public License v3.0 (repository licence)
Copyright notice: Cuckoo Sandbox is copyrighted by the Cuckoo Foundation.
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: dc0139e1-9f69-51da-b28f-212358b2f68b
Metadata
| cape_type | QuasarRAT Payload |
|---|