Rules for T1059.004
How the 3 rules tagged with T1059.004 are built: the tables they read, what they filter, how they join, and when they run. The most used of each; every rule is listed below.
Tables and parsers
AWSCloudTrail 1DeviceProcessEvents 1SecurityEvent 1
Filtered columns
AWSCloudTrail.EventNameUpdateFunctionCode1AWSCloudTrail.EventSourcelambda.amazonaws.com1AWSCloudTrail.UserIdentityTypeIAMUser1DeviceProcessEvents.FileNameash1bash1curl1dash1id1DeviceProcessEvents.InitiatingProcessFileName(?i)^(php-fpm[\d.]*|php[\d.]*|lsphp[\d]*|apache2|httpd)$1DeviceProcessEvents.ProcessCommandLine/bin/bash1/bin/sh1base64 -d1bash -i1curl1
Idioms
make_set 1
Severity
High 1Medium 1
Schedules (analytic rules)
every 1h over 1h 1
Look-back windows in ago()
7d 1
Every rule tagged with it
- PHP Worker Process Spawning Shell/Recon Tool
- AWSCloudTrail - Lambda function code updated
- Potential Maldoc Execution Chain Observed
Rules are from Azure/Azure-Sentinel (MIT licence) at commit 9ea9f7c. VeriKQL stores facts its parser read from each rule and links the rule; it does not copy rule text. Counts are what the rules do: practice, not guidance, and not Microsoft's recommendation.