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