Alert on Okta security threats every 5 minutes

Recipe ToolsMarketingIdentity ManagementData ParserUtilitiesDatabase

What it does

When the clock triggers every 5 minutes, this automation queries Okta for security threat detected log in events. It compiles threats into a list and sends an email when the list contains more than one event.

Who it's for

Security teams who need to monitor Okta login threats and receive alerts without manual log review.

How teams use this

Monitor Okta for repeated login threats

Run continuous 5-minute checks on Okta security logs and get alerted when multiple threat events occur in a single window. The team stays informed without checking logs manually.

Notify IT when threats spike

Route threat alerts to IT teams so they can coordinate response with Security when multiple login threats are detected. The detection logic stays the same and only the recipient changes.

Filter threats by user role or location

Add a condition to the threat list so only events matching specific user roles or locations are included in the alert. This requires setting a filter before the email is sent.

Exclude known threat patterns

Check the threat list against a known patterns database so recurring false positives are filtered out before the alert. This requires adding a comparison condition to exclude those events.

How it works

  1. Check for threats every 5 minutes. The automation runs on a 5-minute schedule to continuously monitor for new security events in Okta.
  2. Retrieve security threat events. Query Okta for security threat detected log in events that occurred in the past 5 minutes using the time window.
  3. Format threats as CSV. Compose the threat events into a CSV file so they can be processed as a batch for list creation.
  4. Build threat list from CSV. Create a list from the CSV file containing all detected threats so the count can be evaluated against the threshold.
  5. Send email when threats exceed one. Send an email alert to the Security team when the threat list contains more than one event so they can investigate immediately.