Deprecated
Removed from AWS on 2025-08-14 - Active for 4 years, 4 months
AWSOpsWorksCMServiceRole
Last Modified
Sep 18, 2024
September 18, 2024 at 10:06 AM UTC
Version
v14
Total Versions
13
Created
Apr 23, 2021
Actions
59
Risk
HighAn unrestricted escalation path, identity administration, secret reads or the power to switch off security monitoring. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed
- High
Can take over existing resources that run as another role
Grants every action of 1 documented escalation path on any resource with no condition, and 1 more in a scoped form.
- cloudformation:UpdateStack: on arn:aws:cloudformation:*:*:stack/aws-opsworks-cm-*
Use with caution: List the roles attached to the functions, instances, pipelines or notebooks it can modify: the holder effectively has them too.
- Medium
Can launch resources that run as a more privileged role
Grants the actions of 2 documented escalation paths, but only on named resources or under a condition. Review that scope before trusting it.
- iam:PassRole: on arn:aws:iam::*:role/aws-opsworks-cm-*, arn:aws:iam::*:role/service-role/aws-opsworks-cm-*
- cloudformation:CreateStack: on arn:aws:cloudformation:*:*:stack/aws-opsworks-cm-*
- iam:PassRole: on arn:aws:iam::*:role/aws-opsworks-cm-*, arn:aws:iam::*:role/service-role/aws-opsworks-cm-*
Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.
Policy Document
View on GitHub{
"PolicyVersion": {
"CreateDate": "2021-04-23T17:32:13Z",
"VersionId": "v14",
"Document": {
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"s3:CreateBucket",
"s3:DeleteObject",
"s3:DeleteBucket",
"s3:GetObject",
"s3:ListBucket",
"s3:PutBucketPolicy",
"s3:PutObject",
"s3:GetBucketTagging",
"s3:PutBucketTagging"
],
"Resource": [
"arn:aws:s3:::aws-opsworks-cm-*"
],
"Effect": "Allow"
},
{
"Action": [
"tag:UntagResources",
"tag:TagResources"
],
"Resource": [
"*"
],
"Effect": "Allow"
},
{
"Action": [
"ssm:DescribeInstanceInformation",
"ssm:GetCommandInvocation",
"ssm:ListCommandInvocations",
"ssm:ListCommands"
],
"Resource": [
"*"
],
"Effect": "Allow"
},
{
"Action": [
"ssm:SendCommand"
],
"Resource": [
"*"
],
"Effect": "Allow",
"Condition": {
"StringLike": {
"ssm:resourceTag/aws:cloudformation:stack-name": "aws-opsworks-cm-*"
}
}
},
{
"Action": [
"ssm:SendCommand"
],
"Resource": [
"arn:aws:ssm:*::document/*",
"arn:aws:s3:::aws-opsworks-cm-*"
],
"Effect": "Allow"
},
{
"Action": [
"ec2:AllocateAddress",
"ec2:AssociateAddress",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:CreateImage",
"ec2:CreateSecurityGroup",
"ec2:CreateSnapshot",
"ec2:CreateTags",
"ec2:DeleteSecurityGroup",
"ec2:DeleteSnapshot",
"ec2:DeregisterImage",
"ec2:DescribeAccountAttributes",
"ec2:DescribeAddresses",
"ec2:DescribeImages",
"ec2:DescribeInstanceStatus",
"ec2:DescribeInstances",
"ec2:DescribeSecurityGroups",
"ec2:DescribeSnapshots",
"ec2:DescribeSubnets",
"ec2:DisassociateAddress",
"ec2:ReleaseAddress",
"ec2:RunInstances",
"ec2:StopInstances"
],
"Resource": [
"*"
],
"Effect": "Allow"
},
{
"Action": [
"ec2:TerminateInstances",
"ec2:RebootInstances"
],
"Resource": [
"*"
],
"Effect": "Allow",
"Condition": {
"StringLike": {
"ec2:ResourceTag/aws:cloudformation:stack-name": "aws-opsworks-cm-*"
}
}
},
{
"Action": [
"opsworks-cm:DeleteServer",
"opsworks-cm:StartMaintenance"
],
"Resource": [
"arn:aws:opsworks-cm:*:*:server/*"
],
"Effect": "Allow"
},
{
"Action": [
"cloudformation:CreateStack",
"cloudformation:DeleteStack",
"cloudformation:DescribeStackEvents",
"cloudformation:DescribeStackResources",
"cloudformation:DescribeStacks",
"cloudformation:UpdateStack"
],
"Resource": [
"arn:aws:cloudformation:*:*:stack/aws-opsworks-cm-*"
],
"Effect": "Allow"
},
{
"Action": [
"iam:PassRole"
],
"Resource": [
"arn:aws:iam::*:role/aws-opsworks-cm-*",
"arn:aws:iam::*:role/service-role/aws-opsworks-cm-*"
],
"Effect": "Allow"
},
{
"Action": [
"acm:DeleteCertificate",
"acm:ImportCertificate"
],
"Resource": "*",
"Effect": "Allow"
},
{
"Action": [
"secretsmanager:CreateSecret",
"secretsmanager:GetSecretValue",
"secretsmanager:UpdateSecret",
"secretsmanager:DeleteSecret",
"secretsmanager:TagResource",
"secretsmanager:UntagResource"
],
"Resource": "arn:aws:secretsmanager:*:*:opsworks-cm!aws-opsworks-cm-secrets-*",
"Effect": "Allow"
},
{
"Action": "ec2:DeleteTags",
"Resource": [
"arn:aws:ec2:*:*:instance/*",
"arn:aws:ec2:*:*:elastic-ip/*",
"arn:aws:ec2:*:*:security-group/*"
],
"Effect": "Allow"
}
]
},
"IsDefaultVersion": true
}
}Version History (15 recorded)
Raw historyUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Sep 18, 2024
aafbae9Update detected
No recorded action delta - this version predates the change index. View the raw diff.
May 13, 2024
1b36617Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Apr 23, 2021
d0ff79fUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Jan 6, 2021
f3936ccUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Dec 16, 2019
ee89410Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Nov 7, 2019
63cbe3dUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Oct 22, 2019
d8789c2Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Sep 16, 2019
49aa1d0Update detected
No recorded action delta - this version predates the change index. View the raw diff.
Sep 16, 2019
71619cfUpdate detected
No recorded action delta - this version predates the change index. View the raw diff.
Sep 16, 2019
8279033`2019-08-29`
No recorded action delta - this version predates the change index. View the raw diff.
Aug 29, 2019
5016d52I updated my CLI and it looks like it reordered everything and changed the white-space, so everything looks changed, but is not
No recorded action delta - this version predates the change index. View the raw diff.
Jul 12, 2019
9d2dff1Update
No recorded action delta - this version predates the change index. View the raw diff.
Jun 7, 2019
1f600adUpdate 2019.03.03
No recorded action delta - this version predates the change index. View the raw diff.
Mar 3, 2019
6655c5dFirst commit
No recorded action delta - this version predates the change index. View the raw diff.
Feb 10, 2019
ad4c2e8