YARA · BlackBerry Research & Intelligence (via Open-Source-YARA-rules)
BLACKBERRY_Boratratinformation
Detects BoratRAT Information Module
- Author
- BlackBerry Threat Research Team
- Date
- 2022-04-13
- Modified
- 2022-07-07
- Score / Quality
- 75 / 85
What this rule detects
Detects BoratRAT Information Module
Targets: Windows PE.
It defines 7 patterns (6 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 BLACKBERRY_Boratratinformation : FILE
{
meta:
= "Detects BoratRAT Information Module"
= "BlackBerry Threat Research Team"
= "2bd2ec00-3aa5-5f41-9e5b-713398a35b4a"
= "2022-04-13"
= "2022-07-07"
= "https://blogs.blackberry.com/en/2022/04/threat-thursday-boratrat"
= "https://github.com/mikesxrs/Open-Source-YARA-rules/blob/ec0056f767db98bf6d5fd63877ad51fb54d350e9/Blackberry/BoratRATInformation.yar#L1-L45"
= "N/A"
= "17545a0834e339039361802a6d675303a975b9de013620068f1a516e49e3138f"
= 75
= 85
= "FILE"
= "This Yara rule is provided under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0) and open to any user or organization, as long as you use it under this license and ensure originator credit in any derivative to The BlackBerry Research & Intelligence Team"
strings:
$s1 = "set_UseShellExecute"
$s2 = "execCMD"
$s3 = "hostname" wide
$s4 = "ipconfig" wide
$s5 = "tasklist" wide
$s6 = "arp -a" wide
$sp = {43 3A 5C 55 73 65 72 73 5C 41 64 6D 69 6E 69
73 74 72 61 74 6F 72 5C 44 6F 77 6E 6C 6F 61
64 73 5C 53 61 6E 74 61 52 61 74 2D 6D 61 69
6E 5C 42 69 6E 61 72 69 65 73 5C 52 65 6C 65
61 73 65 5C 50 6C 75 67 69 6E 73 5C 49 6E 66
6F 72 6D 61 74 69 6F 6E 2E 70 64 62}
condition:
uint16( 0 ) == 0x5a4d and all of them
}
Strings (7 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "set_UseShellExecute" | |
| $s2 | text | "execCMD" | |
| $s3 | text | "hostname" | wide |
| $s4 | text | "ipconfig" | wide |
| $s5 | text | "tasklist" | wide |
| $s6 | text | "arp -a" | wide |
| $sp | hex | {43 3A 5C 55 73 65 72 73 5C 41 64 6D 69 6E 69 73 74 72 61 74 6F 72 5C 44 6F 77 6E 6C 6F 61 64 73 5C 53 61 6E 74 61 52 … |
Condition
uint16( 0 ) == 0x5a4d and all of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- 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.
Licence & attribution
Author: BlackBerry Threat Research Team
Source repository: BlackBerry Research & Intelligence (via Open-Source-YARA-rules) @ ec0056f767
Licence: Apache License 2.0 (stated in the rule's own meta)
“This Yara rule is provided under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0) and open to any user or organization, as long as you use it under this license and ensure originator credit in any derivative to The BlackBerry Research & Intelligence Team”
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 2bd2ec00-3aa5-5f41-9e5b-713398a35b4a
Tags:FILE
Related rules
- MalwareBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-04-06
- MalwareBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-06-14
- MalwareBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-06-14
- GenericBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-04-13
- GenericBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-05-22
- MalwareBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-05-22
- MalwareBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-05-22
- GenericBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-05-22