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>2015-09-24 17:45:03 +0300
committermboelen <michael@cisofy.com>2015-09-24 17:45:03 +0300
commit4f5eedabfcc6eb015ef0c184e6ec829cc0cf7867 (patch)
tree98d5115ab778908c515d2b080850b88ef6e9e679 /include/tests_malware
parentcecde99f12578e12409ed5f5831c58836294e3da (diff)
Added the detection of LMD, or Linux Malware Detect tooling
Diffstat (limited to 'include/tests_malware')
-rw-r--r--include/tests_malware22
1 files changed, 17 insertions, 5 deletions
diff --git a/include/tests_malware b/include/tests_malware
index 75517156..5903826b 100644
--- a/include/tests_malware
+++ b/include/tests_malware
@@ -63,6 +63,23 @@
#
#################################################################################
#
+ # Test : MALW-3278
+ # Description : Check for installed tool (Linux Malware Detect or LMD)
+ Register --test-no MALW-3278 --weight L --network NO --description "Check for LMD"
+ if [ ${SKIPTEST} -eq 0 ]; then
+ logtext "Test: checking presence LMD"
+ if [ ! "${LMDBINARY}" = "" ]; then
+ Display --indent 2 --text "- Checking LMD (Linux Malware Detect)" --result "FOUND" --color GREEN
+ logtext "Result: Found ${LMDBINARY}"
+ MALWARE_SCANNER_INSTALLED=1
+ AddHP 2 2
+ else
+ logtext "Result: LMD not found"
+ fi
+ fi
+#
+#################################################################################
+#
# Test : MALW-3280
# Description : Check if an anti-virus tool is installed
Register --test-no MALW-3280 --weight L --network NO --description "Check if anti-virus tool is installed"
@@ -185,11 +202,6 @@
#
#################################################################################
#
- # Test : MALW-3204
- # Description : Check for LMD
-#
-#################################################################################
-#
report "malware_scanner_installed=${MALWARE_SCANNER_INSTALLED}"