diff options
author | mboelen <michael@cisofy.com> | 2016-04-19 10:54:18 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2016-04-19 10:54:18 +0300 |
commit | 2c815129e4bbb289c94b367491d82aa5e410d31e (patch) | |
tree | 27761862b2f04ca15cc8999acaf38ea51b460877 /include/tests_ssh | |
parent | 722703da31c2be1b5d965503ce2cf8ede686901a (diff) |
Added details and changed suggestion text
Diffstat (limited to 'include/tests_ssh')
-rw-r--r-- | include/tests_ssh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/tests_ssh b/include/tests_ssh index 73af655b..ea2221db 100644 --- a/include/tests_ssh +++ b/include/tests_ssh @@ -86,6 +86,9 @@ # # Test : SSH-7408 # Description : Check SSH specific defined options + + #ReportDetails --test "${TEST_NO}" --key "-" --field "${tFINDkey}" --value "${tFINDcurvalue}" --preferredvalue "${tFINDexpvalue}" --description "${tFINDdesc}" + if [ ${SSH_DAEMON_RUNNING} -eq 1 -a ! "${SSH_DAEMON_CONFIG}" = "" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no SSH-7408 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check SSH specific defined options" if [ ${SKIPTEST} -eq 0 ]; then @@ -195,13 +198,14 @@ AddHP 3 3 elif [ "${RESULT}" = "MIDSCORED" ]; then LogText "Result: SSH option ${OPTIONNAME} is configured reasonably" - ReportSuggestion ${TEST_NO} "Consider hardening of SSH configuration" "${OPTIONNAME} (${FOUNDVALUE} --> ${EXPECTEDVALUE})" "-" + ReportSuggestion ${TEST_NO} "Consider hardening SSH configuration" "${OPTIONNAME} (${FOUNDVALUE} --> ${EXPECTEDVALUE})" "-" Display --indent 4 --text "- SSH option: ${OPTIONNAME}" --result "MEDIUM" --color YELLOW AddHP 1 3 elif [ "${RESULT}" = "WEAK" ]; then LogText "Result: SSH option ${OPTIONNAME} is in a weak configuration state and should be fixed" #ReportWarning ${TEST_NO} "M" "Unsafe configured SSH option: ${OPTIONNAME}" ReportSuggestion ${TEST_NO} "Consider hardening SSH configuration" "${OPTIONNAME} (${FOUNDVALUE} --> ${EXPECTEDVALUE})" "-" + ReportDetails --test "${TEST_NO}" --key "sshd_config" --field "${OPTIONNAME}" --value "${FOUNDVALUE}" --preferredvalue "${EXPECTEDVALUE}" --description "sshd option ${OPTIONNAME}" Display --indent 4 --text "- SSH option: ${OPTIONNAME}" --result WARNING --color RED AddHP 0 3 elif [ "${RESULT}" = "UNKNOWN" ]; then |