2.2.14 Ensure NIS Server is not installed (Automated)
Profile
- Level 1 - Server
- Level 1 - Workstation
Description
The Network Information Service (NIS) (formally known as Yellow Pages) is a client-server directory service protocol for distributing system configuration files. The NIS server is a collection of programs that allow for the distribution of configuration files.
Rationale
The NIS service is inherently an insecure system that has been vulnerable to DOS attacks, buffer overflows and has poor authentication for querying NIS maps. NIS generally has been replaced by such protocols as Lightweight Directory Access Protocol (LDAP). It is recommended that the service be removed and other, more secure services be used.
Audit Procedure
Command Line
Run the following command to verify nis is not installed:
# dpkg-query -s nis &>/dev/null && echo "nis is installed"
Nothing should be returned.
Expected Result
No output (empty result).
Remediation
Command Line
Run the following command to remove nis:
# apt purge nis
References
- NIST SP 800-53 Rev. 5: CM-6, CM-7
CIS Controls
- v8: 4.8 - Uninstall or Disable Unnecessary Services on Enterprise Assets and Software
- v7: 9.2 - Ensure Only Approved Ports, Protocols and Services Are Running