Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions guardrails/iam/SCP-IAM-6.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"Identifier": "SCP-IAM-6",
"Guardrail": "Prevent Creation of New IAM Users or Access Keys",
"Rationale": [
"Restrict creation of any new IAM users access keys to prohibit bypass of SSO and other controls"
],
"Test Scenarios": [
{
"Test-Scenario": "Create new user",
"Steps": [
"Log in to the AWS console with a role that is allowed to call CreateUser and/or CreateAccessKey",
"Create a new user",
"Create an access key for that user"
],
"Expected-Result": "Access Denied"
}
],
"References": [
"https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html"
],
"Policy-Type": "SCP",
"SCP-Type": "Prevent-All-Except",
"IAM Actions": [
"iam:CreateUser",
"iam:CreateAccessKey"
],
"Resource": ["*"],
"Condition": [
{
"ArnNotLike": {
"aws:PrincipalArn": [
"arn:aws:iam::*:role/[IAM_ADMINISTRATOR_ROLE]"
]
}
}
],
"Category": "Strongly recommended"
}