Suspicious is_suspicious tag


Description

GSuite reported a suspicious activity for this user.

Query · python

def rule(event):
    return event.deep_get("parameters", "is_suspicious") is True


def title(event):
    user = event.deep_get("actor", "email", default="<UNKNOWN_USER>")
    return f"A suspicious action was reported for user [{user}]"

Analyst notes

Checkout the details of the activity and verify this behavior with the user to ensure the account wasn't compromised.

Raw source Suspicious is_suspicious tag · Panther Python
Esc
Published by panther-labs/panther-analysis ↗, licensed under Apache 2.0 ↗. Reproduced here unmodified.
AnalysisType: rule
Filename: gsuite_is_suspicious_tag.py
RuleID: "GSuite.IsSuspiciousTag"
DisplayName: "Suspicious is_suspicious tag"
Enabled: true
LogTypes:
  - GSuite.ActivityEvent
Tags:
  - GSuite
Status: Experimental
Severity: Info # Will be Medium in the future
Description: >
  GSuite reported a suspicious activity for this user.
Reference: https://support.google.com/a/answer/7102416?hl=en
Runbook: >
  Checkout the details of the activity and verify this behavior with the user to ensure the account wasn't compromised.
SummaryAttributes:
  - actor:email
Tests:
  - Name: Normal Login Event
    ExpectedResult: false
    Log:
      {
        "id": { "applicationName": "login" },
        "kind": "admin#reports#activity",
        "type": "account_warning",
        "name": "login_success",
        "parameters": { "affected_email_address": "denethor@lotr.com" },
      }

  - Name: Login Success But Flagged Suspicious
    ExpectedResult: true
    Log:
      {
        "id": { "applicationName": "login" },
        "actor": {
          "email": "bobert@ext.runpanther.io"},
        "kind": "admin#reports#activity",
        "type": "login",
        "name": "login_success",
        "parameters": {
          "affected_email_address": "bobert@ext.runpanther.io",
          "is_suspicious": true
        }
      }

# ------ paired body: gsuite_is_suspicious_tag.py ------

def rule(event):
    return event.deep_get("parameters", "is_suspicious") is True


def title(event):
    user = event.deep_get("actor", "email", default="<UNKNOWN_USER>")
    return f"A suspicious action was reported for user [{user}]"

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.