This hypothesis posits that adversaries are leveraging remote control mechanisms within the NetWiredRC framework to establish persistent command-and-control channels or execute lateral movement across the network. Proactive hunting for this behavior in Azure Sentinel is critical because early identification of these low-severity signals can reveal stealthy reconnaissance activities before they escalate into significant security incidents.
rule NetWiredRC_B : RAT
{
meta:
description = "NetWiredRC"
author = "Jean-Philippe Teissier / @Jipe_"
date = "2014-12-23"
filetype = "memory"
version = "1.1"
strings:
$mutex = "LmddnIkX"
$str1 = "%s.Identifier"
$str2 = "%d:%I64u:%s%s;"
$str3 = "%s%.2d-%.2d-%.4d"
$str4 = "[%s] - [%.2d/%.2d/%d %.2d:%.2d:%.2d]"
$str5 = "%.2d/%.2d/%d %.2d:%.2d:%.2d"
$klg1 = "[Backspace]"
$klg2 = "[Enter]"
$klg3 = "[Tab]"
$klg4 = "[Arrow Left]"
$klg5 = "[Arrow Up]"
$klg6 = "[Arrow Right]"
$klg7 = "[Arrow Down]"
$klg8 = "[Home]"
$klg9 = "[Page Up]"
$klg10 = "[Page Down]"
$klg11 = "[End]"
$klg12 = "[Break]"
$klg13 = "[Delete]"
$klg14 = "[Insert]"
$klg15 = "[Print Screen]"
$klg16 = "[Scroll Lock]"
$klg17 = "[Caps Lock]"
$klg18 = "[Alt]"
$klg19 = "[Esc]"
$klg20 = "[Ctrl+%c]"
condition:
$mutex or (1 of ($str*) and 1 of ($klg*))
}
This YARA rule can be deployed in the following contexts:
This rule contains 26 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the NetWiredRC detection rule in an enterprise environment, including suggested filters and exclusions:
Scheduled Group Policy Updates via Microsoft SCCM/MECM
443 or 8530. Additionally, filter for process names containing ccmexec.exe with a known digital signature hash.Automated Patch Deployment using Ansible Tower
ansible and the destination port is 22. Ensure the action matches known playbook execution tags (e.g., task_id: nightly-patch).Database Backup Jobs via Veeam Backup & Replication