1. Home
  2. Security Hardening
  3. CIS Solaris 10 L2 V5 2
  4. Create symlinks for dangerous files – /etc/hosts.equiv

Create symlinks for dangerous files – /etc/hosts.equiv

Details

The /.rhosts, /.shosts, and /etc/hosts.equiv files enable a weak form of access control. Attackers will often target these files as part of their exploit scripts. By linking these files to /dev/null, any data that an attacker writes to these files is simply discarded (though an astute attacker can still remove the link prior to writing their malicious data).

Solution

Perform the following to implement the recommended state:
# for file in /.rhosts /.shosts /etc/hosts.equiv; do
rm -f $file
ln -s /dev/null $file
done

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Configuration Management.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles