diff --git a/DebianTweaks.sh b/DebianTweaks.sh index e11eb12..50c7d70 100755 --- a/DebianTweaks.sh +++ b/DebianTweaks.sh @@ -123,3 +123,12 @@ cat >> /etc/osquery/osquery.conf << "EOF" EOF systemctl enable osqueryd systemctl start osqueryd + +# Wazuh agent +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 update +WAZUH_MANAGER="siem01.de-roo.org" apt install wazuh-agent +systemctl daemon-reload +systemctl enable wazuh-agent +systemctl start wazuh-agent