2.2.2 Ensure avahi daemon services are not in use

Information

Avahi is a free zeroconf implementation, including a system for multicast DNS/DNS-SD service discovery. Avahi allows programs to publish and discover services and hosts running on a local network with no specific configuration. For example, a user can plug a computer into a network and Avahi automatically finds printers to print to, files to look at and people to talk to, as well as network services running on the machine.

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.

Impact:

There may be packages that are dependent on the avahi package. If the avahi package is removed, these dependent packages will be removed as well. Before removing the avahi package, review any dependent packages to determine if they are required on the system.

-IF- a dependent package is required: stop and mask the avahi-daemon.socket and avahi-daemon.service leaving the avahi package installed.

Solution

Run the following commands to stop avahi-daemon.socket and avahi-daemon.service, and remove the avahi package:

# systemctl stop avahi-daemon.socket avahi-daemon.service
# dnf remove avahi

-OR-
-IF- the avahi package is required as a dependency:
Run the following commands to stop and mask the avahi-daemon.socket and avahi-daemon.service:

# systemctl stop avahi-daemon.socket avahi-daemon.service
# systemctl mask avahi-daemon.socket avahi-daemon.service

See Also

https://workbench.cisecurity.org/benchmarks/15288

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, 800-53|CM-7, CSCv7|9.2

Plugin: Unix

Control ID: 4b7138ae422e0ab51388e08dcda1096eabac9c2277a7b685ae36954724ef255c