@@ -34,15 +34,15 @@ query: |
3434 | where tostring(behaviors.["New Country"]) == "POSITIVE"
3535 | where tostring(behaviors.["New Geo-Location"]) == "POSITIVE"
3636 | where tostring(behaviors.["New Device"]) == "POSITIVE"
37- | summarize by timekey = bin(TimeGenerated, timeframe), actor_alternateId_s, actor_displayName_s, client_userAgent_os_s, client_userAgent_browser_s, client_device_s, client_userAgent_rawUserAgent_s, client_ipAddress_s, authenticationContext_externalSessionId_s, client_geographicalContext_country_s, client_geographicalContext_city_s, displayMessage_s, outcome_result_s, outcome_reason_s, column_ifexists('debugContext_debugData_logOnlySecurityData_s', ""), debugContext_debugData_threatSuspected_s, client_geographicalContext_geolocation_lat_d, client_geographicalContext_geolocation_lon_d
37+ | summarize by timekey = bin(TimeGenerated, timeframe), actor_alternateId_s, actor_displayName_s, client_userAgent_os_s, client_userAgent_browser_s, client_device_s, client_userAgent_rawUserAgent_s, client_ipAddress_s, authenticationContext_externalSessionId_s, client_geographicalContext_country_s, client_geographicalContext_city_s, displayMessage_s, outcome_result_s, outcome_reason_s, column_ifexists('debugContext_debugData_logOnlySecurityData_s', ""), column_ifexists(' debugContext_debugData_threatSuspected_s', "") , client_geographicalContext_geolocation_lat_d, client_geographicalContext_geolocation_lon_d
3838 | extend Location = strcat(client_geographicalContext_city_s, "-", client_geographicalContext_country_s);
3939 let RiskyOperationsObserved = OktaSSO
4040 | where eventType_s in (RiskyOperations)
4141 | where outcome_result_s == "SUCCESS"
42- | summarize by timekey = bin(TimeGenerated, timeframe), actor_alternateId_s, actor_displayName_s, client_userAgent_os_s, client_userAgent_browser_s, client_device_s, client_userAgent_rawUserAgent_s, client_ipAddress_s, authenticationContext_externalSessionId_s, client_geographicalContext_country_s, client_geographicalContext_city_s, displayMessage_s, outcome_result_s, outcome_reason_s, column_ifexists('debugContext_debugData_logOnlySecurityData_s', ""), debugContext_debugData_threatSuspected_s, client_geographicalContext_geolocation_lat_d, client_geographicalContext_geolocation_lon_d;
42+ | summarize by timekey = bin(TimeGenerated, timeframe), actor_alternateId_s, actor_displayName_s, client_userAgent_os_s, client_userAgent_browser_s, client_device_s, client_userAgent_rawUserAgent_s, client_ipAddress_s, authenticationContext_externalSessionId_s, client_geographicalContext_country_s, client_geographicalContext_city_s, displayMessage_s, outcome_result_s, outcome_reason_s, column_ifexists('debugContext_debugData_logOnlySecurityData_s', ""), column_ifexists(' debugContext_debugData_threatSuspected_s', "") , client_geographicalContext_geolocation_lat_d, client_geographicalContext_geolocation_lon_d;
4343 UserLoginNewCountryDevice
4444 | join kind=inner (RiskyOperationsObserved) on timekey, actor_displayName_s, client_ipAddress_s
45- | project TimeGenerated = timekey, actor_alternateId_s, actor_displayName_s, client_userAgent_os_s, client_userAgent_browser_s, client_device_s, client_userAgent_rawUserAgent_s, client_ipAddress_s, authenticationContext_externalSessionId_s, client_geographicalContext_country_s, client_geographicalContext_city_s, displayMessage_s, outcome_result_s, outcome_reason_s, column_ifexists('debugContext_debugData_logOnlySecurityData_s', ""), debugContext_debugData_threatSuspected_s, client_geographicalContext_geolocation_lat_d, client_geographicalContext_geolocation_lon_d, Location
45+ | project TimeGenerated = timekey, actor_alternateId_s, actor_displayName_s, client_userAgent_os_s, client_userAgent_browser_s, client_device_s, client_userAgent_rawUserAgent_s, client_ipAddress_s, authenticationContext_externalSessionId_s, client_geographicalContext_country_s, client_geographicalContext_city_s, displayMessage_s, outcome_result_s, outcome_reason_s, column_ifexists('debugContext_debugData_logOnlySecurityData_s', ""), column_ifexists(' debugContext_debugData_threatSuspected_s', "") , client_geographicalContext_geolocation_lat_d, client_geographicalContext_geolocation_lon_d, Location
4646 | extend AccountName = tostring(split(actor_alternateId_s, "@")[0]), AccountUPNSuffix = tostring(split(actor_alternateId_s, "@")[1])
4747entityMappings :
4848 - entityType : Account
@@ -67,5 +67,5 @@ alertDetailsOverride:
6767 alertDisplayNameFormat : ' New Device/Location {{Location}} sign-in along with critical operation'
6868 alertDescriptionFormat : |
6969 This query identifies users seen login from new geo location/country {{Location}} as well as a new device and performing critical operations.
70- version : 1.1.2
70+ version : 1.1.3
7171kind : Scheduled
0 commit comments