title: Shell Spawned by Splunk PostgreSQL Sidecar Process
id: 6f3a1d22-7c4e-4b8a-9e31-2d5a8c1f90bb
status: experimental
description: |
    Detects a shell process whose parent is the Splunk PostgreSQL/Patroni sidecar binary on a search head cluster member.
    Several 2026 Splunk Enterprise vulnerabilities (CVE-2026-20253, CVE-2026-76268, CVE-2026-76298) end with operating-system command execution as the Splunk service account through this sidecar. This is a hunting rule: the PostgreSQL archiver legitimately runs archive_command through a shell, so tune against your own baseline.
references:
    - https://advisory.splunk.com/advisories/SVD-2026-1007
    - https://advisory.splunk.com/advisories/SVD-2026-0603
author: Chabnco (PurpleLog)
date: 2026-10-26
tags:
    - attack.initial-access
    - attack.t1190
    - attack.execution
    - attack.t1059.004
logsource:
    category: process_creation
    product: linux
detection:
    selection_parent:
        ParentImage|endswith:
            - '/postgres'
            - '/patroni'
    selection_child:
        Image|endswith:
            - '/sh'
            - '/bash'
            - '/dash'
    condition: selection_parent and selection_child
falsepositives:
    - PostgreSQL archive_command, restore_command or backup jobs that legitimately call a shell
    - Administrative maintenance scripts run under the sidecar
level: medium
