Hello, first of all thanks for the great project, Siemens fans here π
While importing the benchmark baseline for some internal tests, we have found that rule cis-dil-benchmark-1.4.3 tests fail on some specific Linux flavors, and we are not sure whether this is a wrong / incomplete benchmark test, or a valid failure.
# man 5 shadow
...
encrypted password
This field may be empty, in which case no passwords are required to authenticate as the specified login name. However, some applications which read the /etc/shadow file may decide not to permit any access at all if the
password field is empty.
A password field which starts with an exclamation mark means that the password is locked. The remaining characters on the line represent the password field before the password was locked.
Refer to crypt(3) for details on how this string is interpreted.
If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in (but the user may log in the system by other means).
...
So we're not sure if this is a wrong test in CIL or the behaviour is indeed different between both /etc/shadow states. Should !* be valid too? (actually anything !-prefixed)
Hello, first of all thanks for the great project, Siemens fans here π
While importing the benchmark baseline for some internal tests, we have found that rule
cis-dil-benchmark-1.4.3
tests fail on some specific Linux flavors, and we are not sure whether this is a wrong / incomplete benchmark test, or a valid failure.!
or*
root
/etc/shadow
password to*
. This fails validation.!locked
, which passes validation.!
or an exact*
Standard tooling reports them as being exactly the same state
locked
grep root /etc/shadow
root:!locked::0:99999:7:::
passwd -S root
root LK 1969-12-31 0 99999 7 -1 (Password locked.)
The man page says:
So we're not sure if this is a wrong test in CIL or the behaviour is indeed different between both
/etc/shadow
states. Should!*
be valid too? (actually anything!
-prefixed)Could you guys shed some light here? Thanks!