Deception Check

CUSTOMER DETECTION LIBRARY

Choose your logs.
Read the rule.

Standard Linux Sigma rules, native platform hunts, and a separate collection-health design.

Back to the article / Getting started / Download all files.

D1 / ESXi syslog configuration command observed

Imported ESXi shell events

CrowdStrike / Imported ESXi shell logs / D1-esxi.cqlDownload exact file

CrowdStrike / Imported ESXi shell logs

#Vendor="vmware" #event.module="esxi" #event.dataset="esxi.shell"
| #event.kind="event"
| process.command_line=/^(?:\/[^\s]+\/)?esxcli\s+system\s+syslog\s+config\s+set\b/
| select([@timestamp, host.name, process.command_line, @id])
Splunk / Imported ESXi shell logs / D1-esxi.splDownload exact file

Splunk / Imported ESXi shell logs

index=REPLACE_ESXI_LOG_INDEX
| rex field=_raw "shell\\[(?<world_id>\\d+)\\]:\\s*(?<Command>.*)$"
| regex Command="^(?:/[^\\s]+/)?esxcli\\s+system\\s+syslog\\s+config\\s+set\\b"
| table _time host world_id Command
Sumo Logic / Imported ESXi shell logs / D1-esxi.sumoDownload exact file

Sumo Logic / Imported ESXi shell logs

_sourceCategory=REPLACE_ESXI_SOURCE_CATEGORY
| parse regex "shell\\[(?<world_id>\\d+)\\]:\\s*(?<Command>.*)$"
| where Command matches /^(?:\/[^\s]+\/)?esxcli\s+system\s+syslog\s+config\s+set\b/
| fields _messagetime, _sourceHost, world_id, Command

D2 / Explicit log-file deletion or truncation command

Linux process events; imported ESXi companion for D2

Sigma / lnx_explicit_log_removal.ymlDownload exact file

Sigma

title: Linux explicit log removal command
id: 965ed3c2-048f-46a7-bc0d-720c29352572
status: experimental
description: >-
    An observed rm, truncate, or shred process command names a supported explicit log path.
    It is a command attempt, not proof that a log was erased.
author: Deception Check
date: '2026-10-29'
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|exists: true
        Image|re: '/(rm|truncate|shred)$'
        CommandLine|re: '^(?:/[^\s]+/)?(?:rm|truncate|shred)\s+[^\n]*(?:/var/(?:run/)?log/|/scratch/log/)'
    condition: selection
falsepositives:
    - >-
        Authorized rotation, disk recovery, and support cleanup.
level: medium
fields:
    - Image
    - ParentImage
    - CommandLine
    - User
    - ProcessGuid
    - ParentProcessGuid
Microsoft Defender XDR / Linux EDR process creation / D2.kqlDownload exact file

Microsoft Defender XDR / Linux EDR process creation

// Defender XDR Advanced Hunting; current DeviceInfo inventory is required for Linux scoping.
let LinuxDevices = DeviceInfo
| where Timestamp > ago(1d)
| summarize arg_max(Timestamp, OSPlatform) by DeviceId
| where OSPlatform == "Linux"
| project DeviceId;
DeviceProcessEvents
| where isnotempty(FolderPath) and FolderPath matches regex "/(rm|truncate|shred)$" and ProcessCommandLine matches regex "^(?:/[^\\s]+/)?(?:rm|truncate|shred)\\s+[^\\n]*(?:/var/(?:run/)?log/|/scratch/log/)"
| where Timestamp > ago(15m) and ActionType == "ProcessCreated"
| where DeviceId in (LinuxDevices)
| project Timestamp, DeviceId, DeviceName, FolderPath, FileName, ProcessCommandLine, AccountName, InitiatingProcessFolderPath, InitiatingProcessFileName, ProcessId, ProcessCreationTime
CrowdStrike / Linux EDR process creation / D2.cqlDownload exact file

CrowdStrike / Linux EDR process creation

#event_simpleName=ProcessRollup2 event_platform=Lin
| ImageFileName=*
| ImageFileName=/\/(rm|truncate|shred)$/
| CommandLine=/^(?:\/[^\s]+\/)?(?:rm|truncate|shred)\s+[^\n]*(?:\/var\/(?:run\/)?log\/|\/scratch\/log\/)/
| select([@timestamp, aid, TargetProcessId, ParentProcessId, UID, ImageFileName, ParentBaseFileName, CommandLine])
Splunk / Sysmon for Linux XML process events / D2.splDownload exact file

