Conversation
…is killed, all warnings removed, decorators in correct order
…p file if decorated, config PATH xml, Added Templates
- Set default configuration - Add algorithm to strip comments from JSON configuration - Add child process killing function on service stop
Try again in a minute.
Member
Author
Known issues:
Thanks to @chemamartinez, @RaulMartinPineda, and @TJOSERAFAEL for this report. |
Member
Author
Issue update:The module won't add a query pack folder (item 4)False positive. We were using this configuration: <pack name="*">/path/to/packs</pack>The correct configuration is: <pack name="*">/path/to/packs/*</pack>However, commit 54e67bc makes the module check this condition. The module inserts all labels, including hidden ones (item 5)Fixed: a81b8a6 There are some cases in with the module restarts osquery although it has been running less than 10 seconds (item 17)False positive. The agent was not connected, so the launcher thread got blocked until it could send the stdout. When that occurred, more than 10 seconds have passed and the module restarted the daemon. Osquery will accept silently an unexisting configuration file (item 20)Fixed: c375723 |
|
It's not possible to delete the file from osquery.results.log while the osquery daemon is running on windows, so we cannot truncate the log. |
Member
Author
|
Fixed: c9cc89e Thanks @RaulMartinPineda for reporting! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Related issue: #537.
We introduce a new module to run osquery and report scheduled results to the manager.
Main features
Behavior
'), the module will escape them when inserting decorators.Extra features
<location>to filter events by osquery.New settings reference
disabledyesprevents the module from running.no(default) enables the module.run_daemonyes(default) makes the module run osqueryd as subprocess.nolets the module monitor the results log but does not run osquery.bin_pathFull path to the folder that contains the osqueryd executable.
On Linux, if this value is undefined or empty, the module will find osqueryd in the system path.
Default value:
C:\ProgramData\osquery\osqueryd.log_pathPath to the results log written by osquery.
Default value:
/var/log/osquery/osqueryd.results.log.C:\ProgramData\osquery\log\osqueryd.results.log.config_pathPath to the osquery configuration file. This path can be relative to the folder where the Wazuh agent is running.
Default value:
/etc/osquery/osquery.conf.C:\ProgramData\osquery\osquery.conf.Suggested value to define in agent.conf:
add_labelsyeswill add the agent labels defined as decorators.no(default) disables this feature.packAdd a query pack to the configuration. This option can be defined multiple times.
Testing items
<pack name="*">/usr/share/osquery/packs/*</pack>.<add_labels>and<pack>options.<log_path>or unexisting log file. The module should reattempt after one second, two, three, up to one minute delay.echo -n > osquery.results.log). The module should go back to the file begin, no data lost.rm osquery.results.log). The module should finish reading the current file and reload the new one, no data lost.<label key="node">Node for 'nginx'</label>. No SQL code injection.<add_labels>disabled and no<pack>stanzas. The module should log it, wait 10 minutes and retry.