endpoint(external, opens in a new tab or window)
auditd_manager(external, opens in a new tab or window)
crowdstrike(external, opens in a new tab or window)
sentinel_one_cloud_funnel(external, opens in a new tab or window)
text code block:event.category: "process" and event.action : ("exec" or "exec_event" or "start" or "ProcessRollup2" or "executed" or "process_started") and ( process.parent.name:("ssm-session-worker.exe" or "ssm-session-worker" or "ssm-document-worker.exe" or "ssm-document-worker") or (process.name : "powershell.exe" and process.args : *awsrunPowerShellScript*) or (process.name : ("dash" or "sh" or "bash") and process.args : *awsrunShellScript*) or (process.parent.name : "powershell.exe" and process.parent.args : *awsrunPowerShellScript*) or (process.parent.name : ("dash" or "sh" or "bash") and process.parent.args : *awsrunShellScript*) ) and process.command_line:* and not (process.name : "powershell.exe" and process.args :("$str.Substring($str.length" or *Convert-GuidToCompressedGuid* or get-wmiobject* or $wmi_proc* or *win32_quickfixengineering*)) and not process.executable : ("/usr/bin/lscpu" or "/usr/bin/snap" or "/usr/bin/rpm" or "/usr/bin/dpkg-query" or /snap/snapd/*/usr/bin/snap or "/usr/bin/id" or "C:\\Program Files\\Amazon\\SSM\\Plugins\\SessionManagerShell\\winpty-agent.exe")
Install detection rules in Elastic Security
Detect AWS SSM Session Manager Child Process Execution in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).