Splunk / Sysmon for Linux XML process events

index=REPLACE_LINUX_SYSMON_INDEX "Linux-Sysmon" "<EventID>1</EventID>"
| rex field=_raw "<Data Name=\"Image\">(?<Image>[^<]*)</Data>"
| rex field=_raw "<Data Name=\"ParentImage\">(?<ParentImage>[^<]*)</Data>"
| rex field=_raw "<Data Name=\"CommandLine\">(?<CommandLine>[^<]*)</Data>"
| rex field=_raw "<Data Name=\"User\">(?<User>[^<]*)</Data>"
| eval CommandLine=replace(replace(replace(replace(replace(CommandLine,"&quot;","\""),"&apos;","'"),"&lt;","<"),"&gt;",">"),"&amp;","&")
| search Image=*
| regex Image="/(rm|truncate|shred)$"
| regex CommandLine="^(?:/[^\\s]+/)?(?:rm|truncate|shred)\\s+[^\\n]*(?:/var/(?:run/)?log/|/scratch/log/)"
| table _time host Image ParentImage CommandLine User
Sumo Logic / Sysmon for Linux XML process events / D2.sumoDownload exact file

Sumo Logic / Sysmon for Linux XML process events

_sourceCategory=REPLACE_LINUX_SYSMON_SOURCE_CATEGORY
| parse regex "(?<xml><Event(?: [^>]*)?>.*</Event>)"
| parse xml field=xml "/Event/System/Provider/@Name" as Provider
| parse xml field=xml "/Event/System/EventID/text()" as EventID
| where Provider="Linux-Sysmon" and EventID="1"
| parse xml field=xml "/Event/EventData/Data[@Name='Image']/text()" as Image
| parse xml field=xml "/Event/EventData/Data[@Name='CommandLine']/text()" as CommandLine
| where !isNull(Image) and Image matches /\/(rm|truncate|shred)$/ and CommandLine matches /^(?:\/[^\s]+\/)?(?:rm|truncate|shred)\s+[^\n]*(?:\/var\/(?:run\/)?log\/|\/scratch\/log\/)/
| fields _messagetime, _sourceHost, Image, CommandLine
Sophos / Current Linux processes snapshot / D2-snapshot.sqlDownload exact file

Sophos / Current Linux processes snapshot

-- Sophos Live Discover/Live Endpoint, Linux only: CURRENT processes snapshot.
-- Not a Data Lake query and not a history of process creation.
SELECT c.pid, c.start_time, c.path, c.name, c.cmdline, c.uid, c.euid,
       p.pid AS parent_pid, p.start_time AS parent_start_time, p.path AS parent_path
FROM processes c
LEFT JOIN processes p ON c.parent=p.pid AND p.start_time>0 AND p.start_time<=c.start_time
WHERE c.start_time>0 AND c.path IS NOT NULL AND c.path<>'' AND
(c.path GLOB '*/rm' OR c.path GLOB '*/truncate' OR c.path GLOB '*/shred') AND (c.cmdline GLOB '*/var/log/*' OR c.cmdline GLOB '*/var/run/log/*' OR c.cmdline GLOB '*/scratch/log/*');
CrowdStrike / Imported ESXi shell logs / D2-ESXi-esxi.cqlDownload exact file

CrowdStrike / Imported ESXi shell logs

#Vendor="vmware" #event.module="esxi" #event.dataset="esxi.shell"
| #event.kind="event"
| process.command_line=/^(?:\/[^\s]+\/)?(?:rm|truncate|shred)\s+[^\n]*(?:\/var\/(?:run\/)?log\/|\/scratch\/log\/)/
| select([@timestamp, host.name, process.command_line, @id])
Splunk / Imported ESXi shell logs / D2-ESXi-esxi.splDownload exact file

Splunk / Imported ESXi shell logs

