AWS Security ChangesHomeSearch

AWS inspector: Tighten GCP workload identity attribute condition (remove legacy role)

Service: inspector · 2026-11-19 · Security-related high

File: inspector/latest/user/inspector-gcp-setup-gcp.md · Type: iam

Summary

Removes the user-created AWSConfigThirdPartyCloudFederationRole from the GCP workload identity pool attribute.aws_role allow-list in both gcloud commands and from the documented key values, leaving only the AWS service-linked roles (and the Inspector2SSMFederationRole in the second variant).

Security assessment

The attribute.aws_role condition controls which AWS principals may assume the GCP workload identity, i.e. the trust boundary for cross-cloud federation. Dropping the broad user-managed AWSConfigThirdPartyCloudFederationRole from the allow-list narrows which AWS roles can obtain tokens, reducing the attack surface for impersonation via that role — an authorization/trust-policy tightening.

Evidence

+      --attribute-condition="attribute.aws_role in ['arn:aws:iam::account-id:role/aws-service-role/thirdparty.config.amazonaws.com/AWSServiceRoleForConfigThirdParty', 'arn:aws:iam::account-id:role/aws-service-role/thirdparty.inspector2.amazonaws.com/AWSServiceRoleForAmazonInspector2ThirdParty']"

Diff

diff --git a/inspector/latest/user/inspector-gcp-setup-gcp.md b/inspector/latest/user/inspector-gcp-setup-gcp.md
index 1a753c3..22f1b78 100644
--- a//inspector/latest/user/inspector-gcp-setup-gcp.md
+++ b//inspector/latest/user/inspector-gcp-setup-gcp.md
@@ -141 +141 @@ Create a workload identity pool and an OIDC provider that trust your AWS token i
-      --attribute-condition="attribute.aws_role in ['arn:aws:iam::account-id:role/AWSConfigThirdPartyCloudFederationRole', 'arn:aws:iam::account-id:role/aws-service-role/thirdparty.config.amazonaws.com/AWSServiceRoleForConfigThirdParty', 'arn:aws:iam::account-id:role/aws-service-role/thirdparty.inspector2.amazonaws.com/AWSServiceRoleForAmazonInspector2ThirdParty']"
+      --attribute-condition="attribute.aws_role in ['arn:aws:iam::account-id:role/aws-service-role/thirdparty.config.amazonaws.com/AWSServiceRoleForConfigThirdParty', 'arn:aws:iam::account-id:role/aws-service-role/thirdparty.inspector2.amazonaws.com/AWSServiceRoleForAmazonInspector2ThirdParty']"
@@ -147 +147 @@ Create a workload identity pool and an OIDC provider that trust your AWS token i
-      --attribute-condition="attribute.aws_role in ['arn:aws:iam::account-id:role/AWSConfigThirdPartyCloudFederationRole', 'arn:aws:iam::account-id:role/aws-service-role/thirdparty.config.amazonaws.com/AWSServiceRoleForConfigThirdParty', 'arn:aws:iam::account-id:role/aws-service-role/thirdparty.inspector2.amazonaws.com/AWSServiceRoleForAmazonInspector2ThirdParty', 'arn:aws:iam::account-id:role/Inspector2SSMFederationRole-organization-id']"
+      --attribute-condition="attribute.aws_role in ['arn:aws:iam::account-id:role/aws-service-role/thirdparty.config.amazonaws.com/AWSServiceRoleForConfigThirdParty', 'arn:aws:iam::account-id:role/aws-service-role/thirdparty.inspector2.amazonaws.com/AWSServiceRoleForAmazonInspector2ThirdParty', 'arn:aws:iam::account-id:role/Inspector2SSMFederationRole-organization-id']"
@@ -168 +168 @@ Key values:
-    * `AWSConfigThirdPartyCloudFederationRole` and the `AWSServiceRoleForConfigThirdParty` service-linked role, which AWS Config uses.
+    * The `AWSServiceRoleForConfigThirdParty` service-linked role, which AWS Config uses.