Skip to content

Commit

Permalink
Merge pull request #12628 from mpurg/ubuntu2404_cis_2_1_5
Browse files Browse the repository at this point in the history
Add new rule service_dnsmasq_disabled
  • Loading branch information
dodys authored Nov 25, 2024
2 parents f12c0f4 + 5da830e commit 7b52a14
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/bind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ rules:
- package_bind_removed
- package_dnsmasq_removed
- service_named_disabled
- service_dnsmasq_disabled
1 change: 1 addition & 0 deletions components/dnsmasq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ packages:
- dnsmasq
rules:
- package_dnsmasq_removed
- service_dnsmasq_disabled
6 changes: 4 additions & 2 deletions controls/cis_ubuntu2404.yml
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,10 @@ controls:
levels:
- l1_server
- l1_workstation
status: planned
notes: TODO. Rule does not seem to be implemented, nor does it map to any rules in ubuntu2204 profile.
rules:
- package_dnsmasq_removed
- service_dnsmasq_disabled
status: automated

- id: 2.1.6
title: Ensure ftp server services are not in use (Automated)
Expand Down
20 changes: 20 additions & 0 deletions linux_os/guide/services/dns/service_dnsmasq_disabled/rule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
documentation_complete: true

title: 'Disable dnsmasq Service'

description: |-
{{{ describe_service_disable(service="dnsmasq") }}}
rationale: |-
Unless a system is specifically designated to act as a DNS
caching, DNS forwarding and/or DHCP server, it is recommended
that the package be removed to reduce the potential attack surface.
severity: medium

platform: system_with_kernel

template:
name: service_disabled
vars:
servicename: dnsmasq

0 comments on commit 7b52a14

Please sign in to comment.