This detection rule identifies the presence of the Beastdoor backdoor by monitoring for its specific behavioral indicators within Azure Sentinel to uncover potential unauthorized access or persistence mechanisms. Proactively hunting for this threat is essential because backdoors like Beastdoor often operate with low visibility in their early stages, allowing adversaries to establish a foothold before triggering broader incident alerts.
rule Beastdoor_Backdoor {
meta:
description = "Detects the backdoor Beastdoor"
author = "Florian Roth"
score = 55
hash = "5ab10dda548cb821d7c15ebcd0a9f1ec6ef1a14abcc8ad4056944d060c49535a"
strings:
$s0 = "Redirect SPort RemoteHost RPort -->Port Redirector" fullword
$s1 = "POST /scripts/WWPMsg.dll HTTP/1.0" fullword
$s2 = "http://IP/a.exe a.exe -->Download A File" fullword
$s7 = "Host: wwp.mirabilis.com:80" fullword
$s8 = "%s -Set Port PortNumber -->Set The Service Port" fullword
$s11 = "Shell -->Get A Shell" fullword
$s14 = "DeleteService ServiceName -->Delete A Service" fullword
$s15 = "Getting The UserName(%c%s%c)-->ID(0x%s) Successfully" fullword
$s17 = "%s -Set ServiceName ServiceName -->Set The Service Name" fullword
condition:
2 of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 9 string patterns in its detection logic.
Here are 4 specific false positive scenarios for the Beastdoor detection rule (Beastdoor_Back), including tailored filters and exclusions suitable for an enterprise environment:
Scenario: Automated Backup Agent Execution
--mode=sync, --target=cloud) that mimic the Beastdoor’s persistence mechanism.\Program Files\Veeam\Backup and Replication\ where the parent process is vbrsvc.exe.Scenario: Scheduled PowerShell Maintenance Scripts
powershell.exe -ExecutionPolicy Bypass, the resulting network traffic and process tree can trigger the Beastdoor logic due to similar registry key modifications or outbound connections.TaskScheduler (svchost.exe) and the command line contains specific keywords like -File "C:\Scripts\Maintenance\daily_patch.ps1".Scenario: Endpoint Detection and Response (EDR) Self-Defense