-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
FIM realtime support for macOS and BSD #16316
Open
mjcr99
wants to merge
7
commits into
master
Choose a base branch
from
16226-fim-realtime-support-for-macos-and-bsd
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mjcr99
added
module/fim
File Integrity Monitoring
platform/macos
platform/bsd
module/fim/realtime
File Integrity Monitoring realtime engine
labels
Mar 2, 2023
mjcr99
force-pushed
the
16226-fim-realtime-support-for-macos-and-bsd
branch
from
March 2, 2023 21:50
6a04f82
to
2c84e29
Compare
mjcr99
changed the title
16226 fim realtime support for macos and bsd
FIM realtime support for macos and bsd
Mar 3, 2023
mjcr99
changed the title
FIM realtime support for macos and bsd
FIM realtime support for macOS and bsd
Mar 3, 2023
mjcr99
changed the title
FIM realtime support for macOS and bsd
FIM realtime support for macOS and BSD
Mar 3, 2023
chemamartinez
previously approved these changes
Mar 17, 2023
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.
LGTM
jotacarma90
force-pushed
the
16226-fim-realtime-support-for-macos-and-bsd
branch
from
April 19, 2023 08:01
fc6c1bb
to
0804898
Compare
jotacarma90
force-pushed
the
16226-fim-realtime-support-for-macos-and-bsd
branch
from
May 16, 2023 13:11
0804898
to
aa08d1e
Compare
jotacarma90
force-pushed
the
16226-fim-realtime-support-for-macos-and-bsd
branch
from
June 1, 2023 09:26
aa08d1e
to
2c29c9b
Compare
jotacarma90
force-pushed
the
16226-fim-realtime-support-for-macos-and-bsd
branch
from
July 5, 2023 15:15
2c29c9b
to
dd0b2e4
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
module/fim/realtime
File Integrity Monitoring realtime engine
module/fim
File Integrity Monitoring
platform/bsd
platform/macos
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request aims to integrate the libinotify-kqueue library into the Makefile of the Wazuh project, in order to enable this library functionalities to provide realtime FIM in BSD based systems and Mac OS systems.
The new dependency is covered if the
uname -s
showsDarwin OpenBSD FreeBSD NetBSD
, in the rest of cases, the dependency is not installed since it's just used in these systems.It's still necessary to apply some changes in order to download this dependency from the wazuh's packages warehouse, so to test this PR is mandatory to download and place manually the library in
src/external/
folder. Just decompress the library and copy the folder into the mentioned one.In order to test this new feature completely, a testing
DEPS_VERSION
has been created, to check the needed dependency is properly set to be downloaded and compiled while building the external dependencies. To run tests in this PR it's mandatory to set theDEPS_VERSION = 20-16226
Library dependency
The following file contains the library, previously cleaned from not necessary files, in order to make it lighter.
libinotify-kqueue.zip
Alerts/Logs
Here we have tried a simple test, creating a folder called
realtime
, in a mac OS 12 machine. In this folder a fileprueba
was created, usingtouch
, then modified usingnano
and finally removed withrm
. The configuration of the ossec.conf was changed by adding this line:<directories check_all="yes" realtime="yes">/Users/vagrant/realtime/ </directories>
.The expected alerts are triggered properly as soon as the mentioned changes referring to the file
prueba
take place.File creation
Ossec.log
File modification
File deletion
General Tests