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:
authormarcus-cr <marcus-cr@users.noreply.github.com>2016-10-26 13:36:31 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-10-26 13:36:31 +0300
commit9208125c0660e426612ddb70dda087cd4142942d (patch)
tree6cf6fd2c8ddc29afa4ffa5c3676ae2eff86a9e6b /include/tests_hardening
parent56ce017b4f1a32a991c1dbdba907d43cf378cea3 (diff)
Malware Scanner Colors for Personal Machine Role (#301)
Results for malware scanner will show different color for “personal” machine-roles (in yellow) rather than the other roles (in red). Added for leniency towards typical personal PC users for not having malware scanner (should be a suggestion). Also included log text result if no scanner found, regardless of machine-role.
Diffstat (limited to 'include/tests_hardening')
-rw-r--r--include/tests_hardening6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/tests_hardening b/include/tests_hardening
index 93c01ff5..4ed6f8e5 100644
--- a/include/tests_hardening
+++ b/include/tests_hardening
@@ -105,9 +105,15 @@
AddHP 3 3
else
LogText "Result: no malware scanner found"
+ if [$MACHINE_ROLE = "personal"]; then
+ Display --indent 4 --text "- Installed malware scanner" --result "${STATUS_NOT_FOUND}" --color YELLOW
+ else
+ Display --indent 4 --text "- Installed malware scanner" --result "${STATUS_NOT_FOUND}" --color RED
+ fi
Display --indent 4 --text "- Installed malware scanner" --result "${STATUS_NOT_FOUND}" --color RED
ReportSuggestion ${TEST_NO} "Harden the system by installing at least one malware scanner, to perform periodic file system scans" "-" "Install a tool like rkhunter, chkrootkit, OSSEC"
AddHP 1 3
+ LogText "Result: no malware scanner found"
fi
fi
#