Interactive Bash Suspicious Children


Description

Detects suspicious interactive bash as a parent to rather uncommon child processes

Query · sigma

selection:
  ParentCommandLine: bash -i
anomaly1:
  CommandLine|contains:
  - '-c import '
  - base64
  - pty.spawn
anomaly2:
  Image|endswith:
  - whoami
  - iptables
  - /ncat
  - /nc
  - /netcat
condition: selection and 1 of anomaly*

Known false positives

  • Legitimate software that uses these patterns
Raw source Interactive Bash Suspicious Children · Sigma
Esc
Published by SigmaHQ/sigma ↗, licensed under Detection Rule License 1.1 ↗. Reproduced here unmodified.
title: Interactive Bash Suspicious Children
id: ea3ecad2-db86-4a89-ad0b-132a10d2db55
status: test
description: Detects suspicious interactive bash as a parent to rather uncommon child processes
references:
    - Internal Research
author: Florian Roth (Nextron Systems)
date: 2022-03-14
tags:
    - attack.execution
    - attack.stealth
    - attack.t1059.004
    - attack.t1036
logsource:
    product: linux
    category: process_creation
detection:
    selection:
        ParentCommandLine: 'bash -i'
    anomaly1:
        CommandLine|contains:
            - '-c import '
            - 'base64'
            - 'pty.spawn'
    anomaly2:
        Image|endswith:
            - 'whoami'
            - 'iptables'
            - '/ncat'
            - '/nc'
            - '/netcat'
    condition: selection and 1 of anomaly*
falsepositives:
    - Legitimate software that uses these patterns
level: medium

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.