Query Details

Sentinel Workspace Disconnected

Query

CloudAppEvents
| where ActionType == "SentinelDisconnectWorkspace"
| extend WorkspaceId = tostring(RawEventData.WorkspaceId), Status = tostring(RawEventData.Status), SubscriptionId = tostring(RawEventData.SubscriptionId), ResourceGroup = tostring(RawEventData.ResourceGroup), WorkspaceType = tostring(RawEventData.WorkspaceType)
| project-rename InitiatedByAccountName = AccountDisplayName, InitiatedByAccounttId = AccountId
| project-reorder Timestamp, InitiatedByAccountName, InitiatedByAccounttId, IPAddress, WorkspaceType, Status, WorkspaceId, ResourceGroup, SubscriptionId

About this query

Explanation

This query is designed to monitor and identify when Sentinel workspaces are disconnected from a Unified XDR (Extended Detection and Response) environment. The purpose is to ensure that these disconnections are not happening accidentally or maliciously, as they could impair the security defenses by disabling or modifying cloud logs, which is a technique identified by MITRE ATT&CK as T1562.008. Here's a simplified breakdown of what the query does:

  1. Data Source: It looks at events from CloudAppEvents where the action type is "SentinelDisconnectWorkspace". This indicates that a Sentinel workspace has been disconnected.

  2. Data Extraction: It extracts several pieces of information from these events, including:

    • WorkspaceId: The ID of the disconnected workspace.
    • Status: The status of the disconnection event.
    • SubscriptionId: The subscription ID associated with the workspace.
    • ResourceGroup: The resource group of the workspace.
    • WorkspaceType: The type of workspace.
  3. Data Renaming and Reordering:

    • It renames some fields for clarity, such as changing AccountDisplayName to InitiatedByAccountName and AccountId to InitiatedByAccounttId.
    • It then reorders the columns to prioritize important information like the timestamp, account details, IP address, and workspace details.

The query is essentially a tool for security monitoring, helping to ensure that any disconnection of Sentinel workspaces is intentional and authorized, thereby maintaining the integrity of the security environment.

Details

Bert-Jan Pals profile picture

Bert-Jan Pals

Released: August 18, 2025

Tables

CloudAppEvents

Keywords

CloudAppEventsActionTypeWorkspaceIdStatusSubscriptionIdResourceGroupWorkspaceTypeAccountDisplayNameAccountIdIPAddressTimeGenerated

Operators

whereextendtostringproject-renameproject-reorder

MITRE Techniques

Actions

GitHub