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

SCA Regex: Ensure events that modify the system's network environment are collected #4235

Closed
nmartinez-nimeops opened this issue Nov 13, 2019 · 2 comments
Assignees

Comments

@nmartinez-nimeops
Copy link

nmartinez-nimeops commented Nov 13, 2019

Hi,
seems that the regex is not good for Ensure events that modify the system's network environment are collected for debian

- 'f:/etc/audit/audit.rules -> r:^-w && r:/etc/sysconfig/network && r:-p wa && r:-k system-locale'

should be:

- 'f:/etc/audit/audit.rules -> r:^-w && r:/etc/networks && r:-p wa && r:-k system-locale'
- 'f:/etc/audit/audit.rules -> r:^-w && r:/etc/network && r:-p wa && r:-k system-locale'

File: https://github.com/wazuh/wazuh/blob/master/etc/sca/debian/cis_debian9_L2.yml

@cristgl
Copy link
Contributor

cristgl commented Nov 13, 2019

Hello @nimeops and thanks again for reporting these bugs.

I fixed it in this PR wazuh/wazuh-ruleset#527. However, I've seen that you have added another line with the file /etc/networks. Can you explain this? It is not reflected in the CIS Debian benchmark.

Kind regards,
Cristina

@nmartinez-nimeops
Copy link
Author

Hi,
on Debian/Ubuntu, there are ressources to check:

  • file /etc/networks
  • directory /etc/network

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

No branches or pull requests

3 participants