By NHI Mgmt Group Editorial TeamBased on Sonrai Security: “Fighting Eventual Consistency-Based Persistence - An Analysis of notyet” (April 8, 2026)

TL;DR: AWS IAM changes can take seconds to propagate, and OFFENSAI’s notyet tool shows how an attacker with valid credentials can exploit that window to restore privileges and outlast common containment steps. The core problem is that incident response playbooks still assume privilege removal is immediately durable, according to Sonrai Security’s analysis.


At a glance

What this is: This analysis examines how eventual consistency in AWS IAM can let a compromised identity regain privileges after containment actions are taken.

Why it matters: It matters because IAM teams and incident responders need containment methods that remain effective even when privilege changes are not instantly enforced across the cloud control plane.


Context

AWS IAM eventual consistency means an identity change is not always enforced everywhere at once. In that brief propagation window, a principal may still behave as if its previous permissions remain valid, which creates a containment problem rather than a simple configuration delay.

For cloud IAM and incident response teams, the issue is not whether privilege removal is requested, but whether the removal is durable before the actor can react. This article focuses on how that gap affects NHI containment, role revocation, and quarantine design.

Sonrai Security’s analysis is grounded in AWS IAM behaviour and the way containment playbooks interact with it. The starting point is typical for cloud incident response, but the persistence pattern it exposes is not.


Key questions

Q: What breaks when IAM revocation is not immediately enforced?

A: The compromised identity can observe the change, recreate permissions, or shift into a fresh credential path before containment completes. That turns revocation into a race rather than a boundary. In practice, the failure is not policy syntax but delayed enforcement, which is why cloud containment needs a higher-order control that the identity cannot undo.

Q: Why do local IAM changes fail against eventual consistency persistence?

A: They fail because the compromised identity still has a short period in which the old permissions can be used or rebuilt. Inline policies, managed policies, permission boundaries, key deactivation, and role deletion all remain vulnerable if the attacker can react before AWS finishes propagating the change.

Q: How can security teams tell whether an AWS quarantine control is actually working?

A: A quarantine control is working only if the identity cannot undo it from within the same account and cannot regain privileges during propagation. If the actor can reattach access, recreate roles, or regenerate keys after a revoke, the control is not durable enough for incident containment.

Q: What should teams do when a compromised AWS identity keeps restoring access?

A: Treat the behaviour as a containment design failure, not a one-off cleanup problem. Move the response to an account-level or organisation-level restriction the identity cannot detach, then retest the playbook against credential recreation and policy reattachment loops before relying on it in production.


Technical breakdown

Why eventual consistency creates a containment window in AWS IAM

AWS IAM is eventually consistent, which means an update such as policy removal, key deactivation, or role deletion does not become effective everywhere at the same instant. For a compromised identity, that creates a narrow but exploitable window where the old privilege state can still be observed and acted on before the change fully propagates. In the article’s example, the attacker does not need to break the control after the fact. It only needs to detect the change and race the defender by re-establishing access before the system converges.

Practical implication: containment has to assume a short-lived privilege replay window, not instantaneous enforcement.

Why common IAM containment actions can be reversed

The article shows that several normal response actions are vulnerable when the identity can execute during the propagation gap. Inline policy edits, managed policy detachment, permission boundaries, group membership changes, access key deactivation, and even role deletion can be observed and countered by an automated persistence loop. The key mechanism is not a single misconfiguration. It is the combination of delayed enforcement and an attacker identity that can keep polling for changes, then rebuild its own access state before the defender’s change becomes durable.

Practical implication: response playbooks must be tested against adversarial reversion, not just against static privilege removal.

Why SCP-based quarantine behaves differently

Service Control Policies change the containment model because they sit above the member-account identity and restrict what that identity can do even if it still holds local permissions. In the article, SCPs are effective because the compromised principal cannot detach them the way it can undo inline policies or policy attachments inside its own account. That makes the quarantine control structurally stronger than local IAM changes. The remaining caveat is scope, because SCPs apply in AWS Organizations and not to every account model or management-account scenario.

Practical implication: if your containment design depends on local IAM alone, you are still inside the attacker’s control loop.


Threat narrative

Attacker objective: The objective is to retain privileged cloud access long enough to survive incident response actions and preserve administrative control of the AWS account.

  1. Entry begins with valid access key or role session credentials already held by the attacker-controlled identity.
  2. Credential access and privilege escalation occur when the tool self-escalates to administrator access and monitors for containment changes.
  3. Persistence follows when the actor restores removed permissions, recreates credentials, or rebuilds a new role before propagation completes.
  4. Impact is prolonged administrative access that defeats standard containment steps and delays full incident isolation.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Eventual consistency turns containment into a race, not a state change: AWS IAM assumes privilege updates will converge quickly enough for normal response actions to succeed. That assumption fails when the compromised identity can observe the change and restore itself before convergence completes. The implication is that cloud incident response must be designed around enforcement latency, not around the moment an API call returns success.

