Threat Detection
With threat detection, LumoAuth checks four things in your organization: sign-in attempts, signed-in sessions, tokens and agents. When it finds an attack campaign, a session that was taken over, a replayed token or an agent that behaves unusually, it opens an incident that shows what happened and where it came from. It alerts you, and it can respond by itself: block the sources, end sessions, require a new password, revoke tokens or suspend an agent.
A single failed sign-in is handled by brute force protection and rate limiting. Threat detection examines the pattern across many attempts, which the limits per account and per address do not cover.
Threat detection is part of the Threat Detection add-on. See Plans and add-ons for where it is available.
What it detects
Every rule is a fixed rule over data that LumoAuth already records. There is no hidden score. Each incident lists what fired the rule, so you can check it yourself.
| Incident type | What it means |
|---|---|
| Password spraying | One source fails to sign in to many different accounts in a short time. A source is one IP address, or one network when several of its addresses take part. |
| Credential stuffing | Failed sign-ins rise across the whole organization: many accounts, many sources, most attempts fail, and the number is far above what is usual for your organization. |
| Distributed brute force | One account fails to sign in from many different sources. |
| Known attacker network | Someone tried to sign in from a network that recently took part in attacks on several organizations. See Attacker networks. |
| Session hijack | A signed-in session continues from a different browser and a different network at the same time. See Session anomalies. |
| Token replay | A refresh token, an authorization code, a DPoP proof or a client assertion is presented a second time, or a refresh token is used from a different network than a short time before. See Token replay. |
| Agent anomaly | An agent calls far more often than it usually does, is refused many times in a short time, or appears from a network that it did not use before. See Agent anomalies. |
The campaign rules run once a minute. They compare the attempts of the last minutes with the thresholds that you set under Rules. Sessions and tokens are checked while they are used. Agents are checked every few minutes.
For credential stuffing, the rule also compares the current number of failed sign-ins with your organization's own level over the last seven days. A busy organization with many mistyped passwords every morning therefore does not open an incident every morning.
Open the page
In the portal, go to Security → Threat detection. The page has four sections.
| Section | What it shows |
|---|---|
| Overview | Open incidents, incidents of the last 24 hours and the last 7 days by type, and the number of active blocks |
| Incidents | Every incident, with filters for status, type and severity |
| Rules | The thresholds of each campaign rule and its automated responses, the setting for attacker networks, and what happens for session anomalies, token replay and agent anomalies |
| Block list | Sources that are blocked now, and a form to block a source yourself |
Who can use it. You see the page with the permission to view audit logs (audit.view) or to view settings (settings.view). Changing rules, changing the block list and closing incidents need the permission to manage security settings (settings.manage).
Without the add-on the page still opens. It shows what is not included, and incidents and blocks from an earlier time stay visible. No new attack is detected and nothing is applied automatically. You can still close an incident and remove a block.
Replayed tokens are refused on every plan, with or without the add-on. The add-on adds the incident, its evidence, the alert and the responses.
Incidents
An ongoing campaign is one incident. While the campaign continues, the same incident is updated; it does not open a new incident every minute. The same holds for the other types: one incident per session, one per application (and user) and day for token replay, and one per agent.
Severity
For attack campaigns:
| Severity | When |
|---|---|
| Medium | The rule's threshold was reached |
| High | The campaign is at least twice the size of the threshold |
| Critical | An attacking source signed in successfully to an account during the campaign |
| Low | A sign-in attempt from a known attacker network that was not refused |
For the other types:
| Type | Severity |
|---|---|
| Session hijack | Medium. High when the session also changed country too quickly for one person to have travelled. |
| Token replay | High for a refresh token or authorization code that was presented again, and for a refresh token used from a different network. A single replayed DPoP proof or client assertion is low, because a client that sends a request twice causes the same thing; it becomes medium when it repeats. |
| Agent anomaly | Medium when one rule fired, high for two, critical for three. A scope that the agent uses for the first time raises the severity by one step. With the response Record an incident without an alert, the incident is recorded as low and the evidence shows the rating. |
Status
| Status | Meaning |
|---|---|
| Open | Detected, and no automated response was applied (or you undid it) |
| Mitigated | An automated response was applied, for example a block |
| Resolved | An administrator closed it, or it had no new activity for 7 days |
| Dismissed | An administrator closed it as a false alarm |
What an incident shows
- Evidence: the numbers from the newest check (failed sign-ins, accounts tried, sources, the share of sign-ins that failed, your usual level), the highest value each number reached, the time span that was checked, and the rule's thresholds as they were at that moment.
- Responses: what was done, when, and whether it was automatic. If a source was not blocked, the entry says why.
- Sources: the addresses that took part, with their failed and successful sign-ins, provider and country. The list shows up to 100 addresses and the count shows the full number.
- Network clusters: the sources grouped by network, provider and browser signature.
- Affected accounts: the accounts of your organization that the campaign tried. Accounts that an attacking source signed in to are marked May be compromised. Identifiers that match no account are counted and not listed.
A sign-in from an address that the account already used before the campaign is not treated as a sign of compromise. A person in your office who mistypes a password and then signs in is not flagged.
Incidents of the other types are about one session, one application or one agent. Their page differs in these parts:
- Evidence shows what was seen as tags, for example Different browser and Different network. A table named Before and now compares browser or client software, network, country and provider. The response that was configured at that moment is shown too.
- Sources shows the address or network that the reported requests came from.
- Affected lists the account, application or agent, with a link to its page. A suspended agent is marked.
- Summary holds the AI summary, when you asked for one.
Close an incident
On the incident page:
- Resolve closes the incident. Blocks that were placed for it stay until they expire or you remove them.
- Dismiss closes the incident as a false alarm. Its sources are also taken off the shared list of attacker networks.
- Undo block removes the blocks that were placed automatically for this incident. Those sources are not blocked again for the same incident.
If a closed campaign returns, a new incident is opened.
Rules
Under Rules, each of the three campaign rules has:
- a switch to turn the detection on or off,
- the time span in minutes that the rule covers,
- its thresholds, for example the number of accounts that one source tries,
- its automated responses and how long a block lasts.
Each field shows the range that it accepts. A value outside the range is set to the nearest allowed value when you save.
A rule fires only when every one of its thresholds is reached inside the time span. With lower thresholds, smaller campaigns are detected and there are more false alarms. Start with the values that the page shows, look at the incidents of a few weeks, and adjust from there.
The Rules section also holds the settings for session anomalies, token replay and agent anomalies. Each of these parts belongs to its own feature of the add-on. A part that your plan does not include is shown locked.
Saving the rules is recorded in the audit log.
Automated responses
You are alerted about every incident of medium severity or higher. A response is something that happens in addition, without waiting for you. No response is switched on until you tick it on a rule.
| Response | What it does |
|---|---|
| Block the sources | Puts the attacking addresses on the block list for the time that you set on the rule (from 5 minutes to 24 hours). When enough addresses of one network take part, the network is blocked instead of the single addresses. |
| End sessions of accounts that may be compromised | Signs the account out everywhere and revokes its tokens. Applies to accounts that an attacking source signed in to during the campaign. |
| Require a new password for accounts that may be compromised | The same, and the account must set a new password at its next sign-in. |
Every response has limits:
- An automatic block always ends by itself, and you can undo it earlier from the incident.
- An address that your administrators use is never blocked automatically. This is an address from which an account with access to the portal signed in during the last 30 days. Addresses in your trusted IP ranges are never blocked automatically either. The incident says which sources were left out and why.
- An administrator account is never changed automatically. If an account with access to the portal, or the account that created the organization, may be compromised, LumoAuth raises a critical alert instead of requiring a new password. Review that account yourself.
- Every response is recorded on the incident and in the audit log.
Block list
A source on the block list cannot use the interactive sign-in of your organization:
- the sign-in form, including its email step, push sign-in and the hosted sign-in page of your applications,
- requesting and using a sign-in link,
- signing up, including through an invitation,
- requesting a password reset from your organization's sign-in page,
- completing a sign-in through a social provider, OIDC or SAML.
The blocked visitor gets the same answer as a visitor who hit a rate limit (429). The answer does not say that the address is blocked.
An account of your organization that signs in on the general /login page from a blocked source is refused as well. That sign-in fails with the same message as a wrong password.
The block list does not apply to API clients, to the token endpoint, to SCIM, or to passkey sign-in. It belongs to your organization only: a block in one organization has no effect in another.
Block a source yourself
Under Block list → Block a source, enter one IP address or one range in CIDR notation, choose how long it stays, and add a reason if you like.
- A range may be
/16or narrower for IPv4 and/32or narrower for IPv6. - You cannot add an entry that includes the address you are using at that moment.
- Until I remove it keeps the entry without an end date.
Remove takes an entry off the list at once. Adding and removing entries is recorded in the audit log.
A refused sign-in is recorded as login.blocked in the audit log, once per source every 10 minutes, so a blocked flood does not fill your log.
Attacker networks
Threat detection groups the sources of an incident by network (/24 for IPv4, /48 for IPv6), by provider and by browser signature. The incident page shows these clusters. When the number of attacking addresses in one network reaches the value that you set under Rules → Attacker networks, the network counts as one source: Block the sources then blocks the network as a whole. A block is never wider than one such network.
LumoAuth also keeps a shared list of attacker networks. A network enters that list when campaign incidents of at least two organizations named it within 30 days. Under Rules → Attacker networks you choose what happens when someone tries to sign in to your organization from such a network:
| Setting | Effect |
|---|---|
| Raise the risk score | Adaptive MFA adds a signal named attacker_network to the risk score, so the sign-in may be challenged. This needs the adaptive security engine to be on. |
| Refuse the sign-in | The request is refused like a blocked source. |
| Do nothing | Sign-ins are not compared with the list, and your incidents do not add to it. |
With the first two settings, a sign-in attempt from a known attacker network opens an incident of the type Known attacker network, one per network and day.
What is shared. The shared list holds network addresses and counters. It does not hold the name of your organization, your users, or your incidents, and nobody can see which organization reported a network. Only the attacking sources of your campaign incidents are added. Addresses that are not on the public internet are never added. When you dismiss an incident, its sources are taken off the list again.
Session anomalies
When a user signs in, LumoAuth remembers the context of that session: the browser, the network and, when adaptive security is in use, the country and provider of the address. This happens for every sign-in method. Later requests of the session are compared with it.
A request is reported only when the browser and the network both changed:
- The browser means the product, for example Chrome or Firefox. A browser update, or a page that asks for the desktop site, changes nothing.
- For the network, LumoAuth compares the country and provider of the two addresses when adaptive security has recorded them, and the networks of the addresses otherwise. Nothing is looked up while the request waits.
- A new address alone is never reported. A phone that changes from Wi-Fi to the mobile network, or a VPN that is switched on or off, keeps the same browser and does not open an incident.
A session cookie does not move from one browser to another by itself. When it shows up in a different browser on a different network, somebody else is probably using it.
Under Rules → Session anomalies you choose what happens:
| Setting | What happens | What the user experiences |
|---|---|---|
| Do not check | Nothing | Nothing |
| Record an incident | An incident of the type Session hijack is opened and you are alerted. The session goes on. | Nothing |
| Ask for the second factor again | The incident is opened, and the session cannot continue until two-step verification is passed again. Only the person who passes it continues: a request from the other browser is challenged again. | The usual two-step verification page. A user who has no second factor is signed out instead. |
| End the session | The incident is opened and the session ends. The applications that the user signed in to are told through single logout. | The sign-in page, with the message that they have been signed out. A script that calls with the session cookie gets 401 with error: session_ended. |
Requests that use an API key or an access token are not browser sessions and are not checked.
Token replay
LumoAuth refuses a replayed token for every organization. With the add-on, each of these refusals also becomes evidence:
| What was presented a second time | What LumoAuth does on every plan |
|---|---|
| A refresh token that was already exchanged (refresh token rotation) | Refuses it and revokes every token of that sign-in |
| An authorization code that was already redeemed | Refuses it and revokes the tokens that came from the code |
| A DPoP proof | Refuses the request |
A client assertion of an application (private_key_jwt) or of an agent | Refuses the request |
Replays at one application on one day are one incident of the type Token replay, per user where a user is known. The incident counts each kind of replay and shows the address that presented it. A replay by an agent is an incident of that agent.
With the add-on LumoAuth detects one more thing: a refresh token that is used from a different network than the same sign-in was used from a short time before. LumoAuth compares country and provider when they are known, and the network and the client software otherwise. This check applies to confidential applications, which run on servers and do not move. Applications on phones and in browsers change networks all the time and are left out.
Under Rules → Token replay you choose:
- Record token replay as incidents: the switch for the incidents. The refusals themselves do not depend on it.
- Refresh token used from a different network:
- Record an incident: the refresh goes through and you are alerted.
- Revoke the tokens of that sign-in: the refresh is refused with
invalid_grantand every token of that sign-in stops working. The application sends the user through sign-in again.
When you dismiss a token replay incident, LumoAuth opens no new incident of the same kind for the rest of that day (UTC). The dismissal covers what the incident covers: the same application or agent and the same user. Replays of another user's tokens at that application still open their own incident. So do replays where no user is known, unless you dismissed that incident too.
Agent anomalies
Every few minutes, each active agent is compared with its own history. Other agents do not matter, so a busy agent and a quiet agent are each judged by their own usual behaviour.
| Rule | What fires it |
|---|---|
| Rate | The agent's calls in the last hour are far above its usual number of calls per hour. You set the factor, and a minimum number of calls below which a small agent is never reported. An agent needs some hours of history before it has a usual number. |
| Refusals | The agent is refused many times in a short time: capability checks, conditional access policies, JIT requests, budgets, or rejected assertions and attestations. You set the number. |
| New network | The agent appears from a network that it did not use in the days before. This counts only for an agent with a stable history. An agent that always runs on changing addresses is not reported. |
| New scope | The agent uses a scope that it holds but did not ask for before. This never opens an incident by itself. It raises the severity when another rule fired. |
All findings about one agent are one incident of the type Agent anomaly. The evidence shows the numbers, the new networks and the new scopes.
Under Rules → Agent anomalies you choose the response:
| Response | What happens | What the agent experiences |
|---|---|---|
| Record an incident without an alert | The incident is recorded with low severity. No alert is sent. | Nothing |
| Record an incident and alert | The incident is recorded and you are alerted. | Nothing |
| Suspend the agent | The same, and the agent is suspended through the kill switch: its tokens stop working at once and it gets no new ones. Receivers of shared signals are told. | Its calls are refused until you reactivate it |
Reactivate on the Agents page brings a suspended agent back. The findings that suspended it do not suspend it a second time. After you resolve or dismiss the incident, the same agent is not reported again for a while, so the hour that you just reviewed does not reopen it.
AI incident summaries
On an incident page, Summarize asks an AI model to describe the incident in a few sentences: what happened, why it was reported, what was done automatically and what to check next. The summary is stored on the incident with its time and is marked AI-generated. Summarize again replaces it.
- What is sent to the model: the type, severity and times of the incident, its counts, the rule's thresholds and the signals. Networks are sent as
/24or/48with the number of addresses, next to country and provider names and the responses that were taken. Email addresses, full IP addresses, and the names and ids of users, applications and agents are not sent. - It can be wrong. A summary is a reading aid. The evidence on the page is the record.
- Allowance. A summary counts towards your organization's AI allowance. When the allowance is used up, or when AI summaries are not available, the page says so and the incident stays complete without a summary.
- Who can ask. Summarize needs the permission to manage security settings (
settings.manage).
Audit events, alerts and webhooks
Alerts
An incident raises one security alert when it opens: high for a medium or high incident, critical for a critical one. If an incident becomes critical later, it raises one more alert. Low incidents raise no alert; an incident that starts low and becomes medium or higher raises its alert then. Alerts go to your alert channels like every other security alert.
Webhooks
Subscribe to these events under Webhooks:
| Event | When |
|---|---|
threat.incident.opened | An incident was opened |
threat.incident.resolved | An incident was resolved or dismissed (metadata.resolution) |
The payload has the incident's id in target_id, its title in target_name, and its type, severity and counts in metadata.
Audit events
| Event | When it is recorded |
|---|---|
threat.incident.opened | An incident was opened (incident_type, severity, counts) |
threat.incident.updated | The severity of an incident rose, or a campaign that keeps going was confirmed again (at most every 15 minutes per incident) |
threat.incident.resolved | An incident was resolved or dismissed (resolution) |
threat.response.applied | An automated response was applied (action, and how many blocks or accounts). Actions: block_sources, revoke_sessions, lock_accounts, require_second_factor, end_session, revoke_family, suspend_agent |
threat.incident.summarized | An administrator asked for an AI summary of an incident and it was stored |
threat.response.undone | Blocks of an incident were removed |
threat.response.admin_account_skipped | An administrator account may be compromised and was not changed automatically; severity critical |
threat.block.added / threat.block.removed | An administrator changed the block list |
threat.settings.updated | The rules were saved (parts_changed) |
login.blocked | A sign-in was refused for a blocked source (reason: threat_block or attacker_network) |
Data and retention
- An incident stores the ids of the affected accounts, never their email addresses. When a user is erased, the user is removed from every incident.
- A session incident stores the address that the session moved to. For the place that the session came from, which is the account holder's own, it stores the network and not the address.
- For token replay, LumoAuth keeps where each sign-in's refresh tokens were last used from: the network, the client software and, when known, country and provider. It keeps no address and no token, only for organizations with the add-on, and deletes the entry a day after the last use.
- An AI summary is stored on its incident and is deleted with it.
- Closed incidents are deleted when they are older than your audit log retention.
- An expired block stops applying at its end time and is removed from the list.
- A network leaves the shared list of attacker networks when no incident named it for 30 days.
- The organization data export includes your rules, your block list and a summary of each incident.