GSuite Workspace Data Export Has Been Created


Description

A Workspace Admin Has Created a Data Export

Query · python

from panther_gsuite_helpers import gsuite_activityevent_alert_context


def rule(event):
    return event.get("name", "").startswith("CUSTOMER_TAKEOUT_")


def title(event):
    return (
        f"GSuite Workspace Data Export "
        f"[{event.get('name', '<NO_EVENT_NAME>')}] "
        f"performed by [{event.deep_get('actor', 'email', default='<NO_ACTOR_FOUND>')}]"
    )


def alert_context(event):
    return gsuite_activityevent_alert_context(event)

Analyst notes

Verify the intent of this Data Export. If intent cannot be verified, then a search on the actor's other activities is advised.

Raw source GSuite Workspace Data Export Has Been Created · Panther Python
Esc
Published by panther-labs/panther-analysis ↗, licensed under Apache 2.0 ↗. Reproduced here unmodified.
AnalysisType: rule
Filename: gsuite_workspace_data_export_created.py
RuleID: "GSuite.Workspace.DataExportCreated"
DisplayName: "GSuite Workspace Data Export Has Been Created"
Enabled: true
LogTypes:
  - GSuite.ActivityEvent
Tags:
  - GSuite
Severity: Medium
Description: >
  A Workspace Admin Has Created a Data Export
Reference: https://support.google.com/a/answer/100458?hl=en&sjid=864417124752637253-EU
Runbook: |
  Verify the intent of this Data Export. If intent cannot be verified, then
  a search on the actor's other activities is advised.
SummaryAttributes:
  - actor:email
Tests:
  - Name: Workspace Admin Data Export Created
    ExpectedResult: true
    Log:
      {
        "actor":
          {
            "callerType": "USER",
            "email": "admin@example.io",
            "profileId": "11011111111111111111111",
          },
        "id":
          {
            "applicationName": "admin",
            "customerId": "D12345",
            "time": "2022-12-10 22:21:40.079000000",
            "uniqueQualifier": "-2833899999999999999",
          },
        "kind": "admin#reports#activity",
        "name": "CUSTOMER_TAKEOUT_CREATED",
        "parameters":
          { "OBFUSCATED_CUSTOMER_TAKEOUT_REQUEST_ID": "00mmmmmmmmmmmmm" },
        "type": "CUSTOMER_TAKEOUT",
      }
  - Name: Workspace Admin Data Export Succeeded
    ExpectedResult: true
    Log:
      {
        "actor":
          {
            "callerType": "USER",
            "email": "admin@example.io",
            "profileId": "11011111111111111111111",
          },
        "id":
          {
            "applicationName": "admin",
            "customerId": "D12345",
            "time": "2022-12-12 22:21:40.106000000",
            "uniqueQualifier": "3005999999999999999",
          },
        "kind": "admin#reports#activity",
        "name": "CUSTOMER_TAKEOUT_SUCCEEDED",
        "parameters":
          { "OBFUSCATED_CUSTOMER_TAKEOUT_REQUEST_ID": "00mmmmmmmmmmmmm" },
        "type": "CUSTOMER_TAKEOUT",
      }
  - Name: Admin Set Default Calendar SHARING_OUTSIDE_DOMAIN Setting to MANAGE_ACCESS
    ExpectedResult: false
    Log:
      {
        "actor":
          {
            "callerType": "USER",
            "email": "example@example.io",
            "profileId": "12345",
          },
        "id":
          {
            "applicationName": "admin",
            "customerId": "D12345",
            "time": "2022-12-11 01:06:26.303000000",
            "uniqueQualifier": "-12345",
          },
        "ipAddress": "12.12.12.12",
        "kind": "admin#reports#activity",
        "name": "CHANGE_CALENDAR_SETTING",
        "parameters":
          {
            "DOMAIN_NAME": "example.io",
            "NEW_VALUE": "MANAGE_ACCESS",
            "OLD_VALUE": "READ_WRITE_ACCESS",
            "ORG_UNIT_NAME": "Example IO",
            "SETTING_NAME": "SHARING_OUTSIDE_DOMAIN",
          },
        "type": "CALENDAR_SETTINGS",
      }
  - Name: ListObject Type
    ExpectedResult: false
    Log:
      {
        "actor":
          { "email": "user@example.io", "profileId": "118111111111111111111" },
        "id":
          {
            "applicationName": "drive",
            "customerId": "D12345",
            "time": "2022-12-20 17:27:47.080000000",
            "uniqueQualifier": "-7312729053723258069",
          },
        "ipAddress": "12.12.12.12",
        "kind": "admin#reports#activity",
        "name": "rename",
        "parameters":
          {
            "actor_is_collaborator_account": null,
            "billable": true,
            "doc_id": "1GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG",
            "doc_title": "Document Title- Found Here",
            "doc_type": "presentation",
            "is_encrypted": null,
            "new_value": ["Document Title- Found Here"],
            "old_value": ["Document Title- Old"],
            "owner": "user@example.io",
            "owner_is_shared_drive": null,
            "owner_is_team_drive": null,
            "primary_event": true,
            "visibility": "private",
          },
        "type": "access",
      }


# ------ paired body: gsuite_workspace_data_export_created.py ------

from panther_gsuite_helpers import gsuite_activityevent_alert_context


def rule(event):
    return event.get("name", "").startswith("CUSTOMER_TAKEOUT_")


def title(event):
    return (
        f"GSuite Workspace Data Export "
        f"[{event.get('name', '<NO_EVENT_NAME>')}] "
        f"performed by [{event.deep_get('actor', 'email', default='<NO_ACTOR_FOUND>')}]"
    )


def alert_context(event):
    return gsuite_activityevent_alert_context(event)

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.