-
Notifications
You must be signed in to change notification settings - Fork 690
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
Syscheck monitoring of /var/lib/tor/services/ #2963
Conversation
…irectory and not only /var/lib/tor/services/hostname (which no longer exists)
Codecov Report
@@ Coverage Diff @@
## develop #2963 +/- ##
========================================
Coverage 89.28% 89.28%
========================================
Files 31 31
Lines 1810 1810
Branches 209 209
========================================
Hits 1616 1616
Misses 144 144
Partials 50 50 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good and I've tested in staging following your test plan. Thanks @emkll!
@emkll @redshiftzero Hey both, just had a comment or thought here when I was looking at the list of directories that are being monitored. If we're speaking in terms of defense-in-depth, then you might want to monitor |
@ageis #1261 describes switching to Unix sockets (i.e. files on disk) for the Tor service. If that gets implemented, then the socket path would ideally be monitored by OSSEC. As for watching anything under |
Hey @emkll should this also be monitored on upgrades? I can't see any logic that would add it as-is. |
Status
Ready for review
Description of Changes
Fixes #2960:
Modify ossec-agent configuration to monitor
/var/lib/tor/services/
directory.Testing
make build-debs
vagrant up /staging/
vagrant ssh mon-staging
/var/ossec/queue/syscheck/\(app-staging\)\ 10.0.1.2-\>syscheck
should contain hashes all files and folders in/var/lib/tor/services
and monitor/alert on changes.Deployment
Will require a new ossec-agent package to published.
Checklist
If you made changes to the system configuration: