AWSCodeBuildAdminAccess

Last Modified

Mar 12, 2026

March 12, 2026 at 09:25 PM UTC

Version

v20

Total Versions

14

Created

Feb 12, 2026

Actions

59

Risk

High

An 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 2 documented escalation paths on any resource with no condition, and 1 more in a scoped form.

    • codebuild-002codebuild:StartBuildunrestricted
    • codebuild-003codebuild:StartBuildBatchunrestricted
    • ssm-001ssm:StartSessionscoped
      • ssm:StartSession: on arn:aws:ecs:*:*:task/*/*

    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 rewrite resource policies and sharing

    Grants 2 permissions management actions across 1 service (codebuild) on any resource, enough to share resources outside the account.

    codebuild:deleteresourcepolicycodebuild:putresourcepolicy

    Use with caution: Turn on IAM Access Analyzer external access findings, and keep account-level guards like S3 Block Public Access enabled.

  • Medium

    Full codebuild access on every resource

    Uses codebuild:* with Resource "*" and no condition, so every action AWS adds to that service later is granted too.

    codebuild:*

    Use with caution: The grant grows every time the service does. For long-lived access, prefer a policy that lists the actions you actually need.

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "AWSServicesAccess",
          "Action": [
            "codebuild:*",
            "codecommit:GetBranch",
            "codecommit:GetCommit",
            "codecommit:GetRepository",
            "codecommit:ListBranches",
            "codecommit:ListRepositories",
            "cloudwatch:GetMetricStatistics",
            "ec2:DescribeVpcs",
            "ec2:DescribeSecurityGroups",
            "ec2:DescribeSubnets",
            "ecr:DescribeRepositories",
            "ecr:ListImages",
            "elasticfilesystem:DescribeFileSystems",
            "events:DeleteRule",
            "events:DescribeRule",
            "events:DisableRule",
            "events:EnableRule",
            "events:ListTargetsByRule",
            "events:ListRuleNamesByTarget",
            "events:PutRule",
            "events:PutTargets",
            "events:RemoveTargets",
            "logs:GetLogEvents",
            "s3:GetBucketLocation",
            "s3:ListAllMyBuckets"
          ],
          "Effect": "Allow",
          "Resource": "*"
        },
        {
          "Sid": "CWLDeleteLogGroupAccess",
          "Action": [
            "logs:DeleteLogGroup"
          ],
          "Effect": "Allow",
          "Resource": "arn:aws:logs:*:*:log-group:/aws/codebuild/*:log-stream:*"
        },
        {
          "Sid": "SSMParameterWriteAccess",
          "Effect": "Allow",
          "Action": [
            "ssm:PutParameter"
          ],
          "Resource": "arn:aws:ssm:*:*:parameter/CodeBuild/*"
        },
        {
          "Sid": "SSMStartSessionAccess",
          "Effect": "Allow",
          "Action": [
            "ssm:StartSession"
          ],
          "Resource": "arn:aws:ecs:*:*:task/*/*"
        },
        {
          "Sid": "SSMOpenDataChannelAccess",
          "Effect": "Allow",
          "Action": [
            "ssmmessages:OpenDataChannel"
          ],
          "Resource": "arn:aws:ssm:*:*:session/*"
        },
        {
          "Sid": "CodeStarConnectionsReadWriteAccess",
          "Effect": "Allow",
          "Action": [
            "codestar-connections:CreateConnection",
            "codestar-connections:DeleteConnection",
            "codestar-connections:UpdateConnectionInstallation",
            "codestar-connections:TagResource",
            "codestar-connections:UntagResource",
            "codestar-connections:ListConnections",
            "codestar-connections:ListInstallationTargets",
            "codestar-connections:ListTagsForResource",
            "codestar-connections:GetConnection",
            "codestar-connections:GetIndividualAccessToken",
            "codestar-connections:GetInstallationUrl",
            "codestar-connections:PassConnection",
            "codestar-connections:StartOAuthHandshake",
            "codestar-connections:UseConnection"
          ],
          "Resource": [
            "arn:aws:codestar-connections:*:*:connection/*",
            "arn:aws:codeconnections:*:*:connection/*"
          ]
        },
        {
          "Sid": "CodeStarNotificationsReadWriteAccess",
          "Effect": "Allow",
          "Action": [
            "codestar-notifications:CreateNotificationRule",
            "codestar-notifications:DescribeNotificationRule",
            "codestar-notifications:UpdateNotificationRule",
            "codestar-notifications:DeleteNotificationRule",
            "codestar-notifications:Subscribe",
            "codestar-notifications:Unsubscribe"
          ],
          "Resource": "*",
          "Condition": {
            "ArnLike": {
              "codestar-notifications:NotificationsForResource": "arn:aws:codebuild:*:*:project/*"
            }
          }
        },
        {
          "Sid": "CodeStarNotificationsListAccess",
          "Effect": "Allow",
          "Action": [
            "codestar-notifications:ListNotificationRules",
            "codestar-notifications:ListEventTypes",
            "codestar-notifications:ListTargets",
            "codestar-notifications:ListTagsforResource"
          ],
          "Resource": "*"
        },
        {
          "Sid": "CodeStarNotificationsSNSTopicCreateAccess",
          "Effect": "Allow",
          "Action": [
            "sns:CreateTopic",
            "sns:SetTopicAttributes"
          ],
          "Resource": "arn:aws:sns:*:*:codestar-notifications*"
        },
        {
          "Sid": "SNSTopicListAccess",
          "Effect": "Allow",
          "Action": [
            "sns:ListTopics",
            "sns:GetTopicAttributes"
          ],
          "Resource": "*"
        },
        {
          "Sid": "CodeStarNotificationsChatbotAccess",
          "Effect": "Allow",
          "Action": [
            "chatbot:DescribeSlackChannelConfigurations",
            "chatbot:ListMicrosoftTeamsChannelConfigurations"
          ],
          "Resource": "*"
        }
      ]
    },
    "VersionId": "v20",
    "IsDefaultVersion": true,
    "CreateDate": "2026-02-12T18:01:51+00:00"
  }
}

Version History (19 recorded)

Raw history

AWSCodeBuildAdminAccess - Policy Version v20

No recorded action delta - this version predates the change index. View the raw diff.

Mar 12, 2026

8642a02

AWSCodeBuildAdminAccess - Policy Version v20

No recorded action delta - this version predates the change index. View the raw diff.

Feb 12, 2026

3eef894

AWSCodeBuildAdminAccess - Policy Version v18

No recorded action delta - this version predates the change index. View the raw diff.

Feb 12, 2026

89dc9a5

AWSCodeBuildAdminAccess - Policy Version v16

No recorded action delta - this version predates the change index. View the raw diff.

Jan 16, 2026

3d76a13

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Dec 16, 2024

59a7107

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 18, 2024

aafbae9

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

May 13, 2024

1b36617

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Aug 1, 2023

e7aab7f

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 14, 2020

de60d5e

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Jul 21, 2020

d1cac53

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Apr 3, 2020

bcb7d7c

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Feb 6, 2020

db22ea4

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Nov 6, 2019

c9d7316

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 16, 2019

49aa1d0

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 16, 2019

71619cf

Update 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

5016d52

I 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

9d2dff1

First commit

No recorded action delta - this version predates the change index. View the raw diff.

Feb 10, 2019

ad4c2e8