Linux Auditd: Stop Firewalld, iptables, or UFW Services

Detects stopping firewall services (firewalld/iptables/ufw) on Linux via auditd service-stop events.

FreeReviewedSigma · High · v3
Product
linux
Service
auditd
Author
Pawel Mazur (SigmaHQ), DRL 1.1
Published
2022-01-22
Updated
2026-07-31
title: "Linux Auditd: Stop Firewalld, iptables, or UFW Services"
id: a150cac0-a088-4013-9ebb-df787729d0a2
status: test
description: This rule identifies attempts to disable host firewall enforcement by stopping the firewalld, iptables, or UFW services. Attackers often impair defenses to reduce network filtering and make it easier to reach internal or external targets. It relies on auditd service stop telemetry that records unit stop events for these specific firewall components.
references:
  - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1562.004/T1562.004.md
  - https://firewalld.org/documentation/man-pages/firewall-cmd.html
  - https://github.com/SigmaHQ/sigma/blob/master/rules/linux/auditd/service_stop/lnx_auditd_disable_system_firewall.yml
author: Pawel Mazur, Huntrule Team
date: 2022-01-22
tags:
  - attack.defense-impairment
  - attack.t1686
logsource:
  product: linux
  service: auditd
detection:
  selection:
    type: SERVICE_STOP
    unit:
      - firewalld
      - iptables
      - ufw
  condition: selection
falsepositives:
  - Admin activity
level: high
license: DRL-1.1
related:
  - id: 53059bc0-1472-438b-956a-7508a94a91f0
    type: derived