feat(aws): add fixers for threat detection checks (#7085)

This commit is contained in:
Sergio Garcia authored and GitHub committed 2025-03-03 14:20:23 +01:00
1 parent bbeef0299f
commit 48c2c8567c
11 files changed
+232 -6

No files matched your search

@@ -176,7 +176,7 @@ class Test_cloudtrail_threat_detection_enumeration:
assert result[0].status == "FAIL"
assert (
result[0].status_extended
== "Potential enumeration attack detected from AWS IAMUser Attacker with an threshold of 1.0."
== "Potential enumeration attack detected from AWS IAMUser Attacker with a threshold of 1.0."
)
assert result[0].resource_id == "Attacker"
assert result[0].region == AWS_REGION_US_EAST_1
@@ -173,7 +173,7 @@ class Test_cloudtrail_threat_detection_llm_jacking:
assert result[0].status == "FAIL"
assert (
result[0].status_extended
== "Potential LLM Jacking attack detected from AWS IAMUser Attacker with an threshold of 1.0."
== "Potential LLM Jacking attack detected from AWS IAMUser Attacker with a threshold of 1.0."
)
assert result[0].resource_id == "Attacker"
assert result[0].region == AWS_REGION_US_EAST_1
@@ -175,7 +175,7 @@ class Test_cloudtrail_threat_detection_privilege_escalation:
assert result[0].status == "FAIL"
assert (
result[0].status_extended
== "Potential privilege escalation attack detected from AWS IAMUser Attacker with an threshold of 1.0."
== "Potential privilege escalation attack detected from AWS IAMUser Attacker with a threshold of 1.0."
)
assert result[0].resource_id == "Attacker"
assert result[0].region == AWS_REGION_US_EAST_1