Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Ensure that System Accounts Do Not Run a Shell Upon Login" all fails if one item fails #12633

Open
huornlmj opened this issue Nov 25, 2024 · 1 comment
Labels
Ubuntu Ubuntu product related.

Comments

@huornlmj
Copy link

Description of problem:

For Ubuntu 22.04 "CIS Ubuntu 22.04 Level 1 Server Benchmark", all portions of "Ensure that System Accounts Do Not Run a Shell Upon Login" reported as fails if only one portion actually fails.
Rule: xccdf_org.ssgproject.content_rule_no_shelllogin_for_systemaccounts

image
Here is the actual line in /etc/login.defs

# grep "SYS_UID_MIN" /etc/login.defs
#SYS_UID_MIN

Here is the same file on a different system with all portions of the test passing:
image

# grep "SYS_UID_MIN" /etc/login.defs
#SYS_UID_MIN 

SCAP Security Guide Version:

OpenSCAP command line tool (oscap) 1.2.17

Operating System Version:

Ubuntu 22.04.5 LTS

Steps to Reproduce:

  1. Scan two identical systems.
  2. On one system, add a fail such as a system account with a login shell, such as /bin/sh.
  3. Scan this updated system and observe all tests in the section fail despite both /etc/login.defs being identical (i.e., both remarked out in vanilla Ubuntu).
@mpurg
Copy link
Contributor

mpurg commented Dec 2, 2024

Just to confirm, the overall state of the rule agrees with what you would expect?
The issue is only that the individual components of the rule are marked differently depending on the outcome of other components?

@dodys dodys added the Ubuntu Ubuntu product related. label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ubuntu Ubuntu product related.
Projects
None yet
Development

No branches or pull requests

3 participants