Detectionmediumtest
Modify System Firewall
Detects the removal of system firewall rules. Adversaries may only delete or modify a specific system firewall rule to bypass controls limiting network usage or access. Detection rules that match only on the disabling of firewalls will miss this.
Log Source
Linuxauditd
ProductLinux← raw: linux
Serviceauditd← raw: auditd
Detection Logic
Detection Logic4 selectors
detection:
selection1:
type: 'EXECVE'
a0: 'iptables'
a1|contains: 'DROP'
selection2:
type: 'EXECVE'
a0: 'firewall-cmd'
a1|contains: 'remove'
selection3:
type: 'EXECVE'
a0: 'ufw'
a1|contains: 'delete'
selection4:
type: 'EXECVE'
a0: 'nft'
a1|contains:
- 'delete'
- 'flush'
condition: 1 of selection*False Positives
Legitimate admin activity
MITRE ATT&CK
Tactics
Rule Metadata
Rule ID
323ff3f5-0013-4847-bbd4-250b5edb62cc
Status
test
Level
medium
Type
Detection
Created
2023-03-06
Modified
2025-10-12
Author
Path
rules/linux/auditd/execve/lnx_auditd_modify_system_firewall.yml
Raw Tags
attack.defense-impairmentattack.t1686