This detection identifies potential NightMare campaign activity by flagging executables with suspicious pseudo-signing characteristics that mimic legitimate software to evade standard signature-based defenses. A proactive hunt is essential in Azure Sentinel to uncover stealthy initial access attempts where adversaries leverage forged digital signatures to establish a foothold before triggering high-severity alerts.
rule PseudoSigner01PENightMare2BetaAnorganix
{
meta:
author="malware-lu"
strings:
$a0 = { 60 E9 10 00 00 00 EF 40 03 A7 07 8F 07 1C 37 5D 43 A7 04 B9 2C 3A E9 }
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.
Here are 4 specific false positive scenarios for the PseudoSigner01PENightMare2BetaAnorganix detection rule, tailored to a legitimate enterprise environment:
Scenario: Automated Endpoint Protection Scans
C:\Program Files directory. The YARA signature may flag the scanning engine’s temporary extraction of a signed binary as an anomaly if the rule expects specific signing metadata that varies during the scan process.C:\ProgramData\Microsoft\Windows Defender\Platform\<version>\mpcmd.dll (or equivalent CrowdStrike path) when running with command line arguments containing /scan or /full.Scenario: Scheduled Patch Deployment via SCCM
ccmsetup.exe service installs a new update package, it extracts signed components that may trigger the “NightMare” logic due to temporary file creation patterns in %TEMP% that mimic the rule’s anomaly detection criteria.ccmsetup.exe and its child processes running under the SYSTEM account, specifically when the execution path contains \Microsoft Endpoint Configuration Manager\.Scenario: Backup Agent Data Indexing