Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Rat_Win_Borat

Detect the Borat RAT besed on specific strings

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X (with warnings)
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:
		description = "Detect the Borat RAT besed on specific strings"
		author = "Sekoia.io"
		id = "9f8badb3-ee8b-45d9-8515-c847351bb1f5"
		date = "2022-04-08"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rat_win_borat.yar#L1-L25"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "53d6d9fe6b3218d97079e624379863d927d0b783b24acbda359b18daafb5162e"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "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)

IdentifierTypeValueModifiers
$str0text"BoratRatMutex_Sa8XOfH1BudX"ascii
$str1text"BoratRat.exe"ascii
$str2text"BoratRat"ascii
$str3text"CN=BoratRat"wide
$str4text"Sending plugun to "wide
$str5text"Save recorded file fail "wide
$str6text"Sa8XOfH1BudX"wide
$str7text"Alert when process activive."wide
$str8text"disableDefedner"wide
$str9text"bin\\Ransomware.dll"wide
$str10text"disableDefedner"wide

Condition

uint16( 0 ) == 0x5A4D and 7 of them

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

Open in editor

References

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

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

version1.0
classificationTLP:CLEAR

Tags:FILE