forked from panther-labs/panther-analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
okta_session_id_audit.yml
42 lines (42 loc) · 1.59 KB
/
okta_session_id_audit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
AnalysisType: scheduled_query
QueryName: Okta Investigate Session ID Activity
Enabled: false
Description: >
Search for activity releated to a specific SessionID in Okta panther_logs.okta_systemlog
AthenaQuery: >
SELECT
p_event_time as event_time,
actor.alternateId as actor_email,
actor.displayName as actor_name,
authenticationContext.externalSessionId as sessionId,
displayMessage,
eventType,
client.ipAddress as src_ip,
client.geographicalContext.city as city,
client.geographicalContext.country as country,
client.userAgent.rawUserAgent as user_agent
FROM panther_logs.okta_systemlog
WHERE p_occurs_since('7 days')
-- Uncomment the line below and replace 'sessionId' with the sessionId you are investigating
-- and authenticationContext:externalSessionId = '<SESSIONID_GOES_HERE>'
ORDER BY event_time DESC
SnowflakeQuery: >
SELECT
p_event_time as event_time,
actor:alternateId as actor_email,
actor:displayName as actor_name,
authenticationContext:externalSessionId as sessionId,
displayMessage,
eventType,
client:ipAddress as src_ip,
client:geographicalContext:city as city,
client:geographicalContext:country as country,
client:userAgent:rawUserAgent as user_agent
FROM panther_logs.public.okta_systemlog
WHERE p_occurs_since('7 days')
-- Uncomment the line below and replace 'sessionId' with the sessionId you are investigating
-- and authenticationContext:externalSessionId = '<SESSIONID_GOES_HERE>'
ORDER BY event_time DESC
Schedule:
RateMinutes: 43200
TimeoutMinutes: 1