GEN001366 - The /etc/hosts file must be owned by root.

Information

The /etc/hosts file (or equivalent) configures local host name to IP address mappings that typically take precedence over DNS resolution. If this file is maliciously modified, it could cause the failure or compromise of security functions requiring name resolution, which may include time synchronization, centralized authentication, and remote system logging.

Solution

Change the owner of the /etc/hosts file to root.
# chown root /etc/hosts

See Also

http://iasecontent.disa.mil/stigs/zip/U_STIG_Library_2015_07.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6, CAT|II, CCI|CCI-000225, Rule-ID|SV-26410r1_rule, STIG-ID|GEN001366, Vuln-ID|V-22323

Plugin: Unix

Control ID: a916152eda68260486c4fffd52c1b358f31e2903c248c7f201935fc72aa73417