3.1.5 Disable Publishing - disable-publishing=yes

Information

The default setting in the configuration file allows the avahi-daemon to send information about the local host such as its address records and the services it offers, to the local network.

Rationale:

If the system does not need to offer services, disable publishing any information about the system to reduce the potential attack surface.

Solution

Disable publishing in the /etc/avahi/avahi-daemon.conf file as follows:

#!/bin/bash
grep '^disable-publishing=yes' /etc/avahi/avahi-daemon.conf
if [ $? -ne 0 ]
then
ed /etc/avahi/avahi-daemon.conf <<END
g/ disable-publishing=yes /d
/^[publish]/
a
disable-publishing =yes
.
w
q
END
fi

Default Value:

OS Default: N/A

See Also

https://workbench.cisecurity.org/files/3096

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7b., CSCv6|9.1, CSCv7|9.2

Plugin: Unix

Control ID: eec4c0bb9a19834ab547a27ce2a6b85320bdae1882875ee942bcc728932abbab