{"id":"880973f3-9708-491c-a77b-2a35a1921158","title":"Linux Shell Pipe to Shell","description":"Detects suspicious process command line that starts with a shell that executes something and finally gets piped into another shell","author":"Florian Roth (Nextron Systems)","status":"test","level":"medium","date":"2022-03-14","modified":"2022-07-26","tags":["attack.stealth","attack.t1140"],"technique_ids":["T1140"],"logsource":{"product":"linux","category":"process_creation"},"falsepositives":["Legitimate software that uses these patterns"],"references":["Internal Research"],"source_path":"rules/linux/process_creation/proc_creation_lnx_susp_pipe_shell.yml","source_sha256":"17d916982510283f336fd2d98bb8d2f81bbdfcdbbcaaf5abb26fbd4c9193eaad","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/linux/process_creation/proc_creation_lnx_susp_pipe_shell.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Linux Shell Pipe to Shell\nid: 880973f3-9708-491c-a77b-2a35a1921158\nstatus: test\ndescription: Detects suspicious process command line that starts with a shell that executes something and finally gets piped into another shell\nreferences:\n    - Internal Research\nauthor: Florian Roth (Nextron Systems)\ndate: 2022-03-14\nmodified: 2022-07-26\ntags:\n    - attack.stealth\n    - attack.t1140\nlogsource:\n    product: linux\n    category: process_creation\ndetection:\n    selection:\n        CommandLine|startswith:\n            - 'sh -c '\n            - 'bash -c '\n    selection_exec:\n        - CommandLine|contains:\n              - '| bash '\n              - '| sh '\n              - '|bash '\n              - '|sh '\n        - CommandLine|endswith:\n              - '| bash'\n              - '| sh'\n              - '|bash'\n              - ' |sh'\n    condition: all of selection*\nfalsepositives:\n    - Legitimate software that uses these patterns\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1140","id":"T1140","name":"Deobfuscate/Decode Files or Information","page":"techniques/enterprise/T1140/"}],"data_path":"data/detection-rules/880973f3-9708-491c-a77b-2a35a1921158.json","kind":"sigma"}
