"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/tests_tooling" between
lynis-3.0.1.tar.gz and lynis-3.0.2.tar.gz

About: Lynis is a security and system auditing tool.

tests_tooling  (lynis-3.0.1):tests_tooling  (lynis-3.0.2)
skipping to change at line 40 skipping to change at line 40
IDS_IPS_TOOL_FOUND=0 IDS_IPS_TOOL_FOUND=0
FAIL2BAN_FOUND=0 FAIL2BAN_FOUND=0
FAIL2BAN_EMAIL=0 FAIL2BAN_EMAIL=0
FAIL2BAN_SILENT=0 FAIL2BAN_SILENT=0
PERFORM_FAIL2BAN_TESTS=0 PERFORM_FAIL2BAN_TESTS=0
SNORT_FOUND=0 SNORT_FOUND=0
SNORT_RUNNING=0 SNORT_RUNNING=0
# #
################################################################################ # ################################################################################ #
# #
InsertSection "Software: System tooling" InsertSection "${SECTION_SYSTEM_TOOLING}"
# #
################################################################################ # ################################################################################ #
# #
# Automation # Automation
# #
################################################################################ # ################################################################################ #
# #
# Test : TOOL-5002 # Test : TOOL-5002
# Description : Check if automation tools are found # Description : Check if automation tools are found
Register --test-no TOOL-5002 --weight L --network NO --category security --d escription "Checking for automation tools" Register --test-no TOOL-5002 --weight L --network NO --category security --d escription "Checking for automation tools"
skipping to change at line 376 skipping to change at line 376
LogText "Result: found Snort configuration file: ${SNORT_CON FIG}" LogText "Result: found Snort configuration file: ${SNORT_CON FIG}"
Report "snort_config=${SNORT_CONFIG}" Report "snort_config=${SNORT_CONFIG}"
fi fi
SNORT=$(which snort 2> /dev/null) SNORT=$(which snort 2> /dev/null)
fi fi
fi fi
fi fi
# #
################################################################################ # ################################################################################ #
# #
# Test : TOOL-5130
# Description : Check for Suricata
Register --test-no TOOL-5130 --weight L --network NO --category security --d
escription "Check for active Suricata daemon"
if [ ${SKIPTEST} -eq 0 ]; then
# Suricata presence
if [ -n "${SURICATABINARY}" ]; then
Report "ids_ips_tooling[]=suricata"
LogText "Result: Suricata is installed (${SURICATABINARY})"
# Suricata status
# Suricata sets its process name to Suricata-Main on Linux, but this
might differ on other platforms,
# so fall back to checking the full commandline instead if the first
test fails
if IsRunning "Suricata-Main" || IsRunning --full "${SURICATABINARY}
"; then
# Only satisfy test TOOL-5190 if Suricata is actually running
IDS_IPS_TOOL_FOUND=1
LogText "Result: Suricata daemon is active"
Display --indent 2 --text "- Checking Suricata status" --result
"${STATUS_RUNNING}" --color GREEN
else
LogText "Result: Suricata daemon not active"
Display --indent 2 --text "- Checking Suricata status" --result
"${STATUS_NOT_RUNNING}" --color YELLOW
fi
else
LogText "Result: Suricata not installed (suricata not found)"
fi
fi
#
################################################################################
#
#
# Test : TOOL-5160 # Test : TOOL-5160
# Description : Check for OSSEC # Description : Check for OSSEC
Register --test-no TOOL-5126 --weight L --network NO --category security --d escription "Check for active OSSEC daemon" Register --test-no TOOL-5126 --weight L --network NO --category security --d escription "Check for active OSSEC daemon"
if [ ${SKIPTEST} -eq 0 ]; then if [ ${SKIPTEST} -eq 0 ]; then
# Server side # Server side
if IsRunning "ossec-analysisd"; then if IsRunning "ossec-analysisd"; then
IDS_IPS_TOOL_FOUND=1 IDS_IPS_TOOL_FOUND=1
Report "ids_ips_tooling[]=ossec" Report "ids_ips_tooling[]=ossec"
Report "ids_ips_tooling[]=ossec-analysisd" Report "ids_ips_tooling[]=ossec-analysisd"
LogText "Result: OSSEC analysis daemon is active" LogText "Result: OSSEC analysis daemon is active"
 End of changes. 2 change blocks. 
1 lines changed or deleted 35 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)