Local IAM revocation is not the same as durable quarantine: Inline policy edits, managed policy detachment, permission boundaries, and access key deactivation all operate inside the same account-level control surface that the attacker can still influence during the propagation gap. Sonrai Security’s analysis shows that these actions can be reversed fast enough to preserve attacker access. For practitioners, the governance lesson is that revocation must be anchored in a control plane the compromised identity cannot undo.

Quarantine control has to sit outside the compromised principal’s reach: The article’s effective control is not a more aggressive version of the same IAM action but a higher-order restriction through AWS Organizations SCPs. That is a different governance model, because the principal cannot self-remediate against it in the same way. The named concept here is identity containment latency, and it is now a design variable in AWS incident response.

Automated persistence exposes a standing-privilege assumption in IR playbooks: Incident response procedures were written for identities that lose privilege and then stay lost. That assumption breaks when an attacker can reconstitute access automatically within the same response cycle. The implication is that identity governance and incident response are no longer separate disciplines for cloud accounts; they must be evaluated as one control loop.

Cloud access containment must be validated against adversarial reversion, not policy intent: A control is only meaningful if it remains in force after the target identity has had a chance to react. The article shows that intent-based revocation is insufficient when a compromised actor can rebuild access faster than the organisation can confirm the revoke. Practitioners should treat containment effectiveness as a tested property, not an assumed outcome.

From our research library:

What this signals

Identity containment latency: Cloud IAM response has to be designed around the time it takes for privilege changes to become durable, not around the time it takes to submit them. That shifts the control question from “Was access revoked?” to “Could the actor still act before the revoke propagated?”

The practical boundary is no longer the revoke action itself but the level at which quarantine is enforced. In AWS, that pushes teams toward controls the compromised identity cannot self-repair, and toward testing playbooks against adversarial reversion rather than assuming cleanup equals containment.


For practitioners

  • Quarantine privileged identities with org-level controls Use AWS Organizations SCPs to deny the compromised principal’s actions from outside the member account, because account-local revocation can be reversed during IAM propagation.
  • Redesign incident response for propagation latency Assume that IAM changes may take seconds to become durable and that an attacker can poll and react within that window, so containment workflows must account for enforcement delay.
  • Test containment against active reversion Exercise playbooks with an adversarial loop that attempts to recreate roles, reattach policies, and regenerate credentials after every revoke so you can see which actions hold.
  • Separate local revocation from durable quarantine Reserve access key deactivation, policy edits, and role deletion for secondary cleanup, then rely on a control the identity cannot detach for the actual quarantine decision.
  • Validate management-account assumptions Confirm which containment controls apply to the AWS Organizations management account, because SCP-based quarantine has different limits there than in member accounts.

Key takeaways

  • AWS IAM eventual consistency creates a real containment gap because privilege removal is not always immediate across the control plane.
  • The article shows that common revocation methods can be reversed by an attacker that reacts during the propagation window.
  • Organisation-level quarantine controls matter because durable containment requires a restriction the compromised identity cannot undo.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST SP 800-53 Rev 5, CIS Controls v8 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-05 — Overprivileged NHIThe article centers on a compromised cloud identity regaining excessive permissions during containment.
NHI-07 — Long-Lived SecretsAccess keys and session credentials remain exploitable long enough to sustain persistence during response.
Recommendation — Reduce standing permissions on cloud identities and verify quarantine paths against privilege re-escalation. Shorten the usable lifetime of cloud credentials and treat stale access paths as incident containment risk.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementCredential deactivation and rotation are central to the containment methods discussed in the article.
Recommendation — Apply authenticator management controls to revoke, rotate, and invalidate credentials under incident response.
CIS Controls v8CIS-5 — Account ManagementThe article repeatedly tests whether account-level changes can be reversed fast enough to preserve access.
Recommendation — Use account management controls to detect, restrict, and quarantine identities that can self-repair privilege.
MITRE ATT&CKTA0006;TA0008 — Credential Access; Lateral MovementThe persistence loop depends on credential use and repeated privilege regain across the cloud environment.
Recommendation — Map these containment failures to credential access and lateral movement so detection and response target the full chain.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article is fundamentally about whether access permissions can be removed fast enough to stay removed.
Recommendation — Align entitlement revocation and quarantine workflows to PR.AA-05 and validate them against propagation delay.

Key terms

  • Eventual Consistency: A system property where a change is accepted before every part of the platform reflects it. In cloud identity, that matters because a revoked permission may still be usable for a short period, creating a window in which an attacker or automated tool can act before enforcement converges.
  • Containment Gap: Containment gap is the space between detecting a risky condition and actually limiting its spread. In practice, it appears when teams can see exposed ports, reachable workloads, or suspicious flows but lack the policy, ownership, or segmentation to stop movement quickly.
  • Endpoint Quarantine: Endpoint quarantine is the immediate isolation of a suspected infected device so it cannot spread malware or continue unsafe activity. It is a containment step used after detection, especially when organisations need to preserve business operations while they investigate and restore the endpoint safely.
  • Privilege Revocation: Privilege revocation is the process of removing access after a task is complete, a time limit expires, or a policy condition is no longer met. Automated revocation is important because it shortens the lifetime of credentials and helps prevent leftover access from being used by attackers or insiders.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on June 23, 2026.
Updated on October 11, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org