Slack Primary Owner Transferred
Description
Detects Slack Primary Owner transfers, representing the highest administrative privilege change with absolute control over workspace settings, security, billing, and data access. Primary Owners can add/remove all admins, delete entire workspaces, and transfer ownership. Unauthorized transfers indicate account compromise, insider threats, or hostile takeovers that could lead to permanent data loss or complete security control loss.
Query · python
from panther_slack_helpers import slack_alert_context
def rule(event):
return event.get("action") == "service_owner_transferred"
def title(event):
previous_owner = event.deep_get("actor", "user", "email", default="<UNKNOWN_PREVIOUS_OWNER>")
new_owner = event.deep_get("entity", "user", "email", default="<UNKNOWN_NEW_OWNER>")
workspace = event.deep_get("context", "location", "domain", default="<UNKNOWN_WORKSPACE>")
return (
f"Slack: Primary Owner transferred for workspace [{workspace}] "
f"from [{previous_owner}] to [{new_owner}] - Highest privilege transfer"
)
def alert_context(event):
return slack_alert_context(event)
Analyst notes
- Query Slack audit logs for both actor.user.email and entity.user.email in the 30 days before the ownership transfer to identify suspicious authentication patterns, logins from unusual locations, or unexpected administrative actions indicating account compromise
- Check if entity.user.email has made any concerning administrative changes since receiving ownership such as removing administrators, disabling security controls, adding unknown users, or creating API tokens
- Review the context.ip_address and user agent from where the transfer was initiated to determine if it matches the previous Primary Owner's normal access patterns and geographic location