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
Query · sigma
selection: CommandLine|startswith: - 'sh -c ' - 'bash -c ' selection_exec: - CommandLine|contains: - '| bash ' - '| sh ' - '|bash ' - '|sh ' - CommandLine|endswith: - '| bash' - '| sh' - '|bash' - ' |sh' condition: all of selection*
Known false positives
- Legitimate software that uses these patterns