Slack Organization Deleted


Description

Detects when a Slack organization is deleted

Query · python

from panther_slack_helpers import slack_alert_context


def rule(event):
    return event.get("action") == "organization_deleted"


def alert_context(event):
    return slack_alert_context(event)
Raw source Slack Organization Deleted · Panther Python
Esc
Published by panther-labs/panther-analysis ↗, licensed under Apache 2.0 ↗. Reproduced here unmodified.
AnalysisType: rule
Filename: slack_org_deleted.py
RuleID: "Slack.AuditLogs.OrgDeleted"
DisplayName: "Slack Organization Deleted"
Enabled: true
LogTypes:
  - Slack.AuditLogs
Tags:
  - Slack
  - Impact
  - Account Access Removal
Reports:
  MITRE ATT&CK:
    - TA0040:T1531
Severity: Medium
Description: Detects when a Slack organization is deleted
Reference: https://slack.com/intl/en-gb/help/articles/204067366-Delete-a-workspace
DedupPeriodMinutes: 60
Threshold: 1
SummaryAttributes:
  - p_any_ip_addresses
  - p_any_emails
Tests:
  - Name: Organization Deleted
    ExpectedResult: true
    Log:
      {
        "action": "organization_deleted",
        "actor":
          {
            "type": "user",
            "user":
              {
                "email": "user@example.com",
                "id": "A012B3CDEFG",
                "name": "username",
                "team": "T01234N56GB",
              },
          },
        "context":
          {
            "ip_address": "1.2.3.4",
            "location":
              {
                "domain": "test-workspace",
                "id": "T01234N56GB",
                "name": "test-workspace",
                "type": "workspace",
              },
            "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36",
          },
      }
  - Name: Organization Created
    ExpectedResult: false
    Log:
      {
        "action": "organization_created",
        "actor":
          {
            "type": "user",
            "user":
              {
                "email": "user@example.com",
                "id": "A012B3CDEFG",
                "name": "username",
                "team": "T01234N56GB",
              },
          },
        "context":
          {
            "ip_address": "1.2.3.4",
            "location":
              {
                "domain": "test-workspace",
                "id": "T01234N56GB",
                "name": "test-workspace",
                "type": "workspace",
              },
            "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36",
          },
      }


# ------ paired body: slack_org_deleted.py ------

from panther_slack_helpers import slack_alert_context


def rule(event):
    return event.get("action") == "organization_deleted"


def alert_context(event):
    return slack_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.