Skip to content

YARA · BlackBerry Research & Intelligence (via Open-Source-YARA-rules)

BLACKBERRY_Boratrat

Detects BoratRAT.exe

GenericBlackBerry Research & Intelligence (via Open-Source-YARA-rules)Apache License 2.0Compiles with YARA-X
Author
BlackBerry Threat Research Team
Date
2022-04-13
Modified
2022-07-07
Score / Quality
75 / 85

What this rule detects

Detects BoratRAT.exe

Targets: Windows PE.

It defines 10 patterns (10 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

boratrat.yarApache License 2.0
rule BLACKBERRY_Boratrat : FILE
{
	meta:
		description = "Detects BoratRAT.exe"
		author = "BlackBerry Threat Research Team"
		id = "d3c73c3b-885a-5fc2-a1bd-a05cadf1512f"
		date = "2022-04-13"
		modified = "2022-07-07"
		reference = "https://blogs.blackberry.com/en/2022/04/threat-thursday-boratrat"
		source_url = "https://github.com/mikesxrs/Open-Source-YARA-rules/blob/ec0056f767db98bf6d5fd63877ad51fb54d350e9/Blackberry/BoratRAT.yar#L1-L41"
		license_url = "N/A"
		logic_hash = "3141300495288a96b48cfea491683042d172143295135ff82c058200c8d5108d"
		score = 75
		quality = 85
		tags = "FILE"
		license = "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 = "enigma1"
		$s2 = "enigma2"
		$s3 = "Server.Forms.FormFileManager.resources"
		$s4 = "Server.Forms.FormFileSearcher.resources"
		$s5 = "Server.Forms.FormKeylogger.resources"
		$s6 = "Server.Forms.FormNetstat.resources"
		$s7 = "Server.Forms.FormFun.resources"
		$s8 = "Server.Forms.FormWebcam.resources"
		$s9 = "BoratRat"
		$s10 = "Keylogger.exe"

	condition:
		uint16( 0 ) == 0x5a4d and all of them
}

Strings (10 patterns)

IdentifierTypeValueModifiers
$s1text"enigma1"
$s2text"enigma2"
$s3text"Server.Forms.FormFileManager.resources"
$s4text"Server.Forms.FormFileSearcher.resources"
$s5text"Server.Forms.FormKeylogger.resources"
$s6text"Server.Forms.FormNetstat.resources"
$s7text"Server.Forms.FormFun.resources"
$s8text"Server.Forms.FormWebcam.resources"
$s9text"BoratRat"
$s10text"Keylogger.exe"

Condition

uint16( 0 ) == 0x5a4d and all of them

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

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

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”

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: d3c73c3b-885a-5fc2-a1bd-a05cadf1512f

Tags:FILE

  • 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-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
  • GenericBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research Team· 2022-06-03