4.2.6 Ensure that host based authentication files are not present

Information

This recommendation removes all instances ofrhostsshosts andnetrc files from the system.

Therhostsshosts andnetrc files can be used to circumvent normal login or change control procedures. The existence of such files, with the relevant entries, can allow remote user access to a system bypassing local user and password authentication. Unless required these files will be removed from all user home directories.

Solution

Remove therhosts andnetrc files from all user home directories:

find / -name ".netrc" -exec rm {} ;
find / -name ".rhosts" -exec rm {} ;
find / -name ".shosts" -exec rm {} ;

See Also

https://workbench.cisecurity.org/benchmarks/10385

Item Details

Category: ACCESS CONTROL, MEDIA PROTECTION

References: 800-53|AC-3, 800-53|AC-5, 800-53|AC-6, 800-53|MP-2, CSCv7|14.6

Plugin: Unix

Control ID: 6d2ed10bde092e4b6f2d6ec58cc9adfa4835167144e575b6d847646508de9cd9