Microsoft Graph security alerts

Important

Lakewatch is in Beta. Workspace admins can control access to this feature from the Previews page. See Manage workspace-level previews.

Lakewatch has an API connector to ingest security alerts from the Microsoft Graph security API, such as alerts from Microsoft Defender XDR and Microsoft Sentinel. This page covers prerequisites, configuration instructions, the connector schema, and security observables.

Prerequisites

The connector has the following requirements:

Known limitations

  • Slowly changing dimension (SCD) type 2 is not supported.
  • The connector supports OAuth machine-to-machine authentication with a Microsoft Entra ID application and client secret. OAuth user-to-machine and basic authentication aren't supported.
  • The connector supports the Microsoft global service, including Government Community Cloud (GCC), and the US Government GCC High and Department of Defense (DoD) clouds. It doesn't support Microsoft Graph operated by 21Vianet in China.
  • Historical lookback can't exceed 180 days. See Choose how far back to ingest.

Configure Microsoft Graph for ingestion

The connector authenticates as a Microsoft Entra ID application that has the SecurityAlert.Read.All application permission for Microsoft Graph. For the full steps, see Configure authentication to Microsoft Graph.

  1. In the Microsoft Entra admin center, go to Entra ID > App registrations and register a single-tenant application. For a GCC High or DoD tenant, use the Azure Government portal at portal.azure.us.
  2. Under Certificates & secrets, create a client secret and copy its Value. Microsoft Entra doesn't show the value again after you leave the page.
  3. Under API permissions, select Add a permission > Microsoft Graph > Application permissions, and add SecurityAlert.Read.All. The connector doesn't use delegated permissions.
  4. Select Grant admin consent for <your tenant>. Confirm that the Type column shows Application and the Status column shows Granted for <your tenant>.
  5. On the application's Overview page, copy the Application (client) ID and Directory (tenant) ID.

Note

Client secrets expire after at most 24 months. Before the secret expires, create a client secret on the same application and update the Client Secret on the existing Unity Catalog connection. Don't create a new connection.

Tip

When you create a connection through the Lakewatch UI, select the Microsoft cloud your tenant runs in (commercial for the global service including GCC, gcc_high, or dod), and enter the Client ID, Client Secret, and Tenant ID that you copied in the previous steps.

Next steps

After completing the preceding configuration, create a datasource with the Microsoft Graph connector in the Lakewatch UI. See API connectors for instructions.


Connector and Lakewatch schemas

The connector ingests the following source table from the default source schema:

Source table Microsoft Graph data Built-in Lakewatch parser
security_alerts Security alerts from the Microsoft Graph security API alerts_v2 endpoint microsoft_graph_security_alert

The connector writes each source table directly to the destination configured for its built-in parser. By default, the destination table is named <parser>_<datasource>, where <datasource> is the datasource name. For example, with the default datasource name ms_graph_logs, the table is microsoft_graph_security_alert_ms_graph_logs. You can set a different destination during datasource creation. The connector doesn't use a separate raw staging table or a later parsing step.

Lakewatch-managed columns

The connector uses the source id field as the non-null primary key and the source lastUpdateDateTime field as the cursor for incremental ingestion, so each sync also ingests alerts that changed since the last run. Unlike connectors that synthesize a Lakewatch ID, this connector doesn't add an lw_id or time column. To scope a query or detection rule to a time window, pass a source timestamp column to IN_TIMERANGE(), such as createdDateTime.

For Lakewatch datasources, the connector also adds the following columns:

  • lw_meta: The datasource and connection identity, parser name and version, and ingestion time.
  • lw_observables: Security observables extracted by the connector.

See Connector output tables.

Connector output table schema

The destination includes the following source and event columns, together with the lw_meta and lw_observables columns described in the preceding section.

The following schema includes the Microsoft Graph security alert fields. For field definitions, see the Microsoft Graph Logs connector reference and Microsoft's alert resource type documentation.

Schema
Column Data type
id STRING
title STRING
category STRING
categories ARRAY<STRING>
severity STRING
status STRING
serviceSource STRING
detectionSource STRING
detectorId STRING
productName STRING
providerAlertId STRING
incidentId STRING
incidentWebUrl STRING
alertWebUrl STRING
alertPolicyId STRING
tenantId STRING
description STRING
recommendedActions STRING
investigationState STRING
determination STRING
classification STRING
assignedTo STRING
actorDisplayName STRING
threatDisplayName STRING
threatFamilyName STRING
mitreTechniques ARRAY<STRING>
systemTags ARRAY<STRING>
createdDateTime TIMESTAMP
lastUpdateDateTime TIMESTAMP
firstActivityDateTime TIMESTAMP
lastActivityDateTime TIMESTAMP
resolvedDateTime TIMESTAMP
comments VARIANT
evidence VARIANT
additionalData VARIANT
customDetails VARIANT

Security observables

The connector extracts the following fields into lw_observables.

Observables
Field Observable
mitreTechniques[] mitre_attack_technique

The fields in evidence depend on the type of each evidence entity, such as a device or file. The connector scans evidence and extracts values into lw_observables by matching subfield names. Matching is case-insensitive.

Evidence observables
evidence subfield name Observable
ipAddress, ipInterfaces, lastIpAddress, lastExternalIpAddress, clusterIP, externalIPs ip
dnsDomain, domainName domain
hostName, deviceDnsName hostname
url url
md5, sha1, sha256, value hash
accountName username
userPrincipalName email
amazonResourceId aws_arn
amazonAccountId aws_account_id