2025-08-19 18:03:12 +05:30
id : nis-client
2025-06-18 23:58:37 -07:00
info :
name : Ensure NIS Client is Not Installed
author : Th3l0newolf
2025-08-19 18:03:12 +05:30
severity : info
2025-06-18 23:58:37 -07:00
description : |
2025-08-19 18:03:12 +05:30
The nis package provides the Network Information Service client, which is insecure and deprecated.If not explicitly required, it should be removed to reduce the system’ s attack surface.
2025-06-18 23:58:37 -07:00
remediation : |
2025-08-19 18:03:12 +05:30
- Ensure the nis package is not installed unless explicitly required.
- To remove the package, run : sudo apt-get remove nis -y
2025-06-18 23:58:37 -07:00
reference :
- https://www.cisecurity.org/benchmark/ubuntu_linux
metadata :
verified : true
2025-08-28 23:41:32 +05:30
tags : cis,local,cisecurity,audit,linux,ubuntu,nis
2025-06-18 23:58:37 -07:00
self-contained : true
code :
- engine :
- bash
args :
- "-c"
- |
# Check if the nis package is installed
if dpkg-query -W -f='${Status}' nis 2>/dev/null | grep -q "install ok installed"; then
2025-08-19 18:03:12 +05:30
echo "[cis-nis-client-check:Policy-Fail] [NIS is installed] [CIS_FAIL]"
2025-06-18 23:58:37 -07:00
else
2025-08-19 18:03:12 +05:30
echo "[cis-nis-client-check:Policy-Pass] [NIS is not installed] [CIS_PASS]"
2025-06-18 23:58:37 -07:00
fi
matchers :
- type : word
name : policy-pass
words :
- "Policy-Pass"
- type : word
name : policy-fail
words :
2025-08-19 18:11:23 +05:30
- "Policy-Fail"
2025-08-29 10:06:03 +00:00
# digest: 4a0a00473045022100cfc6bf15d445dff51f2fba3848fa1387d14074791850f1f0c91293107f5149be022068f71166dae4ec578d4ca2b043f92349a31fc68dc0e945644c2831490c3665e2:922c64590222798bb761d5b6d8e72950