Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Changes to make ossec.conf equivalent to the default version #74

Merged
merged 11 commits into from
Jan 7, 2020
6 changes: 6 additions & 0 deletions cookbooks/wazuh_agent/attributes/localfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@
'location' => '/var/log/secure'
}
},
{
'content!' => {
'log_format' => 'syslog',
'location' => '/var/log/maillog'
}
},
]
else
raise "Currently platforn not supported yet. Feel free to open an issue on https://github.com/wazuh/wazuh-chef if you consider that support for a specific OS should be added"
Expand Down
1 change: 1 addition & 0 deletions cookbooks/wazuh_agent/attributes/logging.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
default['ossec']['conf']['logging']['log_format'] = 'plain'
3 changes: 1 addition & 2 deletions cookbooks/wazuh_agent/attributes/sca.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
default['ossec']['conf']['sca']['enabled'] = true
default['ossec']['conf']['sca']['scan_on_start'] = true
default['ossec']['conf']['sca']['interval'] = "12h"
default['ossec']['conf']['sca']['skip_nfs'] = true
default['ossec']['conf']['sca']['policies']['policy'] = [ 'cis_debian_linux_rcl.yml', 'system_audit_rcl.yml', 'system_audit_ssh.yml', 'system_audit_pw.yml']
default['ossec']['conf']['sca']['skip_nfs'] = true
2 changes: 1 addition & 1 deletion cookbooks/wazuh_agent/attributes/version.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
default['wazuh-agent']['version'] = "3.11.0"
default['wazuh-agent']['version'] = "3.11.0"
6 changes: 0 additions & 6 deletions cookbooks/wazuh_agent/attributes/wodle.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
default['ossec']['conf']['wodle'] = [
{ '@name' => 'open-scap',
'disabled' => 'yes',
'timeout' => '1800',
'interval' => '1d',
'scan-on-start' => 'yes'
},
{ '@name' => 'cis-cat',
'disabled' => 'yes',
'timeout' => '1800',
Expand Down
3 changes: 1 addition & 2 deletions cookbooks/wazuh_manager/attributes/sca.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
default['ossec']['conf']['sca']['enabled'] = true
default['ossec']['conf']['sca']['scan_on_start'] = true
default['ossec']['conf']['sca']['interval'] = "12h"
default['ossec']['conf']['sca']['skip_nfs'] = true
default['ossec']['conf']['sca']['policies']['policy'] = [ 'cis_debian_linux_rcl.yml', 'system_audit_rcl.yml', 'system_audit_ssh.yml', 'system_audit_pw.yml']
default['ossec']['conf']['sca']['skip_nfs'] = true
26 changes: 26 additions & 0 deletions cookbooks/wazuh_manager/attributes/vulnerability-detector.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
default['ossec']['conf']['vulnerability-detector']['enabled'] = 'no'
default['ossec']['conf']['vulnerability-detector']['interval'] = '5m'
default['ossec']['conf']['vulnerability-detector']['ignore_time'] = '6h'
default['ossec']['conf']['vulnerability-detector']['run_on_start'] = 'yes'
default['ossec']['conf']['vulnerability-detector']['provider'] = [
{ '@name' => 'canonical',
'enabled' => 'no',
'os' => ['precise', 'trusty', 'xenial', 'bionic'],
'update_interval' => '1h'
},
{ '@name' => 'debian',
'enabled' => 'no',
'os' => ['wheezy', 'stretch', 'jessie', 'buster'],
'update_interval' => '1h'
},
{ '@name' => 'redhat',
'enabled' => 'no',
'update_from_year' => '2010',
'update_interval' => '1h'
},
{ '@name' => 'nvd',
'enabled' => 'no',
'update_from_year' => '2010',
'update_interval' => '1h'
}
]
23 changes: 1 addition & 22 deletions cookbooks/wazuh_manager/attributes/wodle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,5 @@
'packages' => 'yes',
'ports' => { '@all' => 'no', 'content!' => 'yes'},
'processes' => 'yes'
},
{ '@name' => 'vulnerability-detector',
'disabled' => 'yes',
'interval' => '5m',
'ignore_time' => '6h',
'run_on_start' => 'yes',
'feed' => [
{ '@name' => "ubuntu-18",
'disabled' => "yes",
'update_interval' => '1h'
},
{ '@name' => "redhat",
'disabled' => "yes",
'update_from_year' => '2010',
'update_interval' => '1h'
},
{ '@name' => "debian-9",
'disabled' => "yes",
'update_interval' => '1h'
}
]
}
}
]