From 9208125c0660e426612ddb70dda087cd4142942d Mon Sep 17 00:00:00 2001 From: marcus-cr Date: Wed, 26 Oct 2016 06:36:31 -0400 Subject: [PATCH] Malware Scanner Colors for Personal Machine Role (#301) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- include/tests_hardening | 6 ++++++ 1 file changed, 6 insertions(+) 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 #