YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Firebirdrat
Firebird/Hive RAT payload
- 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:
= "Firebird/Hive RAT payload"
= "ditekSHen"
= "456ae70e-8004-5fb0-a4fd-ce7c0f4704f9"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L316-L339"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "1c24e924171db1b99a3b03764f4551b6f4b6b1c9c6147b49dbc0651e85e9040c"
= 75
= 73
= "FILE"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $id1 | text | "Firebird Remote Administration Tool" | fullword wide |
| $id2 | text | "Welcome to Firebird! Your system is currently being monitored" | wide |
| $id3 | text | "Hive Remote Administration Tool" | fullword wide |
| $id4 | text | "Welcome to Hive! Your system is currently being monitored" | wide |
| $s1 | text | "REPLACETHESEKEYSTROKES" | fullword wide |
| $s2 | text | "_ENABLE_PROFILING" | fullword wide |
| $s3 | text | ": KeylogSubject" | wide |
| $s4 | text | "Firebird.CommandHandler" | fullword wide |
| $s5 | text | "webcamenabled" | fullword ascii |
| $s6 | text | "screenlogs" | fullword ascii |
| $s7 | text | "encryptedconnection" | fullword ascii |
| $s8 | text | "monitoron" | fullword ascii |
| $s9 | text | "screenGrab" | fullword ascii |
| $s10 | text | "TCP_TABLE_OWNER_PID_ALL" | fullword ascii |
| $s11 | text | "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.
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).
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_sig | MALWARE.Win.Trojan.Firebird-HiveRAT |
|---|
Tags:FILE
Related rules
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06