index=REPLACE_ESXI_LOG_INDEX
| rex field=_raw "shell\\[(?<world_id>\\d+)\\]:\\s*(?<Command>.*)$"
| regex Command="^(?:/[^\\s]+/)?(?:rm|truncate|shred)\\s+[^\\n]*(?:/var/(?:run/)?log/|/scratch/log/)"
| table _time host world_id Command
Sumo Logic / Imported ESXi shell logs / D2-ESXi-esxi.sumoDownload exact file

Sumo Logic / Imported ESXi shell logs

_sourceCategory=REPLACE_ESXI_SOURCE_CATEGORY
| parse regex "shell\\[(?<world_id>\\d+)\\]:\\s*(?<Command>.*)$"
| where Command matches /^(?:\/[^\s]+\/)?(?:rm|truncate|shred)\s+[^\n]*(?:\/var\/(?:run\/)?log\/|\/scratch\/log\/)/
| fields _messagetime, _sourceHost, world_id, Command

D3 / Detect expected-log loss with an independent monitor

Engineering design only

D4 / Linux web worker launches a shell or executable from temporary storage

Linux direct-parent process behavior

Sigma / lnx_web_worker_shell.ymlDownload exact file

Sigma

title: Linux web worker launches a shell
id: f83d47f4-cc3d-4ded-90cc-42916b79300c
status: experimental
description: >-
    A direct web-worker child is a shell. Review application behavior before treating this
    as compromise.
author: Deception Check
date: '2026-10-29'
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|exists: true
        ParentImage|re: '/(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$'
        Image|re: '/(sh|bash|dash|ash|zsh|ksh)$'
    condition: selection
falsepositives:
    - >-
        Approved CGI applications and application shell helpers.
level: medium
fields:
    - Image
    - ParentImage
    - CommandLine
    - User
    - ProcessGuid
    - ParentProcessGuid
Sigma / lnx_web_worker_temp_exec.ymlDownload exact file

Sigma

title: Linux web worker starts a temporary executable
id: ecfd817a-82a7-4438-85da-348ba2e57b20
status: experimental
description: >-
    A direct web-worker child executes an image below temporary storage. It does not inspect
    a PHP request or identify an exploit.
author: Deception Check
date: '2026-10-29'
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|exists: true
        ParentImage|re: '/(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$'
        Image|re: '^/(tmp|var/tmp|dev/shm)/'
    condition: selection
falsepositives:
    - >-
        Approved job runners, temporary application helpers, and deployment tooling.
level: medium
fields:
    - Image
    - ParentImage
    - CommandLine
    - User
    - ProcessGuid
    - ParentProcessGuid
Microsoft Defender XDR / Linux EDR process creation / D4A.kqlDownload exact file

Microsoft Defender XDR / Linux EDR process creation

// Defender XDR Advanced Hunting; current DeviceInfo inventory is required for Linux scoping.
let LinuxDevices = DeviceInfo
| where Timestamp > ago(1d)
| summarize arg_max(Timestamp, OSPlatform) by DeviceId
| where OSPlatform == "Linux"
| project DeviceId;
DeviceProcessEvents
| where isnotempty(FolderPath) and InitiatingProcessFolderPath matches regex "/(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$" and FolderPath matches regex "/(sh|bash|dash|ash|zsh|ksh)$"
| where Timestamp > ago(15m) and ActionType == "ProcessCreated"
| where DeviceId in (LinuxDevices)
| project Timestamp, DeviceId, DeviceName, FolderPath, FileName, ProcessCommandLine, AccountName, InitiatingProcessFolderPath, InitiatingProcessFileName, ProcessId, ProcessCreationTime
Microsoft Defender XDR / Linux EDR process creation / D4B.kqlDownload exact file

Microsoft Defender XDR / Linux EDR process creation

// Defender XDR Advanced Hunting; current DeviceInfo inventory is required for Linux scoping.
let LinuxDevices = DeviceInfo
| where Timestamp > ago(1d)
| summarize arg_max(Timestamp, OSPlatform) by DeviceId
| where OSPlatform == "Linux"
| project DeviceId;
DeviceProcessEvents
| where isnotempty(FolderPath) and InitiatingProcessFolderPath matches regex "/(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$" and FolderPath matches regex "^/(tmp|var/tmp|dev/shm)/"
| where Timestamp > ago(15m) and ActionType == "ProcessCreated"
| where DeviceId in (LinuxDevices)
| project Timestamp, DeviceId, DeviceName, FolderPath, FileName, ProcessCommandLine, AccountName, InitiatingProcessFolderPath, InitiatingProcessFileName, ProcessId, ProcessCreationTime
CrowdStrike / Linux EDR process creation / D4A.cqlDownload exact file

