<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
How to Configure Behavior Detection
Okta Classic Engine
Multi-Factor Authentication
Okta Identity Engine
Overview
Behavior Detection enables administrators to configure policies to track specific behavior and define an action to take if an end user's tracked behavior changes.
Applies To
  • Behavior Detection
Solution
  1. Start by going to the Okta Admin Console.
  2. Go to Security > Behavior Detection.
  3. Click Add Behavior.
  4. A drop-down menu will appear, offering the option to add a behavior triggered by changes to locationdeviceIP address, or velocity.

Behavior Detection


The behavior setup looks as follows:

  • Location
Add Location Behavior Add Location Behavior 
 
  • IP
Add IP Behavior 
 
  • Device
Add Device Behavior 

  • Velocity

Add Velocity Behavior 

 

Using the behavior detection in the authentication flow.

The behavior detection can be integrated into the authentication flow in 2 methods.

  1. Added to the Global Session policy rule, located under the Admin Console > Security > Global Session Policy.

Policy Settings

 

  1. Added to the Authentication policy rules using custom expressions, located under the Admin Console > Security > Authentication Policies.

Edit Rule

  • The custom expression can be created using the following expression:
     security.behaviors.contains('behaviorName') 
    • Replace the behaviorName value with either the predefined behaviors or the custom-created behaviors.

To use multiple behaviors in the same custom expression, the following operators can be used:

  • ||, OR
  • &&, AND
  • !, NOT
  • ==
  • !=

Example of a behavior detection custom expression:

Unrecognized IPs OR unrecognized devices
security.behaviors.contains('New IP') || security.behaviors.contains('New Device')
Unrecognized IP AND unrecognized devices
security.behaviors.contains('New IP') && security.behaviors.contains('New Device')

 

NOTE: The behavior is considered new until a successful login is performed. After the login, the values are saved in the user's behavior profile, and accessing other applications from the same Location/IP/Device(DeviceToken) will not trigger a new behavior.


Related References

Loading
How to Configure Behavior Detection