From 8f0772cb946039175b87fc67cd86d0cc1ca39641 Mon Sep 17 00:00:00 2001 From: Kay Agahd Date: Thu, 30 Jan 2025 10:43:21 +0100 Subject: [PATCH] fix(aws): iam_user_with_temporary_credentials resource in OCSF (#6697) Co-authored-by: Pepe Fagoaga --- .../iam_user_with_temporary_credentials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prowler/providers/aws/services/iam/iam_user_with_temporary_credentials/iam_user_with_temporary_credentials.py b/prowler/providers/aws/services/iam/iam_user_with_temporary_credentials/iam_user_with_temporary_credentials.py index 0734ddb062..fc6ceb9c61 100644 --- a/prowler/providers/aws/services/iam/iam_user_with_temporary_credentials/iam_user_with_temporary_credentials.py +++ b/prowler/providers/aws/services/iam/iam_user_with_temporary_credentials/iam_user_with_temporary_credentials.py @@ -15,7 +15,7 @@ class iam_user_with_temporary_credentials(Check): report = Check_Report_AWS( metadata=self.metadata(), - resource=iam_client.user_temporary_credentials_usage, + resource={"name": user_name, "arn": user_arn}, ) report.resource_id = user_name report.resource_arn = user_arn