CrowdStrike / Linux EDR process creation

#event_simpleName=ProcessRollup2 event_platform=Lin
| ImageFileName=*
| ParentBaseFileName=/^(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$/
| ImageFileName=/\/(sh|bash|dash|ash|zsh|ksh)$/
| select([@timestamp, aid, TargetProcessId, ParentProcessId, UID, ImageFileName, ParentBaseFileName, CommandLine])
CrowdStrike / Linux EDR process creation / D4B.cqlDownload exact file

CrowdStrike / Linux EDR process creation

#event_simpleName=ProcessRollup2 event_platform=Lin
| ImageFileName=*
| ParentBaseFileName=/^(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$/
| ImageFileName=/^\/(tmp|var\/tmp|dev\/shm)\//
| select([@timestamp, aid, TargetProcessId, ParentProcessId, UID, ImageFileName, ParentBaseFileName, CommandLine])
Splunk / Sysmon for Linux XML process events / D4A.splDownload exact file

Splunk / Sysmon for Linux XML process events

index=REPLACE_LINUX_SYSMON_INDEX "Linux-Sysmon" "<EventID>1</EventID>"
| rex field=_raw "<Data Name=\"Image\">(?<Image>[^<]*)</Data>"
| rex field=_raw "<Data Name=\"ParentImage\">(?<ParentImage>[^<]*)</Data>"
| rex field=_raw "<Data Name=\"CommandLine\">(?<CommandLine>[^<]*)</Data>"
| rex field=_raw "<Data Name=\"User\">(?<User>[^<]*)</Data>"
| eval CommandLine=replace(replace(replace(replace(replace(CommandLine,"&quot;","\""),"&apos;","'"),"&lt;","<"),"&gt;",">"),"&amp;","&")
| search Image=*
| regex ParentImage="/(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$"
| regex Image="/(sh|bash|dash|ash|zsh|ksh)$"
| table _time host Image ParentImage CommandLine User
Splunk / Sysmon for Linux XML process events / D4B.splDownload exact file

Splunk / Sysmon for Linux XML process events

index=REPLACE_LINUX_SYSMON_INDEX "Linux-Sysmon" "<EventID>1</EventID>"
| rex field=_raw "<Data Name=\"Image\">(?<Image>[^<]*)</Data>"
| rex field=_raw "<Data Name=\"ParentImage\">(?<ParentImage>[^<]*)</Data>"
| rex field=_raw "<Data Name=\"CommandLine\">(?<CommandLine>[^<]*)</Data>"
| rex field=_raw "<Data Name=\"User\">(?<User>[^<]*)</Data>"
| eval CommandLine=replace(replace(replace(replace(replace(CommandLine,"&quot;","\""),"&apos;","'"),"&lt;","<"),"&gt;",">"),"&amp;","&")
| search Image=*
| regex ParentImage="/(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$"
| regex Image="^/(tmp|var/tmp|dev/shm)/"
| table _time host Image ParentImage CommandLine User
Sumo Logic / Sysmon for Linux XML process events / D4A.sumoDownload exact file

Sumo Logic / Sysmon for Linux XML process events

_sourceCategory=REPLACE_LINUX_SYSMON_SOURCE_CATEGORY
| parse regex "(?<xml><Event(?: [^>]*)?>.*</Event>)"
| parse xml field=xml "/Event/System/Provider/@Name" as Provider
| parse xml field=xml "/Event/System/EventID/text()" as EventID
| where Provider="Linux-Sysmon" and EventID="1"
| parse xml field=xml "/Event/EventData/Data[@Name='Image']/text()" as Image
| parse xml field=xml "/Event/EventData/Data[@Name='ParentImage']/text()" as ParentImage
| where !isNull(Image) and ParentImage matches /\/(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$/ and Image matches /\/(sh|bash|dash|ash|zsh|ksh)$/
| fields _messagetime, _sourceHost, Image, ParentImage
Sumo Logic / Sysmon for Linux XML process events / D4B.sumoDownload exact file

Sumo Logic / Sysmon for Linux XML process events

_sourceCategory=REPLACE_LINUX_SYSMON_SOURCE_CATEGORY
| parse regex "(?<xml><Event(?: [^>]*)?>.*</Event>)"
| parse xml field=xml "/Event/System/Provider/@Name" as Provider
| parse xml field=xml "/Event/System/EventID/text()" as EventID
| where Provider="Linux-Sysmon" and EventID="1"
| parse xml field=xml "/Event/EventData/Data[@Name='Image']/text()" as Image
| parse xml field=xml "/Event/EventData/Data[@Name='ParentImage']/text()" as ParentImage
| where !isNull(Image) and ParentImage matches /\/(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$/ and Image matches /^\/(tmp|var\/tmp|dev\/shm)\//
| fields _messagetime, _sourceHost, Image, ParentImage
Sophos / Current Linux processes snapshot / D4A-snapshot.sqlDownload exact file

Sophos / Current Linux processes snapshot

-- Sophos Live Discover/Live Endpoint, Linux only: CURRENT processes snapshot.
-- Not a Data Lake query and not a history of process creation.
SELECT c.pid, c.start_time, c.path, c.name, c.cmdline, c.uid, c.euid,
       p.pid AS parent_pid, p.start_time AS parent_start_time, p.path AS parent_path
FROM processes c
LEFT JOIN processes p ON c.parent=p.pid AND p.start_time>0 AND p.start_time<=c.start_time
WHERE c.start_time>0 AND c.path IS NOT NULL AND c.path<>'' AND
(p.path GLOB '*/apache2' OR p.path GLOB '*/httpd' OR p.path GLOB '*/nginx' OR p.path GLOB '*/php-fpm' OR p.path GLOB '*/php-cgi' OR p.path GLOB '*/php-fpm[0-9]*') AND (c.path GLOB '*/sh' OR c.path GLOB '*/bash' OR c.path GLOB '*/dash' OR c.path GLOB '*/ash' OR c.path GLOB '*/zsh' OR c.path GLOB '*/ksh');
Sophos / Current Linux processes snapshot / D4B-snapshot.sqlDownload exact file

Sophos / Current Linux processes snapshot

-- Sophos Live Discover/Live Endpoint, Linux only: CURRENT processes snapshot.
-- Not a Data Lake query and not a history of process creation.
SELECT c.pid, c.start_time, c.path, c.name, c.cmdline, c.uid, c.euid,
       p.pid AS parent_pid, p.start_time AS parent_start_time, p.path AS parent_path
FROM processes c
LEFT JOIN processes p ON c.parent=p.pid AND p.start_time>0 AND p.start_time<=c.start_time
WHERE c.start_time>0 AND c.path IS NOT NULL AND c.path<>'' AND
(p.path GLOB '*/apache2' OR p.path GLOB '*/httpd' OR p.path GLOB '*/nginx' OR p.path GLOB '*/php-fpm' OR p.path GLOB '*/php-cgi' OR p.path GLOB '*/php-fpm[0-9]*') AND (c.path GLOB '/tmp/*' OR c.path GLOB '/var/tmp/*' OR c.path GLOB '/dev/shm/*');

D5 / Root-account process below a web worker

Linux direct-parent process behavior

Sigma / lnx_root_account_web_child.ymlDownload exact file

Sigma

title: Linux root-account process below a web worker
id: c5ec43d3-ae65-497a-bc13-e03610cce2a3
status: experimental
description: >-
    A direct web-worker child is recorded under the root account. Parent identity is not available
    in this rule, so it does not prove a non-root-to-root transition or host-kernel privilege
    escalation.
author: Deception Check
date: '2026-10-29'
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|exists: true
        Image|re: '.+'
        ParentImage|re: '/(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$'
        User|re: '^root$'
    condition: selection
falsepositives:
    - >-
        Root web-service masters, approved privileged helpers, and application startup tasks.
level: medium
fields:
    - Image
    - ParentImage
    - CommandLine
    - User
    - ProcessGuid
    - ParentProcessGuid
Microsoft Defender XDR / Linux EDR process creation / D5.kqlDownload exact file

Microsoft Defender XDR / Linux EDR process creation

// Defender XDR Advanced Hunting; current DeviceInfo inventory is required for Linux scoping.
let LinuxDevices = DeviceInfo
| where Timestamp > ago(1d)
| summarize arg_max(Timestamp, OSPlatform) by DeviceId
| where OSPlatform == "Linux"
| project DeviceId;
DeviceProcessEvents
| where isnotempty(FolderPath) and FolderPath matches regex ".+" and InitiatingProcessFolderPath matches regex "/(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$" and AccountName matches regex "^root$"
| where Timestamp > ago(15m) and ActionType == "ProcessCreated"
| where DeviceId in (LinuxDevices)
| project Timestamp, DeviceId, DeviceName, FolderPath, FileName, ProcessCommandLine, AccountName, InitiatingProcessFolderPath, InitiatingProcessFileName, ProcessId, ProcessCreationTime
CrowdStrike / Linux EDR process creation / D5.cqlDownload exact file

CrowdStrike / Linux EDR process creation

#event_simpleName=ProcessRollup2 event_platform=Lin
| ImageFileName=*
| ImageFileName=/.+/
| ParentBaseFileName=/^(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$/
| UID=0
| select([@timestamp, aid, TargetProcessId, ParentProcessId, UID, ImageFileName, ParentBaseFileName, CommandLine])
Splunk / Sysmon for Linux XML process events / D5.splDownload exact file

Splunk / Sysmon for Linux XML process events

index=REPLACE_LINUX_SYSMON_INDEX "Linux-Sysmon" "<EventID>1</EventID>"
| rex field=_raw "<Data Name=\"Image\">(?<Image>[^<]*)</Data>"
| rex field=_raw "<Data Name=\"ParentImage\">(?<ParentImage>[^<]*)</Data>"
| rex field=_raw "<Data Name=\"CommandLine\">(?<CommandLine>[^<]*)</Data>"
| rex field=_raw "<Data Name=\"User\">(?<User>[^<]*)</Data>"
| eval CommandLine=replace(replace(replace(replace(replace(CommandLine,"&quot;","\""),"&apos;","'"),"&lt;","<"),"&gt;",">"),"&amp;","&")
| search Image=*
| regex Image=".+"
| regex ParentImage="/(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$"
| regex User="^root$"
| table _time host Image ParentImage CommandLine User
Sumo Logic / Sysmon for Linux XML process events / D5.sumoDownload exact file

Sumo Logic / Sysmon for Linux XML process events

_sourceCategory=REPLACE_LINUX_SYSMON_SOURCE_CATEGORY
| parse regex "(?<xml><Event(?: [^>]*)?>.*</Event>)"
| parse xml field=xml "/Event/System/Provider/@Name" as Provider
| parse xml field=xml "/Event/System/EventID/text()" as EventID
| where Provider="Linux-Sysmon" and EventID="1"
| parse xml field=xml "/Event/EventData/Data[@Name='Image']/text()" as Image
| parse xml field=xml "/Event/EventData/Data[@Name='ParentImage']/text()" as ParentImage
| parse xml field=xml "/Event/EventData/Data[@Name='User']/text()" as User
| where !isNull(Image) and Image matches /.+/ and ParentImage matches /\/(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$/ and User matches /^root$/
| fields _messagetime, _sourceHost, Image, ParentImage, User
Sophos / Current Linux processes snapshot / D5-snapshot.sqlDownload exact file

Sophos / Current Linux processes snapshot

-- Sophos Live Discover/Live Endpoint, Linux only: CURRENT processes snapshot.
-- Not a Data Lake query and not a history of process creation.
SELECT c.pid, c.start_time, c.path, c.name, c.cmdline, c.uid, c.euid,
       p.pid AS parent_pid, p.start_time AS parent_start_time, p.path AS parent_path
FROM processes c
LEFT JOIN processes p ON c.parent=p.pid AND p.start_time>0 AND p.start_time<=c.start_time
WHERE c.start_time>0 AND c.path IS NOT NULL AND c.path<>'' AND
(p.path GLOB '*/apache2' OR p.path GLOB '*/httpd' OR p.path GLOB '*/nginx' OR p.path GLOB '*/php-fpm' OR p.path GLOB '*/php-cgi' OR p.path GLOB '*/php-fpm[0-9]*') AND c.euid=0;

D6 / SSH remote forwarding requested below a web worker

Linux direct-parent process behavior

Sigma / lnx_web_worker_ssh_remote_forward.ymlDownload exact file

Sigma

title: Linux web worker requests SSH remote forwarding
id: acac19cb-6fd6-4e5c-b036-72e2b860151d
status: experimental
description: >-
    A direct web-worker child runs ssh with an explicit remote-forwarding argument. This is
    a request, not proof of an established tunnel.
author: Deception Check
date: '2026-10-29'
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        Image|exists: true
        ParentImage|re: '/(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$'
        Image|re: '/ssh$'
        CommandLine|re: '(?:^|\s)-[A-Za-z]*R(?:\s|[0-9*:\[])|(?:^|\s)-o\s*RemoteForward(?:=|\s)'
    condition: selection
falsepositives:
    - >-
        Approved application support tunnels and documented maintenance integrations.
level: medium
fields:
    - Image
    - ParentImage
    - CommandLine
    - User
    - ProcessGuid
    - ParentProcessGuid
Microsoft Defender XDR / Linux EDR process creation / D6.kqlDownload exact file

Microsoft Defender XDR / Linux EDR process creation

// Defender XDR Advanced Hunting; current DeviceInfo inventory is required for Linux scoping.
let LinuxDevices = DeviceInfo
| where Timestamp > ago(1d)
| summarize arg_max(Timestamp, OSPlatform) by DeviceId
| where OSPlatform == "Linux"
| project DeviceId;
DeviceProcessEvents
| where isnotempty(FolderPath) and InitiatingProcessFolderPath matches regex "/(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$" and FolderPath matches regex "/ssh$" and ProcessCommandLine matches regex "(?:^|\\s)-[A-Za-z]*R(?:\\s|[0-9*:\\[])|(?:^|\\s)-o\\s*RemoteForward(?:=|\\s)"
| where Timestamp > ago(15m) and ActionType == "ProcessCreated"
| where DeviceId in (LinuxDevices)
| project Timestamp, DeviceId, DeviceName, FolderPath, FileName, ProcessCommandLine, AccountName, InitiatingProcessFolderPath, InitiatingProcessFileName, ProcessId, ProcessCreationTime
CrowdStrike / Linux EDR process creation / D6.cqlDownload exact file

CrowdStrike / Linux EDR process creation

#event_simpleName=ProcessRollup2 event_platform=Lin
| ImageFileName=*
| ParentBaseFileName=/^(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$/
| ImageFileName=/\/ssh$/
| CommandLine=/(?:^|\s)-[A-Za-z]*R(?:\s|[0-9*:\[])|(?:^|\s)-o\s*RemoteForward(?:=|\s)/
| select([@timestamp, aid, TargetProcessId, ParentProcessId, UID, ImageFileName, ParentBaseFileName, CommandLine])
Splunk / Sysmon for Linux XML process events / D6.splDownload exact file

Splunk / Sysmon for Linux XML process events

index=REPLACE_LINUX_SYSMON_INDEX "Linux-Sysmon" "<EventID>1</EventID>"
| rex field=_raw "<Data Name=\"Image\">(?<Image>[^<]*)</Data>"
| rex field=_raw "<Data Name=\"ParentImage\">(?<ParentImage>[^<]*)</Data>"
| rex field=_raw "<Data Name=\"CommandLine\">(?<CommandLine>[^<]*)</Data>"
| rex field=_raw "<Data Name=\"User\">(?<User>[^<]*)</Data>"
| eval CommandLine=replace(replace(replace(replace(replace(CommandLine,"&quot;","\""),"&apos;","'"),"&lt;","<"),"&gt;",">"),"&amp;","&")
| search Image=*
| regex ParentImage="/(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$"
| regex Image="/ssh$"
| regex CommandLine="(?:^|\\s)-[A-Za-z]*R(?:\\s|[0-9*:\\[])|(?:^|\\s)-o\\s*RemoteForward(?:=|\\s)"
| table _time host Image ParentImage CommandLine User
Sumo Logic / Sysmon for Linux XML process events / D6.sumoDownload exact file

Sumo Logic / Sysmon for Linux XML process events

_sourceCategory=REPLACE_LINUX_SYSMON_SOURCE_CATEGORY
| parse regex "(?<xml><Event(?: [^>]*)?>.*</Event>)"
| parse xml field=xml "/Event/System/Provider/@Name" as Provider
| parse xml field=xml "/Event/System/EventID/text()" as EventID
| where Provider="Linux-Sysmon" and EventID="1"
| parse xml field=xml "/Event/EventData/Data[@Name='Image']/text()" as Image
| parse xml field=xml "/Event/EventData/Data[@Name='ParentImage']/text()" as ParentImage
| parse xml field=xml "/Event/EventData/Data[@Name='CommandLine']/text()" as CommandLine
| where !isNull(Image) and ParentImage matches /\/(apache2|httpd|nginx|php-fpm(?:[0-9.]+)?|php-cgi)$/ and Image matches /\/ssh$/ and CommandLine matches /(?:^|\s)-[A-Za-z]*R(?:\s|[0-9*:\[])|(?:^|\s)-o\s*RemoteForward(?:=|\s)/
| fields _messagetime, _sourceHost, Image, ParentImage, CommandLine
Sophos / Current Linux processes snapshot / D6-snapshot.sqlDownload exact file

Sophos / Current Linux processes snapshot

-- Sophos Live Discover/Live Endpoint, Linux only: CURRENT processes snapshot.
-- Not a Data Lake query and not a history of process creation.
SELECT c.pid, c.start_time, c.path, c.name, c.cmdline, c.uid, c.euid,
       p.pid AS parent_pid, p.start_time AS parent_start_time, p.path AS parent_path
FROM processes c
LEFT JOIN processes p ON c.parent=p.pid AND p.start_time>0 AND p.start_time<=c.start_time
WHERE c.start_time>0 AND c.path IS NOT NULL AND c.path<>'' AND
(p.path GLOB '*/apache2' OR p.path GLOB '*/httpd' OR p.path GLOB '*/nginx' OR p.path GLOB '*/php-fpm' OR p.path GLOB '*/php-cgi' OR p.path GLOB '*/php-fpm[0-9]*') AND c.path GLOB '*/ssh' AND (c.cmdline GLOB '* -R *' OR c.cmdline GLOB '* -R[0-9:*[]*' OR c.cmdline GLOB '* -o RemoteForward=*' OR c.cmdline GLOB '* -oRemoteForward=*');

Engineering reference

D3-collector-monitor.md

Collection-health design

# D3: engineer a separate logging-health monitor

This is an engineering design, not an ordinary Sigma rule or a native endpoint query. A query over records that arrived cannot discover every host that sent no records. Select your own supported inventory, collector metrics, and management-health sources; no stock customer table or normalized schema is assumed here.

1. Keep an authoritative off-host expected-host inventory and bounded maintenance windows. Alert if inventory itself stops refreshing.
2. At an approved five-minute interval, arrange a benign unique syslog marker through a supported platform facility and record its expected sequence/destination independently. Select and document that facility for the installed platform. This pack runs no host command and creates no monitor.
3. Observe independent successful management checks, forwarding receipt, queue/drop/ingestion health, and source identity. A ping or live collector process alone is insufficient.
4. For each expected host, choose the latest whole observation before testing freshness. Never combine newer valid fields with older fields, and never silently discard malformed latest rows. Missing snapshots, malformed observations, conflicting timestamps, and stale evaluator output are monitor incidents on a second delivery path.
5. Age every measurement forward to evaluation time, including transit delay. A starting investigation threshold is marker age over 900 seconds while management and collector evidence each remain within 300 seconds; allow 1800 seconds for initial enrollment and suppress only approved maintenance windows. Tune against actual scheduling delay and source clocks.
6. Correlate unexplained loss with independently retained vCenter, identity, network, and admin activity. Preserve existing records before configuration changes. Route collector/network outages as health incidents; do not label every gap an intrusion.

A healthy heartbeat cannot prove that every operation generated an audit event, so this control does not detect or close CVE-2026-41709 by itself. It also cannot recover an event that was never written. Patch according to current vendor guidance and preserve independent evidence. See the Broadcom advisory and shell-auditing documentation linked in SOURCES.md.