Detection rules › Kusto

M2131_DataConnectorAddedChangedRemoved

Status
available
Severity
medium
Time window
14d
Source
github.com/Azure/Azure-Sentinel

'This alert is designed to monitor data connector configurations. This alert is triggered when a data connector is added, updated, or deleted.'

MITRE ATT&CK coverage

TacticTechniques
DiscoveryT1082 System Information Discovery

Rule body kusto

id: eeb11b6b-e626-4228-b74d-3e730dca8999
name: M2131_DataConnectorAddedChangedRemoved
description: |
  'This alert is designed to monitor data connector configurations. This alert is triggered when a data connector is added, updated, or deleted.'
severity: Medium
status: Available
requiredDataConnectors: []
queryFrequency: 1d
queryPeriod: 14d
triggerOperator: gt
triggerThreshold: 0
tactics:
  - Discovery
relevantTechniques:
  - T1082
query: |
  AzureActivity
  | where OperationNameValue contains "Microsoft.SecurityInsights/dataConnectors/"
  | where ActivityStatusValue == "Succeeded"
  | project OperationNameValue, Caller, CallerIpAddress, ActivityStatusValue, ActivitySubstatusValue, ResourceGroup, Properties, ResourceId, TimeGenerated
  | sort by TimeGenerated desc
  | extend Account = Caller
entityMappings:
  - entityType: AzureResource
    fieldMappings:
      - identifier: ResourceId
        columnName: ResourceId
version: 1.0.0
kind: Scheduled

Stages and Predicates

Stage 1: source

AzureActivity

Stage 2: where

| where OperationNameValue contains "Microsoft.SecurityInsights/dataConnectors/"

Stage 3: where

| where ActivityStatusValue == "Succeeded"

Stage 4: project

| project OperationNameValue, Caller, CallerIpAddress, ActivityStatusValue, ActivitySubstatusValue, ResourceGroup, Properties, ResourceId, TimeGenerated

Stage 5: sort

| sort by TimeGenerated desc

Stage 6: extend

| extend Account = Caller

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
ActivityStatusValueeq
  • Succeeded transforms: cased
OperationNameValuecontains
  • Microsoft.SecurityInsights/dataConnectors/

Output fields

Fields the rule emits when it matches. Chronicle authors list these in the outcome block; they appear on the detection and $risk_score drives alerting. Sentinel / Defender XDR rules build them up through project / summarize / extend stages. Sentinel maps these into alert fields via entityMappings and customDetails; Defender XDR custom detections surface them as alert fields directly.

FieldSource
ActivityStatusValueproject
ActivitySubstatusValueproject
Callerproject
CallerIpAddressproject
OperationNameValueproject
Propertiesproject
ResourceGroupproject
ResourceIdproject
TimeGeneratedproject
Accountextend