Cobra Forum

Linux Specialised Support => Security => Topic started by: kalpana on Nov 06, 2023, 03:11 AM

Title: CIS Benchmark - False negative, how to improve
Post by: kalpana on Nov 06, 2023, 03:11 AM
Dear all, (I'm new here, please let me know if I disregard some conventions and steer me in the right way)

we just started using the CIS benchmarks (CIS Ubuntu 20.04 Level 1 Server Benchmark) against our images. We fail on the check "sshd_configure_allow_users". In the official documentation (5.3.4) it reads we should restrict SSH access either via AllowUsers, AllowGroups, DenyUsers or DenyGroups:

The entry in /etc/ssh/sshd_config reads:
AllowUsers rstraub someone someoneelse

And manually auditing "sshd -T | grep -i AllowUser" returns:
allowusers rstraub
allowusers someone
allowusers someoneelse

The audit however "usg audit cis_level1_server" fails on rule "Restrict sshd user access via AllowUsers".

How/where could we see how the script is checking the rule and where could we raise a bugreport regarding these audits ?