AIDevOpsAgentActionsPolicy

Last Modified

Aug 19, 2026

August 19, 2026 at 11:02 PM UTC

Version

v2

Total Versions

2

Created

Aug 19, 2026

Actions

17

Risk

Critical

Administrator access, or an unrestricted way to grant itself permissions or take over other identities. Treat it as admin. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed

  • Critical

    Near-administrator access

    Allows every action except account, cognito-identity, iam, identitystore, organizations, ram, rolesanywhere, sso and 1 more on every resource. Whatever it can reach, it can change, read or delete.

    • AIDevOpsElevatedAccess: NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*

    Use with caution: Keep it for administrator or break-glass roles protected by MFA. Never attach it to a workload, a CI pipeline or a vendor role.

  • High

    Can change identities and their permissions

    Grants 13 permissions management actions on IAM, IAM Identity Center or Organizations, on any resource with no condition.

    sso-directory:addmembertogroupsso-directory:createaliassso-directory:creategroupsso-directory:createusersso-directory:deletegroupsso-directory:deleteusersso-directory:disableusersso-directory:enableusersso-directory:removememberfromgroupsso-directory:updategroupsso-directory:updatepasswordsso-directory:updateuserand 1 more

    Use with caution: Grant it only to identity administrators, and protect your admin roles and SCPs with a permissions boundary or an SCP of their own.

  • High

    Can launch resources that run as a more privileged role

    Grants every action of 1 documented escalation path on any resource with no condition.

    • cloudformation-005cloudformation:CreateChangeSet + cloudformation:ExecuteChangeSetunrestricted

    Use with caution: Make sure no highly privileged role trusts the service involved, and restrict iam:PassRole in your own policies or boundary to named roles with iam:PassedToService.

  • High

    Can take over existing resources that run as another role

    Grants every action of 22 documented escalation paths on any resource with no condition.

    • apprunner-002apprunner:UpdateServiceunrestricted
    • batch-002batch:SubmitJobunrestricted
    • bedrock-002bedrock-agentcore:StartCodeInterpreterSession + bedrock-agentcore:InvokeCodeInterpreterunrestricted
    • bedrock-004bedrock-agentcore:InvokeAgentRuntimeCommandunrestricted
    • bedrock-007bedrock-agentcore:StartBrowserSession + bedrock-agentcore:ConnectBrowserAutomationStreamunrestricted
    • cloudformation-002cloudformation:UpdateStackunrestricted
    • codebuild-002codebuild:StartBuildunrestricted
    • codebuild-003codebuild:StartBuildBatchunrestricted
    14 more paths
    • codedeploy-001codedeploy:CreateDeploymentunrestricted
    • ec2-002ec2:ModifyInstanceAttribute + ec2:StopInstances + ec2:StartInstancesunrestricted
    • ec2-005ec2:CreateLaunchTemplateVersion + ec2:ModifyLaunchTemplateunrestricted
    • ec2instanceconnect-003ec2-instance-connect:SendSSHPublicKeyunrestricted
    • ecs-006ecs:ExecuteCommand + ecs:DescribeTasksunrestricted
    • glue-002glue:UpdateDevEndpointunrestricted
    • lambda-003lambda:UpdateFunctionCodeunrestricted
    • lambda-004lambda:UpdateFunctionCode + lambda:InvokeFunctionunrestricted
    • lambda-005lambda:UpdateFunctionCode + lambda:AddPermissionunrestricted
    • sagemaker-004sagemaker:CreatePresignedNotebookInstanceUrlunrestricted
    • sagemaker-005sagemaker:CreateNotebookInstanceLifecycleConfig + sagemaker:StopNotebookInstance + sagemaker:UpdateNotebookInstance + sagemaker:StartNotebookInstanceunrestricted
    • ssm-001ssm:StartSessionunrestricted
    • ssm-002ssm:SendCommandunrestricted
    • stepfunctions-002states:UpdateStateMachine + states:StartExecutionunrestricted

    Use with caution: List the roles attached to the functions, instances, pipelines or notebooks it can modify: the holder effectively has them too.

  • High

    Can switch off security monitoring

    Can stop a CloudTrail trail, delete a CloudTrail trail, redirect or narrow a CloudTrail trail, change which events CloudTrail records, delete GuardDuty, suspend GuardDuty, disable Security Hub, stop AWS Config recording, delete the AWS Config recorder, delete an IAM Access Analyzer, disable Macie, disable Inspector, delete a Detective behavior graph, delete VPC flow logs, delete CloudWatch log groups, which is how an intruder hides.

    cloudtrail:StopLogging (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)cloudtrail:DeleteTrail (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)cloudtrail:UpdateTrail (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)cloudtrail:PutEventSelectors (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)guardduty:DeleteDetector (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)guardduty:UpdateDetector (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)securityhub:DisableSecurityHub (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)config:StopConfigurationRecorder (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)config:DeleteConfigurationRecorder (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)access-analyzer:DeleteAnalyzer (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)macie2:DisableMacie (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)inspector2:Disable (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)detective:DeleteGraph (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)ec2:DeleteFlowLogs (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)logs:DeleteLogGroup (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)

    Use with caution: Deny these actions with an SCP for everyone outside a break-glass role, so no single policy can blind you.

  • High

    Can read secrets

    Reads Secrets Manager secret values; Secrets Manager secret values in bulk; Parameter Store values, SecureString included where the KMS key allows it; data encrypted with any KMS key whose key policy allows it; Lambda environment variables, where credentials often live; Glue connection passwords, on any resource with no condition.

    secretsmanager:GetSecretValue (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)secretsmanager:BatchGetSecretValue (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)ssm:GetParameter (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)ssm:GetParameters (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)ssm:GetParametersByPath (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)kms:Decrypt (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)lambda:GetFunctionConfiguration (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)glue:GetConnection (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)

    Use with caution: Where the holder needs only some secrets, write your own policy scoped to their ARNs or tags, and limit decryption in the KMS key policies.

  • Medium

    Can rewrite resource policies and sharing

    Grants 250 permissions management actions across 77 services (acm-pca, apigateway, apiportal, appsync, arc-region-switch, aws-marketplace, ...) on any resource, enough to share resources outside the account.

    acm-pca:createpermissionacm-pca:deletepermissionacm-pca:deletepolicyacm-pca:putpolicyapigateway:createaccessassociationapigateway:deleteportalproductsharingpolicyapigateway:putportalproductsharingpolicyapigateway:setwebaclapigateway:updatedomainnamemanagementpolicyapigateway:updatedomainnamepolicyapigateway:updaterestapipolicyapiportal:deleteproductsharingpolicyand 238 more

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

  • Medium

    Can read data in every bucket or table

    Reads any object in any S3 bucket; any DynamoDB table; any Aurora database through the Data API. Read-only is not the same as harmless when the data is the asset.

    s3:GetObject (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)dynamodb:Scan (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)dynamodb:GetItem (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)rds-data:ExecuteStatement (via NotAction account:*, cognito-identity:*, iam:*, identitystore:*, organizations:*, ram:*, rolesanywhere:*, sso:*, sts:*)

    Use with caution: Read access to data is still access to data. For people who only need to see configuration, ViewOnlyAccess carries none of these signals.

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "AIDevOpsElevatedAccess",
          "Effect": "Allow",
          "NotAction": [
            "account:*",
            "cognito-identity:*",
            "iam:*",
            "identitystore:*",
            "organizations:*",
            "ram:*",
            "rolesanywhere:*",
            "sso:*",
            "sts:*"
          ],
          "Resource": "*"
        },
        {
          "Sid": "AIDevOpsElevatedCarveBacks",
          "Effect": "Allow",
          "Action": [
            "account:GetAccountInformation",
            "account:GetGovCloudAccountInformation",
            "account:GetPrimaryEmail",
            "account:ListRegions",
            "iam:ListRoles",
            "organizations:DescribeEffectivePolicy",
            "organizations:DescribeOrganization",
            "sts:DecodeAuthorizationMessage"
          ],
          "Resource": "*"
        }
      ]
    },
    "VersionId": "v2",
    "IsDefaultVersion": true,
    "CreateDate": "2026-08-19T22:47:28+00:00"
  }
}

Version History (2 recorded)

Raw history
v2updated

8 actions added, 10 removed

e4040f8
v1new policy

10 actions added

b7c34ba