-
Notifications
You must be signed in to change notification settings - Fork 92
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
/var/log/btmp
should be included in group_write_excepts
for CIS 4.2.3
#112
Comments
@jrbeilke Ya this control has proven tricky to handle across multiple distros, while the perms on There are some other services that cause problems for this specific control (i.e. cloud-init, ssm agent). Where other services rely Maybe others could weigh in if anything else might make sense to add to the allowed list? Side Note
Spit balling here, but would contributions that provide some sort "escape hatch" via a combination of inputs/conditions beyond just Providing some Inspec output for a few different "stock" AMIs from Amazon, Canonical, and Marketplace Centos 7, showing which log files would cause the control to fail in addition to Ubuntu 18.04ImageId: ami-007e276c37b5ff2d7
Click Me: Full Inspec CLI Output
Ubuntu 20.04ImageId: ami-0a62a78cfedc09d76
Click Me: Full Inspec CLI Output
Amazon Linux 2ImageId: ami-0518bb0e75d3619ca
Click Me: Full Inspec CLI Output
Centos 7ImageId: ami-0bc06212a56393ee1
Click Me: Full Inspec CLI Output
|
Thanks for the detailed write-up @deric4 For now I am having to skip this control and run a custom copy with an exception for Would like to either see Since this is standard behavior in Ubuntu distributions with |
I think adding Regarding all the other logs I like to adhere to the definition from CIS DIL Benchmark. This states, that all logfiles should not be readable by |
@deric4 I really like what you gathered here and I believe some of it warrants further exploration. I have added a link to my notes as I'm unsure on how to continue with this. If you have a good idea on how to continue with your input, you are welcome to open followup issues or PRs. I will also do so, once I find the time. This issue is now closed, because the initial issue is fixed. |
Describe the bug
Inspec failure on a fresh Ubuntu 18.04 system due to permissions on
/var/log/btmp
and CIS 4.2.3:Expected behavior
Seems an exception was added for the CIS 4.2.3 criteria to allow group write permissions for
/var/log/lastlog
and/var/log/wtmp
but not/var/log/btmp
#50
AFAICT 660 permissions on
/var/log/btmp
are expected and do not seem to be a security issue just like/var/log/wtmp
ie.https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=314956
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/743858
OS / Environment
Ubuntu 18.04
Inspec Version
Baseline Version
The text was updated successfully, but these errors were encountered: