title: Linux Loader Pipeline Or SCP Remote Path With Observed Traits
id: be6d250c-aa01-4b46-8fe3-5fd3e8d2bfb2
status: experimental
description: >-
    Finds command-line text containing curl or wget piped to sh -s with an
    apache, ssh, telnet, or php2shell argument, OR an scp command containing
    the remote operand dlr@HOST:sh. Transfer direction is not established.
    Destinations are deliberately
    unrestricted; correlate with the shared-destination hunt and ancestry.
    This is a text-pattern hunt, not shell parsing or a CVE signature.
author: Deception Check
date: '2026-10-23'
references:
    - https://sigmahq.io/sigma-specification/specification/sigma-rules-specification.html
logsource:
    category: process_creation
    product: linux
    definition: 'Requires the complete process CommandLine, often from the shell -c event.'
detection:
    selection_pipeline:
        CommandLine|re: '(^|[ /"''(;])(?:curl|wget)[ \t]+[^|\r\n]*\|[ \t]*(?:/[^ \t|;]+/)?sh[ \t]+-s[ \t]+(?:--[ \t]+)?(?:apache|ssh|telnet|php2shell)(?:[ \t;&"''()]|$)'
    selection_scp:
        CommandLine|re: '(^|[ /"''(;])scp[ \t]+(?:[^;|&\r\n]*[ \t])?["'']?dlr@[^ \t:;|&"''\r\n]+:sh(?:[ \t"'')]|$)'
    condition: selection_pipeline or selection_scp
fields:
    - Image
    - CommandLine
    - ParentImage
    - ParentCommandLine
    - User
    - ProcessId
    - ParentProcessId
falsepositives:
    - Authorized installation scripts using the same positional arguments
    - Authorized SCP transfers using a remote file named sh and the account dlr
    - Quoted examples, research, test harnesses, and replayed command lines
level: medium
