Uninstall avahi Server Package
An XCCDF Rule
Description
If the system does not need to have an Avahi server which implements the DNS Service Discovery and Multicast DNS protocols, the avahi-autoipd and avahi packages can be uninstalled.
Rationale
Automatic discovery of network services is not normally required for system functionality. It is recommended to remove this package to reduce the potential attack surface.
- ID
- xccdf_org.ssgproject.content_rule_package_avahi_removed
- Severity
- Medium
- References
- Updated
Remediation - Ansible
- name: Ensure avahi-daemon is removed
package:
name: avahi-daemon
state: absent
tags:
- NIST-800-53-CM-6(a)
Remediation - Puppet
include remove_avahi-daemon
class remove_avahi-daemon {
package { 'avahi-daemon':
ensure => 'purged',
}
Remediation - Shell Script
# CAUTION: This remediation script will remove avahi-daemon
# from the system, and may remove any packages
# that depend on avahi-daemon. Execute this
# remediation AFTER testing on a non-production
# system!