From 76d41934e8a88998f67108df079a7dfd4a9459cf Mon Sep 17 00:00:00 2001 From: Cody Wood Date: Wed, 9 Jun 2021 21:17:56 -0600 Subject: [PATCH] https://github.com/aws-samples/aws-iam-permissions-guardrails/issues/44 --- guardrails/iam/SCP-IAM-7.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 guardrails/iam/SCP-IAM-7.json diff --git a/guardrails/iam/SCP-IAM-7.json b/guardrails/iam/SCP-IAM-7.json new file mode 100644 index 0000000..60213d5 --- /dev/null +++ b/guardrails/iam/SCP-IAM-7.json @@ -0,0 +1,26 @@ +{ + "Identifier": "SCP-IAM-7", + "Guardrail": "Prevent Users from Deleting AWS Access Analyzer in an Account", + "Rationale": [ + "Access Analyzer is often used to detect anomalous user behavior, a user deleting this may be trying to conceal their activities." + ], + "Test Scenarios": [ + { + "Test-Scenario": "Create new user", + "Steps": [ + "Log in to the AWS console with a role that is allowed to delete access analyzer", + "Delete access analyzer" + ], + "Expected-Result": "Access Denied" + } + ], + "References": [ + "https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html" + ], + "Policy-Type": "SCP", + "SCP-Type": "Prevent-All", + "IAM Actions": [ + "access-analyzer:DeleteAnalyzer" + ], + "Resource": ["*"] +} \ No newline at end of file