Detection rules › Panther

Notion Login FOLLOWED BY AccountChange

Severity
medium
Time window
15m
Match by
p_alert_context.actor_id
Reference
https://www.notion.so/help/account-settings
Source
github.com/panther-labs/panther-analysis

A Notion User logged in then changed their account details.

MITRE ATT&CK coverage

TacticTechniques
Privilege EscalationT1098 Account Manipulation

Rule body yaml

AnalysisType: correlation_rule
RuleID: "Notion.Login.FOLLOWED.BY.AccountChange"
DisplayName: "Notion Login FOLLOWED BY AccountChange"
Enabled: true
Severity: Medium
Description: A Notion User logged in then changed their account details.
Reference: https://www.notion.so/help/account-settings
Runbook: Possible account takeover. Follow up with the Notion User to determine if this email change is genuine.
Reports:
  MITRE ATT&CK:
    - TA0004:T1098  # Account Manipulation
Detection:
    - Sequence:
        - ID: Login
          RuleID: Notion.Login
        - ID: AccountChange
          RuleID: Notion.AccountChange
      Transitions:
        - ID: Login FOLLOWED BY AccountChange
          From: Login
          To: AccountChange
          WithinTimeFrameMinutes: 15
          Match:
            - On: p_alert_context.actor_id
      LookbackWindowMinutes: 2160
      Schedule:
        RateMinutes: 1440
        TimeoutMinutes: 5
Tests:
    - Name: Login, Followed By AccountChange within short time
      ExpectedResult: true
      RuleOutputs:
        - ID: Login
          Matches:
            p_alert_context.actor_id:
              'i-abcdef0123456789a':
                - "2024-06-01T10:00:01Z"
        - ID: AccountChange
          Matches:
            p_alert_context.actor_id:
              'i-abcdef0123456789a':
                - "2024-06-01T10:01:01Z"
    - Name: Login, Followed By AccountChange not within short time
      ExpectedResult: false
      RuleOutputs:
        - ID: Login
          Matches:
            p_alert_context.actor_id:
              'i-abcdef0123456789a':
                - "2024-06-01T10:00:01Z"
        - ID: AccountChange
          Matches:
            p_alert_context.actor_id:
              'i-abcdef0123456789a':
                - "2024-06-01T11:01:01Z"

Detection logic

Stage 1: step Login ordered before $AccountChange

References detection Notion.Login.

Stage 2: step AccountChange ordered after $Login

References detection Notion.AccountChange.