This YARA rule targets specific memory or file patterns associated with the NJoy13NEX signature, potentially indicating the presence of a low-severity web shell, backdoor, or embedded script within Azure-hosted workloads. Proactively hunting for this signature allows the SOC team to identify dormant or stealthy footholds that may have bypassed initial network-based detections, ensuring early containment of persistent access mechanisms in the Azure environment.
rule NJoy13NEX
{
meta:
author="malware-lu"
strings:
$a0 = { 55 8B EC 83 C4 F0 B8 48 36 40 00 E8 54 EE FF FF 6A 00 68 D8 2B 40 00 6A 0A 6A 00 E8 2C EF FF FF E8 23 E7 FF FF 8D 40 00 }
condition:
$a0 at pe.entry_point
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
njoy utility (a common name for various legacy or custom internal tools, e.g., njoy.exe or njoy13n scripts) during a scheduled database maintenance window.
sqlservr.exe or oracle.exe and the file path resides in C:\Program Files\Internal Tools\ or C:\Scripts\Maintenance\.njoy13n.py or njoy13n.pl to parse log files or generate reports, often invoked via cmd.exe or powershell.exe from a user’s home directory.
cmd.exe or powershell.exe and the user is a member of the DBA or DevOps security group, provided the file extension is .py, .pl, or .ps1.njoy13n_setup.exe) running during a patch Tuesday deployment via a service like WinRM or PsExec.
WinRM.exe, PsExec.exe, or wmi32.exe and the execution occurs within the defined patch window (e.g., 02:00–04:00 UTC) on servers tagged with Role=AppServer.njoy13n_check.bat or njoy13n.sh being executed by a scheduled task (Task Scheduler) or cron job on Linux servers.