YARA · CAPE Sandbox (CAPEv2)
CAPE_Qakbot4_1
QakBot Config Extraction
- Author
- kevoreilly
- Date
- 2022-03-16
- Modified
- 2024-02-16
- Score / Quality
- 75 / 70
What this rule detects
QakBot Config Extraction
Associated malware family: Qakbot.
Targets: Windows PE.
It defines 4 patterns (0 text, 4 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
qakbot4-1.yarGNU General Public License v3.0
rule CAPE_Qakbot4_1 : FILE
{
meta:
= "QakBot Config Extraction"
= "kevoreilly"
= "401184cf-bbd7-5afe-9589-470f54721af1"
= "2022-03-16"
= "2024-02-16"
= "https://github.com/kevoreilly/CAPEv2"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/analyzer/windows/data/yara/QakBot.yar#L15-L29"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
= "ad75b07b9b786f634fd46cbe6dc089d3f732673320e70714e8ab058f0392c9f5"
= 75
= 70
= "FILE"
= "bp0=$params+23,action0=setdump:eax::ecx,bp1=$c2list1+40,bp1=$c2list2+38,action1=dump,bp2=$conf+13,action2=dump,count=1,typestring=QakBot Config"
= "f084d87078a1e4b0ee208539c53e4853a52b5698e98f0578d7c12948e3831a68"
strings:
$params = {8B 7D ?? 8B F1 57 89 55 ?? E8 [4] 8D 9E [2] 00 00 89 03 59 85 C0 75 08 6A FC 58 E9}
$c2list1 = {59 59 8D 4D D8 89 45 E0 E8 [4] 8B 45 E0 85 C0 74 ?? 8B 90 [2] 00 00 51 8B 88 [2] 00 00 6A 00 E8}
$c2list2 = {59 59 8B F8 8D 4D ?? 89 7D ?? E8 [4] 85 FF 74 52 8B 97 [2] 00 00 51 8B 8F [2] 00 00 53 E8}
$conf = {5F 5E 5B C9 C3 51 6A 00 E8 [4] 59 59 85 C0 75 01 C3}
condition:
uint16( 0 ) == 0x5A4D and any of them
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $params | hex | {8B 7D ?? 8B F1 57 89 55 ?? E8 [4] 8D 9E [2] 00 00 89 03 59 85 C0 75 08 6A FC 58 E9} | |
| $c2list1 | hex | {59 59 8D 4D D8 89 45 E0 E8 [4] 8B 45 E0 85 C0 74 ?? 8B 90 [2] 00 00 51 8B 88 [2] 00 00 6A 00 E8} | |
| $c2list2 | hex | {59 59 8B F8 8D 4D ?? 89 7D ?? E8 [4] 85 FF 74 52 8B 97 [2] 00 00 51 8B 8F [2] 00 00 53 E8} | |
| $conf | hex | {5F 5E 5B C9 C3 51 6A 00 E8 [4] 59 59 85 C0 75 01 C3} |
Condition
uint16( 0 ) == 0x5A4D and any of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least one pattern 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.
References
Licence & attribution
Author: kevoreilly
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: 401184cf-bbd7-5afe-9589-470f54721af1
Metadata
| cape_options | bp0=$params+23,action0=setdump:eax::ecx,bp1=$c2list1+40,bp1=$c2list2+38,action1=dump,bp2=$conf+13,action2=dump,count=1,typestring=QakBot Config |
|---|---|
| packed | f084d87078a1e4b0ee208539c53e4853a52b5698e98f0578d7c12948e3831a68 |
Tags:FILE
Related rules
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2022-03-16
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2022-03-16
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2022-03-16
- MalwareSignature Base (Florian Roth / Nextron)· kevoreilly· 2023-02-17
- MalwareEmbee Research· @Embee_Research· 2022-11-14
- MalwareEmbee Research· Embee_Research @ Huntress· 2022-11-14
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2026-07-31