secops - wazuh . hackers quake!
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
#!/bin/bash
|
|
10
Modules/Security/secharden-wazuh.sh
Normal file
10
Modules/Security/secharden-wazuh.sh
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
curl -s https://packages.wazuh.com/key/GPG-KEY-WAZUH | gpg --no-default-keyring --keyring gnupg-ring:/usr/share/keyrings/wazuh.gpg --import && chmod 644 /usr/share/keyrings/wazuh.gpg
|
||||||
|
echo "deb [signed-by=/usr/share/keyrings/wazuh.gpg] https://packages.wazuh.com/4.x/apt/ stable main" | tee -a /etc/apt/sources.list.d/wazuh.list
|
||||||
|
apt-get update
|
||||||
|
WAZUH_MANAGER="tsys-nsm.knel.net" apt-get install wazuh-agent
|
||||||
|
systemctl daemon-reload
|
||||||
|
systemctl enable wazuh-agent
|
||||||
|
systemctl start wazuh-agent
|
||||||
|
echo "wazuh-agent hold" | dpkg --set-selections
|
@@ -353,12 +353,18 @@ systemctl start postfix
|
|||||||
|
|
||||||
/usr/sbin/accton on
|
/usr/sbin/accton on
|
||||||
|
|
||||||
#if [ $PHYSICAL_HOST -gt 0 ]; then
|
|
||||||
|
if [ $PHYSICAL_HOST -gt 0 ]; then
|
||||||
|
cpufreq-set -r -g performance
|
||||||
|
cpupower frequency-set --governor performance
|
||||||
|
|
||||||
|
# Potentially merge the below if needed.
|
||||||
# power-profiles-daemon
|
# power-profiles-daemon
|
||||||
# powerprofilesctl set performance
|
# powerprofilesctl set performance
|
||||||
#tsys1# systemctl enable power-profiles-daemon
|
#tsys1# systemctl enable power-profiles-daemon
|
||||||
#tsys1# systemctl start power-profiles-daemon
|
#tsys1# systemctl start power-profiles-daemon
|
||||||
#fi
|
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$VIRT_GUEST" = 1 ]; then
|
if [ "$VIRT_GUEST" = 1 ]; then
|
||||||
tuned-adm profile virtual-guest
|
tuned-adm profile virtual-guest
|
||||||
@@ -388,6 +394,13 @@ curl --silent ${DL_ROOT}/Modules/Security/secharden-ssh.sh|$(which bash)
|
|||||||
echo Completed running "$FUNCNAME"
|
echo Completed running "$FUNCNAME"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function secharden-wazuh()
|
||||||
|
{
|
||||||
|
echo Now running "$FUNCNAME"
|
||||||
|
curl --silent ${DL_ROOT}/Modules/Security/secharden-wazuh.sh|$(which bash)
|
||||||
|
echo Completed running "$FUNCNAME"
|
||||||
|
}
|
||||||
|
|
||||||
function secharden-auto-upgrades()
|
function secharden-auto-upgrades()
|
||||||
{
|
{
|
||||||
echo Now running "$FUNCNAME"
|
echo Now running "$FUNCNAME"
|
||||||
@@ -409,12 +422,6 @@ echo Now running "$FUNCNAME"
|
|||||||
echo Completed running "$FUNCNAME"
|
echo Completed running "$FUNCNAME"
|
||||||
}
|
}
|
||||||
|
|
||||||
function secharden-ossec()
|
|
||||||
{
|
|
||||||
echo Now running "$FUNCNAME"
|
|
||||||
#curl --silent ${DL_ROOT}/Modules/Security/secharden-audit-agents.sh|$(which bash)
|
|
||||||
echo Completed running "$FUNCNAME"
|
|
||||||
}
|
|
||||||
|
|
||||||
function secharden-scap-stig()
|
function secharden-scap-stig()
|
||||||
{
|
{
|
||||||
@@ -447,9 +454,9 @@ global-systemServiceConfigurationFiles
|
|||||||
global-postPackageConfiguration
|
global-postPackageConfiguration
|
||||||
|
|
||||||
secharden-ssh
|
secharden-ssh
|
||||||
|
secharden-wazuh
|
||||||
#secharden-2fa
|
#secharden-2fa
|
||||||
#secharden-auto-upgrades
|
#secharden-auto-upgrades
|
||||||
#secharden-audit-agents
|
#secharden-audit-agents
|
||||||
#secharden-ossec
|
|
||||||
#secharden-scap-stig
|
#secharden-scap-stig
|
||||||
#auth-cloudron-ldap
|
#auth-cloudron-ldap
|
Reference in New Issue
Block a user