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

Fixes #227 : Add system_audit subsection in rootcheck #228

Merged
merged 5 commits into from
Mar 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions manifests/agent.pp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
$ossec_rootcheck_rootkit_files = $wazuh::params_agent::ossec_rootcheck_rootkit_files,
$ossec_rootcheck_rootkit_trojans = $wazuh::params_agent::ossec_rootcheck_rootkit_trojans,
$ossec_rootcheck_skip_nfs = $wazuh::params_agent::ossec_rootcheck_skip_nfs,
$ossec_rootcheck_system_audit = $wazuh::params_agent::ossec_rootcheck_system_audit,


# rootcheck windows
Expand Down
4 changes: 4 additions & 0 deletions manifests/params_agent.pp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@
$ossec_rootcheck_rootkit_trojans = '/var/ossec/etc/shared/rootkit_trojans.txt'
$ossec_rootcheck_skip_nfs = 'yes'

# Example: ["/var/ossec/etc/shared/system_audit_rcl.txt"]
$ossec_rootcheck_system_audit = []

# SCA

## Amazon
Expand Down Expand Up @@ -401,6 +404,7 @@
$ossec_rootcheck_windows_disabled = 'no'
$ossec_rootcheck_windows_windows_apps = './shared/win_applications_rcl.txt'
$ossec_rootcheck_windows_windows_malware = './shared/win_malware_rcl.txt'
$ossec_rootcheck_system_audit = []

# sca
$sca_windows_enabled = 'yes'
Expand Down
5 changes: 5 additions & 0 deletions templates/fragments/_rootcheck.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
<% if @ossec_rootcheck_rootkit_trojans-%>
<rootkit_trojans><%= @ossec_rootcheck_rootkit_trojans %></rootkit_trojans>
<%- end -%>
<%- if !@ossec_rootcheck_system_audit.empty? -%>
<%- @ossec_rootcheck_system_audit.each do |audit_file| -%>
<system_audit><%= audit_file %></system_audit>
<%- end -%>
<%- end -%>
<% if @ossec_rootcheck_skip_nfs-%>
<skip_nfs><%= @ossec_rootcheck_skip_nfs%></skip_nfs>
<%- end -%>
Expand Down