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 - Anaconda Pre-Install Instructions
package --remove=avahi
Remediation - Ansible
- name: Ensure avahi is removed
package:
name: avahi
state: absent
tags:
- CCE-86512-1
Remediation - Puppet
include remove_avahi
class remove_avahi {
package { 'avahi':
ensure => 'purged',
}
Remediation - Shell Script
# CAUTION: This remediation script will remove avahi
# from the system, and may remove any packages
# that depend on avahi. Execute this
# remediation AFTER testing on a non-production
# system!