Skip to content

Commit

Permalink
Update ubuntu2404 CIS control 4.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mpurg committed Nov 27, 2024
1 parent bc0a4a0 commit a9babe1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
5 changes: 2 additions & 3 deletions controls/cis_ubuntu2404.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1398,10 +1398,9 @@ controls:
levels:
- l1_server
- l1_workstation
related_rules:
rules:
- nftables_ensure_default_deny_policy
status: planned
notes: TODO. Partial/incorrect implementation exists.See related rules. Analogous to ubuntu2204/3.5.2.8.
status: automated

- id: 4.3.9
title: Ensure nftables service is enabled (Automated)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
documentation_complete: true


title: 'Ensure nftables Default Deny Firewall Policy'

description: |-
Expand All @@ -9,12 +8,23 @@ description: |-
the firewall will accept any packet that is not configured to be denied and the packet will
continue traversing the network stack.
{% if 'ubuntu' in product %}
Run the following commands and verify that base chains contain a policy of DROP.
<pre>
$ nft list ruleset | grep 'hook input'
type filter hook input priority 0; policy drop;
$ nft list ruleset | grep 'hook forward'
type filter hook forward priority 0; policy drop;
$ nft list ruleset | grep 'hook output'
type filter hook output priority 0; policy drop;
</pre>
rationale: |
It is easier to allow acceptable usage than to block unacceptable usage.
severity: medium

platform: package[nftables] and service_disabled[firewalld]
platform: package[nftables] and service_disabled[firewalld] and service_disabled[ufw]

identifiers:
cce@sle15: CCE-92507-3
Expand Down

0 comments on commit a9babe1

Please sign in to comment.