YARA · SEKOIA.IO Community
SEKOIA_Rat_Win_Borat
Detect the Borat RAT besed on specific strings
- Author
- Sekoia.io
- Date
- 2022-04-08
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detect the Borat RAT besed on specific strings
Targets: Windows PE.
It defines 11 patterns (11 text, 0 hex, 0 regex).
YARA-X says: warning[duplicate_pattern_value]: duplicate pattern value
Summary generated from the rule's metadata and condition.
Rule source
rat-win-borat.yarDetection Rule License 1.1
rule SEKOIA_Rat_Win_Borat : FILE
{
meta:
= "Detect the Borat RAT besed on specific strings"
= "Sekoia.io"
= "9f8badb3-ee8b-45d9-8515-c847351bb1f5"
= "2022-04-08"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rat_win_borat.yar#L1-L25"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "53d6d9fe6b3218d97079e624379863d927d0b783b24acbda359b18daafb5162e"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$str0 = "BoratRatMutex_Sa8XOfH1BudX" ascii
$str1 = "BoratRat.exe" ascii
$str2 = "BoratRat" ascii
$str3 = "CN=BoratRat" wide
$str4 = "Sending plugun to " wide
$str5 = "Save recorded file fail " wide
$str6 = "Sa8XOfH1BudX" wide
$str7 = "Alert when process activive." wide
$str8 = "disableDefedner" wide
$str9 = "bin\\Ransomware.dll" wide
$str10 = "disableDefedner" wide
condition:
uint16( 0 ) == 0x5A4D and 7 of them
}
Strings (11 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str0 | text | "BoratRatMutex_Sa8XOfH1BudX" | ascii |
| $str1 | text | "BoratRat.exe" | ascii |
| $str2 | text | "BoratRat" | ascii |
| $str3 | text | "CN=BoratRat" | wide |
| $str4 | text | "Sending plugun to " | wide |
| $str5 | text | "Save recorded file fail " | wide |
| $str6 | text | "Sa8XOfH1BudX" | wide |
| $str7 | text | "Alert when process activive." | wide |
| $str8 | text | "disableDefedner" | wide |
| $str9 | text | "bin\\Ransomware.dll" | wide |
| $str10 | text | "disableDefedner" | wide |
Condition
uint16( 0 ) == 0x5A4D and 7 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 7 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.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 9f8badb3-ee8b-45d9-8515-c847351bb1f5
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20