Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2014-09-15 14:01:09 +0400
committermboelen <michael@cisofy.com>2014-09-15 14:01:09 +0400
commitc9fde8c2d11744cc0875bc3e5dd0abf096211755 (patch)
tree0997d08919db7ec4e2aa9065c3e9aaf1671c4d6f /include/tests_malware
parent35d32fb5e40b86632677fd2256aebeddf926394a (diff)
Code cleanup and small enhancements
Diffstat (limited to 'include/tests_malware')
-rw-r--r--include/tests_malware30
1 files changed, 18 insertions, 12 deletions
diff --git a/include/tests_malware b/include/tests_malware
index d613829c..9a4e0944 100644
--- a/include/tests_malware
+++ b/include/tests_malware
@@ -33,12 +33,12 @@
if [ ${SKIPTEST} -eq 0 ]; then
logtext "Test: checking presence chkrootkit"
if [ ! "${CHKROOTKITBINARY}" = "" ]; then
- Display --indent 2 --text "- Checking chkrootkit..." --result "FOUND" --color GREEN
+ Display --indent 2 --text "- Checking chkrootkit" --result "FOUND" --color GREEN
logtext "Result: Found ${CHKROOTKITBINARY}"
MALWARE_SCANNER_INSTALLED=1
AddHP 2 2
else
- Display --indent 2 --text "- Checking chkrootkit..." --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- Checking chkrootkit" --result "NOT FOUND" --color WHITE
logtext "Result: chkrootkit not found"
fi
fi
@@ -51,12 +51,12 @@
if [ ${SKIPTEST} -eq 0 ]; then
logtext "Test: checking presence Rootkit Hunter"
if [ ! "${RKHUNTERBINARY}" = "" ]; then
- Display --indent 2 --text "- Checking Rootkit Hunter..." --result "FOUND" --color GREEN
+ Display --indent 2 --text "- Checking Rootkit Hunter" --result "FOUND" --color GREEN
logtext "Result: Found ${RKHUNTERBINARY}"
MALWARE_SCANNER_INSTALLED=1
AddHP 2 2
else
- Display --indent 2 --text "- Checking Rootkit Hunter..." --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- Checking Rootkit Hunter" --result "NOT FOUND" --color WHITE
logtext "Result: Rootkit Hunter not found"
fi
fi
@@ -101,12 +101,12 @@
if [ ${SKIPTEST} -eq 0 ]; then
logtext "Test: checking presence clamscan"
if [ ! "${CLAMSCANBINARY}" = "" ]; then
- Display --indent 2 --text "- Checking ClamAV scanner..." --result "FOUND" --color GREEN
+ Display --indent 2 --text "- Checking ClamAV scanner" --result "FOUND" --color GREEN
logtext "Result: Found ${CLAMSCANBINARY}"
MALWARE_SCANNER_INSTALLED=1
AddHP 2 2
else
- Display --indent 2 --text "- Checking ClamAV scanner..." --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- Checking ClamAV scanner" --result "NOT FOUND" --color WHITE
logtext "Result: clamscan couldn't be found"
fi
fi
@@ -121,12 +121,12 @@
logtext "Test: checking running ClamAV daemon (clamd)"
FIND=`${PSBINARY} ax | grep "/clamd" | grep -v "grep"`
if [ ! "${FIND}" = "" ]; then
- Display --indent 2 --text "- Checking ClamAV daemon..." --result "FOUND" --color GREEN
+ Display --indent 2 --text "- Checking ClamAV daemon" --result "FOUND" --color GREEN
logtext "Result: found running clamd process"
MALWARE_SCANNER_INSTALLED=1
CLAMD_RUNNING=1
else
- Display --indent 2 --text "- Checking ClamAV daemon..." --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- Checking ClamAV daemon" --result "NOT FOUND" --color WHITE
logtext "Result: clamd not running"
fi
fi
@@ -141,11 +141,11 @@
logtext "Test: checking running freshclam daemon"
FIND=`${PSBINARY} ax | grep "/freshclam" | grep -v "grep"`
if [ ! "${FIND}" = "" ]; then
- Display --indent 4 --text "- Checking freshclam..." --result "FOUND" --color GREEN
+ Display --indent 4 --text "- Checking freshclam" --result "FOUND" --color GREEN
logtext "Result: found running freshclam process"
AddHP 2 2
else
- Display --indent 4 --text "- Checking freshclam..." --result "SUGGESTION" --color YELLOW
+ Display --indent 4 --text "- Checking freshclam" --result "SUGGESTION" --color YELLOW
logtext "Result: freshclam is not running"
ReportSuggestion ${TEST_NO} "Confirm that freshclam is properly configured and keeps updating the ClamAV database"
fi
@@ -153,17 +153,23 @@
#
#################################################################################
#
+ # Test : MALW-3288
+ # Description : Check for LMD
+#
+#################################################################################
+#
+
# Test : MALW-3292
# Description : Check if at least one malware scanner is installed
# Register --test-no MALW-3292 --weight L --network NO --description "Check for at least one malware scanner"
# if [ ${SKIPTEST} -eq 0 ]; then
# if [ ${MALWARE_SCANNER_INSTALLED} -eq 1 ]; then
# logtext "Result: At least one malware scanner is installed"
-# Display --indent 2 --text "- Checking presence malware scanner..." --result "FOUND" --color GREEN
+# Display --indent 2 --text "- Checking presence malware scanner" --result "FOUND" --color GREEN
# #AddHP 3 3
# else
# logtext "Result: No malware scanners found"
-# Display --indent 2 --text "- Checking presence malware scanner..." --result "NOT FOUND" --color YELLOW
+# Display --indent 2 --text "- Checking presence malware scanner" --result "NOT FOUND" --color YELLOW
# ReportSuggestion ${TEST_NO} "Install at least one malware scanner to perform periodic integrity tests on the system"
# #AddHP 0 3
# fi