From 460f65618b049d6de05210149f35c0181f1dc902 Mon Sep 17 00:00:00 2001 From: Marc Jay Date: Mon, 13 Apr 2020 22:43:22 +0100 Subject: [PATCH] Add clarifying text to pass/fail messages --- checks/check_extra741 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checks/check_extra741 b/checks/check_extra741 index 5ec8c077..7545c9aa 100644 --- a/checks/check_extra741 +++ b/checks/check_extra741 @@ -41,11 +41,11 @@ extra741(){ fi FINDINGS=$(secretsDetector file "$EC2_USERDATA_FILE") if [[ $FINDINGS -eq 0 ]]; then - textPass "$regx: No secrets found in $instance" "$regx" + textPass "$regx: No secrets found in $instance User Data" "$regx" # delete file if nothing interesting is there rm -f "$EC2_USERDATA_FILE" else - textFail "$regx: Potential secret found in $instance" "$regx" + textFail "$regx: Potential secret found in $instance User Data" "$regx" # delete file to not leave trace, user must look at the instance User Data rm -f "$EC2_USERDATA_FILE" fi