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

Update cis_ubuntu22-04.yml #23108

Open
wants to merge 1 commit into
base: 4.9.0
Choose a base branch
from

Conversation

Johnng007
Copy link
Member

@Johnng007 Johnng007 commented Apr 24, 2024

Related issue
#20231

Description

The debian12 SCA is affected by the "Ensure permissions on bootloader config are configured." wrong check entry.
The rule associated with it is wrong because the rationale explains that the permission should be set as read write for the root user. Also this is reflected in the remediation chown root:root /boot/grub/grub.cfg # chmod og-rwx /boot/grub/grub.cfg.

Unit testing

  • a) Output from agent.log after the SCA scan and a raw output of the result of the checks.
Tests results
2024/04/26 02:29:39 sca: INFO: Evaluation finished for policy '/var/ossec/ruleset/sca/cis_ubuntu22-04.yml'
2024/04/26 02:29:39 sca: INFO: Security Configuration Assessment scan finished. Duration: 6 seconds.

@Johnng007 Johnng007 requested a review from IsExec April 24, 2024 09:21
@Johnng007 Johnng007 self-assigned this Apr 24, 2024
@Johnng007
Copy link
Member Author

Update: 26/04/2024

Unit Testing

2024/04/26 02:29:39 sca: INFO: Evaluation finished for policy '/var/ossec/ruleset/sca/cis_ubuntu22-04.yml'
2024/04/26 02:29:39 sca: INFO: Security Configuration Assessment scan finished. Duration: 6 seconds.

image

@Elyasnz
Copy link

Elyasnz commented Apr 27, 2024

hi there
thanks for the great work here
also not that rule 28532 Ensure core dumps are restricted. has false positive when coredump is not installed

this condition should also handle No such file or directory
systemctl is-enabled coredump.service -> r:enabled|masked|disabled

Suggested fix:
systemctl is-enabled coredump.service -> r:enabled|masked|disabled|No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants