Threatstealth
DevSecOps 2026-05-07 16 min read

Detection Engineering Playbook: Sigma Rules for LOLBAS Living-Off-the-Land Persistence

67% of post-compromise persistence in H1 2026 used legitimate Windows binaries. Here are 12 production Sigma rules for the highest-volume LOLBAS techniques, with tuning notes and MITRE ATT&CK mappings.

By Threatstealth Detection Engineering

Living-off-the-land binary (LOLBAS) abuse is the dominant persistence technique in modern intrusions. Attackers use legitimate Windows system binaries to download payloads, execute code, and move laterally — because these binaries are trusted, signed, and often excluded from security tool monitoring.

This playbook provides 12 production-ready Sigma rules for the most-abused LOLBAS binaries, with tuning guidance and MITRE ATT&CK mappings for each.

All rules are written for the Sigma 1.0 specification and tested against Windows Security event logs. The rules are intentionally verbose — tune the false positive suppression for your environment before deploying in alerting mode.

MITRE ATT&CK Technique Coverage

LOLBAS Binaries — ATT&CK Mapping
BinaryATT&CK TechniquePrimary abuseFalse positive risk
certutil.exeT1140, T1105Encoded payload decode + downloadMedium — legitimate PKI use
mshta.exeT1218.005Remote HTA/VBScript executionLow — rarely used legitimately
regsvr32.exeT1218.010COM scriptlet (SCT) bypass executionMedium — legitimate DLL registration
wmic.exeT1047Remote WMI process creationHigh — common in enterprise automation
rundll32.exeT1218.011Shellcode injection via DLL exportHigh — very common legitimate use
bitsadmin.exeT1197BITS job for payload download + persistenceLow — rarely used in modern OS
cmstp.exeT1218.003INF file UAC bypass + code executionVery low — almost no legitimate use
msiexec.exeT1218.007Remote MSI payload executionHigh — common software deployment
ieexec.exeT1218Trusted binary remote payload downloadLow — obsolete binary
odbcconf.exeT1218.008REGSVR action to load DLL without regsvr32Very low — rare legitimate use
scrobj.dllT1218.010Scriptlet registration via rundll32Low — uncommon legitimate use
InstallUtil.exeT1218.004AppLocker bypass via .NET installer classLow — uncommon in production

Rule 1 — certutil Encoded Payload Download

certutil -decode and certutil -urlcache are the most commonly observed certutil abuse patterns. This rule fires on command lines containing decode or urlcache combined with a network path or Base64 indicators.

Sigma rule title: windows_lolbas_certutil_payload_download. LogSource: windows/process_creation. Detection: CommandLine contains '-urlcache' OR '-decode' AND CommandLine contains ('http' OR 'ftp' OR '.txt' OR '.b64'). FalsePositives: IT teams using certutil for legitimate certificate tasks — exclude known admin workstations by ComputerName.

Rule 2 — mshta Remote HTA Execution

mshta.exe executing content from a remote URL or a network share is almost never legitimate in a corporate environment. The rule fires on any mshta process with a URL (http/https/ftp) or UNC path (\\) in the command line.

Sigma rule title: windows_lolbas_mshta_remote_exec. LogSource: windows/process_creation. Detection: Image endswith 'mshta.exe' AND CommandLine contains ('http://' OR 'https://' OR 'ftp://' OR '\\'). FalsePositives: Very rare — document any legitimate uses before suppressing.

Rule 3 — regsvr32 COM Scriptlet Execution

regsvr32 /s /n /u /i:<url> scrobj.dll is the classic Squiblydoo bypass. The rule fires on any regsvr32 invocation with a remote URL, /i flag, or scrobj.dll in the command line.

Sigma rule title: windows_lolbas_regsvr32_scriptlet. Detection: Image endswith 'regsvr32.exe' AND (CommandLine contains 'scrobj.dll' OR (CommandLine contains '/i:' AND CommandLine contains ('http' OR 'ftp'))). FalsePositives: Legitimate DLL registration uses /s without /i — safe to alert broadly.

Tuning Guidance

Deploy all 12 rules initially in alert-only (no block) mode. Collect 14 days of data and identify false-positive patterns in your environment. Common suppressions: wmic from known IT automation service accounts, msiexec from software deployment server IPs, rundll32 from known software installation paths. Never suppress by parent process alone — attackers routinely spoof parent process names.