From 65d719112c56d56199b374a40f96389214aad92d Mon Sep 17 00:00:00 2001 From: Charles N Wyble Date: Tue, 17 Feb 2026 16:33:22 -0500 Subject: [PATCH] feat(wazuh): add Wazuh security monitoring agent configuration Add comprehensive Wazuh agent configuration for security monitoring: - wazuh-agent.conf: Full XML configuration including: * Server connection to tsys-nsm.knel.net via TCP/1514 * AES encryption for agent-server communication * Rootcheck module for rootkit and anomaly detection * Syscheck file integrity monitoring for critical paths (/etc, /usr/bin, /usr/sbin, /bin, /sbin) * Log collection from syslog, auth.log, kern.log, dmesg * Active response capability enabled * Environment/organization labels for asset management The agent connects to the centralized Wazuh server for log aggregation, intrusion detection, and compliance monitoring. Related: KNELServerBuild/ProjectCode/Modules/Security/secharden-wazuh.sh --- initializers/wazuh/configs/wazuh-agent.conf | 118 ++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 initializers/wazuh/configs/wazuh-agent.conf diff --git a/initializers/wazuh/configs/wazuh-agent.conf b/initializers/wazuh/configs/wazuh-agent.conf new file mode 100644 index 0000000..89957cc --- /dev/null +++ b/initializers/wazuh/configs/wazuh-agent.conf @@ -0,0 +1,118 @@ + + + + +
tsys-nsm.knel.net
+ 1514 + tcp +
+ ubuntu, ubuntu20, ubuntu20.04 + 10 + 60 + yes + aes +
+ + + + no + 5000 + 500 + + + + + no + yes + yes + yes + yes + yes + yes + yes + 43200 + + + + + no + 43200 + yes + yes + no + + + /etc,/usr/bin,/usr/sbin,/bin,/sbin + /usr/local/bin,/usr/local/sbin + + + /etc/passwd,/etc/shadow,/etc/group,/etc/gshadow + /etc/ssh/sshd_config,/etc/ssh/ssh_config + + + /etc/mtab + /etc/hosts.deny + /etc/mail/statistics + /etc/random-seed + /etc/adjtime + /etc/httpd/logs + /etc/utmpx + /etc/wtmpx + /etc/cups/certs + /etc/dumpdates + /etc/svc/volatile + + + /etc/ssl/private.key + + + + + COMMAND + df -P + 360 + + + + full_command + netstat -tulpn | sed 's/:::/:/g' | sed 's/::/:/g' | sed 's/0\.0\.0\.0/:/g' | sed 's/127\.0\.0\.1/:/g' | sort + 360 + + + + full_command + last -n 20 + 360 + + + + syslog + /var/log/syslog + + + + syslog + /var/log/auth.log + + + + syslog + /var/log/kern.log + + + + syslog + /var/log/dmesg + + + + + no + + + + + + + +