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

Rule 4.2.2.6 and 4.2.2.7 rsyslog config #54

Closed
zac90 opened this issue Aug 4, 2023 · 1 comment
Closed

Rule 4.2.2.6 and 4.2.2.7 rsyslog config #54

zac90 opened this issue Aug 4, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@zac90
Copy link

zac90 commented Aug 4, 2023

Describe the Issue
The playbook has the option to specify whether the host is a log server or not ubtu22cis_system_is_log_server which is good. However, there is no option to specify the host just keeping logs locally. This affects the settings it configures in /etc/rsyslog.conf and causes an audit to fail as it finds those lines in the file

Expected Behavior
The following lines should either no appear or be commented out if the host is keeping logs to itself.
$ModLoad imtcp
$InputTCPServerRun port
$ModLoad imudp
$UDPServerRun port
$ModLoad imrelp
$InputRELPServerRun port

Actual Behavior
The host is setting up ports to listen on.

Control(s) Affected
4.2.2.6 and 4.2.2.7

Possible Solution
Add another variable option for when host keeps logs itself. That way rsyslog can be configured to not be listening on any ports. Then add a task that comments out those lines if that variable is set.

@zac90 zac90 added the bug Something isn't working label Aug 4, 2023
@uk-bolly uk-bolly self-assigned this Aug 8, 2023
@uk-bolly
Copy link
Member

uk-bolly commented Aug 8, 2023

hi @zac90

Thank you for taking the time to raise the issues and provide the feedback. For this issue regarding the rsyslog we follow CIS control rules to keep locally is not one of the options to be compliant i'm afraid. Although you have highlighted some options that they have not yet updated in their documentation. I am currently adding these as options to ensure they are commented out.
This will hopefully be into the devel branch soon.

Many thanks

uk-bolly

uk-bolly added a commit that referenced this issue Aug 9, 2023
Signed-off-by: Mark Bolwell <[email protected]>
This was referenced Aug 10, 2023
@uk-bolly uk-bolly closed this as completed Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants