Skip to content

Client quarantine

Close a whole client for a while during an attack or a leak: who still gets in, the measures taken at the start, how it ends, the automatic quarantine, the AI reading, the screen and the admin API.

A quarantine closes one client for a period, so an attack or a leak that runs through one application is contained in one step instead of person by person and address by address. While it holds, the client lets in only who its access mode allows, and the measures chosen with it run once, at the start.

You put a client in quarantine in Quarantine, from an incident in Attack protection or through the admin API. A client can also go into quarantine by itself, when its policy is on and the attack protection sees a mass attack through it.

How it works

  • Now or later. A quarantine starts at once or at a date and time up to 90 days ahead, and lasts from 5 minutes to 180 days, or until somebody ends it. A scheduled one refuses nobody and takes no measure before its start.
  • One at a time. A client has at most one quarantine standing, in force or scheduled; asking for another is refused with ClientQuarantineActive. To hold the client longer, change the end.
  • It closes the client, not the realm. The realm’s other clients keep signing people in. Only new passwords reach further, because the password belongs to the person’s account in the realm.
  • System clients are left out. The console’s own client cannot be put in quarantine (SystemProtected), so a quarantine never locks you out of the console.

Access modes

The mode decides who still signs in, and who still obtains a token, while the quarantine holds.

ModeWho gets inNotes
ClosedNobody. No one signs in and no one obtains a token.The sign-in screen refuses as it opens, before asking for any credential.
Only the people listedOnly the people on the list, up to 50, and the members of the client’s groups let in, up to 20 groups.Every other sign-in is refused, and so is the client_credentials grant.
OpenEverybody. Nobody is refused.Only the measures apply: use it to end access or renew passwords without closing the application.

Measures

Any mode can carry the three measures below. Each runs once, when the quarantine starts.

MeasureWhat it does
End the client’s accessEnds the client’s sessions, with the single sign-on behind them, and invalidates every token the client issued before the start. The cut is by issue time (iat) and is checked when Authio’s APIs read a bearer token, at introspection and on refresh.
Ask for new passwordsMarks every person linked to the client to change their password at their next sign-in with a password. The password belongs to the account in the realm, so the change holds in every client of the realm.
Ask for a second factorEach new sign-in to the client asks for a second factor the person already has, the way a step-up request does. Single sign-on does not spare it, and the password grant, which cannot ask for one, is refused.
  • Under Ask for a second factor, a person with no second factor still gets in with the password alone.
  • Sessions opened before the quarantine keep going, unless the quarantine also ends the client’s access.
  • Ending the quarantine undoes no measure: the tokens it cut stay invalid, and whoever was asked for a new password still has to choose one.

Duration and end

A quarantine runs for the period chosen when it was put in: it starts at once or at a scheduled moment, and ends at a date and time or stands until somebody ends it (Until ended). It ends in one of three ways:

EndHow
At its timeIt ends by itself when its period runs out.
By handEnd the quarantine, on its page, ends it at once. A reason is required, up to 500 characters, and the page then says who ended it, when and why.
CancelledA scheduled quarantine ended before its start is cancelled, with Cancel the quarantine and a reason. An automatic quarantine that starts first on the client also cancels it, and the cancelled one links the one that took its place.

Either way, access returns at once and the measures stay done. Change the end, on its page, moves the end of a quarantine in force or scheduled to another date and time, at least 5 minutes from now and from the start and at most 180 days after the start, or to Until ended; the page then says who moved it and when. To change its mode, end it and put in another.

Automatic quarantine

Each client has a quarantine policy, in the Quarantine section of its page, that puts it in quarantine by itself during a mass attack. A client whose policy was never set has it off.

The policy

SettingWhat it decides
LevelOff, Low or High. Each level starts a quarantine of the length the policy sets for it, from 5 minutes to 7 days: 15 minutes for Low and 4 hours for High until changed.
Blocked sourcesHow many sources one attack must have blocked through the client to set it off, from 2 to 20; 3 until changed.
Access modeClosed, Only the people listed or Open, as above.
MeasuresEnd the client’s access, Ask for new passwords and Ask for a second factor, as above.
People and groups let inUp to 50 people and 20 groups of the client, for Only the people listed.
Message at sign-inUp to 280 characters the hosted login shows to whoever the quarantine refuses, the same in every language.

Saving the policy needs client:update; whoever only reads clients sees it without fields to edit.

What sets it off

With Low or High, the client goes into quarantine when the attack protection, within one incident:

  • blocks, in a credential stuffing or password spraying attack made through the client, the number of sources the policy sets (the third, until changed); or
  • treats a password used on the client as exposed.

Brute force on one account, push bombing and password recovery abuse never start one, and a client already in quarantine does not start another.

An automatic quarantine is tied to the incident that set it off: the incident in Attack protection shows it, with a link to its page. The account’s operators also get a notification in Notifications that names the client and how long it stays in quarantine, and opens the quarantine’s page.

What a person and an application see

WhereWhat happens
Hosted loginA person the mode keeps out is told that this application is closed for now to protect its accounts, then when it opens again, when the quarantine has an end, and the quarantine’s own message, when it has one. In the Closed mode the screen refuses as it opens, without asking for any credential. See Hosted login.
Token endpointA token request the quarantine keeps out gets unauthorized_client, with the code ClientQuarantined: every request in Closed, client_credentials and anyone off the list in Only the people listed, and the password grant under Ask for a second factor. See Error codes.
Tokens issued beforeWith End the client’s access, a token the client issued before the start is refused as a bearer token by Authio’s APIs, reads active: false at introspection and cannot be refreshed.
Access logEach refusal is recorded with the reason Client quarantined, in Monitoring › Access.

Tokens checked locally

A resource server that validates access tokens on its own, by their signature, without introspection, keeps accepting a token issued before the start until it expires. Have it use introspection where a quarantine must take effect at once.

The AI reading

The AI analyst reads each quarantine twice, when it starts and when it ends, and writes on the quarantine’s page:

  • What happened and why the client went into quarantine.
  • An assessment: Contained, Still going on, Precaution or Inconclusive.
  • Findings and recommendations.

Each recommendation carries one action that opens the screen that resolves it: rotate the secret, review the network, require a second factor, renew passwords, review the people, see the attack, extend the quarantine or end it. Nothing is applied until somebody acts on that screen.

  • It needs a plan with the AI advisor and consent for the client, given on its realm or on the client itself; see Authio AI. Without them, the page says the AI is not on for the client and leads to where it is turned on.
  • An account gets at most 12 quarantine readings a day.
  • Addresses and names never reach the AI provider.
  • A reading that failed can be asked for again with Ask again, by whoever may update clients (client:update).
  • On a Dedicated environment, the reading exists only when the instance has its AI provider configured; see Configuration variables.

The quarantine screen

Quarantine, in the Security group of the menu, shows the quarantines of a window of days (30 back to 14 ahead until you pick another), of the realm chosen in the realm selector or of every realm under All realms: where they stand and when the standing ones end, how they started and where they held, a calendar in which picking a day narrows the list, and the list itself, each card with the client and its client ID, how the quarantine started, the time it has left and who gets in, filtered by state, origin, access and client, ordered, grouped and opened in the side panel. Quarantine a client opens the creation panel.

WhereWhat you find
A quarantine’s pageOpened from the list: its standing, with the time left as a ring, or when a scheduled one starts; who moved its end; the activity in columns, the sign-ins refused and those let through; the measures; the people and groups let in; the message at sign-in; the AI reading; the origin, with links to the incident, the attacks and the access log; and Change the end and End the quarantine (Cancel the quarantine before its start).
The client’s pageThe Quarantine section, with the client’s automatic quarantine policy, and a banner at the top while the client is in quarantine or has one scheduled.
Attack protectionOn an incident that came through a client, Quarantine the client, with the client and the incident filled in.

Put a client in quarantine

  1. Open the panel

    In Quarantine, choose Quarantine a client. From an incident in Attack protection, Quarantine the client opens it with the client and the incident filled in.

  2. Choose the client and the period

    Pick the client, then the period on the calendar: start now or at a date and time, end at a date and time or Until ended, or use a shortcut from 15 minutes to 7 days.

  3. Choose who still gets in

    Closed, Only the people listed, with up to 50 people and 20 groups of the client, or Open.

  4. Choose the measures

    End the client’s access, Ask for new passwords and Ask for a second factor; the message shown at sign-in to whoever is refused, beside a preview of the refusal; and a note if you want one.

  5. Confirm

    The panel sums up what will happen, when it starts and when it ends. Put into quarantine starts it at once, or Schedule the quarantine when the start is ahead, and opens its page.

Permissions

PermissionWhat it allows
client:readOpening Quarantine and reading the quarantines, their activity, their AI readings and a client’s policy. Without it, Quarantine does not appear in the menu.
client:updatePutting a client in quarantine, moving the end of a quarantine, ending or cancelling one, saving a client’s policy and asking again for a reading that failed.

Putting a client in quarantine, moving an end, ending or cancelling one, saving a policy and asking again for a reading are recorded in the change trail, under the name of whoever did it.

Admin API

Quarantines are in the Admin API, called with an API secret in the x-api-key header. On Node.js, @hyper.authio/admin calls every route below, as admin.clientQuarantine, admin.clientQuarantineOverview and admin.clientQuarantinePolicy (see The Admin API from the libraries); on .NET, where IAuthioAdminClient has no method for them, an HttpClient given AddAuthioAccountCredential() calls the routes. Paths are relative to /api/v1/admin.

EndpointPermissionWhat it does
GET /client-quarantinesclient:readQuarantines, the standing ones first. realmId, clientId, status (Active for those in force or scheduled; Lifted, Expired or Cancelled), origin (Manual, Automatic) and incidentId narrow them; pageNumber and pageSize page them.
GET /client-quarantines/overviewclient:readThe quarantines touching a window (from, to; 30 days back to 14 ahead by default, up to 120 days), of every realm you administer unless realm or client narrows it: the totals, the figures of each day and up to 500 quarantines, with isTruncated when there are more.
GET /client-quarantines/{quarantineId}client:readOne quarantine.
GET /client-quarantines/{quarantineId}/activityclient:readWho tried to enter during it: the password sign-ins refused and the accesses let through, over time.
GET /client-quarantines/{quarantineId}/briefingsclient:readThe AI readings of its start and its end.
POST /client-quarantinesclient:updatePuts a client in quarantine and answers 201. Refused with 409 ClientQuarantineActive when the client already has one standing, 403 SystemProtected for a system client, 400 ClientQuarantinePersonNotFound when a person in allowedUserIds is not a person of the realm and 400 ClientQuarantineGroupNotFound when a group in allowedGroupIds is not an active group of the client.
PUT /client-quarantines/{quarantineId}/endclient:updateMoves the end of a quarantine in force or scheduled: endsAt, or null for one that stands until somebody ends it. Refused with 409 ClientQuarantineEnded when it already ended, and 400 when the end falls less than 5 minutes from now or from the start, or more than 180 days after the start.
POST /client-quarantines/{quarantineId}/liftclient:updateEnds it now, with a reason; before its start it cancels it. Refused with 409 ClientQuarantineEnded when it has already ended.
POST /client-quarantines/{quarantineId}/briefings/{briefingId}/retryclient:updateAsks again for a reading that failed. Refused with 409 AiQuarantineBriefingNotRetryable when the reading did not fail.
GET /realms/{realm}/clients/{client}/quarantine-policyclient:readThe client’s automatic quarantine policy.
PUT /realms/{realm}/clients/{client}/quarantine-policyclient:updateSaves it: level (Off, Low, High), lowDurationMinutes and highDurationMinutes (5 to 10080), sourcesToTrigger (2 to 20), access, endsAccess, requiresPasswordChange, requiresSecondFactor, allowedUserIds, allowedGroupIds and messageShownToUsers.

A quarantine that does not exist, or is in a realm you do not administer, answers 404 with ClientQuarantineNotFound. POST /client-quarantines takes:

FieldWhat it holds
realmId, clientIdThe realm and the client, by their IDs, such as acme and acme-web.
startsAtWhen it starts, up to 90 days ahead; null or absent starts it now.
endsAtWhen it ends, 5 minutes to 180 days after the start; null for a quarantine that stands until somebody ends it.
durationMinutesStill taken instead of endsAt: the minutes after the start, within the same limits.
accessClosed, AllowListed or Open.
allowedUserIdsThe people AllowListed lets in, up to 50.
allowedGroupIdsThe active groups of the client whose members AllowListed lets in, up to 20.
messageShownToUsersOptional, up to 280 characters the hosted login shows to whoever the quarantine refuses.
endsAccess, requiresPasswordChange, requiresSecondFactorThe measures, each true or false.
noteOptional, up to 500 characters.
incidentIdOptional: the attack incident the quarantine answers.
Node.jsTypeScript
// Close a client until 6 pm
const quarantine = await admin.clientQuarantine.start({
  body: {
    realmId: 'acme',
    clientId: 'acme-web',
    endsAt: '2026-11-02T18:00:00Z',
    access: 'Closed',
    allowedUserIds: [],
    endsAccess: true,
    requiresPasswordChange: false,
    requiresSecondFactor: false,
    messageShownToUsers: 'We are fixing a security issue and will be back at 6 pm.',
    note: 'Credential stuffing through the web app',
  },
})

// Move its end
await admin.clientQuarantine.changeEnd({ quarantineId: quarantine.id!, body: { endsAt: '2026-11-02T22:00:00Z' } })

// End it
await admin.clientQuarantine.lift({ quarantineId: quarantine.id!, body: { reason: 'Secret rotated and attack contained' } })

Webhooks

Three events reach both the endpoints of the client in quarantine and those of its realm:

EventSent when
client_quarantinedA quarantine starts, put in by hand or by the client’s policy.
client_quarantine_changedThe end of a quarantine moves.
client_quarantine_endedA quarantine ends, at its time or by hand, or is cancelled before its start.

All three carry in data the quarantine’s id, client_id, origin, status (Cancelled for one cancelled before its start), access, allowed_user_ids, allowed_group_ids, ends_access, requires_password_change, requires_second_factor, starts_at (ahead for a scheduled one), ends_at, incident_id and lifted_at. See Webhooks to subscribe an endpoint and verify what it receives.

Limitations

  • A client has one quarantine standing at a time: the next one cannot be scheduled while one holds; move its end instead.
  • People and groups of the client can be let through; roles cannot.
  • The message at sign-in is one text, shown the same in every language.
  • It never rotates the client’s secret by itself. The AI reading recommends it when it fits; see Rotating secrets.
  • A resource server that validates access tokens locally, without introspection, keeps accepting a token issued before the start until it expires.
  • The activity counts the password sign-ins refused and the accesses let through; refused machine requests (client_credentials) are not counted.

Next steps

Analytics cookies

We would like to measure how the console is used, with Google Analytics, so we can see which screens people get stuck on. It writes a cookie that recognises this browser on your next visit.

Refusing changes nothing else. The cookies that keep you signed in and remember your language and theme are needed to run the console, and stay either way. Read the Privacy Policy