Tag Archives: Security Blog

Make post-quantum cryptography updates routine with AWS-LC

Post Syndicated from Josh Williams original https://aws.amazon.com/blogs/security/make-post-quantum-cryptography-updates-routine-with-aws-lc/

As your organization plans upgrades to post-quantum cryptography (PQC), you should also think about cryptographic agility to more easily update algorithms used to protect your data. Changes to cryptography and related protocols aren’t new, but PQC is accelerating the pace at which organizations must add new algorithms and remove old ones to keep up with changing regulations and evolving business risk. AWS believes our key to success is standardizing on one cryptographic library that embodies three key properties: compatibility, assurance, and performance. In this blog post, you’ll learn how we think of the cost and friction of ongoing cryptographic updates in terms of these properties. You’ll learn how AWS built AWS-LC to embody these properties, thus making cryptographic upgrades straightforward and low-impact for ourselves and our customers. For custom applications where you can’t yet use AWS services and must operate your own stacks, this post also shares why you might consider using AWS-LC as your standardized library.

Every cryptographic algorithm used to protect your data today has an expiration date, even if no regulator has set one yet. Algorithms that were once the standard, such as MD5 and SHA-1, have been retired. Standards are revised and flaws are found in implementations. The move to post-quantum cryptography is the current wave of changes, with dates set by governments and regulators to complete the transition. PQC itself will progress in phases to enable hybrid and pure post-quantum algorithms and then deprecate traditional cryptography. Each change reaches your systems as a software library update, so the practical question is how often you can roll out a new version of your cryptographic library, and what each rollout costs. At AWS, we think of this cost in terms of three properties. Compatibility means an update doesn’t require application changes. Assurance means new code can be trusted when it ships, without a long bake period. Performance means a new algorithm doesn’t add so much computational overhead or latency that it gives teams a reason to wait. This post describes how AWS-LC provides each property, and how you can apply the same approach to the cryptography you own.

AWS-LC is the general-purpose cryptographic library that AWS maintains and uses across its services. It is derived from BoringSSL, which originated from OpenSSL. If you’ve called an AWS API, AWS-LC was used on the server side. Through s2n-tls, it provides hybrid post-quantum key exchange on AWS service endpoints and in services like Application Load Balancer and Network Load Balancer. It’s also the cryptography under aws-lc-rs for Rust, the default provider for rustls, and under the Amazon Corretto Crypto Provider for Java. Because so much of AWS depends on one library, we built it to be updated often. AWS-LC keeps an OpenSSL-compatible API so applications can replace algorithms without a rewrite. It uses formal verification to prove selected algorithm implementations correct. It optimizes algorithm implementations to reduce the latency and compute costs that new algorithms add. The same properties work outside AWS. For example, 1Password used AWS-LC to move its clients to hybrid post-quantum key exchange with no application code changes.

Hand off what you can, standardize what you keep

Each piece of cryptography you own is one more thing to change at every transition. By owning as little of your cryptographic stack as your constraints or requirements allow, and using AWS services to manage the rest, you can minimize your ongoing responsibility and operational risk.

If your workload relies solely on managed services like AWS Key Management Service (AWS KMS) and managed resources like Elastic Load Balancer or Amazon Relational Database Service (Amazon RDS), you’re already reaping the benefits of AWS-LC and the AWS shared responsibility model. You only need to keep your clients and resource configurations updated. Many organizations can rely on AWS to provide the infrastructure and basic automation, but still own and manage the endpoints and applications where most of the work happens. For these components, it’s helpful to standardize on as few cryptographic libraries as possible. With fewer libraries, your team learns each one well: how to configure it, run it, and update it. The library you standardize on also decides how often you can update it. If an update requires application changes, ships new code that no one trusts yet, or adds compute and latency, teams have a reason to wait. In the rest of this post, we show you how AWS-LC removes each of those reasons through compatibility, assurance, and performance.

Compatibility

The best library update is one that doesn’t impact your application and that your users don’t notice. Code changes happen at three points: adopting a library, adding an algorithm, and updating the library. AWS-LC keeps each one small.

  • Adopting AWS-LC  – For TLS, AWS-LC libssl keeps an OpenSSL-compatible API, so most applications that use OpenSSL for TLS build against it with small changes. Applications that call libcrypto directly might need more work, because the AWS-LC libcrypto API differs from OpenSSL’s in places. See the porting guide for where behavior differs.
  • Adding an algorithm  – When new algorithms are added in AWS-LC behind interfaces applications already call, s2n-tls, s2n-quic, aws-lc-rs, and the Amazon Corretto Crypto Provider adopt them automatically. Hybrid ML-KEM key exchange, for example, is enabled through existing TLS configuration APIs. For 1Password, that meant a one-line Cargo.toml change and no application code changes.
  • Updating the library – AWS-LC long-term support (LTS) releases keep a stable application binary interface (ABI). Applications link once, then take library updates without a rebuild. One update reaches every application on the host when each process restarts. The Amazon Linux 2027 preview uses this method to ship AWS-LC as a system library.

We built these properties so AWS services could move to AWS-LC with minimal effort. aws-lc-rs is also used by open source projects; it’s the default cryptography provider for rustls with over 100 million downloads in the past 90 days, CPython tests against AWS-LC in continuous integration, and HAProxy publishes packages built on it. Each new use surfaces problems earlier in the update process, and every fix is recorded in one codebase.

Assurance

Every new algorithm arrives as new code, and new code is where bugs and security vulnerabilities are usually found. If you can’t trust new code when it ships, you wait, and each wait delays the next change. Tests check the inputs you run, and proofs check every input. AWS-LC uses machine-checked proofs for its most critical code, including its post-quantum algorithms and parts of its classical algorithms, such as its 25519 elliptic-curve code.

AWS-LC contributes to and takes its ML-KEM and ML-DSA code from two open source projects: mlkem-native and mldsa-native. The algorithmic implementations in these projects already incorporate formal verification safeguards such as ensuring no out of bound memory access, no integer overflows, constant assembly run time, and functional correctness using tools like CBMC and HOL Light (for more information, see Verifying and optimizing post-quantum cryptography at Amazon). AWS-LC imports this code from upstream without changing it. The proofs don’t depend on instruction order, so the assembly can be re-optimized without redoing them. That prevents verification from becoming the reason a faster implementation waits. Other cryptographic implementations of the library are verified in s2n-bignum.

We use these proofs alongside testing and FIPS validation. For workloads that require FIPS 140-3, a validated module is required to allow new code to be deployed. AWS-LC FIPS 3.0 was the first cryptographic library to include ML-KEM in a FIPS 140-3 validation. ML-DSA, the NIST post-quantum signature standard (FIPS 204), is in the AWS-LC FIPS 4.0 module, and the FIPS 5.0 module includes the faster, formally verified mldsa-native implementation. Both have been submitted to NIST for validation.

Performance

A new algorithm that costs more to run gives teams a reason to delay, and across many connections a small cost per connection adds up. AWS-LC optimizes each algorithm it adds so that cost doesn’t delay the update. Amazon Science reports 2.0 to 2.4 times more ML-KEM operations per second than the reference implementations across Amazon Elastic Compute Cloud (Amazon EC2) instance types. Earlier work applied the same approach to 25519 elliptic-curve cryptography. The optimized code is covered by the proofs described in the previous section, so speed doesn’t reduce assurance.

ML-DSA followed the same path. AWS-LC moved from its original implementation to mldsa-native, with optimized assembly for AArch64 and x86_64 platforms, and it now signs and verifies faster on both Graviton and x86 EC2 instance types. As a result, compute is no longer the main cost of post-quantum signatures: in the measurements in the following section, we show that ML-DSA-44 certificates lowered average TLS handshake latency compared with RSA-2048. What remains is size, which the next section measures.

What it costs to move

AWS services handle billions of requests every second, so anything that could affect those requests must be carefully considered. Post-quantum cryptography impacts the performance of every new TLS connection, so before we adopted ML-KEM and ML-DSA, we invested heavily in making them fast. Figure 1 shows the resulting reduction in time for both key exchange and authentication. Today, moving to PQ confidentiality has no net cost for most AWS use-cases, and PQ authentication takes less compute than the RSA certificates we use today.

Figure 1. ML-KEM-768 and ML-DSA-87 time per handshake, before and after AWS-LC’s native implementations, on AWS Graviton4

Figure 1. ML-KEM-768 and ML-DSA-87 time per handshake, before and after AWS-LC’s native implementations, on AWS Graviton4

ML-KEM-768 key exchange decreased by over 50 percent on both the client and the server (as shown in Figure 1); we described how in Verifying and optimizing post-quantum cryptography at Amazon. In this post, we’re focusing on ML-DSA. In AWS-LC v1.49.1, ML-DSA used the original AWS-LC implementation, adapted from the reference code. In v5.10.0, it runs on mldsa-native, which implements the performance-critical kernels in hand-written Arm64 Neon assembly for AWS Graviton, including: the number-theoretic transform (NTT) and its inverse, tuned for Arm cores with the SLOTHY superoptimizer, along with pointwise multiplication, rejection sampling, and the decompose, hint, and norm-check steps of signing and verification. It also expands the public matrix four entries at a time using the AWS-LC four-way parallel SHA-3 (Keccak). These optimizations, as shown in the right half of Figure 1, reduced ML-DSA-87 signing time on the server and verification time on the client, and the same assembly is covered by the formal proofs described earlier. mldsa-native is open source, part of the PQ Code Package in the Linux Foundation’s Post-Quantum Cryptography Alliance (PQCA), and the AWS Cryptography team and Amazon Automated Reasoning Group contribute to it.

Figure 2. TLS 1.3 connection setup time by algorithm, between two AWS Graviton4 hosts in the same Availability Zone

Figure 2. TLS 1.3 connection setup time by algorithm, between two AWS Graviton4 hosts in the same Availability Zone

Figure 2 shows total handshake time for various configurations, when the client and server are in the same AWS Region. For a baseline, we used TLS performance when the server prioritized ECDHE with P-256 for key exchange and RSA-2048 certificates for authentication. With the optimizations to ML-KEM, there is negligible overhead from moving to hybrid ML-KEM key exchange (the second bar from left). The hybrid key exchange preferred in AWS systems today pairs X25519 with ML-KEM-768. X25519 is faster than P-256, and that saving covers the remaining ML-KEM work, so a full connection setup takes roughly 12 microseconds more, which doesn’t meaningfully impact throughput or latency. It’s worth noting here that ML-KEM-768 introduces approximately 2.3 KB to the handshake.

PQ authentication carries more risk, because authentication is more of the handshake cost. The server signs once for each handshake, and the client verifies three signatures: the server’s handshake signature, the signature on the leaf, and the signature on the intermediate certificate. RSA-2048 signing is expensive and verification is inexpensive. ML-DSA-87 reverses that balance, shifting some work from the server to the client.

ML-DSA keys and signatures are also much larger, so the server’s handshake messages grow from 4–7 KB to 17–24 KB depending on the chosen certificate parameters. That adds certificate parsing on the client and more data to encrypt and send on the server. Within an Availability Zone, those messages still arrive in one round trip, and we measured no difference in network time between configurations.

Compared to RSA 2048, which is still prevalent today, ECDSA offers faster processing. However, both must be replaced by ML-DSA for post-quantum authentication. With the optimizations in AWS-LC, ML-DSA-44 comes close to ECDSA, and every ML-DSA parameter set is significantly faster than RSA-2048, as shown in Figure 2. As a result, we’re confident in managing the performance impact from migrating to post-quantum certificates.

Another facet of our investments in reducing performance impact is session resumption. Handshake costs apply only to new connections. Session resumption reduces how often that cost is paid. A resumed TLS 1.3 handshake authenticates with a key from the earlier session and sends no certificates or signatures, so the larger ML-DSA keys and signatures apply only to full handshakes. We’ll note here that in psk_dhe_ke mode, the resumed handshake still runs a fresh hybrid ML-KEM key exchange, which preserves forward secrecy. Now, resumption only helps if the client can present its ticket to any server behind the endpoint, so AWS has been extending support for resumption across the hosts behind its service endpoints. AWS SDKs can reuse connections across many requests, and session resumption can skip certificates and signatures entirely, which gives the most performance benefit for workloads using AWS managed services. If you’re using AWS-LC directly in your own custom applications, consider keeping session tickets enabled, prefer TLS 1.3 with psk_dhe_ke, and reuse clients so that they keep their tickets between connections.

Conclusion

Every cryptographic choice has an expiration date, so the goal isn’t to pick the right algorithm once and never replace or update it, but to make each replacement routine. Start by handing off what you can to AWS services and standardizing what you keep on as few libraries as possible. For the cryptography you own, three properties decide how quickly and how often you can implement each update. For compatibility, new algorithms arrive behind the APIs your applications already call, and long-term support releases keep a stable ABI, so adopting one takes a library update and a restart, not a rebuild. For assurance, machine-checked proofs cover a library’s most critical code, ML-KEM is inside a FIPS 140-3 validated module, and ML-DSA is in modules submitted for validation. For performance, optimized implementations keep each new algorithm from adding compute or latency that might give teams a reason to wait. Post-quantum cryptography is the change in front of us now, and it won’t be the last.

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


Josh Williams

Josh Williams

Josh is a Software Engineering Manager in AWS Cryptography, where he leads the team that builds AWS-LC. His team’s work spans post-quantum algorithms, formal verification, and performance optimization. He previously led teams in AWS Networking and Amazon Aurora DSQL and brings broad experience in ecommerce and distributed systems.

Jake Massimo

Jake Massimo

Jake is an Applied Scientist on the AWS Cryptography team, where he bridges Amazon with the global cryptographic community through active participation in international conferences, academic research, and standards organizations. His work focuses on advancing the adoption of post-quantum cryptographic technology at cloud scale. Currently, he leads the development of optimized and formally verified post-quantum algorithms within the AWS cryptographic library.

Rohit Panjala

Rohit is a Senior Security Specialist at AWS, driving go-to-market (GTM) strategy on a global scale for AWS data protection services, including keys, certificates, secrets, and post-quantum cryptography. He brings 7 years of experience in cybersecurity and cloud, with a background in security product management at IBM and electrical engineering.

ICYMI: October 2026 @AWS Security

Post Syndicated from Rodolfo Brenes original https://aws.amazon.com/blogs/security/icymi-october-2026-aws-security/

Welcome to this month’s AWS Security news! Organizations need current information about AWS Security developments to maintain their cloud security. This monthly digest covers key AWS Security updates. Each month, we compile new announcements, features, and resources to help you improve your security. Based on AWS Security developments, you’ll find expert perspectives in blogs, announcements of new features and capabilities, ready-to-use code samples, reference architectures, and hands-on workshops and labs to build practical security skills. Not every edition will include all of these categories, but we’ll consistently bring you the most relevant and impactful updates to help you enhance your security and governance posture.

AWS Security Blog posts

October brought 19 AWS Security Blog posts focused on the remediation flow, from a security finding to a tested fix. Learn how AI agents can find, confirm, and repair vulnerabilities, and how to add penetration testing to every deployment. You’ll also find guidance on extending existing access controls to AI agents with trusted identity propagation and preparing your signing workflows for post-quantum cryptography. The PHP2Shell posts show why patch timelines for internet-facing systems are now measured in hours, and how AWS WAF can help reduce risk while you upgrade. Other posts cover identity source changes in AWS IAM Identity Center, workload identity outside AWS, and domain-based filtering in AWS Network Firewall.

Threat detection and incident response

AWS Continuum sets a new standard in autonomous code security
Authors: Alexander Greaves-Tunnell, Neha Rungta | Published: October 5, 2026
AWS Continuum for code vulnerabilities achieved an 89.0 percent end-to-end success rate on the CyberGym-E2E benchmark. It found, demonstrated, and repaired vulnerabilities in real open source codebases, 23.1 percentage points above the previous public high.

Part 1 – Cybersecurity journeys: I didn’t plan this
Author: Shannon Brazil | Published: October 7, 2026
The first post in a four-part Cybersecurity Awareness Month series shares how 11 AWS security professionals moved into security from unexpected backgrounds, showing there’s no single path into the field.

GuardDuty Extended Threat Detection has added five new indicators to surface attack sequences
Authors: Aman Khare, Kyle Koeller | Published: October 12, 2026
Learn to use five new indicator types in Amazon GuardDuty Extended Threat Detection: vulnerability, malicious package, reachability, misconfiguration, and sensitive data. They bring signals from Amazon Inspector, Amazon Virtual Private Cloud (Amazon VPC) Reachability Analyzer, Amazon Macie, and AWS Security Hub into sequence findings, and the post shows how to add them to your incident response workflow.

Part 2 – Cybersecurity journeys: What even is this job?
Author: Shannon Brazil | Published: October 13, 2026
The second post in the series covers lesser-known security roles. These include measuring risk across a million applications, building detection tools from the customer service side, and securing infrastructure launched into orbit.

Penetration testing every deployment with AWS Continuum
Authors: Jigar Bhatt, Benjamin Li | Published: October 14, 2026
Learn to add AWS Continuum for penetration testing (formerly AWS Security Agent) to your continuous integration and delivery (CI/CD) pipeline as a check after each deployment. It tests only the change you deployed to staging and can stop that change from reaching production when a finding meets a severity threshold you set. The post includes an example for GitHub Actions.

AWS Security Agent (now part of AWS Continuum) exploited 33 of 37 new real-world CVEs
Authors: Dazhi Zhang, Hamed Soleimani | Published: October 15, 2026
AWS Continuum for penetration testing was tested against a new internal benchmark of 37 recently disclosed CVEs in live, containerized applications. Starting from a low-privilege position, it confirmed 33 of the 37 vulnerabilities end to end through the intended path, an 89.2 percent success rate.

Amazon Threat Intelligence identifies PHP2Shell exploitation prior to public disclosure in MadPot
Author: CJ Moses | Published: October 21, 2026
Amazon Threat Intelligence detected activity targeting the PHP2Shell vulnerabilities (CVE-2026-109618 and CVE-2026-109619) on its MadPot sensors four days before public disclosure. The post explains what this means for security leaders: patch critical internet-facing systems within hours, and start investigations from the earliest activity seen, not the disclosure date.

Part 3 – Cybersecurity journeys: The work behind the work
Author: Shannon Brazil | Published: October 27, 2026
The third post in the series looks at the day-to-day work of AWS security professionals that rarely gets attention. It covers application security reviews that depend on conversations with builders and on sharing hard feedback with empathy.

AI security

Identity-aware AI data agents with AWS Lake Formation and Trusted Identity Propagation
Authors: Thiyagarajan Mani, Mihir Borkar, Philippe Duplessis-Guindon, Umang Khambhalikar | Published: October 6, 2026
Learn to pass each user’s identity through Amazon Bedrock AgentCore to AWS Lake Formation using trusted identity propagation. Your existing data access policies then apply to AI agent queries without changes to application code, and AWS CloudTrail records the actual user behind each query.

Building your AI vulnerability harness, Part 1
Authors: Nidhi Ramakant, Ievgeniia Ieromenko, Justin Kontny | Published: October 7, 2026
Learn to build a three-layer pipeline that uses AI to reduce raw scanner findings to a small, prioritized set with documented evidence, so engineers can act without repeating the analysis. The architecture works with your own scanners and models.

Configuring your AI vulnerability harness, Part 2: The steering file
Authors: Justin Kontny, Ievgeniia Ieromenko, Nidhi Ramakant | Published: October 7, 2026
Learn to configure a steering file that has an AI model confirm the code structure before it reports a finding, score its confidence from that structural evidence, and set priority based on the controls in your infrastructure as code. The result is vulnerability triage that gives the same findings each time it runs.

Identity

Improving SPIRE security and resiliency with AWS managed services
Authors: Brendan Paul, Meg Peddada | Published: October 6, 2026
Learn to run SPIRE in production by moving key management, workload identity registration, certificate authority integration, and identity delivery for serverless workloads to AWS managed services. This helps you move from static credentials to short-lived workload identities. A GitHub repository walks you through deploying the reference architecture.

Managing identity source transition for AWS IAM Identity Center
Authors: Xiaoxue Xu, Kanwar Bajwa, Laura Reith, Richard Merritt, Taimur Ijlal, Yee Fei Ooi | Published: October 20, 2026
Learn to change the identity source in AWS IAM Identity Center using a step-by-step runbook and sample code. The post covers the new migration from Active Directory to an external identity provider or the Identity Center directory, which keeps your users, groups, memberships, and assignments in place.

Best practices for integrating IAM Roles Anywhere with your PKI
Authors: Abhishek Avinash Agawane, Manoj Gupta | Published: October 21, 2026
Learn to apply best practices for connecting your public key infrastructure (PKI) to AWS Identity and Access Management (IAM) Roles Anywhere. Workloads running outside AWS can then get temporary credentials using X.509 certificates, each with its own identity and set of permissions.

Data protection

Quantum-resistant signing on AWS, Part 1: Build a software supply chain with ML-DSA
Author: Harshvardhan Chunawala | Published: October 12, 2026
Learn to build an end-to-end post-quantum signing architecture for binaries, container images, and software bills of materials (SBOMs). It combines ML-DSA keys in AWS Key Management Service (AWS KMS), ML-DSA certificate hierarchies in AWS Private Certificate Authority, and ML-DSA trust anchors in IAM Roles Anywhere.

Quantum-resistant signing on AWS, Part 2: Enforce your ML-DSA algorithm policy with SCPs and IAM
Authors: Harshvardhan Chunawala, Blake Roberts | Published: October 12, 2026
Learn to turn your organization’s post-quantum algorithm policy into preventive and detective controls using service control policies (SCPs) and AWS Identity and Access Management (IAM). Only approved ML-DSA parameter sets can then be used with AWS KMS across your environment.

Infrastructure security

Using AWS WAF to apply mitigations for PHP2Shell RCE vulnerabilities (CVE-2026-109618 and CVE-2026-109619)
Authors: Alex Waddell, Eitav Arditti, Lawton Pittenger, Ian Olson | Published: October 21, 2026
Learn to use the AWS WAF PHP application managed rule group to help reduce risk from the PHP2Shell vulnerabilities while you upgrade PHP across your fleet. The post also covers guidance for end-of-life PHP versions and a related issue, CVE-2026-115560.

Introducing Route 53 Resolved IP Validation for AWS Network Firewall
Authors: Lawton Pittenger, Amish Shah, Amit Gaur, Jesse Lepich, Preetkumar Shah | Published: October 27, 2026
Learn to use Route 53 Resolved IP Validation, available at no additional charge. Amazon Route 53 Resolver shares the IP addresses it returns for each domain name with AWS Network Firewall, which checks new outbound connections against them. You can then filter non-web traffic such as SSH and SFTP by domain name and validate Server Name Indication (SNI) in TLS traffic without turning on TLS inspection.

Governance and compliance

AWS becomes first CSP in Canada to complete the Cloud High profile assessment with 172 services and features in scope
Author: Naranjan Goklani | Published: October 27, 2026
AWS completed the Canadian Centre for Cyber Security (CCCS) Cloud High (PBHH) security assessment, with 172 services and features assessed in the Canada (Central) and Canada West (Calgary) AWS Regions. This helps public and commercial customers meet security requirements for more sensitive workloads up to the Protected B level. The summary assessment is available in AWS Artifact.

October security bulletins

In October 2026, AWS published 41 security bulletins addressing vulnerabilities across open source SDKs, Model Context Protocol (MCP) servers, AI agent frameworks, embedded software, and widely used runtimes. The AI agent tool surface remained the main theme. An authentication bypass in Loom for AWS could allow network clients to gain administrative access to the agent control plane, and the AWS API MCP Server accepted OAuth tokens issued to other applications. Prompt-injected content could turn off secret masking in Strands Agents Tools or trigger command execution through the databases-on-aws agent plugin. The category also included cross-session conversation exposure in the Strands Agents Agent-to-Agent (A2A) server, missing authorization in the Kiro Crew WhatsApp channel, and code injection and server-side request forgery (SSRF) in the Amazon Bedrock AgentCore Starter Toolkit. Several broad-impact advisories called for customer action, including remote code execution in PHP web runtimes and the native Brotli decoder, a Linux kernel IPv4 TCP use-after-free issue, and recoverable eMudhra intermediate CA keys in AWS trust bundles.

Other notable issues include OS command injection in the AWS Serverless Application Model Command Line Interface (AWS SAM CLI) Terraform hook and the Amazon SageMaker Distribution startup script, SQL injection in the AWS Cloud Development Kit (AWS CDK) Amazon Redshift alpha constructs, an RSA padding oracle in the Amazon Simple Storage Service (Amazon S3) Encryption Client for .NET, and memory-safety issues in FreeRTOS, the AWS Nitro Enclaves SDK for C, and aws-c-mqtt. Credential exposure recurred in client tooling. AWS Tools for PowerShell, the Amazon SageMaker Python SDK, and the Amazon Kinesis Producer Library wrote secrets to logs. The Amazon SageMaker Python SDK and AWS SDK for pandas also used predictably named Amazon S3 buckets without verifying bucket ownership. A common thread: tools trusted inputs they didn’t control, such as content an agent ingests, a token issued to another application, or a bucket in another account. Patches or mitigations are available for every bulletin, so upgrade promptly. For more information, see AWS Security Bulletins.

AWS samples

This month’s eight AWS samples give you deployable code that puts the remediation flow into practice. Learn how to have AI agents investigate an incident together, connect public security events to the affected lines in your code, and hold off risk at the edge until a patch is merged. Other samples show you how to run AI-assisted vulnerability scanning in isolated environments and add security requirements to specs before any code is written. You’ll also find patterns for protecting MCP servers, private VPC workloads, and browser sessions driven by AI agents, plus a dashboard for governing generative AI usage and cost.

Infrastructure security

AWS Lambda Web Functions reference architecture: Amazon CloudFront and private VPC access
Learn to run a web application on AWS Lambda Web Functions behind Amazon CloudFront, using Origin Access Control so the function only accepts signed requests. A Lambda network connector lets the function reach private resources in your VPC. The sample uses Amazon Aurora Serverless v2 as the example database, with AWS Identity and Access Management (IAM) database authentication, so no credentials need to be stored.

Architecture patterns for MCP servers behind Amazon CloudFront
Learn to run a remote Model Context Protocol (MCP) server behind Amazon CloudFront and AWS WAF using four AWS Cloud Development Kit (AWS CDK) patterns, one for each origin type. The origins include Amazon Bedrock AgentCore, Amazon API Gateway, and Amazon Elastic Kubernetes Service (Amazon EKS). Each pattern uses the same edge protection and OAuth 2.0 authentication, applies AWS WAF rate limits to each tool and IP address, and only accepts traffic to the origin that comes through Amazon CloudFront.

Mitigating agentic bot threats with Amazon CloudFront and AWS WAF
Learn to add a human verification step for browser sessions driven by AI agents. AWS WAF Bot Control flags sessions that look automated, and AWS Lambda@Edge sends them to an Amazon Rekognition Face Liveness check, which needs a live person in front of a camera. A daily limit on how often the same face can pass the check helps keep a few people from verifying many agent-controlled sessions.

AI security

Security Scanning with Claude Code on AWS
Learn to deploy a separate, isolated Amazon Elastic Compute Cloud (Amazon EC2) environment for each user that runs Claude Code on Amazon Bedrock, so security teams can find, triage, and fix vulnerabilities in code they own. Each environment has no inbound access and is reached through AWS Systems Manager Session Manager. Prompts, commands, and sessions are recorded in your AWS account for audit.

Specification Hardening Engine – Kiro Power
Learn to add security requirements to your Kiro specs before any code is written. The Specification Hardening Engine checks EARS-format requirements against CWE and OWASP weakness categories and proposes security requirements you can trace and test. You review each proposed requirement and confirm it before it’s added to the spec.

Threat detection and incident response

DevOps-orchestrated security investigation
Learn to use two managed AWS agents to investigate one incident together. AWS DevOps Agent traces an alarm to a faulty deployment and, using the Agent-to-Agent (A2A) protocol, hands the code review to an agent on Amazon Bedrock AgentCore Runtime. That agent runs an AWS Security Agent review, and its findings appear in the same investigation timeline, with a human approving every action.

Security Radar
Learn to track more than 200 public security sources, including CVE records, CISA advisories, and AWS security bulletins, and match new events to the affected lines in your code. Security Radar then calls AWS Continuum to validate a patch and deliver it as a pull request. Until the patch is merged, temporary rules in AWS WAF and Amazon Route 53 Resolver DNS Firewall help reduce risk.

Governance and compliance

Bedrock Activity Dashboard
Learn to deploy a monitoring and governance dashboard for Amazon Bedrock that tracks token use, model use, and cost by user and team. It runs 13 agents on Amazon Bedrock AgentCore Runtime for security, compliance, cost optimization, and usage insights. Usage data comes from Amazon CloudWatch Logs, Amazon S3, and AWS CloudTrail. The dashboard also recommends Amazon Bedrock Guardrails configurations for sensitive data and lets you reconcile chargebacks with AWS Cost Explorer reports.

Conclusion

In October, AI agents took on a larger part of the remediation flow. The posts and samples show agents that find, confirm, and repair vulnerabilities, and pipelines that test each deployment before it reaches production. The PHP2Shell event showed that activity can begin before an advisory is published. Teams can respond by prioritizing findings by evidence, patching internet-facing systems within hours, and keeping edge mitigations in place until patches roll out. The identity guidance applies existing access controls to AI agents and to workloads outside AWS through identity propagation, short-lived credentials, and centrally enforced algorithm policy. In each case, people review and approve the changes that agents propose. To stay current with AWS security updates, subscribe to the AWS Security Blog RSS feed.


Rodolfo Brenes

Rodolfo Brenes

Rodolfo is a Principal Solutions Architect focused on Cloud Governance and Compliance. With over 18 years of experience, he currently leads a technical field community in AWS helping customers scale and improve their security and governance frameworks. Besides work, Rodolfo enjoys video games, playing with his four cats, and won’t say no to a good outdoor adventure.

Anna Brinkmann

Anna has 18 years of experience in the technical content space and has spent the last 6 years managing the AWS Security Blog. Outside of work, she enjoys spending time with her family.

Secure agentic access to AWS with Enterprise-Managed Authorization

Post Syndicated from Vaibhav Chowla original https://aws.amazon.com/blogs/security/secure-agentic-access-to-aws-with-enterprise-managed-authorization/

AWS Sign-In is introducing support for Enterprise-Managed Authorization (EMA) using the Identity Assertion JWT Authorization Grant (ID-JAG), enabling organizations to securely authorize AI agents to access AWS MCP Server through their existing enterprise identity providers (IdPs), such as Okta. With this capability, organizations can centrally manage which applications can access Amazon Web Services (AWS) resources on behalf of their employees, without requiring users to manage additional long-term credentials or complete separate consent flows.

In our previous blog post, Introducing OAuth Support for AWS MCP Server, we introduced OAuth-based authorization, enabling AI agents to securely access AWS MCP Server through interactive sign-in or programmatic authentication using AWS credentials. EMA builds on these capabilities by enabling organizations to authorize AI agents through their existing enterprise IdPs. Because authentication to an AI application doesn’t automatically grant access to AWS resources, EMA provides a way to authorize access across these separate trust domains while maintaining existing AWS Identity and Access Management (IAM) permissions.

In this post, we explain how EMA and ID-JAG work with AWS Sign-In, discuss security best practices, and walk you through configuring Okta to authorize AI agents to access AWS MCP Server.

How Enterprise-Managed Authorization works with AWS Sign-In

Enterprise-Managed Authorization (EMA) is an extension of the Model Context Protocol (MCP) that enables organizations to centrally manage how AI applications access protected resources on behalf of employees. EMA uses the Identity Assertion JWT Authorization Grant (ID-JAG), an OAuth-based authorization grant that enables enterprise IdPs to authorize access across different trust domains. Rather than requiring employees to individually authorize each MCP server, administrators can define policies in their existing IdP to control which AI applications can access specific resources.

When an employee signs in to an AI application such as Claude using their enterprise IdP, the authentication establishes their identity within Claude but doesn’t automatically grant access to AWS resources. When the AI application requests access to an MCP server, the enterprise IdP evaluates its configured access policies and issues a short-lived, signed ID-JAG assertion for the intended resource. The AI application then exchanges this assertion with the authorization server configured for the MCP server to obtain an OAuth access token, without requiring the employee to complete an additional interactive authorization flow.

For AWS MCP Server, AWS Sign-In serves as the configured OAuth authorization server. The AI application presents the ID-JAG assertion to the AWS Sign-In OAuth token endpoint. As part of the authorization process, AWS validates the assertion against the trusted IdP and uses AWS Security Token Service (AWS STS) to evaluate the IAM role’s trust policy and establish the authorized role session. AWS Sign-In then issues an OAuth access token associated with the IAM role. IAM policies attached to the role determine which AWS operations the agent can perform, allowing organizations to manage agent authorization through their enterprise IdP while enforcing existing AWS permissions.

Figure 1 illustrates how an AI application, such as Claude, uses EMA with Okta and AWS Sign-In to obtain an OAuth access token and securely access AWS MCP Server using IAM role-based permissions.

Figure 1: Enterprise-Managed Authorization flow using Okta, AWS Sign-In, and AWS MCP Server

Figure 1: Enterprise-Managed Authorization flow using Okta, AWS Sign-In, and AWS MCP Server

The authorization flow consists of the following steps, as illustrated in Figure 1:

  1. Employee authentication: The employee signs in to the AI application, such as Claude, using their enterprise IdP, such as Okta, through single sign-on (SSO).
  2. ID-JAG request: When the AI application needs to access AWS MCP Server, it requests an ID-JAG from Okta for the intended resource.
  3. Enterprise authorization: Okta evaluates the configured access policies to determine whether the employee and AI application are authorized to access AWS MCP Server. If authorized, Okta issues a short-lived, signed ID-JAG assertion.
  4. Token exchange with AWS Sign-In: The AI application sends the ID-JAG to the AWS Sign-In OAuth token endpoint. AWS Sign-In validates the assertion, including its issuer, signature, audience/tenant, expiration, and intended resource, and verifies the associated IAM role authorization before issuing an OAuth access token.
  5. Access AWS MCP Server: The AI application presents the AWS-issued OAuth access token to AWS MCP Server. The server validates the token, and access to AWS resources is governed by the permissions associated with the IAM role.

Configure Enterprise-Managed Authorization using Okta and AWS Sign-In

In this section, we walk you through configuring Enterprise-Managed Authorization (EMA) to enable an AI application, such as Claude, to securely access AWS MCP Server using an enterprise identity managed in Okta.

The configuration establishes trust between Okta and AWS, defines IAM permissions for accessing AWS resources, and configures enterprise authorization policies that govern AI application access. This walkthrough uses AWS MCP Server in the US West (Oregon) AWS Region (us-west-2).

Prerequisites

Before you begin, make sure you have the following:

  • An AWS account with permissions to configure IAM IdPs, roles, and policies.
  • An Okta organization with administrative permissions to manage applications and configure Cross-App Access policies.
  • An AI application, such as Claude, that supports EMA and ID-JAG.
  • Access to AWS MCP Server with support for OAuth-based Enterprise-Managed Authorization.
  • The AWS Region where you will configure the integration.

Step 0: Configure the AI application in Okta

Configure an application in Okta so that employees can sign in to the AI application through enterprise single sign-on (SSO). For this walkthrough, we use Claude as the AI application. If your organization already uses Claude with Okta SSO, you can use the existing application. This application is the requesting application when you configure Cross-App Access in Step 3.

  1. Create the Claude SSO application: In the Okta Admin Console, go to Applications, choose Create App Integration, and create an OIDC web application, for example Claude SSO, as shown in Figure 2.
    • If your agent was imported through an Okta AI Agent Provider, create the OIDC application by going to Directory, AI Agents, then navigating to User access from the selected agent.
  2. Choose the grant types: Select Authorization Code and Refresh Token. Claude uses the refresh token to request new ID-JAG assertions without asking employees to sign in again.
  3. Add the redirect URI: Set Sign-in redirect URIs to Claude’s SSO callback URL.
  4. Assign employees: Under Assignments, select which employees or groups can access the application.
  5. Confirm SSO works: Check that employees can sign in to Claude through Okta before you continue.
Figure 2: Creating the Claude SSO app integration in Okta

Figure 2: Creating the Claude SSO app integration in Okta

Step 1: Configure Okta as an OIDC IdP in IAM

Create an OpenID Connect (OIDC) IdP so that AWS trusts the ID-JAG assertions that Okta issues, as shown in Figure 3.

  1. Add the IdP: In the AWS Management Console for IAM, go to Identity providers, choose Add provider, and select OpenID Connect.
  2. Enter the provider URL: For Provider URL, enter your Okta org URL, for example https://integrator-1234567.okta.com. Okta issues ID-JAG assertions from the org authorization server, not from a custom authorization server.
  3. Enter the audience: For Audience, enter the AWS Sign-In authorization server for your Region, for example https://us-west-2.oauth.signin.aws, and choose Add provider.
Figure 3: Adding Okta as an OpenID Connect identity provider in IAM

Figure 3: Adding Okta as an OpenID Connect identity provider in IAM

Step 2: Create an IAM role and configure permissions

Create an IAM role that defines the AWS permissions granted to the AI application, as shown in Figure 4.

  1. Create the role: In the IAM console, go to Roles, choose Create role, and select Web identity as the trusted entity type. Choose the Okta IdP from Step 1 and its audience. This creates a trust policy that allows access only through assertions from that provider.
  2. Attach the AWS MCP Server permissions: Attach the AWS managed policy AWSMCPSignInOAuthAccessPolicy. It grants the signin:CreateOAuth2Token permission required for OAuth access to AWS MCP Server.
  3. Attach the AWS permissions the AI application needs: Attach other IAM policies that grant only the AWS permissions required by the AI application. For this walkthrough, we use a read-only role.
  4. Name and create the role: Enter a role name, for example OktaAwsMcpReadOnly, and choose Create role.
  5. Copy the role ARN: You’ll enter the role Amazon Resource Name (ARN) as the Audience/tenant ID in Okta in Step 3.
Figure 4: Reviewing the IAM role and its trust policy

Figure 4: Reviewing the IAM role and its trust policy

Step 3: Configure Cross-App Access in Okta

In the Okta Admin Console, create a resource application that represents AWS MCP Server, and then connect Claude to it. The Claude SSO App from Step 0 stays the requesting application, so you don’t enable Cross-App Access on it.

  1. Create the AWS MCP resource application: Go to Applications, choose Create App Integration, and create an OIDC web application, for example AWS MCP (us-west-2). Okta doesn’t use this application’s sign-in redirect URI, so you can keep the default value.

    Figure 5: Creating the AWS MCP resource application in Okta

    Figure 5: Creating the AWS MCP resource application in Okta

  2. Enable Cross-App Access on the resource application: On the Machine Assignments tab, edit the access method and enable Cross-App Access. Set Issuer URL to https://us-west-2.oauth.signin.aws and set Audience/tenant ID to the IAM role ARN from Step 2.

    Figure 6: Enabling Cross-App Access on the AWS MCP resource application

    Figure 6: Enabling Cross-App Access on the AWS MCP resource application

  3. Assign employees: On the Assignments tab, assign the employees or groups who can access AWS MCP Server through Claude.
  4. Register Claude as an AI agent: Go to Directory, AI Agents, and choose Register AI agent. Under User access, choose Select an existing app and pick the Claude SSO App from Step 0.
  5. Connect the AI agent to AWS MCP Server: On the AI agent page, add a resource connection with the Application resource type. Set Application instance to the AWS MCP resource application. Set the client ID registered in AWS MCP to the client ID that you configure in Claude in Step 4, for example anthropic-claude. Set Resource identifier to https://aws-mcp.us-west-2.api.aws/mcp.
    Figure 7: Connecting the Claude AI agent to the AWS MCP resource application

    Figure 7: Connecting the Claude AI agent to the AWS MCP resource application

When Claude requests access, Okta checks that the employee is assigned access and issues an ID-JAG for AWS Sign-In that carries the IAM role ARN. AWS Sign-In validates the assertion and issues an OAuth access token associated with the IAM role.

Step 4: Configure Claude to access AWS MCP Server

  1. Add a custom connector: In Claude, open Admin settings, choose Connectors, and then choose Add, Custom connector. Enter a name and the AWS MCP Server endpoint, for example https://aws-mcp.us-west-2.api.aws/mcp.
  2. Configure OAuth authentication: For Authentication, choose Sign in when needed. For OAuth client, choose Use your own OAuth client, enter the client ID from the resource connection in Step 3 and leave the client secret blank.
    Figure 8: Adding AWS MCP Server as a custom connector in Claude

    Figure 8: Adding AWS MCP Server as a custom connector in Claude

  3. Set up managed authorization: Open the connector, and on the Configuration tab, choose Set up next to Managed authorization.
    Figure 9: The connector’s Configuration tab

    Figure 9: The connector’s Configuration tab

  4. Configure IdP-managed access: Choose IdP-managed as the identity source and confirm that the connection checks pass. Then choose Continue, select the Claude roles that connect through managed authorization, and choose Save.
    Figure 10: Setting up managed authorization with Okta as the identity source

    Figure 10: Setting up managed authorization with Okta as the identity source

When an employee accesses AWS MCP Server, Claude requests an ID-JAG assertion from Okta. Following successful policy evaluation, Okta issues the assertion, which Claude exchanges at the AWS Sign-In OAuth token endpoint for an OAuth access token associated with the configured IAM role. Claude uses this token to access AWS MCP Server without requiring an additional AWS sign-in.

Step 5: Validate access to AWS MCP Server

To validate the configuration:

  1. Sign in using enterprise SSO: Sign in to the AI application using your Okta identity.
    Figure 11: Signing in to Claude with SSO

    Figure 11: Signing in to Claude with SSO

  2. Connect to AWS MCP Server: Connect the AI application to AWS MCP Server.
  3. Verify OAuth token issuance: Confirm that Claude successfully connects to AWS MCP Server without requiring a separate AWS authorization flow. You can verify successful OAuth token issuance using AWS CloudTrail, as described in Step 6.
  4. Validate authorized access: Perform an AWS operation permitted by the configured IAM role.
    Figure 12: Calling AWS MCP Server from Claude Code

    Figure 12: Calling AWS MCP Server from Claude Code

  5. Verify access restrictions: Attempt an operation outside the IAM role’s permissions and confirm that access is denied.

You can also validate enterprise authorization policies by attempting access using an employee who is not authorized in Okta and verifying that the ID-JAG request is denied.

Step 6: Verify authorization activity using AWS CloudTrail

AWS Sign-In and AWS MCP Server integrate with AWS CloudTrail to help organizations monitor OAuth authorization activity and API requests made by AI applications. CloudTrail provides visibility into token issuance, the applications requesting access, and operations performed through AWS MCP Server.

After successfully connecting your AI application to AWS MCP Server, you can verify the authorization activity in CloudTrail:

  1. Open the CloudTrail console and navigate to Event history.
  2. Select the AWS Region used for the integration.
  3. Filter events by Event source signin.amazonaws.com or Event name CreateOAuth2Token to locate OAuth token issuance activity.
  4. Review the event details, including the OAuth client identifier, target resource, authorization grant type, and token issuance status, where recorded.
  5. To review subsequent MCP activity, examine events from aws-mcp.amazonaws.com with the same session ARN and verify that the operations performed by the AI application match the permissions configured for the IAM role. Calls to global services such as IAM are recorded in US East (N. Virginia).

Example 1: AWS Sign-In OAuth token issuance

The following example illustrates the CloudTrail fields used to examine an OAuth token issuance event.

{
  "eventVersion": "1.11",
  "userIdentity": {
    "type": "AssumedRole",
    "principalId": "AROA1234567890EXAMPLE:IDAAG.nM5xzagNal2jb_tdJucKeDBJHAU6XtsjXoSpIzOqvoE",
    "arn": "arn:aws:sts::123456789012:assumed-role/OktaAwsMcpReadOnly/IDAAG.nM5xzagNal2jb_tdJucKeDBJHAU6XtsjXoSpIzOqvoE",
    "accountId": "123456789012",
    "sessionContext": {
      "sessionIssuer": {
        "type": "Role",
        "principalId": "AROA1234567890EXAMPLE",
        "arn": "arn:aws:iam::123456789012:role/OktaAwsMcpReadOnly",
        "accountId": "123456789012",
        "userName": "OktaAwsMcpReadOnly"
      },
      "webIdFederationData": {
        "federatedProvider": "arn:aws:iam::123456789012:oidc-provider/integrator-1234567.okta.com",
        "attributes": {}
      },
      "attributes": {
        "creationDate": "2026-11-12T00:10:30Z",
        "mfaAuthenticated": "false"
      }
    }
  },
  "eventTime": "2026-11-12T00:10:31Z",
  "eventSource": "signin.amazonaws.com",
  "eventName": "CreateOAuth2Token",
  "awsRegion": "us-west-2",
  "sourceIPAddress": "10.0.0.25",
  "userAgent": "python-httpx/0.28.1",
  "requestParameters": {
    "resource": "https://aws-mcp.us-west-2.api.aws/mcp",
    "client_id": "arn:aws:signin:::external-client/jwt-bearer/anthropic-claude"
  },
  "responseElements": null,
  "additionalEventData": {
    "signInSessionArn": "arn:aws:signin:us-west-2:123456789012:session/318c7829-2be1-4c7d-b693-538685cc1d49",
    "grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer",
    "success": "true"
  },
  "requestID": "0a475993-9f25-4198-9ed6-a8a141a05e99",
  "eventID": "21a99293-1659-49de-ad69-143c81c3e7a6",
  "readOnly": true,
  "eventType": "AwsApiCall",
  "managementEvent": true,
  "recipientAccountId": "123456789012",
  "eventCategory": "Management",
  "tlsDetails": {
    "tlsVersion": "TLSv1.3",
    "cipherSuite": "TLS_AES_128_GCM_SHA256",
    "clientProvidedHostHeader": "us-west-2.oauth.signin.aws"
  }
}

Example 2: AWS API call performed through AWS MCP Server

The following example illustrates the CloudTrail fields used to examine an AWS API call performed through AWS MCP Server.

{
  "eventVersion": "1.11",
  "userIdentity": {
    "type": "AssumedRole",
    "principalId": "AROA1234567890EXAMPLE:IDAAG.nM5xzagNal2jb_tdJucKeDBJHAU6XtsjXoSpIzOqvoE",
    "arn": "arn:aws:sts::123456789012:assumed-role/OktaAwsMcpReadOnly/IDAAG.nM5xzagNal2jb_tdJucKeDBJHAU6XtsjXoSpIzOqvoE",
    "accountId": "123456789012",
    "accessKeyId": "ASIA123456789EXAMPLE",
    "sessionContext": {
      "sessionIssuer": {
        "type": "Role",
        "principalId": "AROA1234567890EXAMPLE",
        "arn": "arn:aws:iam::123456789012:role/OktaAwsMcpReadOnly",
        "accountId": "123456789012",
        "userName": "OktaAwsMcpReadOnly"
      },
      "webIdFederationData": {
        "federatedProvider": "arn:aws:iam::123456789012:oidc-provider/integrator-1234567.okta.com",
        "attributes": {}
      },
      "attributes": {
        "creationDate": "2026-11-12T00:10:30Z",
        "mfaAuthenticated": "false"
      },
      "signInSessionArn": "arn:aws:signin:us-west-2:123456789012:session/318c7829-2be1-4c7d-b693-538685cc1d49"
    },
    "invokedBy": "aws-mcp.amazonaws.com"
  },
  "eventTime": "2026-11-12T00:11:20Z",
  "eventSource": "iam.amazonaws.com",
  "eventName": "ListUsers",
  "awsRegion": "us-east-1",
  "sourceIPAddress": "aws-mcp.amazonaws.com",
  "userAgent": "aws-mcp.amazonaws.com",
  "requestParameters": null,
  "responseElements": null,
  "requestID": "43c45638-b0ee-4f04-a30f-10e4012c85be",
  "eventID": "ed17577a-8d85-405d-9796-9a296a1f59b4",
  "readOnly": true,
  "eventType": "AwsApiCall",
  "managementEvent": true,
  "recipientAccountId": "123456789012",
  "eventCategory": "Management"
}

Together, these events help administrators audit OAuth token issuance and subsequent AWS MCP Server activity, supporting security investigations, compliance monitoring, and access reviews.

For more information, see Monitoring OAuth activity and Logging AWS MCP Server API calls using AWS CloudTrail.

Best practices for securing AI agent access with EMA and AWS IAM

When configuring Enterprise-Managed Authorization (EMA), consider the following security recommendations to help protect AI agent access to AWS resources:

  • Use short-lived ID-JAG assertions: Configure your enterprise IdP to issue ID-JAG assertions with short expiration periods. This limits the time during which an assertion can be exchanged for an OAuth access token and reduces the risk associated with token exposure.
  • Use tenant-specific IdP issuers: In multi-tenant environments, configure tenant-specific issuer URLs to establish explicit trust relationships between AWS and the intended enterprise IdP. This helps prevent assertions issued for one tenant from being accepted in another tenant’s authorization context.
  • Restrict OAuth authorization using IAM condition keys: Use IAM condition keys to limit OAuth token issuance to approved AI applications, authorization flows, and AWS resources. For example, use signin:OAuthClientId to restrict access to approved AI applications, such as arn:aws:signin:::external-client/jwt-bearer/anthropic-claude and signin:OAuthGrantType to restrict the permitted grant type to urn:ietf:params:oauth:grant-type:jwt-bearer. Scope these permissions to the AWS MCP Server service principal to prevent unintended access to other AWS services.
  • Apply least-privilege IAM permissions: Grant the IAM role only the permissions required by the AI application. Use managed policies to control which AWS operations the agent can perform through AWS MCP Server, reducing the impact of unauthorized or unintended actions.

For more information about available IAM condition keys and permissions, see the AWS Sign-In condition keys reference and the AWSMCPSignInOAuthAccessPolicy documentation.

Conclusion

Enterprise-Managed Authorization (EMA) with AWS Sign-In enables organizations to securely connect AI agents to AWS resources using their existing enterprise IdPs. By combining centralized authorization policies with IAM permissions, organizations can control which AI applications access their resources while reducing the need for employees to manage AWS credentials or complete additional authorization flows.

Using ID-JAG, AWS Sign-In exchanges enterprise-issued identity assertions for short-lived OAuth access tokens associated with IAM roles. This approach helps organizations enforce least-privilege access, reduce credential exposure, and simplify how employees securely access AWS resources through AI agents.

To get started, see the Sign-in with OAuth 2.0, Configure EMA for MCP servers, and Introducing OAuth Support for AWS MCP Server to learn more about OAuth-based access to AWS resources.

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


Vaibhav Chowla

Vaibhav Chowla

Vaibhav is a Senior Technical Product Manager at AWS, specializing in AWS Identity products. He focuses on enhancing user authentication and security, helping customers of all sizes solve complex identity and access management challenges. Outside of technology, Vaibhav enjoys traveling and exploring new cultures and cuisines.

Jaimin Bhatt

Jaimin Bhatt

Jaimin is a Principal Software Engineer at AWS. He works on AWS Identity and Access Management (IAM) across sign-in, threat detection, and the authentication and authorization that secures access to AWS. Previously, he led work on data perimeter controls for AWS Management Console sign-in, multi-session support for the console, a simplified AWS CLI sign-in experience, and the internal Amazon identity provider.

Seling Chen

Seling Chen

Seling is a Senior Software Engineer on the AWS Identity Sign-In team, which focuses on securing access to the AWS Management Console, the AWS CLI, and MCP servers. Her contributions include OAuth 2.0 Token Exchange, data perimeter enforcement in AWS Sign-In, and multi-session support for the console.

Reduce operational overhead by migrating from AWS CloudHSM to AWS KMS

Post Syndicated from Derek Tumulak original https://aws.amazon.com/blogs/security/reduce-operational-overhead-by-migrating-from-aws-cloudhsm-to-aws-kms/

AWS Key Management Service (AWS KMS) supports the security certifications, algorithms, and performance that most AWS CloudHSM workloads require. Organizations that migrate from AWS CloudHSM to AWS KMS have significantly reduced costs while eliminating hardware security module (HSM) provisioning, patching, and high-availability management. For a detailed comparison of both services, see AWS KMS or AWS CloudHSM: Choose the right key management solution. For payment workloads, see AWS Payment Cryptography in the following table.

Is migration right for you?

Most AWS CloudHSM workloads can migrate to AWS KMS. The following requirements might appear to need CloudHSM, but most have a resolution path:

Potential requirement Resolution
Contractual or compliance mandate requiring single-tenant HSMs Review your compliance documentation for explicit single-tenant language; many organizations find that it’s assumed, not mandated. Where mandated, a security review of AWS KMS typically confirms that its logical cryptographic isolation architecture satisfies the underlying intent.
Applications that rely on traditional HSM interfaces (PKCS#11, Java Cryptography Extension, OpenSSL Provider, or Key Storage Provider) These interfaces are a communication pattern, not an architectural constraint. Contact your AWS account team to assess the refactoring effort needed for your workloads to use modern RESTful interfaces to web services.
Deprecated algorithms (TDES, PKCS#1 v1.5 with RSA) or less common operations (AES key wrapping, AES-CTR, AES-CBC) Evaluate whether you can retire the dependency as part of your security modernization.
Over 1 billion cryptographic operations per month, where higher per-operation AWS KMS costs might favor the per-hour AWS CloudHSM cost model Per-operation pricing is only one of several factors that affect cost. Also consider saved staff time, patching, and high-availability management. With envelope encryption (Option B in the following section), optional data key caching can further reduce API call volume.
Payment workloads using older or payment-specific cryptography (TDES, AES-CBC) While AWS KMS embeds cryptographic best practices in a managed service, some payment systems still rely on older cryptography such as TDES. Evaluate Payment Cryptography, which supports payment use cases, including TDES-based algorithms such as CVV2, ARQC, and PIN validation. It also provides low-level algorithms, such as AES-CBC, that third-party systems might require for interoperability.

If you can resolve these requirements, it’s possible to migrate from AWS CloudHSM to AWS KMS. You can use the rest of this post to review the basic steps of migration to AWS KMS.

How migration works

Migration has three parts: updating application code to call KMS APIs, rotating or importing your cryptographic keys, and transitioning existing data. You re-encrypt previously encrypted data under KMS keys, and existing signatures remain verifiable without AWS CloudHSM. You can complete each part gradually, with zero downtime. Application refactoring is the bulk of the effort, though AI-assisted code transformation tools can reduce this work. Because you’re already refactoring application code, this migration is also an opportunity to adopt post-quantum cryptography (PQC) algorithms, discussed in the following section.

Digital signature workloads

During the transition, the AWS CloudHSM private key continues to sign existing workloads. If AWS CloudHSM lets you export (wrap) a copy of your private key, import it directly into AWS KMS to maintain continuity. For details, see How to Migrate Asymmetric Keys from CloudHSM to AWS KMS. If the key is non-exportable, create a new key pair in AWS KMS. A new asymmetric KMS key (or the imported key from CloudHSM) signs new data flowing to AWS KMS. Shift traffic from AWS CloudHSM to AWS KMS at your own pace. If you created a new key pair, export the CloudHSM public key before decommissioning and use it to verify existing signatures locally with libraries such as AWS-LC or OpenSSL as shown in Figure 1. AWS KMS doesn’t support importing public keys.

Figure 1 - Digital signature migration

Figure 1 – Digital signature migration

Post-quantum readiness: When creating new signing keys in AWS KMS as part of this migration, consider adopting post-quantum cryptography (PQC). AWS KMS supports ML-DSA (FIPS 204), so you can begin issuing PQC signatures now rather than as a separate future effort. This matters most for long-lived signatures, such as document signing, code signing, and certificate issuance.

Durability of imported asymmetric keys: Asymmetric key material imported into AWS KMS (using ImportKeyMaterial) doesn’t have the same durability guarantees as keys generated within AWS KMS. In the unlikely event of an AWS Region-wide infrastructure failure, imported key material could become unavailable. To protect against this, create the key as a multi-Region key, then import the same key material into each replica key in other Regions. Also keep secure backups of imported private keys outside of AWS KMS. An AWS CloudHSM cluster backup is a zero-cost option; CloudHSM stores backups in Amazon Simple Storage Service (Amazon S3) at no additional charge. For keys created in AWS KMS (not imported), AWS KMS automatically manages durability within a Region, and multi-Region keys replicate the key material for you.

Encryption workloads

For encryption workloads, use the gradual re-encryption pattern: encrypt new data with AWS KMS while a background process re-encrypts existing data created under AWS CloudHSM keys. This achieves a zero-downtime migration. The following are two approaches to gradual re-encryption, depending on your requirements.

Option A: Direct encryption with AWS KMS API (recommended)

Call the AWS KMS Encrypt and Decrypt APIs directly (Figure 2). Your application passes plaintext to kms:Encrypt and receives a self-contained ciphertext blob. To decrypt, pass the blob to kms:Decrypt. There are no data keys to manage, no local cryptography, and no libraries beyond the AWS SDK. When decrypting, AWS KMS identifies the correct key from metadata it embeds in the ciphertext, including the key material identifier. As a result, ciphertext produced by AWS KMS is larger (by about 150 bytes) than AWS CloudHSM would produce for the same plaintext. During transition, your application must handle data encrypted by both systems. On decrypt, call kms:Decrypt first. If the ciphertext was created by kms:Encrypt, it will succeed. If it was created by CloudHSM, kms:Decrypt will return InvalidCiphertextException immediately without attempting decryption. Your application then falls back to the CloudHSM decrypt path and can optionally re-encrypt the plaintext with kms:Encrypt and store the new ciphertext. All new encrypt operations go to AWS KMS immediately; only decrypt needs the fallback until re-encryption is complete.

The following pseudocode illustrates this pattern:

def encrypt_record(record_id, record):
    response = kms.encrypt(KeyId=kms_key_arn, Plaintext=record)
    store(record_id, ciphertext=response['CiphertextBlob'])

def decrypt_record(record_id):
    stored = fetch(record_id)
    try:
        response = kms.decrypt(CiphertextBlob=stored.ciphertext)
        return response['Plaintext']
    except kms.exceptions.InvalidCiphertextException:
        # Not a KMS ciphertext - fall back to CloudHSM
        return cloudhsm_decrypt(stored.ciphertext)

Figure 2 - Encryption migration with AWS KMS API

Figure 2 – Encryption migration with AWS KMS API

More about AWS KMS encryption

  • AWS KMS direct encryption supports plaintext up to 4 KB per request. For larger payloads, use Option B (AWS Encryption SDK), which handles envelope encryption for you and supports data of any size.
  • AWS KMS also supports asymmetric encryption with RSA keys for use cases such as encrypting data destined for a specific key pair holder. This post focuses on symmetric encryption because it covers the majority of AWS CloudHSM encryption workloads.

Option B: Envelope encryption with AWS Encryption SDK

For workloads that require envelope encryption, use the AWS Encryption SDK as shown in Figure 3. Your application calls encrypt() on plaintext and decrypt() on ciphertext. The SDK manages data key generation, local 256-bit AES-GCM encryption, and serialization automatically. Its portable ciphertext format works across multiple runtimes of the AWS Encryption SDK. You can also enable data key caching to reduce calls to AWS KMS. Use this approach when you share encrypted data across services, languages, or with third parties outside of AWS.

Figure 3 - Encryption migration with AWS Encryption SDK

Figure 3 – Encryption migration with AWS Encryption SDK

Migration results

A financial services company migrated their transaction data encryption from AWS CloudHSM to AWS KMS. Prior to migration, their workload ran 75 million cryptographic operations per month on three HSMs provisioned for high availability and the operational burden was 25 hours per month. After the migration, they no longer had to manage HSMs, which reduced their operational burden to near zero.

Metric Before (AWS CloudHSM) After (AWS KMS)
Monthly cost $3,456 (three HSMs) Approximately $250 (93% reduction)
Operational burden 25 hours per month (patching, certificates, and monitoring) Near zero: no HSMs to manage
Compliance FIPS 140-3 Level 3 FIPS 140-3 Level 3
Disaster recovery Multi-Availability Zone (AZ) HSMs that they provisioned, sized, and monitored Automatic multi-AZ availability. Optional multi-Region replication
Migration duration – 10 weeks, zero downtime

Recommendations

We recommend the following as you migrate from AWS CloudHSM to AWS KMS.

  • Use AI-assisted code transformation tools to accelerate refactoring and reduce manual effort.
  • Run the complete migration in staging first, including re-encryption of representative data volumes.
  • Document specific rollback criteria. During gradual re-encryption, you can pause at any point while AWS CloudHSM continues to decrypt data that has not yet moved. Keep KMS keys enabled after a rollback, because data already re-encrypted under AWS KMS still needs them.
  • Design AWS Identity and Access Management (IAM) policies, key policies, grants, and encryption context schemas before migration. Encryption context enables fine-grained audit trails not available in CloudHSM. See the AWS KMS Developer Guide for a list of log entries.
  • Delete CloudHSM keys only after all data is re-encrypted and verified. Before deleting, create a CloudHSM cluster backup of any keys imported into AWS KMS and export the public key of any signing key you replaced. Maintain an audit trail of the decommissioning.

Next steps

Start by auditing your current AWS CloudHSM usage: document your keys, the applications that use them, your monthly operation volume, and any compliance constraints. Use the AWS Pricing Calculator to estimate AWS KMS costs for your workload, then test a proof-of-concept migration with a non-critical application.

Conclusion

Migrating from AWS CloudHSM to AWS KMS removes the recurring work of provisioning, scaling, patching, and monitoring HSM clusters, freeing your team to focus on your application rather than the cryptographic infrastructure beneath it. You gain built-in high availability across multiple Availability Zones, with optional multi-Region replication, at a usage-based cost rather than a per-hour commitment for hardware you manage. Because the migration involves refactoring application code, it is also a natural point to adopt post-quantum signing algorithms such as ML-DSA, so you modernize your security posture in the same effort.

For implementation support, contact your AWS account team or AWS Professional Services. For API integration details, see the AWS KMS Developer Guide.


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

Derek Tumulak

Derek Tumulak

Derek Tumulak is a seasoned cybersecurity leader and Principal Product Manager at Amazon Web Services. With over 20 years of experience, he has held executive roles at Thales and Vormetric. A University of Waterloo graduate, Derek is a recognized expert in data security and encryption, frequently advising Silicon Valley organizations on advanced technical strategies and product innovation.

Planning for 99.99 percent availability with the Amazon Cognito Plus feature plan

Post Syndicated from Brian Song original https://aws.amazon.com/blogs/security/planning-for-99-99-percent-availability-with-the-amazon-cognito-plus-feature-plan/

Amazon Cognito handles sign-in and access control for users, AI agents, and microservices with managed user directories, social and enterprise federation, and passwordless sign-in with passkeys or one-time passwords.

Sign-in is the front door to your application. If your customer identity and access management (CIAM) layer is unavailable, users can’t sign in or refresh their sessions, and they can’t reach the rest of your application. Your application’s availability directly depends on the availability of your identity layer.

Starting November 1, 2026, the Amazon Cognito Service Level Agreement (SLA) commits to a Monthly Uptime Percentage of 99.99 percent for user pools on the Plus feature plan, up from 99.9 percent. A user pool is a multi-tenant user directory that stores your users’ profiles and settings. User pools on Essentials and Lite feature plans remain at the 99.9 percent Service Commitment, while user pools already on Plus receive the new Service Commitment automatically.

This post explains why we made the change, how availability is measured, what’s in the updated SLA, how the SLA measures availability, historical availability data, and how to switch a user pool to Plus.

Why we raised the Service Commitment

Many customers use Amazon Cognito for sign-in to applications with strict availability requirements, such as patient portals and retail checkout flows. They need the services they build on to support high availability. We raised the Service Commitment for the Plus feature plan to 99.99 percent so that their identity layer is backed by an SLA that matches their commitments.

The new Service Commitment and Service Credits

For each AWS Region, during each monthly billing cycle, AWS commits to a Monthly Uptime Percentage of at least 99.99 percent for user pools on Plus, and at least 99.9 percent for user pools on Essentials and Lite. If Amazon Cognito doesn’t meet the Service Commitment for your feature plan, you may be eligible for a Service Credit, as shown in Tables 1 and 2. For full terms and exclusions, see the Amazon Cognito SLA.

Table 1: Service Credit percentage for the Plus Feature Plan

Monthly Uptime Percentage Plus
Less than 99.99% but equal to or greater than 99.0% 10%
Less than 99.0% but equal to or greater than 95.0% 25%
Less than 95.0% 100%

Table 2: Service Credit percentage for the Essentials and Lite Feature Plan

Monthly Uptime Percentage Essentials and Lite
Less than 99.9% but equal to or greater than 99.0% 10%
Less than 99.0% but equal to or greater than 95.0% 25%
Less than 95.0% 100%

What 99.99 percent means in practice

The 99.99 percent Service Commitment is a 10-times improvement over 99.9 percent. In a 30-day month, the allowable monthly downtime drops from about 43 minutes to about 4.3 minutes. For teams that set availability targets for their own applications, this gives a stronger baseline to plan against and to share with stakeholders.

How Amazon Cognito measures availability

The SLA measures availability separately for each AWS Region. Amazon Cognito divides each monthly billing cycle into 5-minute intervals and calculates the percentage of requests in each interval that don’t return an HTTP 500 or 503 error. Intervals with no requests count as 100 percent available. The Monthly Uptime Percentage is the average of these interval values over the billing cycle, minus downtime covered by the exclusions in the SLA. For the full definitions and exclusions, see the Amazon Cognito SLA.

Historical availability over the past 12 months

As we introduce the new SLA, we also looked back at the past 12 months to show how Amazon Cognito performed against the new Service Commitment. Table 3 shows monthly availability for Amazon Cognito user pools from November 2025 through October 2026.

Availability was at or above 99.99 percent in 10 of the 12 months. It was below 99.99 percent in January (99.988 percent) and March (99.979 percent), but stayed above the previous 99.9 percent Service Commitment in both months and was at or above 99.99 percent the following month.

Table 3: Amazon Cognito user pools monthly availability, November 2025 to October 2026

Month Monthly availability
November 2025 99.999%
December 2025 99.999%
January 2026 99.988%
February 2026 99.999%
March 2026 99.979%
April 2026 99.999%
May 2026 99.999%
June 2026 99.999%
July 2026 99.993%
August 2026 99.999%
September 2026 99.998%
October 2026 99.997%

We calculated availability for each Region using the Monthly Uptime Percentage method in the SLA, then combined the Regional results into one monthly figure weighted by each Region’s request volume. These are aggregate figures, so the availability an individual account experienced might differ.

Switch to the Plus feature plan

If your user pools use the Plus feature plan, the 99.99 percent Service Commitment applies to them starting November 1, 2026, with no action needed. If your user pools use Essentials or Lite feature plans, you can switch them to Plus in the AWS Management Console for Amazon Cognito or programmatically. Before you switch, see user pool feature plans and Amazon Cognito pricing to compare features and costs. To learn more about the features that Plus adds, see the advanced security features with threat protection.

To switch a user pool to the Plus feature plan (AWS Management Console):

  1. Sign in to the Amazon Cognito console.
  2. Choose User pools and then choose your user pool.
  3. Choose Settings.
  4. Choose the Feature plans tab.
  5. Choose Switch to Plus.
  6. Review your choice and then choose Confirm.
Figure 1: Amazon Cognito console Feature plans tab with the Switch to Plus button

Figure 1: Amazon Cognito console Feature plans tab with the Switch to Plus button

To switch a user pool to Plus feature plan (AWS CLI):

Important: The Update-user-pool command and the UpdateUserPool API operation reset any parameter that you don’t include in the request to its default value. To avoid unintended changes to your user pool, retrieve your existing configuration first and include it in your update request.

  1. Use the AWS Command Line Interface (AWS CLI) to retrieve your current user pool configuration with describe-user-pool:
    aws cognito-idp describe-user-pool \
    --user-pool-id <your-user-pool-id>
    

  2. Run the update-user-pool command, including your existing configuration parameters and the Plus tier:
    aws cognito-idp update-user-pool \
    --user-pool-id <your-user-pool-id> \
    --user-pool-tier PLUS \
    <your existing configuration parameters>
    

If you use an AWS SDK, set UserPoolTier to PLUS in an UpdateUserPool request, and include your existing settings in the same way.

Conclusion

In this post, we shared the updated Service Commitment for Amazon Cognito user pools on the Plus feature plan, how availability is measured, and 12 months of historical data. Starting November 1, 2026, user pools on Plus are covered by a 99.99 percent Monthly Uptime Percentage Service Commitment, with no action required if you already use Plus. We plan to keep investing in the availability and resilience of Amazon Cognito.

To review the full terms, see the Amazon Cognito SLA. To learn more about the features in each plan, see user pool feature plans and advanced security features with threat protection.

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


Brian Song

Brian Song

Brian is a Senior Product Manager at Amazon Web Services, where he’s passionate about making customer identity simple, secure, and dependable for builders of all sizes. Brian is usually planning his next trip, catching a live show, or first in line for a movie on opening night.

Chris Simmons

Chris Simmons

Chris is a Senior Software Manager at Amazon Web Services. When he’s not improving the security of the cloud, Chris enjoys running, martial arts, and old-school RPGs.

Introducing AWS Network Firewall Next Generation policy

Post Syndicated from Lawton Pittenger original https://aws.amazon.com/blogs/security/introducing-aws-network-firewall-next-generation-policy/

When it comes to inspecting network traffic, many security teams want two things from a firewall. They want to allow only the traffic each application needs, and they want each allowed connection checked for known threats. Today, you can do both with AWS Network Firewall, a stateful, managed network firewall and intrusion detection and prevention service. In a Classic policy, your access rules and your threat rules run together in one stateful engine and share one rule capacity.

With Next Generation policies, access control and threat protection each get their own engine in the same firewall. A firewall engine allows the traffic you approve and drops the rest. An intrusion prevention system (IPS) engine checks the allowed traffic with AWS managed rule groups or with rules that you write. Each engine has its own rule capacity, so adding access rules doesn’t take capacity away from threat protection.

In this post, we walk through what Next Generation policies are, how they evaluate traffic, and the new concepts they introduce. We use sample records to cover what each engine logs and how to validate a policy with the new monitor mode. To put it all together, we walk through creating an example Next Generation policy.

How a Next Generation policy works

A Next Generation policy inspects traffic with two engines, in sequence. Traffic that the firewall engine allows moves to the IPS engine, and traffic that the firewall engine blocks goes no further. The firewall engine is drop by default, and the IPS engine is pass by default.

If you already write Suricata rules, the two engines will feel familiar. The firewall engine is built on Suricata 8 firewall mode, which follows each connection as it progresses and evaluates rules at each step. The IPS engine uses the Suricata compatible intrusion detection system (IDS) and IPS rules that you already know from the stateful engine in a Classic policy, with one difference: it evaluates rules in action order and doesn’t support Classic options such as strict order.

A Classic policy uses a stateless engine and then a stateful engine that evaluates access rules and threat rules together. In a Next Generation policy, both engines are stateful, so each rule is evaluated with full connection context, which helps keep traffic handling consistent and predictable. The firewall engine works up to the application layer. It follows each connection for its entire flow, from the first packet through the TCP handshake and application layer exchanges such as the TLS client hello, and evaluates your access rules along the way (Figure 1).

Figure 1: Classic and Next Generation policy engines and their rule capacity.

Figure 1: Classic and Next Generation policy engines and their rule capacity.

This separation changes how you design a policy. Because each engine has one job, you can plan access control and threat protection on their own, and different teams can work independently. For example, a networking team can manage access rules while a security team handles threat detection, and neither has to rewrite the other’s rules.

The firewall engine controls access

You configure access control by specifying an action for a protocol, along with a source and destination. Rules run in the order that you set. Traffic that no rule allows gets the policy’s firewall default action, which is drop unless you change it. In a Next Generation policy, the drop default action applies from the first packet, so for TCP traffic the firewall can drop the initial SYN. Unlike the drop established default action in a Classic policy, it doesn’t wait for a connection to be established.

A few terms explain how the firewall engine evaluates traffic. Connection states are the protocol states that a connection progresses through, such as the TCP handshake and the TLS client hello. A hook is the point at a connection state where your rules attach, so a rule’s hook sets when the firewall engine evaluates it. Each rule also has an action, such as accept, drop, or reject. Its action scope sets how much of the traffic the action applies to, from one packet or one transaction up to the whole connection, called the flow. For more details, see Firewall engine hooks.

When you build a rule in the console, you choose a protocol and then two settings: Connection state, which sets the rule’s hook, and Action scope. For example, to allow a domain over TLS, you match its server name at the Client Hello connection state with the This flow action scope.

Because the firewall engine is drop by default, a connection advances to the next connection state only while your rules keep accepting it. For example, a connection can pass the TCP handshake and still be dropped at the TLS client hello. That happens when its server name isn’t on your approved list (Figure 2).

Figure 2: A connection is accepted at the TCP handshake hook and dropped at the TLS client hello hook.

Figure 2: A connection is accepted at the TCP handshake hook and dropped at the TLS client hello hook.

In Figure 2, the rule for www.amazon.com accepts the flow when it matches the server name at the TLS client hello hook. No rule accepts example.com at that hook, so the firewall default action drops it.

You don’t have to write every rule in raw Suricata syntax. You can build rules in the console rule builder, or, as in the example later in this post, enter your domains in a domain list rule group, and Network Firewall builds the rules for you.

Action scope also sets where an accepted connection goes next. An accept with the hook scope allows the connection to advance to the next connection state, where the rules at that hook evaluate it. An accept with the flow scope lets the connection skip the remaining hooks and move to the IPS engine (Figure 3). A firewall rule can also bypass the IPS engine for specific traffic when you choose. For the valid combinations of action and scope at each type of hook, see Firewall engine actions and scopes.

Figure 3: An accept with the hook scope compared with an accept with the flow scope.

Figure 3: An accept with the hook scope compared with an accept with the flow scope.

The IPS engine looks for threats

Traffic that the firewall engine allows then reaches the IPS engine, which inspects it with Suricata compatible rules. The IPS engine is designed to look for specific threats, so it blocks only traffic that matches a threat rule. IPS rules evaluate in action order. Pass rules go first, then drop, reject, and alert rules, regardless of the order in which you define them. For the full path through both engines, see How Network Firewall filters traffic with a Next Generation policy.

We recommend that you start with the AWS managed rule groups. Because the IPS engine is built on the industry standard Suricata engine, you can also run Suricata compatible rule sets from specialized security providers, alongside rules that you write yourself.

Referenced rule groups and embedded rules

Each engine gets its rules from its own section of the policy. You can add rules in two ways and mix both in one section.

Referenced rule groups are separate resources, and they’re the only kind of rule group that Classic policies support. You create a rule group once and add it to as many policies as you need. You can also share it with other accounts through AWS Resource Access Manager (AWS RAM). For details, see Sharing AWS Network Firewall resources. When you update the rule group, each policy that references it picks up the change. You set a referenced rule group’s capacity when you create it, and you can’t change it afterward, so leave room for it to grow.

Embedded rules are new with Next Generation policies. You write them directly inside one policy, and they belong to that policy only, so you can’t share them with another policy. Use them to add rules quickly that are specific to that policy. They use that engine’s rule capacity, and you don’t set a capacity up front. Embedded rules in both engine sections share a combined limit. For all limits, see AWS Network Firewall quotas.

Read what each engine logs

Whichever way you add rules, both engines write to the same alert and flow logs, which you configure in the logging configuration. Each alert record carries new fields that show which engine wrote it and, for the firewall engine, the hook where the decision happened.

The following record came from a test, in enforce mode, of the example policy that you build later in this post. A host tried to reach example.com, which isn’t on the allow list.

{
  "firewall_name": "example-fw",
  "availability_zone": "us-east-1a",
  "event_timestamp": "1794341434",
  "event": {
    "event_type": "alert",
    "app_proto": "tls",
    "src_ip": "10.0.1.25",
    "src_port": 42698,
    "dest_ip": "203.0.113.10",
    "dest_port": 443,
    "proto": "TCP",
    "tls": {
      "sni": "example.com"
    },
    "alert": {
      "engine": "fw",
      "action": "blocked",
      "signature_id": 2201001,
      "signature": "SURICATA FW default app policy",
      "severity": 3
    },
    "firewall": {
      "hook": "tls:client_hello",
      "policy": "drop:flow,alert"
    },
    "verdict": {
      "action": "drop"
    },
    "aws_metadata": {
      "resource_arn": "arn:aws:network-firewall:us-east-1:111122223333:firewall-policy-v2/example-policy"
    },
    "timestamp": "2026-11-10T20:10:34.141643+0000"
  }
}

The following table explains the key fields in this record.

Field Value What it tells you
alert.engine fw The firewall engine wrote this record.
firewall.hook tls:client_hello The decision happened at the TLS client hello, where the client sends the server name example.com.
alert.signature SURICATA FW default app policy No rule matched, so the firewall default action applied. The default action logs its drops on its own, so you don’t need an alert rule to see what it blocks.
firewall.policy drop:flow,alert The action and scope that applied. The default action dropped the whole flow and wrote an alert.
aws_metadata.resource_arn arn:aws:network-firewall:us-east-1:111122223333:firewall-policy-v2/example-policy The policy itself is the source, because the record doesn’t come from one of your rule groups.

When a connection that the firewall engine allowed matches a threat rule, the IPS engine writes its own record. In this test, the firewall engine allowed TLS to one test server by IP address. The IPS section also held the following embedded rule, which drops TLS connections with a JA4 fingerprint that your threat intelligence flags. The fingerprint in this rule is a sample value:

drop tls $HOME_NET any -> $EXTERNAL_NET any (msg:"Example: flagged TLS client fingerprint (JA4)"; flow:to_server,established; ja4.hash; content:"t13d1516h2_aaaaaaaaaaaa_bbbbbbbbbbbb"; classtype:trojan-activity; sid:900002; rev:1;)

This is a sample rule to show the IPS engine at work. In your own policies, we recommend that you start with the AWS managed threat signature rule groups and add custom rules where you need them.

A test client with that fingerprint connected to that server without a server name, and the IPS engine wrote the following record.

{
  "firewall_name": "example-fw",
  "availability_zone": "us-east-1a",
  "event_timestamp": "1794377726",
  "event": {
    "event_type": "alert",
    "app_proto": "tls",
    "src_ip": "10.0.1.25",
    "src_port": 38342,
    "dest_ip": "198.51.100.7",
    "dest_port": 443,
    "proto": "TCP",
    "tls": {
      "version": "TLS 1.3",
      "ja4": "t13d1516h2_aaaaaaaaaaaa_bbbbbbbbbbbb"
    },
    "alert": {
      "engine": "td",
      "action": "blocked",
      "signature_id": 900002,
      "signature": "Example: flagged TLS client fingerprint (JA4)"",
      "category": "A Network Trojan was detected",
      "severity": 1
    },
    "verdict": {
      "action": "drop"
    },
    "aws_metadata": {
      "resource_arn": "arn:aws:network-firewall:us-east-1:111122223333:firewall-policy-v2/example-policy"
    },
    "timestamp": "2026-11-11T06:15:26.671435+0000"
  }
}

Field Value What it tells you
alert.engine td The IPS engine wrote this record. IPS records have no firewall object, because IPS rules don’t use hooks.
tls.ja4 t13d1516h2_aaaaaaaaaaaa_bbbbbbbbbbbb The JA4 fingerprint of the client, which matches the fingerprint in the rule.
alert.signature Example: flagged TLS client fingerprint (JA4) The IPS rule that matched, from the rule’s msg option.
alert.category A Network Trojan was detected The rule’s classtype, trojan-activity, sets this category.
verdict.action drop The IPS engine dropped the connection.
aws_metadata.resource_arn arn:aws:network-firewall:us-east-1:111122223333:firewall-policy-v2/example-policy The rule is embedded in the policy, so the record shows the policy ARN. A match from an AWS managed rule group or one of your referenced rule groups carries that rule group’s ARN instead.

To separate access control events from threat events in your queries, filter on the engine field. To find which rule group produced an event, use resource_arn. Embedded rules and the default action show the policy ARN.

Validate in monitor mode, then enforce

Each Next Generation policy has a policy mode, enforce or monitor. In enforce mode, the engines apply their actions. In monitor mode, both engines evaluate your traffic and log what they would do. Your rules and the default action don’t drop or reject traffic.

Monitor mode also turns on alert logging for your rules and the default action, so each firewall rule that would block traffic logs its matches. That makes monitor mode a lower-risk way to stage a rollout of a new policy or a change to an existing one. Monitor logs are close to enforce mode but can differ. When a firewall rule would block a connection, monitor mode lets the connection through but sends it past the IPS engine, just as a blocked connection never reaches the IPS engine in enforce mode. So the monitor logs don’t show IPS alerts for that connection. For the full list of differences, see Policy mode: enforce and monitor.

To validate a policy in monitor mode:

  1. Set Policy mode to Monitor, and confirm that alert logging is on for the firewall. Amazon Route 53 Resolved IP Validation still applies its configured action in monitor mode, so if your policy uses it, set its action to Alert.
  2. Send representative traffic for long enough to cover your normal patterns.
  3. In your alert logs, filter on engine = fw. Check the FirewallDefaultActionApplied metric in Amazon CloudWatch. Traffic that you meant to allow shouldn’t be reaching the default action.
  4. When the results look right, switch Policy mode to Enforce during a maintenance window. Changing the policy mode or the firewall default action restarts stateful inspection on the firewall, which interrupts established connections.

Example policy with a domain allow list and threat protection

The following example puts the engines, logs, and monitor mode together. It allows outbound traffic only to approved domains and checks that allowed traffic for known threats. The firewall engine holds the domain allow list, and the IPS engine runs the AWS active threat defense managed rule group. Figure 4 shows the policy and where each of the earlier log records comes from. Log record 2 comes from the sample embedded rule, which isn’t part of the policy that you create in the following steps.

Figure 4: The example policy, with the sample embedded rule behind log record 2.

Figure 4: The example policy, with the sample embedded rule behind log record 2.

To create the domain list rule group:

  1. In the Network Firewall console, choose Network Firewall rule groups, and then choose Create rule group. Choose Next Generation as the rule group version, Firewall rule group as the type, and Domain list as the format.

    Figure 5: Choosing the rule group version, type, and format for the domain list.

    Figure 5: Choosing the rule group version, type, and format for the domain list.

  2. Enter one domain per line, for example .amazon.com and checkip.amazonaws.com, and under Protocols, select HTTPS only. For HTTPS, the firewall matches the TLS Server Name Indication (SNI) without decrypting traffic. SNI is the server name that a client sends at the start of a TLS connection. To include a domain and its subdomains, start the name with a dot.
  3. For Capacity sizing, choose Allow room to grow, and then create the rule group.

To create the policy:

  1. Choose Firewall policies, and then choose Create firewall policy. Select Next Generation as the policy version and Drop as the firewall default action, so the firewall blocks traffic that you don’t allow. Set Policy mode to Monitor. We recommend rolling out a new policy in monitor mode first, then switching to enforce after you validate it. Enable Active Threat Defense is selected by default. Active threat defense is optional. Additional charges apply; for details, see AWS Network Firewall pricing.
    Figure 6: The policy details page, with Next Generation, Drop, and Monitor selected.

    Figure 6: The policy details page, with Next Generation, Drop, and Monitor selected.

  2. On the Add firewall rule groups step, add the domain list rule group that you created in the previous procedure.
  3. On the Add IPS rule groups step, the active threat defense managed rule group, listed as AttackInfrastructure, is already added. It comes from the Enable Active Threat Defense default that Figure 6 shows. Choose Add rule group to add more AWS managed rule groups, your own rule groups, or embedded rules.
  4. Create the policy, associate it with your firewall, and turn on alert and flow logging.
  5. After you validate the policy, as described in Validate in monitor mode, then enforce, switch Policy mode to Enforce.

For more detail, see Creating a rule group for a Next Generation policy and Generating firewall rules from domain names.

Already using Classic policies?

Classic Network Firewall policies remain supported, and your existing firewalls keep running as they are. Each firewall uses one policy type at a time, either a Classic policy or a Next Generation policy. For new firewalls, we recommend Next Generation policies. We’re working on migration guidance for existing policies, so you can plan a move when it suits you.

To try one now, create a test firewall with a Next Generation policy and start it in monitor mode. To compare the two policy types, see AWS Network Firewall firewall policy versions. Next Generation policies are available at no additional charge. You pay the standard Network Firewall charges for your firewall endpoints and the traffic they process. For Regions and pricing, see AWS Services by Region and AWS Network Firewall pricing.

Conclusion

In this post, we showed you how a Next Generation policy gives access control and threat protection separate engines, each with its own rule capacity, so you can grow your firewall rules and IPS rules independently. We also showed what each engine logs, how to validate a policy in monitor mode, and how to build a policy that allows only approved domains and checks the allowed traffic for threats. To learn more, see Getting started with a Next Generation policy, and to automate your policies, use the AWS Command Line Interface (AWS CLI) or the AWS SDKs.

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.

Santosh Shanbhag

Santosh is a seasoned product leader, specializing in security, data protection, and compliance. At AWS, he focuses on securing workloads through Network and Application Security services, including AWS Network Firewall and active threat defense.

Aneesh Patel

Aneesh Patel

Aneesh is a Software Development Engineer at AWS, based in Herndon, Virginia. He builds and maintains AWS Network Firewall, a managed service that helps customers protect their VPC networks. Outside of work, he enjoys snowboarding, working out, and playing video games.

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.

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.

Introducing AWS WAF simplified pricing

Post Syndicated from Fenil Patel original https://aws.amazon.com/blogs/security/introducing-aws-waf-simplified-pricing/

Starting today, AWS WAF pricing is easier to predict. Your bill is now based on three dimensions: the resources you protect, the traffic AWS WAF inspects, and the level of protection you apply to that traffic.

Existing AWS WAF customers move to the new pricing on February 1, 2027. Until then, you keep your current pricing, and you don’t need to do anything at launch. This post explains what’s changing, how to estimate your costs under the new model, and where to find full pricing details and examples on the AWS WAF pricing page.

For new or smaller workloads, the Free plan of CloudFront flat-rate pricing plans is another way to start. If your application serves fewer than 1 million requests per month, the Free plan costs $0 per month for each CloudFront distribution. It includes AWS WAF protection against common web threats, DDoS protection, and the CloudFront CDN, with no overage charges.

Why the pricing is changing

Under the previous model, adding a protection often meant adding a charge, so every security decision was also a billing decision. The new pricing separates those two questions and makes the trade off between cost and security posture easy to see. Turning on a rule, the Bot Control common protection, or the Anti-DDoS rule group doesn’t add a subscription or a separate per-request charge. Those requests bill at the base request rate.

Capacity also stops affecting your rate. Each protection pack (web ACL) now includes up to 2,500 web ACL capacity units (WCUs), up from 1,500, and going past your included capacity no longer raises what you pay per request. The premium request fee applies only to the traffic you choose to send through advanced protections.

You can estimate costs before writing a single rule, and those estimates hold even as your rules change. Security rules change often. A new CVE or a shift in bot behavior can require a configuration update the same day. Adding, reordering, or removing rules doesn’t change your rate.

What this means for existing customers

If you already use AWS WAF, your account stays on current pricing until February 1, 2027. If you hold an AWS WAF private pricing agreement, it stays in force until it expires.

You don’t have to work out the math yourself. The AWS WAF pricing page includes worked examples that show how the three fees add up for common workloads. If you have questions about how the new pricing applies to your account, contact your AWS account team or open a Support case.

For AWS Shield Advanced subscribers, nothing changes. Your Shield Advanced subscription, its price, and your included AWS WAF entitlement stay the same. AWS WAF remains included up to 1,500 WCU per protection pack (web ACL), the resources Shield Advanced protects stay unmetered, and AWS WAF base requests remain free up to 50 billion per calendar month.

Customers on a CloudFront flat-rate pricing plan also see no change. AWS WAF stays included in your plan, and your plan’s included requests stay the same.

How the new pricing works

AWS WAF bills three fees. The resource fee is an hourly charge for each resource associated with a protection pack (web ACL). It covers resources that AWS WAF can protect, such as Amazon CloudFront distributions, Application Load Balancers, and Amazon API Gateway APIs. The base request fee applies to each request AWS WAF inspects. The premium request fee applies on top of the base request fee, to the requests that advanced protections evaluate, such as Bot Control targeted protections, Fraud Control, API Security, and AI Security. AWS WAF also launches two new managed rule groups today, API Security and AI Security. Both use the same premium request fee, with no separate subscription or rate. For the current list of advanced protections, see the AWS WAF Developer Guide.

Fee What it’s charged for Rate
Resource fee Each resource associated with a protection pack (web ACL), prorated hourly $0.01 per hour (about $7.30 per month)
Base request fee Each request that AWS WAF inspects $0.60 per million requests
Premium request fee Requests evaluated by advanced protections, in addition to the base request fee $5.00 per million requests

Requests evaluated by one or more advanced protections are billed $5.60 per million: the $0.60 base request fee plus the $5.00 premium request fee. AWS WAF charges the premium request fee once per request, however many advanced protections evaluate it. A request that Bot Control targeted protections, API Security, and AI Security evaluate is still billed $5.60 per million. A request that an earlier rule blocks before it reaches an advanced protection pays only the base request fee. For instance, a request blocked by a custom rule before it reaches Bot Control pays $0.60 per million, not $5.60.

Figure 1 shows where each previous charge lands under the new pricing model. AWS WAF also inspects request bodies up to the maximum size that each associated resource type supports, at no extra charge. For the current limits by resource type, see Considerations for managing body inspection in AWS WAF.

Figure 1: Mapping of previous AWS WAF pricing components to the new three-dimension model

Figure 1: Mapping of previous AWS WAF pricing components to the new three-dimension model

See your traffic with the Security analytics dashboard

The new pricing also includes the Security analytics dashboard. The dashboard shows full traffic metrics for your protected applications over a rolling 21 day window. You can use it to see the requests your protection packs (web ACLs) inspect and how your rules act on them, which helps you tune the protections and understand what drives your request fees. The dashboard is included at no additional cost.

Estimating your bill

Figure 2 shows how the three dimensions add up for three example workloads.

Example 1: One protected resource. One Application Load Balancer serving 20 million requests per month.

  • Resource fee: 1 resource × $0.01 per hour × 730 hours = $7.30
  • Base request fee: 20 million × $0.60 per million = $12.00
  • Total: $19.30 per month

Example 2: A larger footprint. 40 resources serving 150 million requests per month.

  • Resource fee: 40 × $7.30 = $292.00
  • Base request fee: 150 million × $0.60 per million = $90.00
  • Total: $382.00 per month. At this size, the resource fee is the larger share.

Example 3: Advanced protections. 5 resources, 300 million requests, 30 million of them evaluated by advanced protections.

  • Resource fee: 5 × $7.30 = $36.50
  • Base request fee: 300 million × $0.60 per million = $180.00
  • Premium request fee: 30 million × $5.00 per million = $150.00
  • Total: $366.50 per month

 

Figure 2: How the three dimensions add up for three example workloads

Figure 2: How the three dimensions add up for three example workloads

To estimate your own bill, start with how many resources each protection pack (web ACL) is associated with, since that drives the resource fee. For request volumes, AWS WAF publishes Amazon CloudWatch metrics for each protection pack (web ACL) and each protected resource, including the requests your advanced protections evaluate. The Security analytics dashboard gives you the same traffic view without building your own reports.

A few architectural choices can also help. Where it fits your architecture, protecting traffic at Amazon CloudFront can cost less than protecting many downstream resources one by one. If you serve many customer domains, Amazon CloudFront SaaS Manager lets you manage them as tenants of one multi-tenant distribution, so you can apply one protection pack across them. Scope-down statements send advanced protections only the traffic that warrants them, such as login or checkout paths.

Availability and getting started

The new AWS WAF pricing is available starting today. To get started, open the AWS WAF console, review your protection packs (web ACLs) and their resource associations, and review the examples on the AWS WAF pricing page.

Frequently asked questions

Does AWS WAF charge for requests it blocks? Yes. AWS WAF bills each request it inspects, including the requests it blocks. The protected resource bills those requests as usual, except Amazon CloudFront, which doesn’t charge for requests that AWS WAF blocks (learn more).

If a request passes through two protection packs (web ACLs), is it billed twice? Yes. For example, if a request passes a protection pack (web ACL) on a CloudFront distribution and another on the Application Load Balancer behind it, each protection pack (web ACL) bills it.

Does the Security analytics dashboard cost extra? No. The dashboard is included with AWS WAF at no additional cost.

Does pricing change for AWS Marketplace managed rule groups or AWS Shield Advanced? No. Pricing for AWS Marketplace managed rule groups and AWS Shield Advanced stays the same, and resources protected by Shield Advanced stay on their current pricing.

Is there a free tier? AWS WAF does not have a standalone free tier. If you serve your application through CloudFront and it handles fewer than 1 million requests per month, the CloudFront flat-rate Free plan includes AWS WAF at $0 per month. For plan details, see CloudFront flat-rate pricing plans.

What if my application needs more than 2,500 WCU? Open an AWS Support case to request a capacity increase.

Conclusion

The new AWS WAF pricing makes cost easier to plan around, so it does not become a blocker to security best practices. Your bill follows three things you can measure: the resources you protect, the requests AWS WAF inspects, and the requests that advanced protections evaluate. Adding, changing, or reordering rules doesn’t change your rate, and turning on Bot Control common protections or the Anti-DDoS rule group doesn’t add a subscription. The Security analytics dashboard gives you 21 days of traffic visibility at no additional cost.

To see what the change means for you, review the examples on the AWS WAF pricing page, or model a new workload in the AWS Pricing Calculator.

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


Fenil Patel

Fenil Patel

Fenil Patel is a Solutions Architect on the AWS Edge Services team. He helps customers build fast, secure, and resilient applications using Amazon CloudFront, AWS WAF, AWS Shield, and AWS Global Accelerator. He specializes in web acceleration, perimeter security, and CDN migrations.

Eitav Arditti

Eitav Arditti

Eitav is a Senior Solutions Architect at AWS and a technology leader with over 15 years of experience in the tech industry. He specializes in edge computing, serverless, and platform engineering, and works with engineering teams to design secure, globally scalable architectures on CloudFront and AWS WAF. His current focus is on internet-scale systems—from global content delivery to edge security.

Alok Rana

Alok Rana

Alok is a Finance Business Partner at AWS, supporting the Perimeter Protection portfolio, including AWS WAF and AWS Shield. He brings experience in strategic finance, product pricing, deal strategy, and P&L management, plus Transaction Services work at EY and PwC. He partners with Sales, Product, and Engineering teams to drive growth, shape pricing strategy, and support strategic customer engagements.

Introducing API and AI security on AWS, from discovery to protection

Post Syndicated from Gopinath Durairaj original https://aws.amazon.com/blogs/security/introducing-api-and-ai-security-on-aws-from-discovery-to-protection/

APIs have run digital businesses for more than a decade. For a while, there seemed to be nothing new left to say about them. That changed in 2026, when AI endpoints joined them. Teams now run large language model (LLM) inference endpoints, Model Context Protocol (MCP) servers, and Agent2Agent (A2A) servers beside their REST APIs, on services such as Amazon Bedrock, Amazon Bedrock AgentCore, and Amazon Elastic Kubernetes Service (Amazon EKS), and more companies sell their API as the product itself. On the other end, AI agents read API descriptions, pick the tools they need, and chain calls with no person clicking through an app.

APIs have always had two kinds of callers: other services and people who use an app. Now there’s a third: AI agents that act on a person’s behalf. It feels like everyone has a personal AI agent that can call APIs for them. Who knew curl would be important again?

Today, we’re launching capabilities across AWS WAF, Amazon CloudFront, Application Load Balancer, and Amazon API Gateway that help you discover and protect the APIs and AI endpoints that services, apps, and AI agents call:

  • API Portal, a new feature in Amazon API Gateway, discovers your APIs and AI endpoints.
  • API Security, a new managed rule group in AWS WAF, protects your APIs.
  • AI Security, a new managed rule group in AWS WAF, protects your AI endpoints.

All three are generally available today. You can enable discovery in API Portal for one account or for your organization in AWS Organizations. The two rule groups protect the resources that you associate with your protection pack (web ACL). They work together: API Portal shows which discovered endpoints AWS WAF protects, and the security events that AWS WAF detects appear on each managed API’s detail page.

Same APIs, new callers, new attack surface

Your APIs are the same APIs they always were. What changed is how you expose them, who calls them, and what threatens them.

How you expose them.

A new MCP server or LLM endpoint takes minutes to stand up. It can be placed behind a load balancer or a CloudFront distribution without ever passing through your API gateway, so it’s missing from the API registry and the security review. An agent that can reach it doesn’t need your documentation, either, because the endpoint describes itself: an MCP client asks the server for its tools with tools/list, and an A2A client reads the agent card that the server publishes.

Who calls them.

The following table compares the three kinds of callers that reach your APIs today.

Caller

What normal looks like

What abuse looks like

What it means for protection

Service to service

Predictable, authenticated calls that repeat the same pattern

A stolen API key, or a partner that scrapes beyond its contract

Track rate and behavior for each API key and endpoint

Person to service, through an app

Sessions and UI-driven calls at a human pace

Account takeover and scripted checkouts

Browser-based signals, such as CAPTCHA and browser fingerprints, apply here

AI agent to service, for a person

Human intent with machine behavior, from an HTTP client or an automated browser

An agent with stolen credentials, or a bot that poses as an agent

Browser signals only go so far, so you need visibility into the API itself

What threatens them. The APIs behind your web and mobile apps were built for one client: your own app. Your app calls them in the right order, at a human pace, with input it already validated. Legitimate agents now call those same APIs directly, and so do attackers and fraudsters. None of them have to follow the rules that your app follows.

What we’re launching

Here’s how we respond to those changes, as shown in Figure 1. In the figure, services, people, and AI agents call your APIs through their entry points. There, API Portal maps your endpoints, and AWS WAF runs API Security and AI Security on the same traffic to stop threats.

Figure 1: API Portal inventories the APIs and AI endpoints that services, people, and AI agents call. AWS WAF protects the entry points in front of them

Figure 1: API Portal inventories the APIs and AI endpoints that services, people, and AI agents call. AWS WAF protects the entry points in front of them

  • API Portal builds an inventory of your APIs from their configuration and live traffic, identifies which of them are AI endpoints (LLM inference, MCP, and A2A), and shows you what to protect. It does this by analyzing configuration and traffic across your API entry points: CloudFront, Application Load Balancer, and API Gateway.
  • API Security covers three kinds of API abuse: broken object level authorization, authentication attacks such as tampered tokens and credential stuffing, and reconnaissance such as probing for undocumented routes. It does this with rules that work from a single request and with behavioral detections that learn your traffic.
  • AI Security identifies your AI traffic (LLM inference, MCP, and A2A), validates MCP and A2A requests against their protocol, and checks prompts and responses through Amazon Bedrock Guardrails for prompt attacks, harmful content, and sensitive information.

All three work with Amazon CloudFront, Amazon API Gateway REST APIs, and Application Load Balancer. For the current list of supported resources, protocols, and endpoint types, see AWS WAF API Security and AWS WAF AI Security rule group in the AWS WAF Developer Guide.

The three capabilities live in two places. API Portal is in the Amazon API Gateway console. That’s where it can be found, not what it covers: it discovers APIs behind CloudFront, Application Load Balancer, and API Gateway alike. API Security and AI Security are in the AWS WAF console.

Discover: You can’t secure an invisible API

Ask a platform team how many APIs they run, and you’ll get a number from a registry. Ask what’s answering requests on the internet right now, and the number changes. The MCP server that a team set up for a hackathon isn’t in the registry. Neither is the v1 endpoint that nobody turned off. Both still answer requests.

API Portal builds the inventory from both live traffic and API configuration. You enable discovery in API Portal for one account or for your organization in AWS Organizations, and you can exclude resources that you don’t want in the inventory. It reads the service logs and configuration records of your API entry points. There’s nothing to attach, no logs to forward, and no traffic to reroute. It lists the endpoints that receive traffic, by host, path, and HTTP method. Every endpoint starts as a shadow API: deployed and reachable, but not yet governed. When you promote it, it becomes a managed API. For APIs you manage, API Portal also flags zombie APIs, which have no traffic and no configuration change for a set period, and orphaned APIs, whose owning account was closed or removed from your organization. Retire a zombie API that nothing needs, and resolve the ownership of an orphaned one. For the classification rules, see the API Portal Developer Guide.

API Portal also discovers your AI endpoints. It reports each endpoint’s type, such as an LLM inference endpoint, an MCP server, or an A2A server. It finds them in the traffic at the same entry points (CloudFront, Application Load Balancer, and API Gateway) and lists them in the same inventory as your other APIs, so you don’t build a separate view for them. Combined, one row can show a shadow MCP server that nobody manages yet. Figure 2 shows the inventory.

Figure 2: The API inventory in API Portal lists the endpoints discovered behind API Gateway and Application Load Balancer, with each endpoint's AWS WAF status, classification, and AI workload type

Figure 2: The API inventory in API Portal lists the endpoints discovered behind API Gateway and Application Load Balancer, with each endpoint’s AWS WAF status, classification, and AI workload type

“We can manage our API environment more effectively when we have a clear picture of what’s running across AWS. API Portal gives us that visibility without requiring teams to change how they deploy APIs or route traffic, helping us create a more complete view across the enterprise.”
— Mike Hasani, Senior Software Engineer, Principal Financial Group

Some abuse shows in one request. Some appears only over time.

Two requests show why protecting an API takes two kinds of detection. Here’s the first one:

GET /v1/orders/48213 HTTP/1.1
Host: orders.example.com
Authorization: Bearer eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJzdWIiOiJhZG1pbiIsInJvbGUiOiJhZG1pbiJ9.

This JSON Web Token (JWT) declares alg: none. It asks your API to skip signature verification, and a correctly built client doesn’t send that. The API Security managed rule group blocks the request before it reaches your origin, from the first request and with no learning period. The same rules catch other token tampering, such as pointing the token at a signing key that the attacker controls. These rules check the structure of a token in the Authorization header. They don’t verify its signature, so your application still has to validate the token. For the full list of rules and what each one does by default, see API Security managed rule group in the AWS WAF Developer Guide.

Here’s the second one:

GET /accounts/1337 HTTP/1.1

Nothing is wrong with this request, and the caller’s token is valid. It’s abuse only if the caller doesn’t own account 1337, and no single request can tell you that. This is broken object level authorization (BOLA), the first entry in the OWASP API Security Top 10.

So, the managed rule group also learns. It builds a baseline from your own traffic and looks for callers who don’t fit it. There’s nothing to set up for this. You don’t turn on logging or mirror traffic.

The hard part is to avoid flagging your own scripts. For example, a nightly export job reads thousands of records on a steady machine schedule. On those two signs alone, it looks like an attacker. So a detection reaches high confidence only when different kinds of signs agree, and at least one is something your own traffic never does. For example, the caller reaches records through a sequence of calls that your app never makes, or your API keeps denying it access. High confidence also needs a caller that AWS WAF can identify from a credential on the request, such as a token. A caller that AWS WAF knows only by IP address stays at medium confidence. Figure 3 compares a nightly export job with an attacker on these signs.

Figure 3: Volume and timing alone don't reach high confidence. A sign that your own traffic never shows has to agree with them

Figure 3: Volume and timing alone don’t reach high confidence. A sign that your own traffic never shows has to agree with them

The behavioral detections cover more than object access. They also flag credential stuffing, where one source presents an unusual number of different credentials in the Authorization header, and probing, where a caller keeps requesting routes or parameters that your traffic never uses.

The same thinking applies to the response, what your APIs send back. The behavioral detections take account of the status codes that your application returns, such as a caller’s rate of denied or failed requests. A caller stands out when, for example, its successful calls turn into a run of authorization failures. API Security doesn’t inspect the content of responses. Figure 4 shows the APIs view of the protection pack (web ACL) dashboard in the AWS WAF console.

Figure 4: The APIs view of the protection pack (web ACL) dashboard shows API Security detections over time, the detections that matched the most requests, and how AWS WAF handled the labeled requests.

Figure 4: The APIs view of the protection pack (web ACL) dashboard shows API Security detections over time, the detections that matched the most requests, and how AWS WAF handled the labeled requests.

Every detection is a label under awswaf:managed:aws:api-security:. A label starts with a stage (attack, recon, or warning) and names the finding. Behavioral detections also end with a confidence (high, medium, or low). Each rule has its own default action. The single-request rules that identify token tampering and unsafe methods block, and the posture and schema discovery rules count. Behavioral detections block at high confidence and count at medium and low confidence, at either stage. Detections that work from a single request have no confidence. For example, attack:alg_none:jwt_header and attack:object_level:high block, and recon:path_schema counts. AWS WAF also repeats a caller’s finding as an actor_identity label on that caller’s later requests across the whole protection pack (web ACL), for about five minutes after the last detection. At high confidence, the rule group blocks those requests by default. At medium and low confidence it counts them, and your own rules can act on the label.

AI Security understands the protocols that agents speak

LLM inference endpoints, MCP servers, and A2A servers are APIs, too. API Portal shows you which of your endpoints they are, and the API Security managed rule group already inspects their requests like any other API path.

The AI Security managed rule group adds checks made for agent traffic. It first recognizes the traffic and labels each request as LLM, MCP, A2A, or not recognized, so the checks that follow fit each endpoint type. It runs in the same AWS WAF protection pack (web ACL) as your other rules, with no new service to deploy.

Its first layer checks each MCP and A2A request against the protocol version that the request declares in its MCP-Protocol-Version or A2A-Version header. It supports MCP versions 2025-06-18, 2025-11-25, and 2026-07-28, and A2A version 1.0. For the current list, see AI Security managed rule group. These protocol compliance checks are deterministic and run entirely in AWS WAF. They come in two levels. Baseline covers the violations that let a request slip past routing or inspection, as the example that follows shows, and blocks by default. Strict adds malformed requests that are worth flagging but are usually an outdated client, and counts by default. Each failed check also adds its own label, so you can see exactly which check failed. Here’s the kind of trick that Baseline catches. The header tells every component in front of the MCP server that the request only lists tools. The body calls a tool that reads a file:

POST /mcp HTTP/1.1
Host: tools.example.com
Content-Type: application/json
MCP-Protocol-Version: 2026-07-28
Mcp-Method: tools/list
Mcp-Name: read_file

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "read_file",
    "arguments": { "path": "/etc/passwd" }
  }
}

A gateway or authorizer that trusts the header treats the request as read-only, and the server runs the tool. AWS WAF blocks the request at the API entry point, because the header and the body disagree about the method.

Its second layer checks content through Amazon Bedrock Guardrails. You don’t create or configure a guardrail for this. You turn on the option in the rule group and choose a service role, and AWS WAF assumes that role to call Bedrock Guardrails with your account’s identity. Bedrock Guardrails returns a score for each check. AWS WAF groups the scores into three levels (high, medium, and low), and the rule group has one rule for each check at each level, so you choose the action for each one. AWS WAF picks the checks for each endpoint type and each direction, as the following table shows. Response checks run only when you turn on response inspection. They cover the response body up to the body size that AWS WAF inspects for that resource, and content beyond that size isn’t checked.

Bedrock Guardrails check

What it looks for

On requests

On responses

Prompt attack

Jailbreaks, prompt injection, and attempts to extract the system prompt

Yes

MCP and A2A only

Content filter

Hate, insults, sexual content, violence, and misconduct

LLM and A2A only

No

Sensitive information

Personal data such as card numbers, US Social Security numbers, email addresses, and bank account numbers, plus credentials such as passwords and AWS access keys

No

Yes

By default, AWS WAF blocks a high-severity prompt attack, on the request or the response. Everything else counts and adds a label that names what matched, such as a prompt injection or a card number. You can change the action for any rule. If Bedrock Guardrails can’t check a request, AWS WAF adds a label that says why and lets the request through. The label is guardrails:not_assessed when the content can’t be assessed, such as an empty prompt. It’s guardrails:call_failed when the call to Bedrock Guardrails fails, plus a second label with the reason, such as guardrails:call_failed:throttling. Like every label, these appear in your AWS WAF logs and CloudWatch metrics. For how labels work, see Web request labeling in AWS WAF. To fail closed when the call to Bedrock Guardrails fails, set the Guardrails_CallFailed rule to block. Throttling then blocks requests, too. Content checks run in the supported Regions listed in AWS WAF AI Security rule group. Figure 5 follows one request through these checks.

Figure 5: AWS WAF recognizes agent traffic and checks its protocol itself, and calls Amazon Bedrock Guardrails to check the prompt on the way in and the answer on the way out

Figure 5: AWS WAF recognizes agent traffic and checks its protocol itself, and calls Amazon Bedrock Guardrails to check the prompt on the way in and the answer on the way out

The AI Security labels follow the same steps, under awswaf:managed:aws:ai-security:. For example, traffic:recognized_mcp says what the traffic is, protocol_compliance_level:baseline:mcp is the level you act on, protocol_compliance_check:mcp_method_mismatch names the check that failed, and request:guardrails:prompt_attack:severity:high carries the Bedrock Guardrails result. For the full label list, supported protocols, and configuration, see AI Security managed rule group. Figure 6 shows the AI endpoints view of the protection pack (web ACL) dashboard.

Figure 6: The AI endpoints view of the protection pack (web ACL) dashboard shows AI Security detections over time, the Amazon Bedrock Guardrails findings that matched the most requests, and how AWS WAF handled AI traffic

Figure 6: The AI endpoints view of the protection pack (web ACL) dashboard shows AI Security detections over time, the Amazon Bedrock Guardrails findings that matched the most requests, and how AWS WAF handled AI traffic

Every detection is a label, and labels work with the rest of AWS WAF

Every detection from the API Security and AI Security rule groups is also a label on the request. Any rule that runs later in your protection pack can match those labels and combine them with labels from other managed rule groups. Examples are AWS WAF Bot Control, AWS WAF Fraud Control account takeover prevention, and the Amazon IP reputation list. That list draws on MadPot, the threat intelligence tool that Amazon uses to protect customers from cybercrime. Use request labels in your own rules. Labels from response checks, such as sensitive information in a response, drive the AI Security rule group’s own actions and appear in your CloudWatch metrics.

Here are four examples of what that makes possible:

  • Rate limits keyed on labels. One probe for your API schema can be noise. Fifty from the same caller in 5 minutes is reconnaissance. A rate-based rule scoped to the reconnaissance labels counts only those requests.
  • No unsigned agents on your MCP server. If your MCP server is only for agents you work with, block requests without an access token or a verified Web Bot Auth signature. Then match the Bot Control bot name label for the operators you trust. Application Load Balancer JWT verification, CloudFront Functions, Lambda@Edge, or your MCP server still validates the token itself.
  • Two weak signals that add up. A low-confidence API Security label or a Bot Control signal by itself isn’t enough to block. Block only the requests that carry both.
  • Tighter limits on sensitive paths. Bot Control targeted protection labels callers by confidence. Use those labels to set a lower rate limit on /checkout than on the rest of your API.

The following rule shows the first example. For each IP address, it counts the requests that carry an API Security reconnaissance label. When an address sends more than 50 requests in 5 minutes, the rule blocks them. Place it after the API Security managed rule group so that its labels are available.

{
  "Name": "RateLimitAPISecurityRecon",
  "Priority": 40,
  "Statement": {
    "RateBasedStatement": {
      "Limit": 50,
      "EvaluationWindowSec": 300,
      "AggregateKeyType": "IP",
      "ScopeDownStatement": {
        "LabelMatchStatement": { "Scope": "NAMESPACE", "Key": "awswaf:managed:aws:api-security:recon:" }
      }
    }
  },
  "Action": { "Block": {} },
  "VisibilityConfig": { "SampledRequestsEnabled": true, "CloudWatchMetricsEnabled": true, "MetricName": "RateLimitAPISecurityRecon" }
}

Labels don’t have to stop at AWS WAF. With custom request headers and dynamic label interpolation, AWS WAF can forward the matched labels to your origin. Your application then sees what AWS WAF saw and can show less data, require step-up authentication, or log the request for review. For how it works, see Do more with AWS WAF labels using dynamic label interpolation.

We keep adding labels, so the documentation holds the current lists. See API Security labels, AI Security labels, and AWS WAF Bot Control rule group.

See what the rule groups found, and act on it

Every label is also an Amazon CloudWatch metric, with no extra setup, and appears in your AWS WAF logs. The protection pack (web ACL) dashboard in the AWS WAF console shows them as traffic arrives. In API Portal, each managed API’s detail page shows the security events that AWS WAF detected on it, as shown in Figure 7.

Figure 7: Each managed API's detail page in API Portal shows the events that AWS WAF detected on it

Figure 7: Each managed API’s detail page in API Portal shows the events that AWS WAF detected on it

The managed rule groups enforce their own detections at your API entry points. To write a rule of your own, start from a label. Scope a rate-based rule to the paths it appears on, key it on the IP address or TLS fingerprint, and start in count mode.

When a detection type spikes, your existing alerting can act on it. That can be a CloudWatch alarm, or the observability or security platform that already reads your metrics and logs. For log destinations, see Logging AWS WAF protection pack (web ACL) traffic.

How we test API Security

No single test shows whether a detection works, so we combine several for API Security:

  • Automated red teaming – LLM-powered agents run continuously against deliberately vulnerable test APIs that we maintain. They probe, adapt, and chain steps the way an attacker does.
  • A growing attack suite – Each working exploit that the agents find becomes a repeatable test case. We replay the suite against the managed rule group when it changes.
  • Realistic legitimate traffic – We replay traffic such as batch jobs, seasonal spikes, and power users next to the attacks, so we measure false positives together with detections.

Results from our test environment don’t transfer directly to yours, because your APIs and the attacks against them differ. The numbers that matter come from your own traffic, and the next section shows how to get them. API Security is designed to detect and block callers who walk object IDs to harvest other users’ records, and tokens whose structure shows tampering. It also flags credential stuffing against the Authorization header and callers who probe for routes that your API doesn’t serve. Efficacy and expansion work for API Security, like AWS WAF security in general, is a continuous effort. For the current list of detections, see API Security managed rule group in the AWS WAF Developer Guide.

Check what gets blocked on your own traffic

The managed rule groups apply their default actions from the moment you add them. To see what a rule group finds before it blocks anything, first add it with all rule actions overridden to count, review the results, and then remove the override. Later, to review one rule, override only that rule to count. AWS WAF still evaluates an overridden rule and adds its label, so you see what it would have blocked on your own production traffic.

Behavioral detections need time to learn your traffic. For the learning period, see Testing and deploying AWS WAF API Security. For a step-by-step evaluation, see Testing and tuning your AWS WAF protections.

Availability

API Portal, API Security, and AI Security are generally available today. Detection of data exfiltration and sensitive data exposure in responses for API Security is coming soon.

Pricing

Each capability is priced by the service it runs in. For API Portal, see Amazon API Gateway pricing. For the API Security and AI Security managed rule groups, see AWS WAF pricing. For the content checks that AI Security runs through Bedrock Guardrails, see Amazon Bedrock pricing.

Get started

To get started, complete the following steps:

  1. In API Portal, enable discovery for one account or for your organization in AWS Organizations, and exclude any resources that you don’t want in the inventory. This step doesn’t need AWS WAF. As the inventory builds, look for endpoints you didn’t expect, such as shadow APIs and AI endpoints, and add them to your managed APIs.
  2. In the AWS WAF console, add the API Security managed rule group to the protection pack in front of your APIs. Start with all rule actions overridden to count, review what it finds on your own traffic, and then remove the override.
  3. If you run AI endpoints, add the AI Security managed rule group to the same protection pack. To turn on the Bedrock Guardrails checks, choose a service role that AWS WAF can assume to call Bedrock Guardrails, and turn on response inspection if you want responses checked and your protection pack (web ACL) protects CloudFront or an Application Load Balancer. Start with the four rules that block by default overridden to count, review what they find on your own traffic, and then remove the overrides one rule at a time.
  4. After the first baseline is available, the behavioral detections label abuse and block it at high confidence. Watch the labels in your CloudWatch metrics, and in your AWS WAF logs if you turn on logging.
  5. Use those labels in your own rules, such as a lower rate limit on your most sensitive paths.

For step-by-step instructions, see Adding the API Security managed rule group and Adding the AI Security managed rule group in the AWS WAF Developer Guide.

Best practice: Put Amazon CloudFront in front of your APIs

Put Amazon CloudFront in front of your API Gateway APIs, your Application Load Balancers, and any other endpoint that is public on port 80 or 443, and associate your protection pack (web ACL) with the CloudFront distribution. That includes APIs that run outside AWS, with another cloud provider or on premises: CloudFront works with any HTTP or HTTPS origin, so those APIs get the same delivery, acceleration, and protection. The same applies to your MCP servers, A2A servers, and LLM endpoints, whether you host them on Amazon Bedrock AgentCore Gateway, on Amazon EKS, or elsewhere. With this setup:

  • AWS WAF inspects requests at the edge, before they reach your origin.
  • AWS WAF sees the caller’s own IP address.
  • AWS WAF mitigates attacks close to their source.
  • For origins in AWS, CloudFront VPC origins mean your Application Load Balancer or private API Gateway REST API isn’t exposed directly to the public internet and is reached through CloudFront.

For more information, see Use AWS WAF protections and Restrict access with VPC origins in the Amazon CloudFront Developer Guide, and the posts Introducing Amazon CloudFront VPC origins and Accessing private Amazon API Gateway endpoints through custom Amazon CloudFront distribution using VPC Origins.

Conclusion

Your APIs are the same APIs they always were. The callers changed, and so did the attack surface. With API Portal, you can see the APIs and AI endpoints that the internet is calling. With API Security and AI Security in AWS WAF, you can protect them at their entry points, without changes to your backend code.

AWS built the building blocks for what comes next: an inventory from traffic, labels that you can act on, and protection where requests first arrive. As agents and the protocols they speak change, those building blocks are where new protection shows up. For the most up-to-date information, see AWS WAF API Security and AWS WAF AI Security in the AWS WAF Developer Guide.

To get started, enable discovery in API Portal, and add the API Security and AI Security managed rule groups in the AWS WAF console.

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


Gopinath Durairaj

Gopinath is a product leader who built enterprise technology businesses across cybersecurity, cloud infrastructure, AI / ML and networking. He currently leads web application security product strategy at AWS, a portfolio that includes AWS WAF, API security, and security for AI-powered applications.

Eitav Arditti

Eitav is a Senior Solutions Architect at AWS and a technology leader with over 15 years of experience in the tech industry. He specializes in edge computing, serverless, and platform engineering, and works with engineering teams to design secure, globally scalable architectures on CloudFront and AWS WAF. His current focus is on internet-scale systems—from global content delivery to edge security.

Gabe Sin

Gabe is a Senior Product Manager at AWS on the Amazon API Gateway team, focused on API management. Before AWS, he led product and strategy at a cryptocurrency exchange, where he built the company’s end-to-end analytics infrastructure on AWS, bringing the same visibility and governance to data that he now brings to APIs.

Aykut Tuzunkan

Aykut is a Senior Technical Program Manager at AWS, based in Seattle, with more than 15 years of experience across edge security, distributed networks, and infrastructure capacity. He owns AWS WAF’s cross-org programs, which cover protection for web applications, APIs, bots, and AI traffic. He focuses on adding new protections to AWS WAF and strengthening the ones customers rely on.

Protect identity data with point-in-time recovery in Amazon Cognito

Post Syndicated from Howie Li original https://aws.amazon.com/blogs/security/protect-identity-data-with-point-in-time-recovery-in-amazon-cognito/

Amazon Cognito helps you implement secure sign-in and access control for users, microservices, and AI agents in minutes. Many of you rely on it for some of the most critical data you operate: the identities and attributes your applications use to authenticate and authorize every request. Recently, we launched point-in-time recovery (PITR) for Amazon Cognito user pools, which lets you restore a user pool to an earlier point in time if an accidental deletion, a faulty migration, or an erroneous bulk operation changes data you need. It’s turned on automatically for user pools on the eligible feature plans.

Before this launch, protecting user pool data meant building your own solution, such as exporting user attributes and group data on a schedule. That approach was time-consuming to build and operate, versioning the exports to find a clean point in time was another challenge, and reconstructing a pool from them was complicated. Users also got new sub identifiers as part of the restore process, which might break any downstream reference to the originals. Passwords, multi-factor authentication (MFA) settings, and passkeys might not be recovered, so every affected user had to reset.

In this post, we show you how to recover a user pool after an erroneous bulk operation, using the preview to review changes before you approve them.

How PITR works

On eligible user pools (see Prerequisites), Amazon Cognito now tracks changes so you can recover the pool to any point within the recovery window. The length of that window depends on your user pool feature plan. The window accrues from the time the pool is on an eligible feature plan, and you can only recover to a point at which PITR coverage already existed.

One behavior to understand is what happens to passwords during a recovery. A recovery restores passwords for users it recreates. A user who still exists and changed their password after the target time keeps the same password. The recovery doesn’t revert password changes, so users who legitimately changed their credentials don’t lose them.

A recovery is preview-based and has three steps:

  1. Initiate a recovery to a target point in time (InitiatePointInTimeRecovery). Amazon Cognito pauses write operations to the user pool and generates a preview for your review before any changes are applied. Read operations and sign-in continue to work normally. The call returns a RestoreId.
  2. Review the recovery preview (DescribePointInTimeRecovery). Amazon Cognito reports how many users, groups, MFA settings, and passkeys the recovery would create, update, or delete to return the pool to its state at the target time.
  3. Approve or cancel. If the preview looks right, you approve the recovery with StartPointInTimeRecovery, and Amazon Cognito restores the pool to its state at the target time. If it doesn’t look right, you cancel it with CancelPointInTimeRecovery; no changes are applied, and write operations resume.

Prerequisites

To follow along with this post, you need:

  • An AWS account with an Amazon Cognito user pool on the Essentials or Plus feature plan. The recovery window is up to 1 day on Essentials and up to 14 days on Plus. The examples use a pool named anycompany-prod-user-pool in the US East (N. Virginia) AWS Region (us-east-1).
  • The AWS Command Line Interface (AWS CLI) configured with permissions for the Amazon Cognito user pools PITR operations.

Before you run a recovery, keep these limits in mind:

  • You can run one recovery at a time per user pool, and one successful recovery per 24 hours per pool.
  • The target time must be at least 15 minutes in the past and no earlier than the pool’s creation time.
  • Recovery is initiated from the pool’s primary Region and can’t start while a multi-Region replication (MRR) operation, such as replica creation or deletion, is in progress on the pool.

Recovering a user pool after an unintentional change

AnyCompany runs its user sign-in on an Amazon Cognito user pool, anycompany-prod-user-pool.

At 15:45 PDT, an operator runs a bulk change that’s supposed to set an attribute on a subset of users. A defect in the script instead deletes and modifies users. By 15:54 PDT, support receives cases of failed sign-ins and the operator halts the script. The team needs the pool as it was at 15:39 PDT. They decide to use PITR and preview the recovery before approving it.

Step 1: Start the recovery

The team initiates a recovery with a target time of 15:39 PDT by running the command in the preceding example. Figure 1 shows the same step in the console, where the team enters the target time and starts the recovery. The response includes a RestoreId that identifies this recovery throughout the workflow, along with a RestoreStatus and the RestoreTimestamp that you targeted.

aws cognito-idp initiate-point-in-time-recovery \   
--user-pool-id us-east-1_EXAMPLE \   
--restore-timestamp 2026-10-28T22:39:00Z
Figure 1: Initiating a recovery to a target point in time

Figure 1: Initiating a recovery to a target point in time

Step 2: Review the recovery preview

DescribePointInTimeRecovery returns the Restoration for this RestoreId, including a RestorePreview that summarizes how many entities will be affected if the pool is returned to the target time. The team reviews the preview and confirms the number of affected users matches the scope.

aws cognito-idp describe-point-in-time-recovery \   
--user-pool-id us-east-1_EXAMPLE \   
--restore-id a69b8c1e-9866-441d-EXAMPLE11111

In this case, the preview reports 16 users to create and 5 users to update, as the following sample response shows. Figure 2 shows the same preview in the console, with the create, update, and delete counts for users, groups, MFA settings, and passkeys. These numbers match the scope of the bulk operation, so the team continues. If the preview had shown unexpected changes, the team could cancel the recovery with no changes applied.

 {
      "Restoration": {
          "RestoreId": "a7c41e92-0d3b-4f6a-EXAMPLE11111",
          "RestorePreview": [
              {
                  "Entity": "Users",
                  "CreateCount": 16,
                  "DeleteCount": 0,
                  "UpdateCount": 5
              },
              {
                  "Entity": "Groups",
                  "CreateCount": 0,
                  "DeleteCount": 0,
                  "UpdateCount": 0
              },
              {
                  "Entity": "User MFAs",
                  "CreateCount": 0,
                  "DeleteCount": 0,
                  "UpdateCount": 0
              },
              {
                  "Entity": "Passkeys",
                  "CreateCount": 0,
                  "DeleteCount": 0,
                  "UpdateCount": 0
              }
          ],
          "RestoreStatus": "PREVIEW_GENERATED",
          "RestoreTimestamp": 1793227140,
          "TriggerTimestamp": 1793228700
      }
  }

Figure 2: Reviewing the recovery preview before applying

Figure 2: Reviewing the recovery preview before applying

Step 3: Approve the recovery

If the preview is correct, the team approves the recovery with the command in the following example, and Amazon Cognito restores anycompany-prod-user-pool to its 15:39 PDT state. Figure 3 shows the approval step in the console, and Figure 4 shows the confirmation that appears after the recovery starts. Writes to the user pool resume automatically after the recovery completes or is canceled.

aws cognito-idp start-point-in-time-recovery \    
--user-pool-id us-east-1_EXAMPLE \   
--restore-id a7c41e92-0d3b-4f6a-EXAMPLE11111

Figure 3: Approving the recovery

Figure 3: Approving the recovery

Figure 4: Recovery confirmation

Figure 4: Recovery confirmation

aws cognito-idp cancel-point-in-time-recovery \    
--user-pool-id us-east-1_EXAMPLE \   
--restore-id a7c41e92-0d3b-4f6a-EXAMPLE11111

Your application integration doesn’t change

Because PITR rolls back the data in your existing user pool rather than creating a new one, your application integration doesn’t need any changes. A recovery restores user data and leaves your user pool configuration in place, so configuration changes you made after the recovery point are preserved. For example, a custom attribute you added to the schema, an AWS Lambda trigger you updated, or a password policy you tightened stays as it is. The user pool ID also stays the same, and so do your app client IDs and secrets, managed login and domain, identity provider and SAML/OIDC configurations, and the provider Amazon Resource Names (ARNs) that services such as Amazon API Gateway and Application Load Balancer use to validate tokens. Recreated users keep the same sub identifiers, so downstream references to them keep working.

How PITR complements multi-Region replication

Multi-Region replication and PITR address different failure modes. Multi-Region replication keeps a synchronized replica of your user pool in another Region, so if the primary Region is impaired, you can fail over traffic to a replica Region with minimal downtime. PITR helps with data problems, such as erroneous bulk operations that corrupt your user pool’s state. You roll back to any point within your recovery window without changing your application integration.

Security considerations

A recovery changes the identity data that every sign-in and authorization decision depends on, so treat recovery permissions like any other high-impact administrative access.

  • Separate who initiates a recovery from who approves it. Because initiating and approving are separate API actions, you can assign them to different AWS Identity and Access Management (IAM) roles. Give an operator the permission InitiatePointInTimeRecovery, and give an approver the permission StartPointInTimeRecovery. Both permissions need DescribePointInTimeRecovery and ListPointInTimeRecoveries to review the preview, and CancelPointInTimeRecovery to stop a recovery. IAM keeps the two permissions on separate roles, but it doesn’t stop one person from assuming both. Assign the roles to different people or teams, and grant the approver role only for the duration of an approved change.
  • Treat initiating a recovery as sensitive. Initiating a recovery pauses write operations on the user pool until the recovery is approved or canceled. If no action is taken within 24 hours, the preview automatically cancels and write operations are resumed. While writes are paused, users can’t sign up, reset their passwords, or update their profiles. A user pool also allows only one successful recovery per 24 hours, so an unauthorized recovery uses up a recovery you might need for a real incident.
  • Review restored users after a recovery. A recovery recreates users who were deleted after the target time, including users you removed on purpose, such as employees who have left or compromised accounts. After a recovery completes, check the recreated users against your incident timeline. Disable any that should stay removed and revoke their sessions with AdminUserGlobalSignOut.
  • Monitor recovery activity. Amazon Cognito records PITR API calls in AWS CloudTrail. Create an Amazon EventBridge rule that notifies your security team whenever InitiatePointInTimeRecovery or StartPointInTimeRecovery is called, so that no recovery goes unnoticed.

Pricing

PITR is included at no additional charge in eligible feature plans with a recovery window of up to 1 day on the Essentials feature plan and up to 14 days on the Plus feature plan.

Conclusion

In this post, we showed you how to recover an Amazon Cognito user pool after an erroneous bulk operation with PITR, from reviewing the changes in a preview to approving the recovery. PITR provides protection for your users’ identities, with no custom export-and-restore pipeline to build or operate. Because the recovery happens in place on the same user pool, your application integration keeps working unchanged. PITR is already enabled for eligible user pools. Before you need it, separate the initiate and approve permissions, add an alert on recovery calls, and practice the preview workflow on a test pool.

To get started:

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


Howie Li

Howie Li

Howie is a Product Manager at Amazon Web Services, where he strives to make auth easy by default. Outside of work, Howie enjoys exploring cultures and food through travels and making new ice cream flavors inspired by them.

Sergii Nozhka

Sergii Nozhka

Sergii is a Senior Software Development Engineer at Amazon Web Services, where he works on Amazon Cognito, helping customers build secure and scalable identity experiences. Outside of work, Sergii enjoys cooking and traveling with family.

Priyank Bhardwaj

Priyank Bhardwaj

Priyank is a Software Development Manager at Amazon Web Services. He leads the User Pool Management team for Amazon Cognito, helping customers build secure and scalable identity experiences. Outside of work, Priyank enjoys running outdoors and working on DIY projects around the house.

Chinese-nexus actor’s Cairn AI agents found a zero-day on their own

Post Syndicated from CJ Moses original https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/

Amazon Threat Intelligence is sharing findings from an investigation into a Chinese-nexus threat actor using autonomous AI agents to conduct hacking operations with minimal human involvement. The actor gave the agents a simple goal: “obtain shell access.” During the campaign, the agents found a zero-day in an open-source application and used it to gain full control of a server. These findings show that agentic offensive operations are already happening, and defenders should prepare for the speed and persistence these tools enable.

Discovery

On September 10, 2026, Amazon Threat Intelligence identified a server with a publicly hosted instance of Cairn, an open-source autonomous AI penetration-testing framework, running without authentication. Because the operator left the server publicly accessible, the operational history of the platform was visible to anyone on the internet, including project configurations, actor prompts, and AI output. The operator wrote prompts in Simplified Chinese, and the timestamps in executed scripts were configured to China Standard Time.

Analysis of the instance revealed a campaign targeting IP addresses associated with universities in East Asia outside mainland China over an approximately 48-hour period beginning September 8, 2026.

Cairn and an overview of this campaign

Cairn was built as a research and problem-solving engine for defenders. Operating it is simple. Given a starting point and an objective in plain language, it coordinates multiple AI agents to find a path to that goal. That same ease of use makes it attractive to threat actors. In this campaign, the actor provided a list of targeted IP addresses with variations of the goal to “obtain shell access.” Based on those inputs, the AI agents planned, executed, and adjusted their approach as they learned, without the operator choosing each next step.

The campaign included several operations that varied widely in complexity and outcome. The following operations show both the persistence and the capability of autonomous AI agents.

Persistence against a hardened target

The most extensive operation targeted a Redis (remote dictionary server) instance at one university that was configured to allow access without authentication. Redis is a database that keeps frequently used data in memory so applications can retrieve it quickly, which can make it a valuable foothold inside a network. Over roughly 16 hours and 148 sequential actions, the agents worked through a long list of known techniques for taking control of an open Redis server. These included abusing Redis’s replication feature to load unauthorized code, escaping its scripting sandbox, writing to its configuration files, and corrupting its memory. The agents also attempted Log4Shell injection against another service running on the same system.

When those attempts failed, the agents mapped the internal Docker network topology through a server-side request forgery (SSRF) vulnerability in a co-located Qdrant instance and launched credential sprays against PostgreSQL, SSH, and several other services. None of these attempts succeeded.

A separate operation ran for more than 6 hours and targeted a university GPU server, which is a group of high-performance computers built for computing-intensive research. The agents first built a list of about 80 real usernames by researching the university’s public presence, including faculty directories, lab websites, archived web pages, and academic papers. Then, they tested more than 30,000 credential combinations against the server’s remote login (SSH), and, on other systems across the university network, an admin dashboard, a network storage device, a VPN server, and the university’s campus portal. They never found a working login.

Neither operation succeeded, yet together they show that the agents kept adapting for nearly a full day without human direction.

Zero-day discovery

Against a target running an open-source medical imaging AI application, the outcome was different. The agents identified the application’s framework, mapped its API endpoints, and found an upload endpoint with a filename parameter. They tested that parameter for path traversal, and the parameter was vulnerable. In about 11 minutes, the agents went from mapping the application’s API to arbitrarily writing files on the server.

In a later session, the agents used the same vulnerability to write a Python reverse shell payload to sitecustomize.py, a file Python automatically imports at interpreter startup. The agents then triggered a training API endpoint to spawn a new Python process. The new process imported the payload and established a reverse shell running as root.

At the time of discovery, this path traversal vulnerability in the medical imaging application did not correspond to any assigned security advisory and was unpatched. Amazon Threat Intelligence assesses with high confidence that it was a zero-day based on the absence of any corresponding fix, issue, advisory, or prior mention in vulnerability databases for the affected open-source project.

Subsequent use

In another session, the threat actor stepped in. After the agents discovered the zero-day, the actor then provided the agents with a proxy that tunneled into a second university network. The server that the proxy connected to was running the same vulnerable software, and we infer the actor had used the zero-day to compromise it and establish the tunnel. The actor directed the agents to use the tunnel to target other machines in that network.

Attribution

Amazon Threat Intelligence assesses with moderate confidence that this is a Chinese-nexus threat actor based on the Simplified Chinese prompts, the China Standard Time script timestamps, and the targeting of universities likely of strategic interest to China.

Actions taken by AWS

Amazon Threat Intelligence notified the project’s maintainers of the vulnerability, and they released a fix and a GitHub Security Advisory.

The affected organizations were non-AWS customers that AWS had no direct path to notify. Instead, AWS worked with a government partner to notify the organizations about the activity.

Adoption is growing

Gambit Security was one of the first organizations in the industry to document the use of Cairn by a threat group. Its research describes a separate, financially motivated actor using Cairn to target online retailers. Together, these cases show that this autonomous AI agent framework is being adopted in both espionage and criminal operations. Additional details are available in Gambit Security’s report.

What this means for defenders

The operational tempo in these cases compresses the window available for defensive response. An agent that discovers and exploits a zero-day in minutes completes its activity faster than many security operations centers can manually triage an alert. The agents that failed against the hardened Redis target ran continuously for 16 hours without breaks, sleep, or working-hour constraints. To keep pace, organizations should prioritize high-confidence detections that trigger automated response, with humans overseeing outcomes rather than reviewing every individual action.

Behind the scenes, AWS active defense systems use global honeypots (decoy systems that attract threat actors) and network traffic analysis to identify actors that are scanning for vulnerable systems, and then help restrict that activity at the network level. These protections are built into the AWS network at no extra cost to customers.

Indicators of compromise

The following addresses appear in records dated September 8 to 10, 2026.

142[.]4.98.145

142[.]4.107.34

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


CJ Moses

CJ Moses

CJ Moses is the CISO of Amazon Integrated Security. In his role, CJ leads security engineering and operations across Amazon. His mission is to enable Amazon businesses by making the benefits of security the path of least resistance. CJ joined Amazon in December 2007, holding various roles including Consumer CISO, and most recently AWS CISO, before becoming CISO of Amazon Integrated Security September of 2023.

Prior to joining Amazon, CJ led the technical analysis of computer and network intrusion efforts at the Federal Bureau of Investigation’s Cyber Division. CJ also served as a Special Agent with the Air Force Office of Special Investigations (AFOSI). CJ led several computer intrusion investigations seen as foundational to the security industry today.

CJ holds degrees in Computer Science and Criminal Justice, and is an active SRO GT America GT2 race car driver.

Your AWS Security, Identity, and Governance guide to re:Invent 2026

Post Syndicated from Brandon Carroll original https://aws.amazon.com/blogs/security/your-aws-security-identity-and-governance-guide-to-reinvent-2026/

The AWS Security, Identity, and Governance team invites you to join us at re:Invent in Las Vegas from November 30 to December 4, 2026. You know all too well that AI agents now act on their own across the systems you run, and that changes what identity, detection, network protection, and governance have to cover. re:Invent is the week to see how AWS is building security for that shift and to talk it through with the people building it.

Security sessions run every day of the week, nearly 120 of them across breakouts, chalk talks, workshops, code talks, builders’ sessions, and lightning talks. On Thursday, December 3, the Wynn hosts a full day of advanced security sessions in one venue. The sessions are built around five themes this year. They cover securing the agentic enterprise, building securely at the speed you ship, running one security operating model everywhere you run, regulatory confidence and digital sovereignty, and building a culture of security.

Keynotes

AWS leaders use the keynotes to announce new services, launches, and updates that will shape the year ahead in cloud. Many security launches debut during keynote week, and the keynotes set the context for the sessions you’ll attend in the security track. The Thursday keynote runs from 8:30 to 10:00 AM at The Venetian and is also streamed online.

Thursday, December 3: A full day of security deep dives at the Wynn

Security sessions start Monday morning and run through Friday. Thursday is different. 78 security sessions, most of them at the 300 level or above, fill the Wynn from 8:00 AM to 5:30 PM, so you can spend the whole day in one building without crossing the Strip. Rooms are on the Convention Promenade, the Upper and Lower Convention Promenades, and Level 1, and the Cristal 2 Content Hub runs lightning talks and theater sessions all day. The day includes 12 workshops, 11 builders’ sessions, and 22 chalk talks, so most of it is hands-on or interactive.

Three main stage talks from AWS security leaders run through the day in Bandol 1.

Time Talk Speaker
11:00 AM The Future of Security Chet Kapoor, AWS VP of Security, Search, and Observability
1:00 PM The Old Security Playbook Is Dead Amy Herzog, AWS Chief Information Security Officer
3:00 PM Operationalizing security for the future with best practices today Eric Brandwine, VP/Distinguished Engineer, AWS Security

Chet opens with how AWS is building security for a time when systems and threats both move at machine speed, and how customers secure their agent workloads. Amy follows with what happens when the window between a vulnerability existing and being exploited shrinks from years to minutes. She shares how AWS changed its own practices to stop AI-enabled threat actors and what you can change in your own operations. Eric closes the day by showing how to take the latest AWS security innovations from announcement to adoption across your organization, with the architectural patterns, operational practices, and mental models AWS teams use to raise their security bar.

Between sessions, stop by the Security Lounge in the Convention Lounge at the Wynn to recharge, meet other security practitioners, and visit kiosks from select AWS security partners.

Security sessions all week

You don’t have to wait for Thursday. Security sessions run every day, with 12 on Monday, 16 on Tuesday, 9 on Wednesday, and 3 on Friday, not counting repeats. Monday and Friday sessions are all at the Wynn. Tuesday and Wednesday sessions are spread across the Wynn, MGM Grand, and Caesars Palace, so check the venue when you build your agenda.

Sessions for every security domain

Whatever part of security you work in, the catalog has sessions for it. Here are a few to start with in each domain, and the full list can be found in the session catalog.

Application security and AWS Continuum

AWS Continuum runs through the application security sessions this year.

  1. SEC427 is a Monday 12:00 PM code talk that threat models an agentic development workflow from user story to deployment with AWS Continuum.
  2. SEC312 is a Tuesday 3:30 PM workshop where you run an on-demand penetration test against a live application with AWS Continuum.
  3. SEC311 is a Thursday 1:00 PM builders’ session that wires AWS frontier agents into an automated find-and-fix security loop.
  4. SEC384 is a Thursday 2:30 PM breakout on how AWS Continuum discovers, validates, and fixes code vulnerabilities in one workflow. SEC304 and SEC426 go deeper on AWS Continuum on Tuesday and Thursday.

Threat detection and incident response

  1. SEC323 is a Tuesday 3:30 PM workshop where you recover from a simulated ransomware event and prove the restore is clean.
  2. SEC405 is a Thursday 12:00 PM builders’ session that takes a vulnerable application from discovery to fix with Amazon Inspector, AWS Continuum, and Amazon GuardDuty.
  3. SEC501 is a Thursday 1:00 PM breakout that goes inside the research behind the GuardDuty detection engine.
  4. SEC390 is a Thursday 4:00 PM breakout on how Woodside handed SOC monitoring to AWS Security Incident Response to focus on threat hunting.

Identity and access management

  1. SEC388 is a Monday 10:00 AM breakout where the National Institutes of Health shares how it manages identity lifecycle across clouds.
  2. SEC424 is a Tuesday 2:30 PM chalk talk on how IAM evaluates your policies on every request.
  3. SEC362 is a Thursday 8:00 AM workshop where you build authentication, authorization, and audit for AI agents.
  4. SEC419 is a Thursday 11:30 AM chalk talk on OAuth delegation patterns for agents with Amazon Bedrock AgentCore Identity.

Cloud governance

  1. SEC302 is a Monday 10:00 AM breakout on building a governance foundation for AI workloads that grows with autonomous agents.
  2. SEC349 is a Thursday 8:30 AM workshop where you build a layered controls stack for a fleet of agents.
  3. SEC374 is a Thursday 1:30 PM breakout on how Moeve turned natural language into enforced governance controls.
  4. SEC351 is a Friday 9:00 AM breakout on running governance across AWS and other clouds as one operation.

Network and application protection

  1. SEC364 is a Tuesday 1:00 PM breakout on how Coupang secures its software and AI supply chains with AWS Network Firewall.
  2. SEC303 is a Wednesday 10:00 AM breakout on the network security capabilities AWS built for agentic workloads.
  3. SEC363 is a Thursday 12:00 PM breakout on what’s new in Amazon Route 53 Resolver DNS Firewall.
  4. SEC313 is a Thursday 2:30 PM builders’ session where you set up the AWS Network Firewall proxy for secure egress.

Data protection

  1. SEC206 is a Thursday 1:00 PM breakout on meeting digital sovereignty requirements with the AWS European Sovereign Cloud.
  2. SEC207 is a Thursday 2:30 PM lightning talk where Capital One explains how it runs payment cryptography in the cloud.
  3. SEC316 is a Thursday 4:00 PM builders’ session where teams race through post-quantum migration challenges.
  4. SEC204 is a Friday 11:30 AM breakout where AWS and DXC Technology share how to prepare for post-quantum cryptography at scale.

AI security

  1. SEC328 is a Tuesday 11:30 AM chalk talk on enforcing AI guardrails across your organization without slowing teams down.
  2. SEC237 is a Thursday 8:30 AM breakout on how AWS foundational security extends into AI services.
  3. SEC343 is a Thursday 12:00 PM builders’ session where you watch an MCP tool poisoning attack and build the defenses against it.
  4. SEC341 is a Thursday 3:00 PM workshop where you layer defenses for an AI agent from the prompt to tool execution.

Culture of security

Three sessions focus on how security teams work in the agentic era.

  1. SEC425 is a Wednesday 9:00 AM breakout on how AWS uses automated reasoning and neurosymbolic AI to prove security properties.
  2. SEC342 is a Thursday 11:30 AM breakout on the lessons the AWS Office of the CISO learned from Project Glasswing.
  3. SEC350 is a Thursday 4:00 PM chalk talk on building trust between people when agents work on your behalf.

Session types

Sessions come in several formats, and most security sessions sit under the Security, Identity, and Compliance (SEC) topic in the event catalog. If you attend in person, lightning talks are walk-up only. For every other format, you can reserve a seat in the event portal (login required) or join as a walk-up based on availability.

Format What to expect
Breakout sessions 60-minute presentations led by AWS security experts and customers
Chalk talks 60-minute interactive sessions where AWS experts whiteboard and take your questions
Code talks 60-minute sessions built around live coding and technical implementation
Builders’ sessions 60-minute small-group sessions where you build alongside an AWS expert
Workshops 120-minute hands-on sessions where you work directly with AWS services
Lightning talks 20-minute talks on a single focused topic

Security, Identity, and Governance track sessions

You can find all of the Security, Identity, and Governance track sessions listed on the agenda page. Dates and venues can change, so check the event portal for the latest details.

Beyond the sessions

Security kiosks in the AWS Village

If you’d like to speak to AWS experts on something you’re working on, or find out the ins and outs of a specific AWS security service, find the security kiosks in the AWS Village in the Expo. Here you can talk with AWS experts about identity and access management, threat detection and response, governance and compliance, application security, and network security. The Expo opens Monday, November 30 at 4:00 PM and runs daily through Thursday, December 3.

Security meetups

Join a security meetup on Tuesday, Wednesday, or Thursday, most of them at the Wynn. Meetups are small-group conversations with AWS experts, with no slides, on topics such as detection and response at machine speed, data protection and the post-quantum shift, and identity for humans, workloads, and AI agents.

Receptions

There are several Security, Identity & Governance receptions over the course of the week so be sure to speak with you AWS account manager and ask for the details. Most of these events require pre-registration so don’t wait!

First time at re:Invent?

For those of you that have never attended a re:Invent before, these four tips will help.

  1. Pick up your badge on Sunday if you can, since badge pickup opens before the first sessions.
  2. Download the AWS Events mobile app to build your agenda.
  3. While the vast majority of Security sessions are located at the Wynn, plan your route between venues, since walking between hotels on the Strip takes longer than it looks.
  4. On Thursday, plan to spend your day at the Wynn, where every security session that day takes place.

See you in Las Vegas

Start building your security agenda today in the re:Invent security catalog. Recordings of many breakout sessions will be posted on the AWS Events YouTube channel after the event.

See you in Las Vegas.

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


Brandon Carroll

Brandon Carroll

Brandon is a Senior Technical Product Marketing Manager at AWS, where he leads go-to-market for network security services including AWS Network Firewall. He holds CCIE Security #23837 and wrote Securing the AWS Cloud (Wiley, 2025), one of six books he has authored on networking and security.

Introducing the new AWS WAF security analytics dashboard

Post Syndicated from Praveen Hosur Narayana Gupta original https://aws.amazon.com/blogs/security/introducing-the-new-aws-waf-security-analytics-dashboard/

When blocked requests spike or a customer reports being locked out, a security team has to work out what is happening, where it is happening, and if AWS WAF is making the right call. Currently, that usually means opening each protection pack (web ACL) in turn, across domains, AWS Regions, and Amazon CloudFront distributions, or querying AWS WAF logs. In 2024, we introduced the AWS WAF traffic overview dashboard, which gives you a near real-time view of each protection pack (web ACL). Today, we’re introducing the AWS WAF security analytics dashboard: a single global page that you can use to investigate traffic across all of your protection packs (web ACLs), Regional resources, Amazon CloudFront distributions and then act on what you find. The dashboard can help you investigate and contain threats faster and reduce false positives that block real customers. You don’t need to build or maintain your own log analytics pipeline to do it.

In this post, we introduce the new dashboard and walk you through two use cases: investigating a traffic spike, and tuning your rules to reduce false positives.

Introduction to the security analytics dashboard

To open the dashboard, go to the AWS WAF console and choose Security analytics in the navigation pane. The dashboard shows request data across all protection packs (web ACLs) in your account. You can narrow it to specific protection packs (web ACLs) and set the time range. As shown in the following figure, at the top of the page, you can see total requests split by action (Allow, Block, CAPTCHA, and Challenge). The Requests chart shows how the traffic changes over time. Below that, traffic breakdown widgets show the top values for each dimension. The dashboard is built on full-fidelity request data, not samples.

Figure 1: The security analytics dashboard across all protection packs

Dimensions

You can filter, group, and break down traffic by dimensions that include, but aren’t limited to, the following:

  • Who’s sending traffic – Client IP, country, Autonomous System Number (ASN), user-agent, and JA4 TLS fingerprints
  • What they’re requesting – Host, path (URI), protected resource (Amazon CloudFront distribution, AWS Application Load Balancers, and others), Region, or protection pack (web ACL)
  • How AWS WAF responded – Action, rule triggered, labels, or response code

We’ll continue to add dimensions to the security analytics dashboard over time. The rest of this post refers to the preceding dimensions by the names used here. Two dimensions deserve a closer look:

  • Host – Many customers think about their applications by domain rather than by protection pack (web ACL). Grouping or filtering by Host will show you which of your domains are under attack or if a spike is hitting www, the API, or a staging site, even when one protection pack (web ACL) protects several domains or one domain spans several protection packs (web ACLs).
  • Labels – Labels are metadata that AWS WAF rules add to the requests they inspect. AWS Managed Rules for AWS WAF add them (for example, Bot Control labels for bot category, verification status, and signals such as non_browser_user_agent), and you can create rules to add custom labels. Because labels are recorded even when a rule only counts, filtering by a label shows you what a rule detected across all of your protection packs (web ACLs), without changing how your traffic is handled.

Controls

The dashboard is built around a few controls:

  • Filter requests – Combine conditions on any dimension, using Equals or Does not equal. Filters apply to the whole dashboard: the action split, the Requests chart, every widget, and the request list update to match. Your dashboard view is saved in your browser.
  • Group by – Split the Requests chart by any dimension, such as Host, Rule triggered, Country, or JA4, to see how traffic changes over time.
  • Show only, Exclude, and Block – Select any value in any widget to focus on it, remove it from view, or block it. For example, you can block a high-risk or unexpected IP address, or block traffic from a country, directly from the dashboard.
  • Requests and detections – Review the individual requests behind the charts. For each request, see HTTP request fields such as host, path, headers, user agent, and JA4 fingerprint. You can also see which detections and labels matched and whether each action was enforced or only counted . Previously, this level of detail meant working from a limited sample of requests or setting up and querying your own AWS WAF logs. Now it’s available directly on the dashboard.

Together, these controls help you answer questions such as:

  • What share of traffic across all your protection packs (web ACLs) and domains is being blocked, challenged, or allowed, and how is it changing?
  • Which rules are doing the most work, and are any of them blocking legitimate users?
  • Which IP addresses, ASNs, JA4 fingerprints, or countries are behind a spike, and what are they targeting?
  • How much of your traffic comes from bots, and are the bots verified?

Use case 1: Investigate a traffic spike

Suppose you receive an alert that blocked requests have increased. To investigate:

  1. Go to the Security analytics page in the AWS WAF console and select All protection packs.
  2. Assess the scope: The action split shows the overall block rate. Group the Requests chart by Host to see which domains are affected and check the Protection pack widget to see whether one application or several are involved. A campaign hitting your storefront, API, and media domains at the same time calls for a different response than a problem on a single endpoint.
  3. Identify the source: Group the Requests chart by Rule triggered to see which rules are mitigating the traffic and when they started firing. Then check the source and request dimensions. If one IP address sends a disproportionate share of requests, or many IP addresses share one JA4 fingerprint, the traffic likely originates from a single automated actor.

    Figure 2: Requests grouped by Rule triggered, showing which rules fired and when

  4. Confirm with request-level evidence: When you find an unexpected value, select it and choose Show only to filter the entire dashboard to it.
  5. Then confirm what you’re seeing in Requests and detections. Expanding a request shows all its details, including the HTTP request fields. For example, a curl user agent with no Accept-Language header, coming from a cloud hosting ASN, is likely automated traffic.

    Figure 3: Show only, exclude, or block it

After you confirm the source, choose a response that fits the traffic:

  1. One clear source: Choose Block this IP address directly from the dashboard. Use a geographic block only if you don’t expect legitimate customers from that country.
  2. Traffic spread across multiple IP addresses: Add a rate-based rule with a custom aggregation key such as JA4, or use AWS WAF Bot Control.
  3. Known bad actors and application-layer floods: Add the Amazon IP reputation list and the Anti-DDoS managed rule group.
  4. Faster detection time: Create Amazon CloudWatch alarms on AWS WAF metrics. For details, see Monitoring with Amazon CloudWatch.

When the change is in place, return to the dashboard to confirm that requests from that source now show the Block action.

Use case 2: Tune your rules and reduce false positives

Rules can fail in two ways: by blocking legitimate users, or by only counting traffic that they should stop. Filters and labels help you find both.

If you suspect that a rule is blocking a broad population, such as many distinct clients sending only a few requests each, enter Rule triggered = <rule name> in Filter requests. The dashboard shows only the requests that the rule acted on. Review the Country, Host, and Path (URI) breakdowns to understand who the blocked clients are and what they requested. If the blocked clients look like your typical customers, with common browsers, expected countries, and checkout or login paths, consider adding a scope-down statement to the rule or changing the action to Challenge.

Figure 4: The dashboard filtered to a single rule with Filter requests

Evaluate rules before you enforce them: When you evaluate a managed rule group in Count mode, filter by its labels to see exactly which requests each rule matched. For example, filter by a Bot Control label such as awswaf:managed:aws:bot-control:bot:unverified, then check Host, Path (URI), and User-Agent to see what those bots are after. Use Exclude on labels for known-good traffic, such as bot:verified search engine crawlers, to keep them out of your review.

On the Detections tab of Requests and detections, rows marked Counted, not enforced show what a rule would block. If the matches aren’t partners or monitoring tools, consider changing the rule action to Block.

Figure 5: Record details for a single request, including host, JA4 fingerprint, and protection pack

After you change a rule, compare the same time window on the dashboard to confirm that the rule now affects only the traffic you intended.

Conclusion

The traffic overview dashboard shows you what changed in each protection pack (web ACL). The security analytics dashboard helps you understand why it changed, and lets you act on it from the same page, across all of your protection packs (web ACLs), domains, Regions, and Amazon CloudFront distributions. Filters, grouping, and labels explain the traffic, and request-level evidence helps you act with more confidence. Together, they can help you investigate faster, reduce how often real users are blocked by mistake, and confirm that each rule changes affect the traffic you intend.

The security analytics dashboard is available at no extra cost in all AWS Regions where AWS WAF is offered, and shows up to 21 days of request data. To get started, open the AWS WAF console and choose Security analytics.

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

Related reading

To learn more about visibility and bot management in AWS WAF, see the following resources:

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

Praveen Hosur Narayana Gupta

Praveen Hosur Narayana Gupta

Praveen is a Solutions Architect at AWS specializing in Edge, Networking, and Security services. He helps customers build secure, high-performance applications and protect them from Bots and DDoS attacks. Outside work, he’s an avid bird watcher and wildlife photographer.

Mohit Mysore

Mohit Mysore

Mohit is a Senior Technical Account Manager at AWS specializing in network and edge security. He helps customers protect their applications and strengthen their security posture at scale. Outside work, he enjoys traveling, watching soccer and Formula 1, and spending time with his family.

Kaustubh Phatak

Kaustubh Phatak

Kaustubh is a product leader specializing in AI/ML systems and enterprise security solutions. He has led cross-functional teams in deploying AI-powered products at scale, working closely with security architects and CISOs to address the intersection of AI innovation and cybersecurity risk. His work focuses on translating complex technical capabilities into business value, particularly in emerging technology domains where traditional frameworks don’t apply.

How AWS Security Incident Response triages your security findings

Post Syndicated from Anatoliy Kochetov original https://aws.amazon.com/blogs/security/how-aws-security-incident-response-triages-your-security-findings/

AWS Security Incident Response continuously triages the threat findings from Amazon GuardDuty and AWS Security Hub CSPM, but most of that work never shows up as a case. If cases are all you look at, it’s hard to tell whether the service is working at all, and that’s the question I hear most often when I help customers onboard. The Proactive response dashboard gives you a high-level view of this activity, and this post takes you behind the numbers to show what happens to an individual finding.

In this post, I walk you through what happens to a finding after it’s ingested by the service, what gets triaged, where each finding is sent, and how a triage decision becomes a case. I then show you how to confirm triage is working day-to-day, so your team can focus on the findings that require attention. The process flow is shown in Figure 1.

Figure 1: AWS Security Incident Response triage flow, from ingestion through to one of three outcomes

Figure 1: AWS Security Incident Response triage flow, from ingestion through to one of three outcomes

Ingestion

AWS Security Incident Response ingests threat findings from GuardDuty through Amazon EventBridge rules that are automatically deployed to your accounts during the onboarding process.

If you send third-party detection findings to Security Hub CSPM from tools such as CrowdStrike, Trend Micro, or Lacework, their threat detection findings are also ingested. Each of those findings must carry complete payload information such as resource ID, account ID, timestamp, and threat details. GuardDuty findings are ingested directly, so these findings aren’t re-ingested through Security Hub CSPM and there’s no duplication.

Triage

The service triages findings that indicate an active threat, such as compromised credentials, cryptomining, or data exfiltration. These represent activity that’s underway or has already occurred.

Posture and compliance findings aren’t triaged. A misconfiguration or a failed benchmark check reflects the state of your environment rather than an active threat, so those findings remain for your team to address through your existing remediation process.

Outcomes

For each threat finding, the service runs an automated triage process. It evaluates the finding payload, related AWS activity from AWS CloudTrail and Amazon VPC Flow Logs, AWS threat intelligence, and the context you provide about your environment. The service then maps the finding against a profile of known-good activity. What fits the profile is treated as expected, and what doesn’t is flagged for a closer look.

What happens next depends on that outcome. A finding is sent to one of three places:

  • Archived, no action needed – Automated triage or an AWS Security Incident Response engineer confirms the activity is benign or expected. The finding is archived in GuardDuty, with no case and no customer contact.
  • A proactive case is opened – Triage can’t confirm the activity is benign. This is either Unconfirmed Activity (the service needs you to confirm whether it’s expected) or Inappropriate/Unintended Activity (confirmed activity that needs your action). A proactive case is opened, your incident response team is engaged, and the finding stays Current until it’s resolved.
  • Retained for your review, no case – Posture-related findings, such as overly permissive policies, configuration, or missing encryption, aren’t threats. By design, they stay Current without archiving and no case is created.

When a proactive case is opened, you respond to it in the AWS Management Console for AWS Security Incident Response under Cases, where you can communicate directly with the team, share context, and resolve or reopen the case. Timely responses also help the service learn your environment, which helps reduce false positives over time. For the full workflow, see Responding to an AWS generated case.

The preceding outcomes use GuardDuty terms, because it’s the primary source. Third-party findings ingested through Security Hub CSPM follow the same triage logic, but their disposition shows as a workflow-status change rather than archiving. The finding moves from NEW to NOTIFIED when triage begins, which removes it from the default Security Hub CSPM view. If triage clears it as benign, it moves to SUPPRESSED. Otherwise it stays visible for your review.

Because only benign findings are archived, it’s normal to see many findings in Current, and that isn’t a sign the service missed them. Across customers, less than 1 percent of ingested findings result in a customer-facing escalation. Most are handled automatically, without a case.

Credential exfiltration finding example

Suppose GuardDuty generates an UnauthorizedAccess:IAMUser/InstanceCredentialExfiltration.OutsideAWS finding: temporary credentials created on an Amazon Elastic Compute Cloud (Amazon EC2) instance were used from an IP address outside AWS. Triage cross-references the payload against what it knows about your environment.

  • Cleared – The external IP belongs to a corporate virtual private network (VPN) range that your workloads regularly call through, and the service has seen this pattern before. The finding is archived in GuardDuty.
  • Escalated – The IP is in a hosting-provider range with no prior association to your accounts, and the AWS Identity and Access Management (IAM) role has never made calls from outside AWS. The service creates a proactive case, notifies your incident response team, and an engineer investigates whether the credentials were compromised.

Same finding type, two outcomes. The difference is context, and context is what triage builds by observing your environment over time.

How triage sharpens over time

The service builds a profile of what’s normal in your environment. It learns the IP ranges and domains you trust, and the IAM principals and behaviors your workloads rely on. When your team routinely connects from a known VPN range, or a specific IAM role runs nightly batch jobs, the service recognizes those patterns and measures new findings against them. Early on, engineers investigate more findings by hand as they learn your environment. Within a few weeks, automated triage handles most of those decisions on its own.

Triage is dynamic. A finding treated as expected today can be re-evaluated tomorrow if the context changes, so the service can still catch a real threat that reuses a pattern it formerly treated as safe. You can shape the profile by submitting known-good activity, such as trusted IP ranges or authorized scanning tools, through an AWS Support case. For details, see Submit known-good activity.

Archiving versus suppression

It’s possible to conflate the two mechanisms, so it’s worth separating them:

  • Archiving is the primary mechanism. When automated triage or an engineer determines a finding is benign, the service archives it in GuardDuty. The finding then stays there for 90 days.
  • Suppression rules are less common and work differently. A suppression rule acts on future findings. When the service identifies a recurring pattern of expected activity, it might create a GuardDuty suppression rule that automatically archives matching findings so they don’t generate new alerts. Suppressed findings aren’t sent to your configured export, such as an Amazon Simple Storage Service (Amazon S3) bucket or SIEM. When the service creates a rule, your incident response team is notified, and you can view and manage it in the GuardDuty console under Suppression rules.

A healthy deployment typically shows many archived findings and few or no suppression rules. That’s expected, and it means the service is handling findings dynamically rather than relying on static filters.

How to see what triage is doing

Triage runs on its own, and the service gives you a few ways to confirm it’s working.

Proactive response dashboard

The Dashboard page in the AWS Security Incident Response console has a Proactive response section. It counts how many findings were ingested, triaged, investigated, and escalated over the timeframe you select, the last 7, 30, or 90 days.

The Overview leads with two figures. Noise reduction is the share of ingested findings that automated triage resolved without opening a case, so you can see for yourself how much volume never reached your team. Time saved estimates the analyst hours that automation returned to you, counted as one hour for each ingested finding.

Below that, Finding evaluations breaks those stages down:

  • Ingest – Threat findings collected from your detection sources
  • Triage – Findings evaluated automatically to decide whether the activity is expected
  • Investigation – Findings automated triage couldn’t confirm, passed to an AWS Security Incident Response engineer for a closer look
  • Escalation – Investigations raised as a case when a genuine risk was detected or the activity couldn’t be confirmed as expected

A flow diagram on the dashboard shows how those findings move from their sources through triage and investigation, with branches for the ones closed as false positives and the ones still in progress. For more, see Viewing proactive response metrics.

Monthly report

The monthly report is the periodic companion to the dashboard. AWS Security Incident Response emails it to your incident response team a week or two after each month closes. It opens with the accounts monitored, findings processed, and investigations, then lists each investigation and its status, the triage flows that show the checks run for each finding type, and the context the service has learned about your environment, such as the trusted networks it now recognizes as normal.

Archived findings in GuardDuty

For a quick confirmation outside either view, open Findings in the GuardDuty console and filter to see Archived. That list also includes findings archived by you or by suppression rules, so look for the threat findings AWS Security Incident Response archived after triage. Each one is a finding that the service cleared as benign so your team didn’t have to.

Conclusion

AWS Security Incident Response continuously evaluates your threat findings so your team can spend its time on confirmed threats rather than alert volume. Findings that are evaluated as benign are archived automatically, the ones that need a response become proactive cases, and posture issues stay in Current for your team to handle.

Cases show only a small part of that work. When I deliver AWS Security Incident Response to customers now, I walk them through the triage flow in Figure 1, the Proactive response dashboard, and their monthly report, so they can see how triage works end to end.

To get started, see the onboarding guide. Setup takes about 10 minutes. For more information, see the AWS Security Incident Response product page or the User Guide.

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


Anatoliy Kochetov

Anatoliy Kochetov

Anatoliy is a Technical Account Manager and AWS Security Incident Response SME. He works with AWS Enterprise customers, providing ongoing support and technical guidance to help them build secure, resilient solutions using AWS best practices.

Step-up authentication: how to right-size authentication to risk

Post Syndicated from Abrom Douglas original https://aws.amazon.com/blogs/security/step-up-authentication-how-to-right-size-authentication-to-risk/

Not every action a user takes in an application carries the same risk. Viewing an account balance in a banking application isn’t the same as wiring several thousand dollars to a new payee. In practice, though, many applications ask users to prove their identity once at sign-in and then treat every action the same from that point on, whether that sign-in used a password alone or included multi-factor authentication (MFA). That creates a tension: if the sign-in is strict enough for the most sensitive operation, everyday tasks carry unnecessary friction. If it’s easy enough for everyday tasks, the most sensitive operations might not be protected well enough. Even a strong sign-in from hours earlier says little about who is at the keyboard when a high-risk request arrives.

Amazon Cognito now resolves that trade-off by supporting step-up authentication, which records the authentication assurance level and the methods used, and including both in the JSON web tokens (JWTs) it issues. You ask for a target assurance level when a user signs in. Amazon Cognito returns the level the user reached in an acr claim (authentication context class reference) and the methods they completed in an amr claim (authentication methods reference). These claims are part of the OpenID Connect Core specification, so your application can reason about authentication strength in a standard way and match it to the potential risk of what the user is trying to do. In this post, I explain how the claims support step-up authentication and walk through four patterns that put them to use: transaction-level step-up in a banking app, varying risk postures across a portfolio of applications, step-up enforced on API and SDK sign-in, and authentication assurance carried across a federated third-party OpenID Connect (OIDC) identity provider.

You can request authentication levels through Amazon Cognito managed login using the standard OIDC acr_values and max_age parameters, and through the SDK and API using the USER_AUTH flow with TARGET_ACR_VALUES and MAX_AGE. Requesting step-up authentication requires the Essentials or Plus feature plan. ; For the complete list of features, behaviors, and limitations, see the Authentication levels with ACR and AMR claims.

What ACR and AMR tell your application

Amazon Cognito defines four assurance levels, and the factor combinations that satisfy each one are fixed. You can use the default names as is or rename the level URIs to fit your organization’s own naming scheme. Renaming changes only the label. If you need to relate Amazon Cognito levels to a framework such as NIST SP 800-63 or eIDAS, make that mapping in your application. The following are the default Amazon Cognito defined levels.

  • Level 1 (urn:cognito:loa:1) is password only.
  • Level 2 (urn:cognito:loa:2) is a single one-time password (OTP) over SMS or email.
  • Level 3 (urn:cognito:loa:3) is a passkey on its own, or a password combined with an SMS or email OTP.
  • Level 4 (urn:cognito:loa:4) is the highest: a password with a time-based one-time password (TOTP) code from an authenticator app.

Amazon Cognito assigns the highest level the user’s completed factors fully satisfy, so a user who signs in with a password and a TOTP code lands at level 4, even though they also met the assurance requirements for every level below it.

Four claims in the token facilitate a step-up decision. The acr claim is the level the sign-in reached and is what your application compares against what the operation requires. The amr claim lists the methods behind that level, so you can confirm a specific factor was used. The auth_time claim records when the user last authenticated interactively and is what max_age is measured against. The iat claim only records when the token was issued, so a refreshed token carries a new iat but keeps its old auth_time. Finally, send a nonce in the request and verify it on the returned ID token, so the result is tied to the request you made.

The following is an example access token for a user completing a level 4 authentication. Notice the four claims I’ve discussed: acr, amr, auth_time, and iat.

{ 
    "sub": "387173a0-60c1-700a-4a02-e84b49bcc7a9", 
    "iss": "https://cognito-idp.<region>.amazonaws.com/<region>_123abc", 
    "aud": "123abcn2ci4a99a4ieno123abc", 
    "exp": 1445470140, 
    "iat": 499163700, 
    "auth_time": -446666160, 
    "token_use": "access", 
    "acr": "urn:cognito:loa:4", 
    "amr": ["pwd", "otp", "mfa"], 
    "email": "[email protected]", 
    "cognito:username": "387173a0-60c1-700a-4a02-e84b49bcc7a9" 
}

Two important behaviors are worth understanding before you build on this. First, a token refresh preserves the acr and amr values, so a user who reached level 4 keeps level 4 across refreshes and isn’t asked to prove it again on every rotation. Second, a refresh doesn’t reset the auth_time claim. That field records when the user interactively authenticated, not from a non-interactive token refresh. This is what lets you reason about freshness of authentication separately from assurance strength.

At a high level, every step-up interaction in this post follows the same loop: the application checks the token it already holds, redirects for a stronger level only when the operation requires more than the user has, and re-validates the acr claim on the freshly issued token before it proceeds. The following diagram provides a general step-up authentication flow.

Figure 1: General step-up authentication flow to access a sensitive operation

Figure 1: General step-up authentication flow to access a sensitive operation

How you request a level, and what stays your responsibility

The request side is deliberately straightforward. On managed login you add acr_values and optionally max_age to the or endpoint. In the SDK and API, you pass TARGET_ACR_VALUES and MAX_AGE in the USER_AUTH flow of the API. Both acr_values and TARGET_ACR_VALUES accept an ordered list of target levels. The same parameters work whether you’re setting the level for an initial sign-in or raising the level of a user who is already signed in; the patterns later in this post show both. Amazon Cognito acts only on what you send. It doesn’t infer the level you meant, so if you omit the parameter or request the wrong level, the user might not be stepped up the way you intended.

That points to the part your application and API owns: what assurance authentication level is needed. Amazon Cognito issues a token that honestly reports the level the user reached based on what your application requested. For example, deciding that a given operation requires an assurance level 3, checking the token’s acr against that requirement, and refusing the operation when it falls short is enforcement your application and API performs. Amazon Cognito produces the evidence; your code acts on it. In practice, that means checking the token you already hold before you redirect, so you don’t send a user to re-authenticate who already meets the bar, and validating the acr and auth_time claims on the tokens Amazon Cognito returns before you grant access. Amazon Cognito computes these claims itself, so you can’t customize, add to, or suppress them with a pre-token-generation Lambda trigger.

There is one more detail that saves debugging time later. If you rename your acr level URIs after tokens have already been issued, an older token might carry an acr value that no longer matches any configured level. Amazon Cognito treats that as an unrecognized level rather than an error. It still honors the token’s amr values and prompts only for factors not already present, without crediting any particular level. The amr list, in other words, remains meaningful even when a renamed level string goes stale. See Configuring ACR level names to learn how to configure this.

With the claims and the division of responsibility in place, the following four patterns show how they work in practice. Each one applies the same loop from Figure 1 to a different situation: a single application, a portfolio of applications, API-driven sign-in, and federation.

Pattern 1: Transaction-level step-up in a banking app

Consider a retail banking application. Signing in and viewing balances is routine, and the bank is comfortable requiring a moderate assurance level for it. Moving money is considered a privileged action, and a large transfer deserves stronger proof that the person at the keyboard is really the account holder.

The bank sets its baseline at level 2, so a user signs in with a one-time code over SMS or email and can see balances, statements, and pending transactions. When that same user initiates a transfer above $1,000, the application’s own policy says the operation requires level 4. Before it shows the transfer initiation screen, the application inspects the acr claim in the token it already holds. The user authenticated at level 2, level 2 is below the required level 4, so the application redirects the user to managed login with acr_values=urn:cognito:loa:4.

GET https://auth.example-bank.com/oauth2/authorize 
    ?response_type=code 
    &client_id=abc123def456 
    &redirect_uri=https://app.example-bank.com/callback 
    &scope=openid 
    &acr_values=urn:cognito:loa:4

Amazon Cognito now requires the user to complete a factor combination that satisfies level 4, for example entering their password and then a TOTP code from their authenticator app. When authentication finishes, Amazon Cognito issues fresh tokens with acr set to urn:cognito:loa:4, amr set to ["pwd", "otp", "mfa"], and a fresh updated auth_time claim. The application validates that the new token meets its requirement and only then lets the transfer proceed. A transfer under the threshold never triggers any of this, so the everyday experience stays light and the friction lands exactly where the risk is.

The application logic reads naturally, here’s a pseudo JavaScript snippet:

// Use your own URIs here, if different than defaults.
const ACR_RANK = {
  "urn:cognito:loa:1": 1,
  "urn:cognito:loa:2": 2,
  "urn:cognito:loa:3": 3,
  "urn:cognito:loa:4": 4,
};
const REQUIRED_LEVEL = "urn:cognito:loa:4";
const HIGH_VALUE_THRESHOLD = 1000;

function canAuthorizeTransfer(accessTokenClaims, amount) {
  if (amount < HIGH_VALUE_THRESHOLD) {
    return true; // baseline session is sufficient
  }
  // High-value transfer: require level 4.
  // An unrecognized acr ranks 0, so it never passes.
  const achieved = ACR_RANK[accessTokenClaims.acr] ?? 0;
  return achieved >= ACR_RANK[REQUIRED_LEVEL];
}

You can extend the same idea to freshness. A bank might accept a level 4 session for a high-value transfer only if the user authenticated within the last 5 minutes, which you express by adding max_age=300 to the request. Amazon Cognito compares that window against the auth_time claim in the access token and reauthenticates the user if the window has passed, even if the token was refreshed seconds ago.

Pattern 2: A portfolio of applications with different risk postures

Assurance levels are just as useful across a set of applications as they are within one. Suppose an organization runs five applications from a single Amazon Cognito user pool using managed login, and each one carries a different risk posture.

An internal cafeteria menu is low risk, so it’s fine with level 1, password only. An employee directory and an expense viewer hold personal data but nothing that moves money, so they require level 2: a one-time code over SMS or email on top of the password. A source code portal warrants a passkey or a password plus a one-time code, which is level 3. The production financial console is the crown jewel, so it demands level 4: a password with a TOTP code.

Each application requests its own floor by setting acr_values to the level that matches its risk, and each validates the acr claim on the returned token before granting access. Because the applications share a user pool, managed login keeps a single sign-on (SSO) session across them. A user who has already reached level 4 for the financial console is redirected to managed login when they open another application, finds the existing session, and receives tokens for that application without another prompt, provided the application doesn’t send a max_age that the session has outlived. Each application then compares levels by rank, so a level 4 token satisfies a level 2 floor. Someone who signed in at level 1 for the cafeteria menu, on the other hand, is stepped up the first time they open the expense viewer, because level 1 doesn’t meet the level 2 floor that the application enforces. The user pool stays single and central; the assurance requirement travels with each application’s own policy.

Renaming the level URIs helps here. If the organization already classifies systems against an internal assurance standard, it can set AcrConfiguration on the user pool so that, say, level 3 reports as urn:example-corp:assurance:standard and level 4 as urn:example-corp:assurance:high. The factor combinations behind each level stay fixed; only the names change, so every application validates against strings its developers already recognize.

Pattern 3: Step-up on API and SDK sign-in

Managed login covers browser-based flows, including federation, but plenty of clients authenticate directly against the Amazon Cognito API, and the same assurance model applies there, such as using the USER_AUTH flow with the InitiateAuth API. This matters for a mobile app, a desktop client, or a service that drives sign-in programmatically and needs to raise assurance before a sensitive call.

Take a mobile trading app that signs its users in with the SDK. A user opens the app with a password and reaches level 1, which is enough to browse watchlists and market data. When they place a trade, the app’s policy requires level 4. Because the app authenticates through the API rather than a browser redirect, it starts a new USER_AUTH flow and passes the access token it already holds along with TARGET_ACR_VALUES, requesting the level it needs. Amazon Cognito drives the user through a factor combination that satisfies level 4, then returns tokens whose acr claim the app validates before it submits the order. The InitiateAuth request would look similar to the following API call.

{
  "AuthFlow": "USER_AUTH",
  "ClientId": "abc123def456",
  "AuthParameters": {
    "USERNAME": "[email protected]",
    "ACCESS_TOKEN": "eyJraWQiOi...",
    "TARGET_ACR_VALUES": "urn:cognito:loa:4",
    "MAX_AGE": "300"
  }
}

Passing the access token the app already holds lets Amazon Cognito step the user up from the factors in that token; without it, Amazon Cognito authenticates the user from scratch. The MAX_AGE parameter behaves the same way it does on managed login. It ties the requirement to auth_time, so a trade placed after the window elapses forces a fresh authentication even if the app refreshed its tokens in the meantime. One behavior specific to the API path is worth knowing when you test on a lower Cognito feature plan. If you request step-up through InitiateAuth on a user pool that isn’t on the Essentials or Plus plan, the API returns a FeatureUnavailableInTierException. Managed login handles the same situation differently: the authorize endpoint silently ignores acr_values and proceeds with normal authentication rather than raising an error.

Pattern 4: Carrying assurance across a federated OIDC identity provider

The three patterns so far assume Amazon Cognito is where the user authenticates and the authoritative source for the identity. Many organizations federate sign-in to a third-party OIDC provider, so the person proving who they are is doing it against an external identity provider (IdP), while Amazon Cognito brokers the session. The assurance model follows them there.

When your application requests a level, it sends acr_values and optionally max_age to the Amazon Cognito authorize endpoint exactly as before. If that user is configured to federate through an OIDC IdP, Amazon Cognito sends the authorization request to that IdP on the user’s behalf. It translates the level you requested into the acr value the IdP expects, using the mapping you configured, and passes max_age along with it. A standards-compliant OIDC IdP honors acr_values the same way Amazon Cognito does: it drives the user through an authentication that satisfies the requested level, and it returns its own acr value describing what the user reached. max_age carries forward in the same way, so a freshness requirement is enforced at the provider that actually authenticates the user rather than being lost at the broker. Keep in mind that this is only supported with OIDC identity providers.

The request is unchanged from the application’s point of view. It still directs to Amazon Cognito:

GET https://auth.example.com/oauth2/authorize
  ?response_type=code
  &client_id=abc123def456
  &redirect_uri=https://app.example.com/callback
  &scope=openid
  &identity_provider=PartnerOIDC
  &acr_values=urn:cognito:loa:3
  &max_age=300

The interaction gains a third participant, the downstream IdP, but the assurance requirement is persisted through the entire federated authentication flow as shown in figure 2.

Figure 2: Federation with an OIDC third-party IdP, persisting the acr_values and max_age request parameters

Figure 2: Federation with an OIDC third-party IdP, persisting the acr_values and max_age request parameters

The value that comes back from a partner IdP won’t use Amazon Cognito’s level URIs, so this lets you map the provider’s acr values onto its own levels with the AcrMapping field on the OIDC IdP configuration. A partner IdP that reports, say, https://partner.example/assurance/strong can be mapped to Amazon Cognito level 3 (urn:cognito:loa:3), so that by the time the token reaches your application the acr claim speaks the same vocabulary regardless of whether the user authenticated locally or through a federated provider. Your resource server keeps a single enforcement rule and authorization logic and doesn’t need to have special handling depending on where the user ultimately authenticated. See Step-up authentication for federated users to learn how to map external OIDC IdP acr levels to Cognito.

This is the same pattern that RFC 9470, the OAuth 2.0 Step Up Authentication Challenge Protocol, describes: the assurance level is requested at the edge of your application, travels through Amazon Cognito to whatever provider authenticates the user, and returns normalized to a vocabulary your code already understands. A user federating from a corporate IdP and a user signing in against the same user pool directly both arrive at your resource server carrying an acr claim that means the same thing.

Conclusion

In this post, I showed you how the acr and amr claims in Amazon Cognito let you match authentication strength to the risk of what a user is doing, instead of settling for one bar at the front door. Your application requests a target level with acr_values and max_age (or TARGET_ACR_VALUES and MAX_AGE in the USER_AUTH flow), Amazon Cognito reports the level reached and the methods used, and your application enforces what each operation requires. The four patterns, from a banking transfer to a federated third-party IdP, follow that same loop, and one enforcement rule at your resource server covers every sign-in path.

The larger shift is that assurance is now something Amazon Cognito expresses in a standard way and your application reasons about directly, without building your own step-up tracking. To get started, move your user pool to the Essentials or Plus feature plan, decide the level each operation requires, and add acr_values to your existing authorize requests. For the complete parameter reference and federated behavior, see the Amazon Cognito Developer Guide.

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


Abrom Douglas III

Abrom is a Senior Solutions Architect within AWS Identity with over 20 years of software engineering and security experience, specializing in identity and access management. He loves speaking with customers about how identity and access management can provide secure outcomes that enable both business and technology initiatives. In his free time, he enjoys cheering for Arsenal FC, photography, travel, volunteering, and competing in duathlons.

Detecting cross-cloud lateral movement with AWS Security Hub

Post Syndicated from Kyle Shields original https://aws.amazon.com/blogs/security/detecting-cross-cloud-lateral-movement-with-aws-security-hub/

Most organizations run a multicloud estate, and so do the attackers targeting them. An adversary who compromises an identity in one provider follows that identity wherever it leads, including across a federated trust into a second cloud service provider. The signals enumerating this scenario are rarely missing; the problem is that they live in separate consoles, in different schemas, owned by different teams. No one has visibility into the whole picture, so no one can decide what to fix first.

AWS Security Hub addresses prioritization and triage with exposure findings. Security Hub correlates reachability, blast radius, vulnerabilities, misconfigurations, and effective permissions, providing a strong correlation layer with an attack-path visualization, providing the context needed to generate risks from findings. That analysis now extends to Microsoft Azure. Security Hub records and analyzes your Azure resources with the same correlation engine used for Amazon Web Services (AWS) resources. The resulting details and meta-data land in the same console, ranked in the same queue, providing holistic, multicloud visibility into your security risks.

In this blog post, you learn how to configure the Azure integration for Security Hub and use exposure findings to prioritize attack paths across both clouds from one console. We follow a realistic scenario: a compromised identity that threatens both an Azure and an AWS environment through a shared, federated identity plane. We show you how the critical exposures along that path are presented as ranked findings that you can triage together, and we map each one to the MITRE ATT&CK framework. We also cover the prerequisites that teams commonly overlook.

Why prioritizing multicloud risk is difficult

Consider an organization whose Microsoft Entra ID tenant is federated into an AWS account, so identities in the tenant can assume an AWS role. This is an ordinary and intentional configuration used to avoid having to manage a second set of credentials. It also means the two clouds share an identity plane: a single compromised Entra identity is both an Azure threat and—through the federation—an AWS threat.

An attacker exploits this, but the defensive signals land in different places:

Where the risk lives Traditionally visible in Owned by
Weak Entra identity controls: over-privileged identities, no multi-factor authentication (MFA), vulnerable conditional access policies (CAP) Entra ID and Microsoft Defender for Cloud Identity team
Internet-reachable Azure host with admin rights Defender for Cloud Azure platform team
Federated trust into AWS AWS Identity and Access Management (IAM) Cloud security team
Sensitive data and over-exposed resources in AWS AWS security tooling Cloud security team

Each team sees one fragment, and in isolation each fragment appears low severity. You see the risk only when you correlate all of it together and discover the same identity plane ties the attack path together. Exposure findings provide that severity within AWS; extending it to Azure closes the multicloud visibility gap.

How the Azure integration works

You create the Azure connector in the AWS Management Console for Security Hub. It authenticates to your Entra ID tenant through an application registration, records and evaluates your Azure resource configurations, and streams Microsoft Defender for Cloud alerts and Entra ID audit logs through an Azure Event Hubs namespace. Your Azure resources then flow into the same correlation engine that analyzes signals from AWS Security Hub Cloud Security Posture Management (CSPM), Amazon Inspector, Amazon Macie, and Amazon GuardDuty. That engine produces two kinds of findings:

  • Control findings against standards such as the CIS Microsoft Azure Foundations Benchmark.
  • Exposure findings, which are ranked, attack-path findings that correlate traits such as reachability, effective permissions, and misconfiguration, with a severity based on how discoverable and exploitable the risk is.

Both use the Open Cybersecurity Schema Framework (OCSF) and appear in the same console as your AWS findings. However, one filtering detail matters: because Security Hub produces the finding, its top-level cloud.provider is AWS, while the evaluated resource carries resources[].provider = Azure. Filter on resources.provider to scope to a single cloud.

Prerequisites

To follow along with this post, you need:

  • An AWS account with Security Hub enabled. If you use a delegated administrator account for Security Hub, create the connector there, in the AWS Region where you aggregate findings.
  • An Entra ID tenant with a Microsoft Azure subscription. You need privileges in Azure to create an application registration, assign roles at the tenant root management group, and create a subscription-level diagnostic setting.
  • The Azure CLI, authenticated to the target subscription with az login command.
  • Activity log export. Azure resource recordings are change-driven and depend on activity logs reaching the event hub that the connector reads. The onboarding process assigns an Azure policy to create the required diagnostic setting, but it only remediates existing subscriptions after you create a remediation task. If the connector reports healthy status but resources never appear, run az monitor diagnostic-settings subscription list to confirm the export exists, and create a remediation task if the list is empty.

Configuration

The following steps detail how to connect your Azure environment to Security Hub v2: Registering the Azure application, establishing federated identity credentials, and assigning the roles required for AWS to evaluate your Azure resources.

Step 1: Create the Azure connector in Security Hub

The first step in this configuration is to create the Azure connector in Security Hub. The connector establishes trust with your Azure tenant and defines which subscriptions and regions Security Hub v2 will evaluate.

  1. Open the Security Hub console and choose Integrations.
  2. Choose Create Azure connector.
  3. Enter your Azure Tenant ID and the Application (client) ID of the application registration you created for the integration.
  4. For Subscriptions and Regions, select all. Attack paths cross subscription and Region boundaries, so partial coverage leaves blind spots where a compromised identity can pivot unseen. Scope to specific IDs or Regions only when data-residency rules require it.
  5. Run the generated setup script in your Azure environment, then choose Create connector.

Include the global region scope. Controls that evaluate Entra ID and Microsoft Graph resources require it, and those identity exposures are central to this scenario. If you also create an Amazon Inspector or Security Hub CSPM connector for the same tenant, keep its subscriptions and regions consistent with this one.

Step 2: Verify the connector and its recording activity

Health status alone doesn’t tell you whether recording is flowing. Confirm both.

AWS Command Line interface (AWS CLI) command 1: Verify connector health and recording state

aws securityhub list-connectors-v2 --region <REGION> \

--query "Connectors[?ProviderSummary.ProviderName=='AZURE']" --output json

aws securityhub get-resources-v2 --region <REGION> --max-results 50 \

--filters '{"CompositeFilters":[{"StringFilters":[{"FieldName":"ResourceType",

"Filter":{"Value":"microsoft.compute/virtualmachines","Comparison":"EQUALS"}}]}],

"CompositeOperator":"AND"}' \

--query "Resources[].{id:ResourceId, captured:ResourceDetailCaptureTimeDt}" --output table

Step 3: Query exposure findings for Azure resources

Scope to Azure by filtering on the resource provider.

AWS CLI command 2: Retrieve exposure findings for Azure resources

​​aws securityhub get-findings-v2 --region <REGION> --max-results 50 \ --filters '{"CompositeFilters":[ {"StringFilters":[{"FieldName":"resources.provider","Filter":{"Value":"Azure","Comparison":"EQUALS"}}]}, {"StringFilters":[{"FieldName":"metadata.product.feature.uid","Filter":{"Value":"security-hub/Exposure","Comparison":"EQUALS"}}]}], "CompositeOperator":"AND"}' \ --query "Findings[].{sev:severity, title:finding_info.title}" --output table​

Step 4 (optional): Add Amazon Inspector for Azure vulnerability scanning

To add vulnerability findings for Azure virtual machines (VMs), function apps, or container registry images, create an Amazon Inspector connector for the same tenant. VM scanning requires each target VM to have a system-assigned managed identity, which you can enforce with an Azure Policy. Figure 1 shows a correctly configured Azure integration inside Security Hub, with vulnerability management and posture management deployed.

Figure 1: Successful configuration of the Azure integration with Security Hub

Step 5: Prerequisites for Microsoft Azure

See the AWS documentation for the prerequisites for Microsoft Azure.

Walk-through: Prioritizing a cross-cloud attack path

In this example, the organization has one identity plane across two clouds, comprising a Microsoft Entra ID tenant with a federated trust into an AWS account. An adversary who compromises the right Entra identity gains an initial foothold in Azure and a path into AWS, because both clouds trust the same identity plane. The following sections trace that path. Each step is a real, high-severity exposure finding that Security Hub ranked on its own. The point of the walk-through is to demonstrate a real-life scenario and examine all findings in one unified security console.

Phase 1: A compromised identity (Azure)

ATT&CK: Phishing (T1566), Valid Accounts: Cloud Accounts (T1078.004)

The path begins with an Entra identity that is both over-privileged and unprotected. You’ll find this in the Security Hub console under Exposures, where Security Hub raises it as an identity exposure finding and maps the attack path stemming from it:

Potential Unauthorized Access: Azure RBAC user with administrative access has MFA disabled (high). It correlates the user, the role assignment that grants administrative access, and the organization.

The tenant’s authorization policies let an attacker broaden that foothold, and Security Hub CSPM reports each policy as a failed control (high): Microsoft Entra ID authorization policies should prohibit default users from registering applications…should restrict user consent for applications, and Azure authorization policies should restrict guest invitations to admin roles only. Each finding expands what a single compromised, non-privileged identity can do without an administrator.

Phase 2: Foothold and privilege escalation (Azure)

ATT&CK: Exploit Public-Facing Application (T1190), Valid Accounts: Cloud Accounts (T1078.004)

The tenant contains an internet-reachable VM whose network security group allows inbound from any address, and whose attached identity holds administrative rights over the subscription. Security Hub surfaces this under Exposures, correlating reachability and effective permissions into one finding that shows why it matters: anyone reaching the VM inherits admin control of the subscription.:

Potential Initial Access: Potentially internet reachable Azure virtual machine with open network security group has administrative access (high). It correlates the VM, the role assignment, the network security group, and the public IP address.

The finding’s analysis reads like an attack path. The resource “may be reachable from the public internet,” “overly permissive network security group (NSG) rules allow unintended inbound access,” and “the Owner or Contributor role grants extensive permissions… enabling a threat actor to escalate privileges.” Security Hub evaluates this from configuration and network-path modeling, so it surfaces whether or not the VM is running. Figure 2 shows the correlated attack path for that virtual machine.

Figure 2: An Azure attack-path exposure, analyzed by the same correlation engine as AWS exposures

The cross-cloud bridge: Federation into AWS

The tenant from Phases 1 and 2 is federated into the AWS account through an IAM SAML identity provider. As shown in Figure 2, a role trusts that provider and grants read access to every bucket in Amazon Simple Storage Service (Amazon S3). This trust is what expands the risk across clouds from the same adversary: a compromised Entra identity can assume this role and reach AWS data.

This one hop lives in IAM rather than in Security Hub. Security Hub doesn’t not raise a finding for a role that trusts your own federated identity provider. Confirming it is a normal investigative pivot: the role trusts a SAML identity provider that represents your Entra tenant, the same tenant whose exposures you triaged when you added Amazon Inspector in Step 4.

Figure 3: The federated trust that links the two clouds through a shared identity plane

Phase 3: The impact (AWS)

ATT&CK: Data from Cloud Storage (T1530), Transfer Data to Cloud Account (T1537)

On the AWS side, the correlation engine has already categorized the resources this identity can reach. Under Exposures in the Security Hub console, the sensitive-data objective surfaces this finding because that reachable set includes data at risk; a compromised identity could destroy it:

Potential Sensitive Data Destruction: S3 bucket has sensitive data and versioning disabled and Object Lock disabled and MFA delete disabled (high). A Macie finding, The S3 object contains personal information, is a contributing signal, and the control S3 general purpose buckets should be encrypted at rest with AWS KMS keys fails alongside it.

The same account carries related AWS attack-path exposures. Two examples are Potential Resource Hijacking: Internet reachable EC2 instance with open security group has software vulnerabilities with limited effective permissions and Potential Unauthorized Access: IAM user has weak password policies. In the exposure queue, these sit next to the Azure findings, ranked by the same severity model.

Prioritizing across both clouds in the console

Here is the operational benefit. An analyst is notified of generated exposure findings and opens the dashboard and filters to High severity. In one prioritized list, without switching tools or opening a ticket for another team, they see the Azure admin identity without MFA, the internet-reachable Azure VM with subscription-admin rights, and the AWS sensitive data exposure. Together, these show the full scope of what a single vector, sharing an identity plane, might target. The analyst confirms the connecting federation with one pivot into IAM. The multicloud triage that used to require two products and two teams now occurs in one place. Figure 4 shows that single ranked queue.

Figure 4: Cross-cloud exposure prioritization in a single console

Phase-to-exposure summary

The following table traces each phase of the attack path to its MITRE ATT&CK techniques, the cloud where it plays out, and the ranked Security Hub exposure that surfaces it — following the pivot from Azure into AWS across the shared identity plane.

Phase ATT&CK Cloud Ranked exposure in Security Hub
1. Compromised identity T1566, T1078.004 Azure Potential Unauthorized Access: Azure RBAC user with administrative access has MFA disabled (High)
2. Foothold and privilege escalation T1190, T1078.004 Azure Potential Initial Access: internet reachable Azure VM with open NSG has administrative access (High)
2.1 Bridge T1550 (Use Alternate Authentication Material) Azure to AWS Federated trust, confirmed in AWS IAM (shared identity plane)
3. Data objective T1530, T1537 AWS Potential Sensitive Data Destruction: S3 bucket has sensitive data… (High), plus Macie

Conclusion

A cross-cloud attack is difficult to prioritize because signals are generated across separate consoles, schemas, and teams. In this post, you saw how the Azure integration for AWS Security Hub brings Azure resources into the same exposure engine and the same queue as your AWS resources. One analyst can prioritize an attack path that spans a compromised Microsoft Entra ID identity, across a federated trust, to sensitive data in Amazon S3, without leaving Security Hub.

To recap why this workflow is practical and effective:

  • Security Hub records and analyzes your Azure security findings and displays them in the same unified console as your AWS resources, and produces ranked, attack-path exposure findings for both clouds.
  • Findings from both clouds share the OCSF schema, so you filter, group, and prioritize them in one place. Filter on resources.provider to scope an individual cloud.
  • Security Hub correlates signals into attack paths within each cloud. The analysis creates a cross-cloud narrative, such as a shared federated identity plane, while co-locating ranked correlation findings across both Azure and AWS, creating efficient scoping and remediations.
  • Confirm your prerequisites. Include the global region scope for Entra ID controls, know that sign-in log signals require an Entra ID P1 or P2 license, and confirm that the subscription diagnostic setting that exports Activity Logs to the connector’s event hub is in place. A connector can report a healthy status while it records nothing.

To get started, see Enabling Microsoft Azure integration in Security Hub and Exposure findings in Security Hub.

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


Kyle Shields

Kyle Shields

Kyle is a Security Specialist Solutions Architect focused on threat detection and incident response at AWS. Today, he’s focused on helping enterprise AWS customers adopt and operationalize AWS Security Incident Response and improve their security posture.

Marshall Jones

Marshall Jones

Marshall is a Worldwide Security Specialist Solutions Architect at AWS. His background is in AWS consulting and security architecture and focused on a variety of security domains including edge, threat detection, and compliance. Today, he’s focused on helping enterprise AWS customers adopt and operationalize AWS security services to increase security effectiveness and reduce risk.