From 52e04406dcb59fda6756b376bfb513eab983420d Mon Sep 17 00:00:00 2001 From: Toni de la Fuente Date: Thu, 29 Jul 2021 17:03:04 +0200 Subject: [PATCH] Added servicename to the title for ASFF --- include/outputs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/outputs b/include/outputs index d1dccad2..d9c53d02 100644 --- a/include/outputs +++ b/include/outputs @@ -326,7 +326,7 @@ generateJsonAsffOutput(){ local status=$2 #Checks to determine if the rule passes in a resource name that prowler uses to track the AWS Resource for whitelisting purposes - if [ -z $3 ]; then + if [[ -z $3 ]]; then local resource_id="NONE_PROVIDED" else local resource_id=$3 @@ -337,7 +337,7 @@ generateJsonAsffOutput(){ fi jq -M -c \ --arg ACCOUNT_NUM "$ACCOUNT_NUM" \ - --arg TITLE_TEXT "$TITLE_TEXT" \ + --arg TITLE_TEXT "$CHECK_SERVICENAME.$TITLE_TEXT" \ --arg MESSAGE "$(echo -e "${message}")" \ --arg UNIQUE_ID "$(LC_ALL=C echo -e -n "${message}" | tr -cs '[:alnum:]._~-' '_')" \ --arg STATUS "$status" \