diff --git a/include/tests_malware b/include/tests_malware index 40336fa5..3ddc9277 100644 --- a/include/tests_malware +++ b/include/tests_malware @@ -308,6 +308,17 @@ Report "malware_scanner[]=trend-micro-av" fi + # Wazuh agent + LogText "Test: checking process wazuh-agent to test for Wazuh agent" + if IsRunning "wazuh-agent"; then + if IsVerbose; then Display --indent 2 --text "- ${GEN_CHECKING} Wazuh agent" --result "${STATUS_FOUND}" --color GREEN; fi + LogText "Result: found Wazuh component" + FOUND=1 + MALWARE_DAEMON_RUNNING=1 + MALWARE_SCANNER_INSTALLED=1 + Report "malware_scanner[]=wazuh" + fi + if [ ${FOUND} -eq 0 ]; then LogText "Result: no commercial anti-virus tools found" AddHP 0 3