Skip to content
Software development
ASD ISMISM-2049

ASD ISM 2049 Enforcing re-authentication after permission changes

What it says

When user permissions or credentials are changed, software forces all impacted users to re-authenticate.

Quoted as published. Everything else on this page is written by Control Stack.

In plain English

When user permissions or credentials change, software must force every impacted user to authenticate again, ending sessions that began before the change.

When user permissions or credentials are changed, software must force all impacted users to re-authenticate, meaning prove who they are again before continuing. Impacted users are those whose own password, passkey, key or other credential changed, and everyone whose permissions changed, including every holder of a role whose rights were edited. This includes non-human users, such as service accounts. No session or token they held before the change may continue.

Why it matters

Sessions can keep the access they started with. Without forced re-authentication, someone whose access was cut keeps using it, and an attacker holding a stolen session or token stays signed in after the victim changes their password.

How to implement

  1. List every change that triggers re-authentication.

    Include changes to passwords, passkeys, keys and other credentials, enrolment or reset of any authentication factor, changes to a user's roles or groups, and edits to a role's permissions, which impact every holder. Cover changes through the interface, the API, bulk imports and directory synchronisation.

  2. Make every session and token revocable.

    Keep session state on the server (ISM-2066 requires this for web applications) and give each user a security version that changes with every trigger and is checked on each request and token refresh. Keep self-contained tokens short-lived, and check them against a revocation list.

  3. End every existing session and token for each impacted user.

    When a trigger fires, revoke their sessions, access tokens and refresh tokens on every device, including any session they used to make the change, so the next request needs a fresh sign-in. With single sign-on, ask the identity provider for a fresh login rather than accepting its existing session.

  4. Test each trigger before release.

    Sign a test user in on two devices, make each listed change, and confirm every existing session, access token and refresh token is refused on its next use. Do the same for a service account's token. For software a supplier builds, make this an acceptance test.

Keep it running

Add each new credential type, role feature or integration to the trigger list as it is built, and re-run the tests. A removed user keeping access, or a session outliving a password change, should prompt a review of every trigger path.

Evidence and audit

  1. Check 1 of 4What an auditor asks for

    Ask for

    A test in which a user signed in on two devices has their password changed, then, after signing in again, has their role changed.

    Look at

    Whether each existing session, access token and refresh token is refused on its next use after each change.

    Good evidence

    After each change, every session, access token and refresh token issued before it is refused, and the user can continue only by authenticating again.

  2. Check 2 of 4What an auditor asks for

    Ask for

    A test in which an administrator edits the permissions of a role held by several signed-in test users.

    Look at

    Whether every holder of the role must re-authenticate, not only one of them.

    Good evidence

    Every signed-in holder of the edited role is forced to re-authenticate, and none keeps working in a session from before the change.

  3. Check 3 of 4What an auditor asks for

    Ask for

    A test in which a service account's credential or permissions change while it holds a valid token.

    Look at

    Whether the existing token still works after the change.

    Good evidence

    The token issued before the change is refused, and the service account must authenticate again to continue.

  4. Check 4 of 4What an auditor asks for

    Ask for

    The list of trigger changes, and a search of the code for every write to credentials, roles and permissions, including API, bulk import and directory synchronisation paths.

    Look at

    Whether each write the search finds is on the list and forces re-authentication of all impacted users.

    Good evidence

    Every write found in the code is on the list and forces all impacted users to re-authenticate.

Mappings

Closest match in ISO/IEC 27001: A.5.18, Access rights, which this control partially meets.

ISO 27001

ISO/IEC 27001: 2 mappings

  • A.5.18Access rightsPartially meets
  • A.8.5Secure authenticationPartially overlaps

Mappings show how controls relate across frameworks. They do not imply full equivalence or certification.