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

Add option for new files added to queue/syscheck/syscheck to be added as "changed" #1831

Open
macrotex opened this issue Feb 2, 2020 · 1 comment

Comments

@macrotex
Copy link

macrotex commented Feb 2, 2020

When the syscheck scanner runs and it finds a new file it adds it to the integrity checking database (typically at /var/ossec/queue/syscheck/syscheck ). Currently, it adds it with a line similar to this:

+++4219:33188:0:0:46f58c23838f1d054e4517b42046f1e7:592a4e2fb2c3e0cb855564f741b02567a565d2d8 !1580414084 /etc/ssl/certs/trusted-cert.pem

The problem with this is that when the command to list modified files is run (e.g., /var/ossec/bin/syscheck_control -i 000) this new file does not get listed.

It would be very helpful if there were a configuration option that would cause the new line added to the integrity checking database to be added with a "!" like so:

!+++4219:33188:0:0:46f58c23838f1d054e4517b42046f1e7:592a4e2fb2c3e0cb855564f741b02567a565d2d8 !1580414084 /etc/ssl/certs/trusted-cert.pem

This way, /var/ossec/bin/syscheck_control -i 000 would show the new file as changed.

@macrotex
Copy link
Author

macrotex commented Feb 29, 2020

For the above to work, syscheckd only adds new files as "dirty" if it is not in the middle of an initial database scan.

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

1 participant