Detection rules › Panther

Okta Investigate Session ID Activity

This is a threat-hunting query, not an automated detection. It surfaces activity for an analyst to review rather than firing on a match. It is searchable for reference but is excluded from the detection-rule browse and the ATT&CK coverage matrix.

Source
github.com/panther-labs/panther-analysis

Search for activity related to a specific SessionID in Okta panther_logs.okta_systemlog

Rule body yaml

AnalysisType: scheduled_query
QueryName: "Okta Investigate Session ID Activity"
Enabled: false
Description: >
  Search for activity related to a specific SessionID in Okta panther_logs.okta_systemlog
Query: |
  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

Detection logic

Stage 1: source

panther_logs.public.okta_systemlog

Stage 2: filter

Output fields

Fields the rule emits when it matches. Chronicle authors list these in the outcome block; they appear on the detection and $risk_score drives alerting. Sentinel / Defender XDR rules build them up through project / summarize / extend stages. Sentinel maps these into alert fields via entityMappings and customDetails; Defender XDR custom detections surface them as alert fields directly.

FieldSource
event_timep_event_time
actor_emailactor:alternateId
actor_nameactor:displayName
sessionIdauthenticationContext:externalSessionId
displayMessage
eventType
src_ipclient:ipAddress
cityclient:geographicalContext:city
countryclient:geographicalContext:country
user_agentclient:userAgent:rawUserAgent