Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Rat_Win_Babylon

Finds Babylon RAT samples based on specific strings

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-08-22
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Finds Babylon RAT samples based on specific strings

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

rat-win-babylon.yarDetection Rule License 1.1
rule SEKOIA_Rat_Win_Babylon : FILE
{
	meta:
		description = "Finds Babylon RAT samples based on specific strings"
		author = "Sekoia.io"
		id = "ba9ab80a-ad7e-4746-aff2-9328440cbb25"
		date = "2023-08-22"
		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_babylon.yar#L1-L27"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "142f10e519561d6552c9cb8d267280b9ede203a2f4723d904ab07217b0565bd1"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "ParadoxRAT_Client" ascii
		$str02 = "*** in database %s ***" ascii
		$str03 = "\\drivers\\etc\\HOSTS" ascii
		$str04 = "Babylon RAT Client" wide
		$str05 = "ClipBoard.txt" wide
		$str06 = "a,ccs=UTF-16LE" wide
		$str07 = "[%02d/%02d/%d %02d:%02d:%02d] [%s] (%s):" wide
		$str08 = "Update Failed [OpenProcess]..." wide
		$str09 = "DoS Already Active..." wide
		$str10 = "File Download and Execution Failed..." wide
		$str11 = "LgDError33x98dGetProcAddress" wide
		$str12 = "FriendlyName" wide
		$str13 = "@SPYNET" wide

	condition:
		uint16( 0 ) == 0x5a4d and 8 of ( $str* )
}

Strings (13 patterns)

IdentifierTypeValueModifiers
$str01text"ParadoxRAT_Client"ascii
$str02text"*** in database %s ***"ascii
$str03text"\\drivers\\etc\\HOSTS"ascii
$str04text"Babylon RAT Client"wide
$str05text"ClipBoard.txt"wide
$str06text"a,ccs=UTF-16LE"wide
$str07text"[%02d/%02d/%d %02d:%02d:%02d] [%s] (%s):"wide
$str08text"Update Failed [OpenProcess]..."wide
$str09text"DoS Already Active..."wide
$str10text"File Download and Execution Failed..."wide
$str11text"LgDError33x98dGetProcAddress"wide
$str12text"FriendlyName"wide
$str13text"@SPYNET"wide

Condition

uint16( 0 ) == 0x5a4d and 8 of ( $str* )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 8 patterns in ( $str* ) 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: ba9ab80a-ad7e-4746-aff2-9328440cbb25

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE