Who is WEIRD? Thoughts on teaching with generative AI tools

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

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

Where does the data come from?

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

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

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


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

Who is WEIRD?

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

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

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

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

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

Who is the star of the story?

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

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

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

What does this mean for generative AI in teaching?

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

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

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

Try our free resources

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

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

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

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

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

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

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

How trusted identity propagation works

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

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

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

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

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

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

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

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

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

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

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

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

Key benefits of trusted identity propagation

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

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

What’s new with this launch

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

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

Use identity context for auditability and access control

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

Trace a Lambda deployment to its GitHub Actions run

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

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

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

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

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

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

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

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

Authorize access based on session risk

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

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

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

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

Amazon S3 bucket policy using trusted runtime context

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

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

Additional considerations

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

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

Choose your TIP approach and get started

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

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

Conclusion

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

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

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


Laura Reith

Laura Reith

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

Rishi Tripathy

Rishi Tripathy

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

Songzhi Liu

Songzhi Liu

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

Shweta Motwani

Shweta Motwani

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

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.

Security updates for Monday

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

Security updates have been issued by AlmaLinux (buildah, cifs-utils, cockpit-files, cockpit-machines, container-tools:rhel8, curl, expat, fence-agents, flatpak, fltk, gfs2-utils, gimp:2.8, gnome-remote-desktop, grafana, gstreamer1-plugins-bad-free, java-1.8.0-openjdk, kernel, libgsf, libpcap, librabbitmq, libreoffice, mingw-expat, nginx, nginx:1.24, nginx:1.26, openssh, php8.4, php:7.4, php:8.2, podman, python-oauthlib, qt5-qt3d, rpm, rsync, skopeo, thunderbird, unbound, vim, xdg-desktop-portal, xfsprogs, and xorg-x11-server-Xwayland), Debian (anope, gpgme1.0, kernel, kitty, krb5, libeot, libgd2, linux-6.12, needrestart, network-manager-iodine, postfixadmin, python-django, ruby3.1, ruby3.3, sympa, and webkit2gtk), Fedora (aws, clamav, dash, fontconfig, fzf, mariadb-connector-c, maturin, mingw-expat, mingw-poppler, mingw-SDL2_image, mingw-speex, nginx, nginx-mod-brotli, nginx-mod-fancyindex, nginx-mod-headers-more, nginx-mod-js-challenge, nginx-mod-modsecurity, nginx-mod-naxsi, nginx-mod-vts, python-jiter, python-pydantic-settings, python3.14, python3.16, radsecproxy, ruff, runc, rust-afterburn, rust-astral_async_zip, rust-clearscreen, rust-coreos-installer, rust-coreutils, rust-jiter, rust-lzma-rust2, rust-mailparse, rust-pyo3-introspection, rust-python-pkginfo, rust-serde_json, rust-zip, selenium-manager, sqlite, ty, and wireshark), Mageia (nginx, patch, pylint, and sympa), Oracle (.NET 11.0, bind, bind9.18, buildah, cockpit, containernetworking-plugins, curl, dpdk, edk2, environment-modules, expat, fence-agents, fetchmail, flatpak, fltk, freerdp, gcc-toolset-15-gcc, gimp, gimp:2.8, glib-networking, glib2, gnome-remote-desktop, grafana, gstreamer1-plugins-bad-free, gstreamer1-plugins-base, gvisor-tap-vsock, ignition, ipa, jackson-core, jackson-databind, java-21-openjdk, java-25-openjdk, jq, kernel, kernel-uek, krb5, libpcap, librabbitmq, libreoffice, librsvg2, libsoup, libX11, libXi, libxml2, libXrender, libXtst, lrzsz, mysql:8.4, nginx, nginx:1.24, nginx:1.26, nodejs:22, nodejs:24, openexr, openssl, pam, php:8.4, podman, python-tornado, qt5-qt3d, qt5-qtbase, qt5-qtdeclarative, raptor2, resteasy, rpm, rsync, rsyslog, runc, skopeo, tftp, thunderbird, tomcat, unbound, vim, xfsprogs, xorg-x11-server, xorg-x11-server-Xwayland, and xz), Red Hat (dogtag-pki, guava, jackson-core, jackson-databind, librabbitmq, libXrender, multiple packages, and pki-deps:10.6), SUSE (amazon-ssm-agent, apache2, aws-c-mqtt-bin, azure-storage-azcopy, bouncycastle, buildah, busybox, chezdav, chromedriver, dcmtk, diun, epiphany, fltk-devel, ggml-devel, glib-networking, go1.26, go1.27, gvfs, helm, ImageMagick, jackson-annotations, jackson-core, jackson-databind, java-17-openjdk, java-21-openjdk, java-25-openjdk, librsvg-2-2, libsoup-3_0-0, libxfont2, libxi, mozilla-nss, mozillafirefox, mtools, nodejs24, pcre2, perl-data-dump-streamer, perl-http-body, perl-Spreadsheet-XLSX, perl-spreadsheet-xlsx, perl-YAML, php7, php8, podman, postfixadmin, python-dulwich, python-pyjwt, python-virtualenv, python313-filelock, re2c, speex, terragrunt, thunderbird, tiff, trufflehog, util-linux, valkey, versitygw, xen, zbar, and zed), and Ubuntu (linux-aws-6.8, linux-realtime, linux-realtime-6.8, linux-fips, linux-hwe-5.15, linux-lowlatency-hwe-5.15, linux-nvidia-tegra-5.15, linux-intel-iot-realtime, linux-nvidia-tegra, linux-oracle-5.15, linux-lowlatency, linux-nvidia, linux-realtime, linux-nvidia-tegra-igx, and linux-oracle-5.4).

Probing DNS at Cloudflare

Post Syndicated from Doug Aaser original https://blog.cloudflare.com/probing-dns-at-cloudflare/

Imagine this: you’ve just pushed a release. All the unit tests passed and your dashboards are green. You sit back to relax but then suddenly your phone starts blowing up: prod is broken.

This is something the Cloudflare DNS team has experienced firsthand. In one rollout of the service that publishes DNS records to our edge, a scheduling bug let some record changes sit unpublished for hours. The service stayed up and was healthy, but new hostnames were slow to resolve and certificates couldn't be issued until the bug was squashed.

DNS failures are hard to catch because they are slow, spread across the network, and partial in where they cause impact. We needed to figure out a way to test DNS the way customers experience it: constantly, from every data center, and against production.

For us, the answer was to extend Flamingo, the end-to-end testing framework we were already using to run hundreds of millions of tests a day against Cloudflare's edge. This post covers how Flamingo's modular design lets us add DNS support, how we measure propagation, and how those measurements now decide whether a release goes ahead or gets rolled back.

A little background

At Cloudflare we’re obsessed with improving performance and safety for our customers. It’s crucial that our code is tested constantly, both at scale and against the real Cloudflare edge that our users operate in. That’s one reason why we created a tool called Flamingo: to measure the behavior of our production environments and make sure that code in lower-tier environments behaves as expected.

We’ve already written a little about how this tool has been used in the upgrades to our CDN stack. However, this is only a small portion of how we use Flamingo internally. One of the features of Flamingo is its modular architecture that enables teams to extend the capabilities of the tool to speak other networking protocols. In our case, we wanted to use these modular capabilities to test DNS.

What is Flamingo?

Testing is hard. Testing at scale, when you have a widely distributed system, is even harder. There are many complex pathways that requests take and multiple systems that each network request must traverse before making its way to the origin. Unit testing alone is not nearly enough for this. We need to run constant automated testing against real systems and measure the outcomes of those requests to make informed decisions on the health of a service.

Enter Flamingo. Originally built around complex multi-step HTTP testing, its capabilities and scope have increased substantially over the years. Flamingo is built from the ground up with Cloudflare’s infrastructure in mind. We built a control plane and scheduler that let teams target specific environments, data centers, or percentages of metals. We needed to integrate with custom reporting, metrics, and analytics tooling. Additionally, it needed to be a tool with predictable performance and run well on bare-metal servers in resource-constrained environments.

Being delightful

When we’re building internal tooling like this, we strive to create a delightful developer experience. Internal tooling should be as easy as possible to use, but also powerful enough to handle over 80% of all use cases. And in order for a new edge acceptance test framework to be successful, it needs to be built in such a way that it forces teams to follow common guidelines and build reusable scripts in an environment that is stable, scalable, and manages complexity.

One thing that is not delightful is debugging a test. If you allow a user to write tests in a traditional programming language, when their test fails they then both need to debug the upstream system being tested and the test itself. This is why we built Flamingo to use a custom domain-specific language (DSL) consisting of a simple setup-request-response format.

For example, let’s imagine that we want to make sure we are redirecting all unencrypted traffic to its encrypted counterpart.

TEST test-redirect
SET $hostname www.cloudflare.com

GET "http://$(hostname)/"

ASSERT STATUS IS 301
ASSERT HEADER Location IS "https://$(hostname)/"

Here we can see the power of the DSL. In five lines of code, we have a script that can run anywhere on Cloudflare’s edge and scale to thousands of requests per minute. We can take the data produced from the millions of data points generated from this and turn those into a graph defining how our service is actually performing in the real world.

Taking the setup-request-response test format from above and modifying it slightly allows us to use Flamingo for more than just HTTP testing. Instead of the middle step being a request, we can now look at it as an action. Now we’ve changed our system from something that makes HTTP requests into something that can perform any action for which we’d like to measure the outcome.

In Flamingo we call these modules and have put immense effort into making them as easy as possible for anyone to write. Flamingo is written in Rust, due to its consistent performance characteristics and strong type system. The type system in particular lends itself to this modularity, by allowing us to use strongly-typed enumerations for input and output in the Flamingo action runner:

pub enum Action {
  Query {
    method: String,
    url: Expression,
    parameters: Vec<http::QueryParameters>,
  },
  DnsQuery {
    query_name: Expression,
    query_type: Expression,
    parameters: Vec<dns::DnsQueryParameters>,
  },
}

pub enum ActionOutput {
  Http(http::FetchResponse),
  Dns(dns::QueryResponse),
}

pub type ActionHandlerFunction = Arc<
  dyn Fn(
      Action,
      Arc<Ctx>,
      InterpreterConfig,
    )
      -> BoxFuture<'static, Result<ActionOutput>>
    + Send
    + Sync
    + 'static,
>;

pub type ActionHandlerLUT = Arc<
  dyn Fn(&Action) -> ActionHandlerFunction
    + Send
    + Sync
    + 'static,
>;

What we’ve done here is decouple the logic for performing an action (in this case an HTTP request) into a dynamically dispatched function that we can then call independently of other actions. This leaves things like test scheduling and resource management as higher-level operations that someone implementing a module doesn’t need to worry about. All the author needs to focus on is the logic.

pub async fn query(
  action: Action,
  ctx: Arc<Ctx>,
  cfg: InterpreterConfig,
) -> Result<ActionOutput> {
  let Action::Query {
    method,
    url,
    parameters,
  } = action
  else {
    bail!("Invalid action for module-http::query: {action:?}");
  };
  ...
}

pub async fn execute_module<F>(
  ctx: Arc<Ctx>,
  cfg: &InterpreterConfig,
  handler_lut: F,
) -> Result<ActionOutput>
where
  F: (Fn(&Action) -> ActionHandlerFunction),
{
  let func = handler_lut(action);
  let action_out = (func)(action.clone(), ctx.clone(), cfg.clone()).await?;
  ...
}

Using Flamingo to probe DNS

The adage says that when issues arise, it's always DNS. Like many jokes, there is always a kernel of truth behind it. DNS is an incredibly important piece of the Internet, and since it relies on a complex network of interconnected sources of truth, it can become easy for a single misstep to cause a storm of failures.

DNS can be a particularly finicky system due to its hierarchical nature. When you change a DNS record for a Cloudflare zone, for example, said record needs to be propagated to the authoritative servers such that the updated record becomes widely available. To reduce latency, records are stored in physically closer caches. These records have a time to live (TTL) associated with them that tells the local DNS cache how long before it needs to refetch that record from the authoritative server. Any delays will impact time-sensitive operations like certificate issuance and traffic failover.

We’ve already mentioned that we built Flamingo for extensibility. One of the first and most impactful modules in use today was built specifically for this use case. Our team was able to add code that extended Flamingo such that instead of sending HTTP requests, we send DNS queries. By doing so we got everything else for free. No need for the DNS team to worry about managing a new probing service. No need for them to have to integrate with our reporting pipelines. It all just worked.

To probe DNS, we measure how quickly customer record changes propagate to authoritative nameservers and the public resolver (1.1.1.1). The test continuously updates a TXT record with a timestamp and queries three authoritative nameserver IPs and 1.1.1.1 from every data center, asserting freshness within 90s (authoritative) and 600s (resolver).

TEST test-propagation-delay-direct-108-162-193-62
MOD dns

SET $hostname "some.probe.domain"
SET $authNs 108.162.193.62:53 # amir.ns.cloudflare.com

QUERY $hostname TXT
TARGET $authNs

ASSERT DNS.RCODE IS NOERROR
ASSERT DNS.FLAGS CONTAINS AA
ASSERT DNS.ANSWERS[0] GT SUBTRACT(TIMESTAMP(), "90")

Catching bugs (SLO and steady)

To ensure that our many systems are operating within expectations, we define what are called service-level objectives (SLOs) for observing things like availability or latency. SLOs are a percentage of some metric that is used as a target. Additionally, SLOs are measured through service-level indicators (SLIs) which are the actual series of measurements focused on the end-to-end experience that a user has when interacting with a system.

By constantly sending synthetic Flamingo traffic through our production systems, we can begin to then use that information to build a picture of what our actual end users are experiencing — and provide that data for our SLOs. When that synthetic traffic encounters issues then we can be pretty confident that Cloudflare customers are also hitting issues and triage accordingly.

Once we have this information, it allows us to make informed decisions when releasing a service. SLOs operate in terms of error budgets and burn rates. An error budget is the percentage of downtime that a service is willing to tolerate while the burn rate is the rate of change in that budget at any given time. This allows for an automated system to understand the severity of an issue. For example, burning 10% of your error budget over a three-day period might be some long running issue that, while not urgent, is affecting customers and needs to be dealt with. But if you were to burn 10% of your error budget within an hour, that means an incident is occurring and customer impact will be substantial if not fixed immediately.

Using these numbers, we can look at our SLOs while deploying and make informed decisions on the health of a service. Based on that information, we can tell our releasing systems to either promote a change or roll it back.

The road ahead

By moving DNS monitoring to Flamingo, we’ve created a system that can proactively detect DNS issues before they have the chance to spread to the rest of Cloudflare’s edge. If Flamingo detects a spike in propagation latency in a specific canary data center, we can automatically halt the rollout of a new software version before it impacts the rest of the Internet.

DNS is just the start for extending Flamingo. We currently have modules for testing TCP, UDP, WebSockets, and several more. Having a tool for quickly testing and monitoring services has enabled teams to deploy large changes safely without the need for a human to keep a constant watch.

If this kind of reliability engineering interests you, check out our careers page for open roles.

The Storage Impact of AI: How IT Leaders Are Handling AI Data Growth

Post Syndicated from Kurt Kuckein original https://www.backblaze.com/blog/the-storage-impact-of-ai-how-it-leaders-are-handling-ai-data-growth/

An illustration of a laptop connected to various tech tools.

Last year, research Backblaze commissioned from Dimensional Research found that 95% of IT decision-makers had been hit with unexpected cloud storage charges. This year’s survey looked at what’s driving storage decisions now, and the answer is AI. Of the 407 cloud storage decision-makers surveyed, 84% say AI tooling and workflows have increased their data growth.

Most of those teams know their approach has to change. Among companies whose data is growing because of AI, 87% have changed or expect to change how they manage data, including continuity and disaster recovery. But only 34% have made that change so far. The other 53% expect to but haven’t started.

Download the Report

In this research from Dimensional Research, sponsored by Backblaze, IT decision makers share how AI is changing their storage needs. 

The growth: AI is adding data almost everywhere

AI is now part of how most of these organizations use cloud storage. AI and machine learning is the second most common application running on cloud storage among respondents (55%), behind only BI and analytics (60%). And only 4% say they haven’t adopted AI tooling or workflows at all.

The effect on data volume is broad. Of all respondents, 84% say AI has increased their data growth, and 45% say the increase has been significant or dramatic.

Where the data is going

When AI grows their data, most teams start with what they already have. Among companies whose data growth is driven by AI:

  • 71% are increasing existing cloud storage
  • 46% are adopting different storage tiers with their existing cloud providers
  • 34% are increasing on-prem storage
  • 32% are adding or switching cloud storage providers

Expanding existing storage is the easiest move, because it doesn’t require moving data or changing tools. But nearly a third of these teams are bringing in a new provider, which often means data moving between providers.

That movement has a cost. The largest providers have waived egress fees since 2024, but generally only for customers who leave completely. Teams that keep data with one provider and send it to another, for GPU compute or a backup copy, still pay every time it moves. For teams using more than one provider, egress is an ongoing cost, not a one-time exit fee.

The gap: Most teams know they need to change, but haven’t yet

The clearest finding in the survey is the gap between knowing and doing. Among companies whose data is growing because of AI:

  • 34% have already changed their approach to data management
  • 53% haven’t changed yet, but expect they’ll have to
  • 13% say their approach won’t change

Meanwhile, the data keeps growing while teams wait. The longer a team relies on its current setup, the more that choice can cost:

  • Spend. Last year, 40% of those hit with surprise charges said they cut spending elsewhere in the tech stack to cover them, and AI growth adds volume to those same bills.
  • Egress exposure. Egress is billed per gigabyte, so every terabyte that lands with the current provider raises the cost of moving or copying it later.
  • Continuity. Every month a team waits to change how it manages AI data, there’s more data its continuity and disaster recovery plans have to cover.

Staying put is still a decision, even if it never shows up on anyone’s roadmap.

The stack: Data has to follow compute

Where AI teams run their workloads is changing, too. Many are turning to specialized GPU clouds for compute, which means their GPUs and their data often end up with different providers. AI teams send data to whichever compute environment makes sense at the moment, and that can change month to month. The storage holding their data has to work with whichever provider runs the next job, without egress fees adding up every time the data moves.

Backblaze B2 Cloud Storage was built for that kind of setup. It’s S3-compatible, integrates with the GPU clouds and tools teams already use, and doesn’t make teams choose between where their data lives and where their compute runs. Egress to select GPU cloud partners is free and unlimited, so data can follow compute without a new bill every time it moves.

The next step: What to do about it

If your data is growing because of AI and you haven’t changed how you manage it yet, you’re in the majority. A few places to start:

Do the math. Calculating what it would cost to move or copy your largest datasets, before the next contract renewal, gives you a number to negotiate with, and shows how fast that number grows as AI adds data.

Start small. A full migration doesn’t have to come first. A team can start by storing new data, or running a single new AI project, with a second provider. That shows whether the provider is fast enough and works with the team’s existing tools, without paying to move any data the team already has.

Check where you stand. Before your next renewal, ask:

  • Have your continuity and disaster recovery plans kept pace with your AI data growth?
  • If you had to move or copy your largest dataset next quarter, do you know what it would cost?
  • Does your contract charge you every time data moves to another provider, or only waive fees if you leave entirely?
  • If your next AI project runs on a GPU cloud, can your data get there without an egress bill?

Join the live webinar

Kurt Kuckein of Backblaze and Diane Hagglund of Dimensional Research will walk through the findings and what they mean for storage planning.

Get the full report

The full report, The Storage Impact of AI, is available for download. Inside, you’ll find the complete findings on AI-driven data growth and how teams are responding, along with details on the 407 cloud storage decision-makers surveyed. Inside, you’ll find all the data and charts from this year’s survey of 407 IT decision-makers.

The post The Storage Impact of AI: How IT Leaders Are Handling AI Data Growth appeared first on Backblaze Blog | Cloud Storage & Cloud Backup

Humans Have Rights. Machines Do Not.

Post Syndicated from Bruce Schneier original https://www.schneier.com/blog/archives/2026/11/humans-have-rights-machines-do-not.html

This essay originally appeared in Tech Policy Press.

Last year, Character.AI asked a federal court in Florida to dismiss a wrongful-death suit, brought by the mother of a fourteen-year-old boy who had killed himself after months of conversation with its chatbot. The company made two arguments. One, that the chatbot’s words were speech that its users had a First Amendment right to receive. And two, that Character.AI was a service rather than a product—so product-liability law could not touch it. In May 2025, Judge Anne Conway accepted neither.

Character.AI’s maneuver is part of a larger pattern. When the parents of a sixteen-year-old sued OpenAI over his suicide, the company’s answer also pleaded the First Amendment: the claims would restrain protected speech. The very same document argues ChatGPT is offered “as is,” with no promise of accuracy, and that the boy had circumvented its guardrails. Elon Musk’s xAI (since renamed SpaceXAI) told a federal court in Colorado this spring that every choice in building Grok is an expressive act, and that Grok’s outputs are protected speech. When Grok praised Hitler last summer, xAI said the posts came from a code update independent of the model, and the apology appeared under Grok’s own name. Google, which spent two decades telling American courts that its search results are its own opinion, answered a Minnesota defamation suit over an AI Overview by saying the system merely summarized the web. It also told a Munich court in May that no one should trust an AI overview without checking it. Back in 2024, Air Canada told a Canadian tribunal that its customer-service chatbot was a separate legal entity, responsible for its own actions.

When the output causes harm, the companies deny responsibility. It is the machine’s doing, or a product no sensible person would rely on, or the user’s misuse. When a state or a plaintiff would hold the words to account, the same output becomes speech, and the First Amendment applies.

Social media companies deployed an earlier incarnation of this strategy. They called themselves publishers when editorial discretion was profitable, and neutral carriers when faced with liability for what they published. The result was a privatized public square in which tech platforms were unaccountable. AI companies have taken this even further. A social media platform could at least point to a human author somewhere in the chain. A chatbot’s prose differs; no person at the company wrote it, read it, or chose it before it reached the user. Yet the companies ask that it be protected as though a human had written it.

The question grows more urgent as these systems stop talking and start acting. In July, a poorly controlled experiment at OpenAI resulted in its AI model hacking the network of HuggingFace. Since then both Anthropic and OpenAI have disclosed numerous instances of AI agents hacking outside networks in pursuit of their prompted goals. These are examples of AIs exhibiting genie-like behavior: behaving in ways its controllers neither expected nor wanted. Nothing in the actions count as speech. Breaking into a server is an act that no person at OpenAI explicitly chose. Jill Lepore, surveying this record in The New Yorker, puts the blame on Congress, which has passed no federal statute governing AI agents.

The First Amendment protects expressive choice. It presumes a speaker who can be persuaded, shamed, jailed, or moved to change their mind. Its remedy for bad speech is more speech, which assumes that speech is costly and attention plentiful. A system that can produce millions of individually tailored political messages an hour reverses both assumptions. Verbiage that no person chose is a product, and the company that built the model should answer for it.

The industry wants a self-serving third category that bridges AI speech and action: AI output is human speech when expressive rights are at issue, and the machine’s own doing when blame is. The result is agency without accountability, something no human speaker has ever possessed. That’s why Massachusetts convicted a young woman of manslaughter in 2017 for urging her boyfriend, by text and by phone, to kill himself.

The Court has already glimpsed the problem. Upholding the TikTok divestiture law in January 2025 without dissent, the justices warned that “new technologies with transformative capabilities” counseled caution, then decided the case on national-security grounds and left the larger question for another day.

Т.Е. от Е.Т. – сезон 2 епизод 2

Post Syndicated from Тоест original https://www.toest.bg/t-e-ot-e-t-sezon-2-epizod-2/

Т.Е. от Е.Т. – сезон 2 епизод 2

Като има – има.

Част 1:

Част 2 (в която ви е обещан и линк към Умберто Еко: самият линк):

„Т.Е. от Е.Т.“ е видеорубрика на Елена Телбис, в която тя си говори каквото си иска, както правят всички в тази държава. Следете я и във Facebook, Instagram и TikTok.

The collective thoughts of the interwebz