AWS Security ChangesHomeSearch

AWS artifact medium security documentation change

Service: artifact · 2025-10-16 · Security-related medium

File: artifact/latest/ug/example-govcloud-iam-policies.md

Summary

Restructured IAM policy to scope EnableAWSServiceAccess permission with service principal condition

Security assessment

Added granular IAM policy condition to restrict EnableAWSServiceAccess to the AWS Artifact service principal, enforcing least privilege. This reduces potential privilege escalation risks.

Diff

diff --git a/artifact/latest/ug/example-govcloud-iam-policies.md b/artifact/latest/ug/example-govcloud-iam-policies.md
index 4d9ae9097..7212305fb 100644
--- a//artifact/latest/ug/example-govcloud-iam-policies.md
+++ b//artifact/latest/ug/example-govcloud-iam-policies.md
@@ -284 +283,0 @@ The following policy grants permission to grant AWS Artifact the permissions to
-                    "organizations:EnableAWSServiceAccess",
@@ -288,0 +288,15 @@ The following policy grants permission to grant AWS Artifact the permissions to
+            },
+            {
+                "Sid": "EnableServiceTrustForArtifact",
+                "Effect": "Allow",
+                "Action": [
+                    "organizations:EnableAWSServiceAccess"
+                ],
+                "Resource": "*",
+                "Condition": {
+                    "StringEquals": {
+                        "organizations:ServicePrincipal": [
+                            "aws-artifact-account-sync.amazonaws.com"
+                        ]
+                    }
+                }
@@ -354 +367,0 @@ The following policy grants permissions to manage agreements for the management
-            "organizations:EnableAWSServiceAccess",
@@ -358,0 +372,15 @@ The following policy grants permissions to manage agreements for the management
+        },
+        {
+          "Sid": "EnableServiceTrustForArtifact",
+          "Effect": "Allow",
+          "Action": [
+            "organizations:EnableAWSServiceAccess"
+          ],
+          "Resource": "*",
+          "Condition": {
+            "StringEquals": {
+                "organizations:ServicePrincipal": [
+                    "aws-artifact-account-sync.amazonaws.com"
+                ]
+            }
+          }