[TOOL-5160] OSSEC detection test

This commit is contained in:
Michael Boelen 2018-10-23 12:58:22 +02:00
parent c94b97bd9e
commit de7d64a8a0
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 17 additions and 0 deletions

View File

@ -362,6 +362,23 @@
fi
#
#################################################################################
#
# Test : TOOL-5160
# Description : Check for OSSEC
Register --test-no TOOL-5126 --weight L --network NO --category security --description "Check for presence of Snort"
if [ ${SKIPTEST} -eq 0 ]; then
if IsRunning "ossec-analysisd"; then
IDS_IPS_TOOL_FOUND=1
LogText "Result: OSSEC analysis daemon is active"
Report "ids_ips_tooling[]=ossec"
Display --indent 2 --text "- Checking presence of OSSEC" --result "${STATUS_FOUND}" --color GREEN
else
LogText "Result: OSSEC analysis daemon not active"
fi
fi
#
#################################################################################
#
# Test : TOOL-5190
# Description : Check for an IDS/IPS tool