diff options
author | marcus-cr <marcus-cr@users.noreply.github.com> | 2016-10-26 13:36:31 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-10-26 13:36:31 +0300 |
commit | 9208125c0660e426612ddb70dda087cd4142942d (patch) | |
tree | 6cf6fd2c8ddc29afa4ffa5c3676ae2eff86a9e6b /include/tests_hardening | |
parent | 56ce017b4f1a32a991c1dbdba907d43cf378cea3 (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_hardening | 6 |
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 # |