Skip to content

YARA · CAPE Sandbox (CAPEv2)

CAPE_Quasarrat_Kingrat

No description has been set in the source file - CAPE

GenericCAPE Sandbox (CAPEv2)GNU General Public License v3.0Compiles with YARA-X
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:
		description = "No description has been set in the source file - CAPE"
		author = "jeFF0Falltrades"
		id = "dc0139e1-9f69-51da-b28f-212358b2f68b"
		date = "2024-10-09"
		modified = "2025-02-03"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/AsyncRAT.yar#L268-L287"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		logic_hash = "1f4296a592134edbe52e256dc353143af02e897ff1afad98f3dac0c5ab13f3f7"
		score = 75
		quality = 70
		tags = ""
		cape_type = "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)

IdentifierTypeValueModifiers
$str_quasartext"Quasar."wide ascii
$str_hiddentext"set_Hidden"wide ascii
$str_shelltext"DoShellExecuteResponse"wide ascii
$str_closetext"echo DONT CLOSE THIS WINDOW!"wide ascii
$str_pausetext"ping -n 10 localhost > nul"wide ascii
$str_aes_exctext"masterKey can not be null or empty"wide ascii
$byte_aes_key_basehex{ 7E [3] 04 73 [3] 06 25 }
$byte_aes_salt_basehex{ BF EB 1E 56 FB CD 97 3B B2 19 }
$byte_special_folderhex{ 7e 73 [4] 28 [4] 80 }
$patt_confighex{ 72 [3] 70 80 [3] 04 }
$patt_verify_hashhex{ 7e [3] 04 6f [3] 0a 6f [3] 0a 74 [3] 01 }

Condition

6 of them and #patt_config >= 10

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

Open in editor

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.

Original rule

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_typeQuasarRAT Payload