To check exposed public KMS key someone need to have below scenario:-
If the "Principal" element value is set to { "AWS": "*" } and the policy statement is not using any Condition clauses to filter the access, the selected AWS KMS master key is publicly accessible.
But prowler is just checking Principle is set to { "AWS": "*" } and then raise a red flag while condition clause is also set like below
"Condition": {
"StringEquals": {
"kms:CallerAccount": ""
},
we should fix it to avoid false positive.
To check exposed public KMS key someone need to have below scenario:-
If the "Principal" element value is set to { "AWS": "*" } and the policy statement is not using any Condition clauses to filter the access, the selected AWS KMS master key is publicly accessible.
But prowler is just checking Principle is set to { "AWS": "*" } and then raise a red flag while condition clause is also set like below
"Condition": {
"StringEquals": {
"kms:CallerAccount": ""
},
we should fix it to avoid false positive.