Back
Id78d2b06c-8dc0-40e1-91c8-66d916c186f3
RulenameOkta Fast Pass phishing Detection
DescriptionThis query detects cases in which Okta FastPass effectively prevented access to a known phishing website.
SeverityMedium
TacticsInitialAccess
TechniquesT1566.002
Required data connectorsOktaSSO
OktaSSOv2
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Okta%20Single%20Sign-On/Analytic%20Rules/PhishingDetection.yaml
Version1.1.1
Arm template78d2b06c-8dc0-40e1-91c8-66d916c186f3.json
Deploy To Azure
// Add any known good IPs to this list to reduce noise
let AllowedIPList = dynamic([]);
OktaSSO
| where isnotempty(client_ipAddress_s) and client_ipAddress_s !in (AllowedIPList)
| where eventType_s == 'user.authentication.auth_via_mfa'
| where outcome_result_s == 'FAILURE'
| where outcome_reason_s == 'FastPass declined phishing attempt'
| summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated) by actor_alternateId_s, actor_displayName_s, client_userAgent_os_s, client_ipAddress_s, client_geographicalContext_state_s,displayMessage_s, outcome_result_s,
 outcome_reason_s, column_ifexists('debugContext_debugData_logOnlySecurityData_s', ""), debugContext_debugData_threatSuspected_s, client_userAgent_rawUserAgent_s,client_userAgent_browser_s, severity_s, client_geographicalContext_city_s, client_geographicalContext_country_s
| extend Location = strcat(client_geographicalContext_city_s, "-", client_geographicalContext_country_s), AccountName = tostring(split(actor_alternateId_s, "@")[0]), AccountUPNSuffix = tostring(split(actor_alternateId_s, "@")[1])
entityMappings:
- entityType: Account
  fieldMappings:
  - identifier: Name
    columnName: AccountName
  - identifier: UPNSuffix
    columnName: AccountUPNSuffix
- entityType: IP
  fieldMappings:
  - identifier: Address
    columnName: client_ipAddress_s
name: Okta Fast Pass phishing Detection
kind: Scheduled
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Okta%20Single%20Sign-On/Analytic%20Rules/PhishingDetection.yaml
triggerOperator: gt
status: Available
queryPeriod: 1h
requiredDataConnectors:
- connectorId: OktaSSO
  dataTypes:
  - Okta_CL
- connectorId: OktaSSOv2
  dataTypes:
  - OktaSSO
tactics:
- InitialAccess
query: |
  // Add any known good IPs to this list to reduce noise
  let AllowedIPList = dynamic([]);
  OktaSSO
  | where isnotempty(client_ipAddress_s) and client_ipAddress_s !in (AllowedIPList)
  | where eventType_s == 'user.authentication.auth_via_mfa'
  | where outcome_result_s == 'FAILURE'
  | where outcome_reason_s == 'FastPass declined phishing attempt'
  | summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated) by actor_alternateId_s, actor_displayName_s, client_userAgent_os_s, client_ipAddress_s, client_geographicalContext_state_s,displayMessage_s, outcome_result_s,
   outcome_reason_s, column_ifexists('debugContext_debugData_logOnlySecurityData_s', ""), debugContext_debugData_threatSuspected_s, client_userAgent_rawUserAgent_s,client_userAgent_browser_s, severity_s, client_geographicalContext_city_s, client_geographicalContext_country_s
  | extend Location = strcat(client_geographicalContext_city_s, "-", client_geographicalContext_country_s), AccountName = tostring(split(actor_alternateId_s, "@")[0]), AccountUPNSuffix = tostring(split(actor_alternateId_s, "@")[1])
description: |
  This query detects cases in which Okta FastPass effectively prevented access to a known phishing website.
severity: Medium
tags:
- Okta
id: 78d2b06c-8dc0-40e1-91c8-66d916c186f3
customDetails:
  UserAgentOS: client_userAgent_os_s
  UserAgent: client_userAgent_rawUserAgent_s
  UserAgentBrowser: client_userAgent_browser_s
  Location: Location
triggerThreshold: 0
queryFrequency: 1h
alertDetailsOverride:
  alertDescriptionFormat: Okta FastPass declined a phishing attempt for {{actor_alternateId_s}} from {{client_ipAddress_s}} using {{client_userAgent_browser_s}}.
  alertDisplayNameFormat: Okta FastPass phishing attempt declined for {{actor_alternateId_s}}
version: 1.1.1
relevantTechniques:
- T1566.002
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2024-01-01-preview",
      "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/78d2b06c-8dc0-40e1-91c8-66d916c186f3')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/78d2b06c-8dc0-40e1-91c8-66d916c186f3')]",
      "properties": {
        "alertDetailsOverride": {
          "alertDescriptionFormat": "Okta FastPass declined a phishing attempt for {{actor_alternateId_s}} from {{client_ipAddress_s}} using {{client_userAgent_browser_s}}.",
          "alertDisplayNameFormat": "Okta FastPass phishing attempt declined for {{actor_alternateId_s}}"
        },
        "alertRuleTemplateName": "78d2b06c-8dc0-40e1-91c8-66d916c186f3",
        "customDetails": {
          "Location": "Location",
          "UserAgent": "client_userAgent_rawUserAgent_s",
          "UserAgentBrowser": "client_userAgent_browser_s",
          "UserAgentOS": "client_userAgent_os_s"
        },
        "description": "This query detects cases in which Okta FastPass effectively prevented access to a known phishing website.\n",
        "displayName": "Okta Fast Pass phishing Detection",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "AccountName",
                "identifier": "Name"
              },
              {
                "columnName": "AccountUPNSuffix",
                "identifier": "UPNSuffix"
              }
            ]
          },
          {
            "entityType": "IP",
            "fieldMappings": [
              {
                "columnName": "client_ipAddress_s",
                "identifier": "Address"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Okta%20Single%20Sign-On/Analytic%20Rules/PhishingDetection.yaml",
        "query": "// Add any known good IPs to this list to reduce noise\nlet AllowedIPList = dynamic([]);\nOktaSSO\n| where isnotempty(client_ipAddress_s) and client_ipAddress_s !in (AllowedIPList)\n| where eventType_s == 'user.authentication.auth_via_mfa'\n| where outcome_result_s == 'FAILURE'\n| where outcome_reason_s == 'FastPass declined phishing attempt'\n| summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated) by actor_alternateId_s, actor_displayName_s, client_userAgent_os_s, client_ipAddress_s, client_geographicalContext_state_s,displayMessage_s, outcome_result_s,\n outcome_reason_s, column_ifexists('debugContext_debugData_logOnlySecurityData_s', \"\"), debugContext_debugData_threatSuspected_s, client_userAgent_rawUserAgent_s,client_userAgent_browser_s, severity_s, client_geographicalContext_city_s, client_geographicalContext_country_s\n| extend Location = strcat(client_geographicalContext_city_s, \"-\", client_geographicalContext_country_s), AccountName = tostring(split(actor_alternateId_s, \"@\")[0]), AccountUPNSuffix = tostring(split(actor_alternateId_s, \"@\")[1])\n",
        "queryFrequency": "PT1H",
        "queryPeriod": "PT1H",
        "severity": "Medium",
        "status": "Available",
        "subTechniques": [
          "T1566.002"
        ],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "InitialAccess"
        ],
        "tags": [
          "Okta"
        ],
        "techniques": [
          "T1566"
        ],
        "templateVersion": "1.1.1",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}