Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Firebirdrat

Firebird/Hive RAT payload

MalwareFirebirdratditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 73

What this rule detects

Firebird/Hive RAT payload

Associated malware family: Firebirdrat.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-firebirdrat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Firebirdrat : FILE
{
	meta:
		description = "Firebird/Hive RAT payload"
		author = "ditekSHen"
		id = "456ae70e-8004-5fb0-a4fd-ce7c0f4704f9"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L316-L339"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "1c24e924171db1b99a3b03764f4551b6f4b6b1c9c6147b49dbc0651e85e9040c"
		score = 75
		quality = 73
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Trojan.Firebird-HiveRAT"

	strings:
		$id1 = "Firebird Remote Administration Tool" fullword wide
		$id2 = "Welcome to Firebird! Your system is currently being monitored" wide
		$id3 = "Hive Remote Administration Tool" fullword wide
		$id4 = "Welcome to Hive! Your system is currently being monitored" wide
		$s1 = "REPLACETHESEKEYSTROKES" fullword wide
		$s2 = "_ENABLE_PROFILING" fullword wide
		$s3 = ": KeylogSubject" wide
		$s4 = "Firebird.CommandHandler" fullword wide
		$s5 = "webcamenabled" fullword ascii
		$s6 = "screenlogs" fullword ascii
		$s7 = "encryptedconnection" fullword ascii
		$s8 = "monitoron" fullword ascii
		$s9 = "screenGrab" fullword ascii
		$s10 = "TCP_TABLE_OWNER_PID_ALL" fullword ascii
		$s11 = "de4fuckyou" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 1 of ( $id* ) or 7 of ( $s* ) )
}

Strings (15 patterns)

IdentifierTypeValueModifiers
$id1text"Firebird Remote Administration Tool"fullword wide
$id2text"Welcome to Firebird! Your system is currently being monitored"wide
$id3text"Hive Remote Administration Tool"fullword wide
$id4text"Welcome to Hive! Your system is currently being monitored"wide
$s1text"REPLACETHESEKEYSTROKES"fullword wide
$s2text"_ENABLE_PROFILING"fullword wide
$s3text": KeylogSubject"wide
$s4text"Firebird.CommandHandler"fullword wide
$s5text"webcamenabled"fullword ascii
$s6text"screenlogs"fullword ascii
$s7text"encryptedconnection"fullword ascii
$s8text"monitoron"fullword ascii
$s9text"screenGrab"fullword ascii
$s10text"TCP_TABLE_OWNER_PID_ALL"fullword ascii
$s11text"de4fuckyou"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and ( 1 of ( $id* ) or 7 of ( $s* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 1 patterns in ( $id* ) must match.
  • At least 7 patterns in ( $s* ) 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: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

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

Rule id: 456ae70e-8004-5fb0-a4fd-ce7c0f4704f9

Metadata

clamav_sigMALWARE.Win.Trojan.Firebird-HiveRAT

Tags:FILE