AmazonGuardDutyServiceRolePolicy

Last Modified

Sep 9, 2026

September 9, 2026 at 10:03 PM UTC

Version

v13

Total Versions

20

Created

Sep 9, 2026

Actions

63

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 1 documented escalation path on any resource with no condition.

    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 read secrets

    Reads Lambda environment variables, where credentials often live, on any resource with no condition.

    lambda:GetFunctionConfiguration

    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.

IAM Access Analyzer (1)

  • Suggestion / EQUIVALENT_TO_NULL_FALSE

    We recommend replacing the key aws:RequestTag/GuardDutyManaged in the condition block of StringLike with {aws:RequestTag/GuardDutyManaged: false} to ensure better enforcement of the condition. AWS docs

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "GuardDutyGetDescribeListPolicy",
          "Effect": "Allow",
          "Action": [
            "ec2:DescribeInstances",
            "ec2:DescribeImages",
            "ec2:DescribeVpcEndpoints",
            "ec2:DescribeSubnets",
            "ec2:DescribeVpcPeeringConnections",
            "ec2:DescribeTransitGatewayAttachments",
            "organizations:ListAccounts",
            "organizations:DescribeAccount",
            "organizations:DescribeOrganization",
            "s3:GetBucketPublicAccessBlock",
            "s3:GetEncryptionConfiguration",
            "s3:GetBucketTagging",
            "s3:GetAccountPublicAccessBlock",
            "s3:ListAllMyBuckets",
            "s3:ListBucket",
            "s3:GetBucketAcl",
            "s3:GetBucketPolicy",
            "s3:GetBucketPolicyStatus",
            "lambda:GetFunctionConfiguration",
            "lambda:ListTags",
            "eks:ListClusters",
            "eks:DescribeCluster",
            "ec2:DescribeVpcEndpointServices",
            "ec2:DescribeVpcs",
            "ec2:DescribeSecurityGroups",
            "ecs:ListClusters",
            "ecs:DescribeClusters",
            "ecs:DescribeTasks",
            "ecs:DescribeTaskDefinition"
          ],
          "Resource": "*"
        },
        {
          "Sid": "GuardDutyCreateSLRPolicy",
          "Effect": "Allow",
          "Action": "iam:CreateServiceLinkedRole",
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "iam:AWSServiceName": "malware-protection.guardduty.amazonaws.com"
            }
          }
        },
        {
          "Sid": "GuardDutyCreateVpcEndpointPolicy",
          "Effect": "Allow",
          "Action": "ec2:CreateVpcEndpoint",
          "Resource": "arn:aws:ec2:*:*:vpc-endpoint/*",
          "Condition": {
            "ForAnyValue:StringEquals": {
              "aws:TagKeys": "GuardDutyManaged"
            },
            "StringLike": {
              "ec2:VpceServiceName": [
                "com.amazonaws.*.guardduty-data",
                "com.amazonaws.*.guardduty-data-fips"
              ]
            }
          }
        },
        {
          "Sid": "GuardDutyModifyDeleteVpcEndpointPolicy",
          "Effect": "Allow",
          "Action": [
            "ec2:ModifyVpcEndpoint",
            "ec2:DeleteVpcEndpoints"
          ],
          "Resource": "arn:aws:ec2:*:*:vpc-endpoint/*",
          "Condition": {
            "Null": {
              "aws:ResourceTag/GuardDutyManaged": false
            }
          }
        },
        {
          "Sid": "GuardDutyCreateModifyVpcEndpointNetworkPolicy",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateVpcEndpoint",
            "ec2:ModifyVpcEndpoint"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:vpc/*",
            "arn:aws:ec2:*:*:security-group/*",
            "arn:aws:ec2:*:*:subnet/*"
          ]
        },
        {
          "Sid": "GuardDutyCreateTagsDuringVpcEndpointCreationPolicy",
          "Effect": "Allow",
          "Action": "ec2:CreateTags",
          "Resource": "arn:aws:ec2:*:*:vpc-endpoint/*",
          "Condition": {
            "StringEquals": {
              "ec2:CreateAction": "CreateVpcEndpoint"
            },
            "ForAnyValue:StringEquals": {
              "aws:TagKeys": "GuardDutyManaged"
            }
          }
        },
        {
          "Sid": "GuardDutySecurityGroupManagementPolicy",
          "Effect": "Allow",
          "Action": [
            "ec2:AuthorizeSecurityGroupIngress",
            "ec2:AuthorizeSecurityGroupEgress",
            "ec2:RevokeSecurityGroupIngress",
            "ec2:RevokeSecurityGroupEgress",
            "ec2:DeleteSecurityGroup"
          ],
          "Resource": "arn:aws:ec2:*:*:security-group/*",
          "Condition": {
            "Null": {
              "aws:ResourceTag/GuardDutyManaged": false
            }
          }
        },
        {
          "Sid": "GuardDutyCreateSecurityGroupPolicy",
          "Effect": "Allow",
          "Action": "ec2:CreateSecurityGroup",
          "Resource": "arn:aws:ec2:*:*:security-group/*",
          "Condition": {
            "StringLike": {
              "aws:RequestTag/GuardDutyManaged": "*"
            }
          }
        },
        {
          "Sid": "GuardDutyCreateSecurityGroupForVpcPolicy",
          "Effect": "Allow",
          "Action": "ec2:CreateSecurityGroup",
          "Resource": "arn:aws:ec2:*:*:vpc/*"
        },
        {
          "Sid": "GuardDutyCreateTagsDuringSecurityGroupCreationPolicy",
          "Effect": "Allow",
          "Action": "ec2:CreateTags",
          "Resource": "arn:aws:ec2:*:*:security-group/*",
          "Condition": {
            "StringEquals": {
              "ec2:CreateAction": "CreateSecurityGroup"
            },
            "ForAnyValue:StringEquals": {
              "aws:TagKeys": "GuardDutyManaged"
            }
          }
        },
        {
          "Sid": "GuardDutyCreateEksAddonPolicy",
          "Effect": "Allow",
          "Action": "eks:CreateAddon",
          "Resource": "arn:aws:eks:*:*:cluster/*",
          "Condition": {
            "ForAnyValue:StringEquals": {
              "aws:TagKeys": "GuardDutyManaged"
            }
          }
        },
        {
          "Sid": "GuardDutyEksAddonManagementPolicy",
          "Effect": "Allow",
          "Action": [
            "eks:DeleteAddon",
            "eks:UpdateAddon",
            "eks:DescribeAddon"
          ],
          "Resource": "arn:aws:eks:*:*:addon/*/aws-guardduty-agent/*"
        },
        {
          "Sid": "GuardDutyEksClusterTagResourcePolicy",
          "Effect": "Allow",
          "Action": "eks:TagResource",
          "Resource": "arn:aws:eks:*:*:cluster/*",
          "Condition": {
            "ForAnyValue:StringEquals": {
              "aws:TagKeys": "GuardDutyManaged"
            }
          }
        },
        {
          "Sid": "GuardDutyEcsPutAccountSettingsDefaultPolicy",
          "Effect": "Allow",
          "Action": "ecs:PutAccountSettingDefault",
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "ecs:account-setting": [
                "guardDutyActivate"
              ]
            }
          }
        },
        {
          "Sid": "SsmCreateDescribeUpdateDeleteStartAssociationPermission",
          "Effect": "Allow",
          "Action": [
            "ssm:DescribeAssociation",
            "ssm:DeleteAssociation",
            "ssm:UpdateAssociation",
            "ssm:CreateAssociation",
            "ssm:StartAssociationsOnce"
          ],
          "Resource": "arn:aws:ssm:*:*:association/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/GuardDutyManaged": "true"
            }
          }
        },
        {
          "Sid": "SsmAddTagsToResourcePermission",
          "Effect": "Allow",
          "Action": [
            "ssm:AddTagsToResource"
          ],
          "Resource": "arn:aws:ssm:*:*:association/*",
          "Condition": {
            "ForAllValues:StringEquals": {
              "aws:TagKeys": [
                "GuardDutyManaged"
              ]
            },
            "StringEquals": {
              "aws:ResourceTag/GuardDutyManaged": "true"
            }
          }
        },
        {
          "Sid": "SsmCreateUpdateAssociationInstanceDocumentPermission",
          "Effect": "Allow",
          "Action": [
            "ssm:CreateAssociation",
            "ssm:UpdateAssociation"
          ],
          "Resource": "arn:aws:ssm:*:*:document/AmazonGuardDuty-ConfigureRuntimeMonitoringSsmPlugin"
        },
        {
          "Sid": "SsmSendCommandPermission",
          "Effect": "Allow",
          "Action": "ssm:SendCommand",
          "Resource": [
            "arn:aws:ec2:*:*:instance/*",
            "arn:aws:ssm:*:*:document/AmazonGuardDuty-ConfigureRuntimeMonitoringSsmPlugin"
          ]
        },
        {
          "Sid": "SsmGetCommandStatus",
          "Effect": "Allow",
          "Action": "ssm:GetCommandInvocation",
          "Resource": "*"
        },
        {
          "Sid": "CloudTrailCreateServiceLinkedChannelSid",
          "Effect": "Allow",
          "Action": [
            "cloudtrail:CreateServiceLinkedChannel"
          ],
          "Resource": "arn:aws:cloudtrail:*:*:channel/aws-service-channel/guardduty/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "GdLatticeCreateManagedSnvaAssociation",
          "Effect": "Allow",
          "Action": "vpc-lattice:CreateServiceNetworkVpcAssociation",
          "Resource": "arn:aws:vpc-lattice:*:*:servicenetworkvpcassociation/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "GdLatticeAssociateViaAwsService",
          "Effect": "Allow",
          "Action": "vpc-lattice:AssociateViaAWSService",
          "Resource": "*"
        }
      ]
    },
    "VersionId": "v13",
    "IsDefaultVersion": true,
    "CreateDate": "2026-09-09T21:27:07+00:00"
  }
}

Version History (23 recorded)

Raw history
v13updated

2 actions added

93bf931
Permissions management: vpc-lattice:AssociateViaAWSService: vpc-lattice:AssociateViaAWSService
v12updated

3 actions added

88fce08
v11updated

1 action added

61e8031

AmazonGuardDutyServiceRolePolicy - Policy Version v10

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

Mar 12, 2026

066fc9c

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.

Aug 12, 2024

0a7f261

Update detected

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

Aug 12, 2024

e745a71

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.

Mar 27, 2024

c6b9c17

Update detected

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

Feb 9, 2024

7defb85

Update detected

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

Nov 26, 2023

25400a5

Update detected

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

Nov 26, 2023

4cfd2da

Update detected

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

Mar 8, 2023

47e79f4

Update detected

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

Feb 21, 2023

db624cc

Update detected

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

Aug 4, 2021

a8869b1

Update detected

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

May 14, 2020

bbf409a

Update detected

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

Apr 20, 2020

75821b4

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