From 899190427cab694e364cd10264ddbcdf50ffcc5a Mon Sep 17 00:00:00 2001 From: Ivan Morgun Date: Thu, 7 Nov 2024 14:30:05 +0300 Subject: [PATCH] Fix tests --- unittests/scans/aws_prowler_v3plus/many_vuln.ocsf.json | 6 +++--- unittests/scans/aws_prowler_v3plus/one_vuln.ocsf.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/unittests/scans/aws_prowler_v3plus/many_vuln.ocsf.json b/unittests/scans/aws_prowler_v3plus/many_vuln.ocsf.json index 298e67210ce..36c0219e396 100644 --- a/unittests/scans/aws_prowler_v3plus/many_vuln.ocsf.json +++ b/unittests/scans/aws_prowler_v3plus/many_vuln.ocsf.json @@ -67,7 +67,7 @@ "provider": "aws", "region": "us-east-1" }, - "event_time": "2024-06-03T14:15:19.382075", + "time_dt": "2024-06-03T14:15:19.382075", "remediation": { "desc": "Apply the principle of least privilege. Instead of AdministratorAccess, assign only the permissions necessary for specific roles and tasks. Create custom IAM policies with minimal permissions based on the principle of least privilege. If a role really needs AdministratorAccess, the trust relationship must be well defined to restrict it usage only to the Principal, Action, Audience and Subject intended for it.", "references": [ @@ -155,7 +155,7 @@ "provider": "aws", "region": "us-east-1" }, - "event_time": "2024-06-03T14:15:19.382075", + "time_dt": "2024-06-03T14:15:19.382075", "remediation": { "desc": "Remove the AWS-managed ReadOnlyAccess policy from all roles that have a trust policy, including third-party cloud accounts, or remove third-party cloud accounts from the trust policy of all roles that need the ReadOnlyAccess policy.", "references": [ @@ -234,7 +234,7 @@ "provider": "aws", "region": "us-east-1" }, - "event_time": "2024-06-03T14:15:19.382075", + "time_dt": "2024-06-03T14:15:19.382075", "remediation": { "desc": "Ensure IAM Roles do not allow assume role from any role of a cross account but only from specific roles of specific accounts.", "references": [ diff --git a/unittests/scans/aws_prowler_v3plus/one_vuln.ocsf.json b/unittests/scans/aws_prowler_v3plus/one_vuln.ocsf.json index aefdfd8ac58..e8e79e2f71f 100644 --- a/unittests/scans/aws_prowler_v3plus/one_vuln.ocsf.json +++ b/unittests/scans/aws_prowler_v3plus/one_vuln.ocsf.json @@ -67,7 +67,7 @@ "provider": "aws", "region": "us-east-1" }, - "event_time": "2024-06-03T14:15:19.382075", + "time_dt": "2024-06-03T14:15:19.382075", "remediation": { "desc": "Apply the principle of least privilege. Instead of AdministratorAccess, assign only the permissions necessary for specific roles and tasks. Create custom IAM policies with minimal permissions based on the principle of least privilege. If a role really needs AdministratorAccess, the trust relationship must be well defined to restrict it usage only to the Principal, Action, Audience and Subject intended for it.", "references": [