UCF STIG Viewer Logo

The /etc/hosts file must be group-owned by root, bin, or sys.


Overview

Finding ID Version Rule ID IA Controls Severity
V-227633 GEN001367 SV-227633r603266_rule Medium
Description
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.
STIG Date
Solaris 10 X86 Security Technical Implementation Guide 2022-09-07

Details

Check Text ( C-29795r488459_chk )
Check the /etc/hosts file's group ownership.

Procedure:
# ls -lL /etc/hosts

If the file is not group-owned by root, bin, or sys, this is a finding.
Fix Text (F-29783r488460_fix)
Change the group owner of the /etc/hosts file to root, sys, or bin.

Procedure:
# chgrp root /etc/hosts