AWSCompromisedKeyQuarantine
Summary
Denies access to certain actions, applied by the AWS team in the event that an IAM user's credentials have been compromised or exposed publicly. Do NOT remove this policy. Instead, please follow the instructions specified in the email sent to you regarding this event.
Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.
Identity
- ARN
arn:aws:iam::aws:policy/AWSCompromisedKeyQuarantine- Default version
- v1
- Created
- Last edited
- Services
- None
Control-plane actions (0)
By access level: none.
This policy grants no actions in this plane.
Data-plane actions (0)
By access level: none.
This policy grants no actions in this plane.
Excluded and conditional actions
ec2:RequestSpotInstances(deny, statement 0): 1 matching actionsec2:RunInstances(deny, statement 0): 1 matching actionsec2:StartInstances(deny, statement 0): 1 matching actionsiam:AttachGroupPolicy(deny, statement 0): 1 matching actionsiam:AttachRolePolicy(deny, statement 0): 1 matching actionsiam:AttachUserPolicy(deny, statement 0): 1 matching actionsiam:ChangePassword(deny, statement 0): 1 matching actionsiam:CreateAccessKey(deny, statement 0): 1 matching actionsiam:CreateInstanceProfile(deny, statement 0): 1 matching actionsiam:CreateLoginProfile(deny, statement 0): 1 matching actionsiam:CreateRole(deny, statement 0): 1 matching actionsiam:CreateUser(deny, statement 0): 1 matching actionsiam:DetachUserPolicy(deny, statement 0): 1 matching actionsiam:PutUserPermissionsBoundary(deny, statement 0): 1 matching actionsiam:PutUserPolicy(deny, statement 0): 1 matching actionsiam:UpdateAccessKey(deny, statement 0): 1 matching actionsiam:UpdateAccountPasswordPolicy(deny, statement 0): 1 matching actionsiam:UpdateUser(deny, statement 0): 1 matching actionslambda:CreateFunction(deny, statement 0): 1 matching actionslightsail:Create*(deny, statement 0): 24 matching actionslightsail:Delete*(deny, statement 0): 21 matching actionslightsail:DownloadDefaultKeyPair(deny, statement 0): 1 matching actionslightsail:GetInstanceAccessDetails(deny, statement 0): 1 matching actionslightsail:Start*(deny, statement 0): 3 matching actionslightsail:Update*(deny, statement 0): 10 matching actionsorganizations:CreateAccount(deny, statement 0): 1 matching actionsorganizations:CreateOrganization(deny, statement 0): 1 matching actionsorganizations:InviteAccountToOrganization(deny, statement 0): 1 matching actions
Resource scope and attachment
Resource scope across granted actions: none.
Can be attached: Yes, to users, groups and roles.
Why this tier
- Grants no permissions: the effective allow set is empty.
Guidance
Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.
Related policies
Same domain
Frequently asked questions
Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.
Policy JSON
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Deny",
"Action": [
"iam:AttachGroupPolicy",
"iam:AttachRolePolicy",
"iam:AttachUserPolicy",
"iam:ChangePassword",
"iam:CreateAccessKey",
"iam:CreateInstanceProfile",
"iam:CreateLoginProfile",
"iam:CreateRole",
"iam:CreateUser",
"iam:DetachUserPolicy",
"iam:PutUserPermissionsBoundary",
"iam:PutUserPolicy",
"iam:UpdateAccessKey",
"iam:UpdateAccountPasswordPolicy",
"iam:UpdateUser",
"ec2:RequestSpotInstances",
"ec2:RunInstances",
"ec2:StartInstances",
"organizations:CreateAccount",
"organizations:CreateOrganization",
"organizations:InviteAccountToOrganization",
"lambda:CreateFunction",
"lightsail:Create*",
"lightsail:Start*",
"lightsail:Delete*",
"lightsail:Update*",
"lightsail:GetInstanceAccessDetails",
"lightsail:DownloadDefaultKeyPair"
],
"Resource": [
"*"
]
}
]
}
Version history
Current version v1, edited by AWS on 2020-08-11. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.
Attach snippets
AWS CLI
aws iam attach-role-policy --role-name ROLE_NAME --policy-arn arn:aws:iam::aws:policy/AWSCompromisedKeyQuarantine
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AWSCompromisedKeyQuarantine
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AWSCompromisedKeyQuarantineCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AWSCompromisedKeyQuarantineTerraform
resource "aws_iam_role_policy_attachment" "awscompromisedkeyquarantine" {
role = aws_iam_role.example.name
policy_arn = "arn:aws:iam::aws:policy/AWSCompromisedKeyQuarantine"
}CDK (TypeScript)
role.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName("AWSCompromisedKeyQuarantine"),
);Sources
Pending editorial review. No editorial sources are listed yet.