This hypothesis targets the presence of the NSIS (Nullsoft Scriptable Install System) installer framework, which adversaries frequently leverage to package and execute malicious payloads or establish persistence through custom installation scripts. Proactively hunting for this artifact in Azure Sentinel helps identify potential supply chain compromises or unauthorized software deployments that may bypass standard application whitelisting controls.
rule NullsoftInstallSystemv20RC2
{
meta:
author="malware-lu"
strings:
$a0 = { 83 EC 10 53 55 56 57 C7 44 24 14 70 92 40 00 33 ED C6 44 24 13 20 FF 15 2C 70 40 00 55 FF 15 84 72 40 00 BE 00 54 43 00 BF 00 04 00 00 56 57 A3 A8 EC 42 00 FF 15 C4 70 40 00 E8 8D FF FF FF 8B 1D 90 70 40 00 85 C0 75 21 68 FB 03 00 00 56 FF 15 5C 71 40 00 }
condition:
$a0
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
gpupdate.exe, ccmexec.exe (SCCM), or svchost.exe (if running under a specific service), and the image path resides in standard deployment directories like C:\Windows\Temp\ or C:\ProgramData\Microsoft\Windows\WER\.pip when installing C-extension dependencies).
code.exe, idea64.exe, python.exe) or if the working directory contains node_modules, .venv, or site-packages.msiexec or direct installer calls during off-hours).
Task Scheduler (taskschd.exe) or svchost.exe (DcomLaunch) and the command line contains keywords like /repair, /verify, or /uninstall, or if the timestamp aligns with known scheduled task windows.