Disabling Security Tools

 Original Source: [Sigma source]
Title: Disabling Security Tools
Status: test
Description:Detects disabling security tools
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1562.004/T1562.004.md
Author: Ömer Günal, Alejandro Ortuno, oscd.community
Date: 2020-06-17
modified:2022-10-09
Tags:
  • -'attack.defense-impairment'
  • -'attack.t1686'
Logsource:
  • category: process_creation
  • product: linux
Detection:
  selection_iptables_1:
    Image|endswith: '/service'
    CommandLine|contains|all:
      -'iptables'
      -'stop'

  selection_iptables_2:
    Image|endswith: '/service'
    CommandLine|contains|all:
      -'ip6tables'
      -'stop'

  selection_iptables_3:
    Image|endswith: '/chkconfig'
    CommandLine|contains|all:
      -'iptables'
      -'stop'

  selection_iptables_4:
    Image|endswith: '/chkconfig'
    CommandLine|contains|all:
      -'ip6tables'
      -'stop'

  selection_firewall_1:
    Image|endswith: '/systemctl'
    CommandLine|contains|all:
      -'firewalld'
      -'stop'

  selection_firewall_2:
    Image|endswith: '/systemctl'
    CommandLine|contains|all:
      -'firewalld'
      -'disable'

  selection_carbonblack_1:
    Image|endswith: '/service'
    CommandLine|contains|all:
      -'cbdaemon'
      -'stop'

  selection_carbonblack_2:
    Image|endswith: '/chkconfig'
    CommandLine|contains|all:
      -'cbdaemon'
      -'off'

  selection_carbonblack_3:
    Image|endswith: '/systemctl'
    CommandLine|contains|all:
      -'cbdaemon'
      -'stop'

  selection_carbonblack_4:
    Image|endswith: '/systemctl'
    CommandLine|contains|all:
      -'cbdaemon'
      -'disable'

  selection_selinux:
    Image|endswith: '/setenforce'
    CommandLine|contains: '0'
  selection_crowdstrike_1:
    Image|endswith: '/systemctl'
    CommandLine|contains|all:
      -'stop'
      -'falcon-sensor'

  selection_crowdstrike_2:
    Image|endswith: '/systemctl'
    CommandLine|contains|all:
      -'disable'
      -'falcon-sensor'

  condition:1 of selection*
Falsepositives:
  -Legitimate administration activities
Level: medium