YARA rule 'c2_framework_indicators': Command-and-control framework indicators (Cobalt Strike, Metasploit, Sliver, etc.) [malware]
Critical
- Category
- YARA Match
- Confidence
- 85% confidence
- Finding
YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).
- Content
$api2 = "WriteProcessMemory" ascii $str1 = { 48 8B 05 ?? ?? ?? ?? 48 85 C0 } // hex with wildcards $pdb = /[A-Z]:\.\Release\..pdb/ nocase
text condition: uint16(0) == 0x5A4D and filesize < 5MB and (2 of ($api*) and $str1) or $pdb}
text ## Naming Convention `Family_Variant_Technique` — examples: - `Emotet_Loader_DocumentMacro` - `CobaltStrike_Beacon_x64` - `Generic_Cryptominer_XMRig` ## String Selection **Good strings (unique, specific):** - Mutex names, PDB paths, C2 URLs - Unique byte sequences from disassembly - Custom encryption constants - Uncommon API call sequences **Bad strings (too common, high FP):** - `http://`, `https://`, common API names alone - Single common words, short strings (<4 bytes) - Strings found in Windows system files ## Condition Patterns ```yara // Performance-ordered (cheap → expensive) condition: uint16(0) == 0x5A4D and // Magic bytes (instant) filesize < 10MB and
