This detection identifies potential web shell deployments where adversaries establish a persistent backdoor via a newly created PHP file named “B374k.php” to execute arbitrary commands on compromised servers. Proactively hunting for this specific artifact in Azure Sentinel is critical because attackers often use obfuscated filenames like B374k.php to evade standard signature-based detection and maintain long-term access to sensitive web infrastructure.
rule webshell_B374kPHP_B374k {
meta:
description = "Web Shell - file B374k.php"
license = "Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE"
author = "Florian Roth (Nextron Systems)"
date = "2014/01/28"
score = 70
hash = "bed7388976f8f1d90422e8795dff1ea6"
id = "393e738a-b4c2-5630-a55f-c3caee4ff75e"
strings:
$s0 = "Http://code.google.com/p/b374k-shell" fullword
$s1 = "$_=str_rot13('tm'.'vas'.'yngr');$_=str_rot13(strrev('rqb'.'prq'.'_'.'46r'.'fno'"
$s3 = "Jayalah Indonesiaku & Lyke @ 2013" fullword
$s4 = "B374k Vip In Beautify Just For Self" fullword
condition:
1 of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 6 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the Web Shell - file B374k.php detection rule, including suggested filters and exclusions:
Scenario: Automated Backup Script Execution by Admin Tools
B374k.php) as part of their internal staging process before archiving data.Scenario: CI/CD Pipeline Deployment of Staging Artifacts
B374k.php for version control tracking before the final release is promoted to production.svc-jenkins-deploy) and restrict the scope to the Staging Environment directory, excluding Production paths.Scenario: Scheduled Log Rotation and Analysis Job
B374k.php to parse access logs before sending them to the SIEM.