Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new rule service_dnsmasq_disabled #12628

Merged
merged 3 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -682,8 +682,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
Loading