Detection rules › Kusto

Bitglass - Multiple files shared with external entity

Status
available
Severity
medium
Time window
10m
Group by
User
Source
github.com/Azure/Azure-Sentinel

'Detects when multiple files shared with external entity.'

MITRE ATT&CK coverage

TacticTechniques
Exfiltration

Rule body

id: 09690f9b-33d1-4372-a6aa-eb7d3b3cdebc
name: Bitglass - Multiple files shared with external entity
description: |
  'Detects when multiple files shared with external entity.'
severity: Medium
status: Available
requiredDataConnectors:
  - connectorId: Bitglass
    dataTypes:
      - Bitglass
queryFrequency: 1h
queryPeriod: 1h
triggerOperator: gt
triggerThreshold: 0
tactics:
  - Exfiltration
relevantTechniques:
  - T1567
query: |
  let threshold = 5;
  Bitglass
  | where EventType =~ 'cloudaudit'
  | where Action =~ 'Action  DLPScan'
  | where EventMessage has_all ('External', 'Shared', 'DLP')
  | summarize f_cnt = makeset(SrcFileName) by User, bin(TimeGenerated, 10m)
  | where array_length(f_cnt) >= threshold
  | extend AccountCustomEntity = User
entityMappings:
  - entityType: Account
    fieldMappings:
      - identifier: Name
        columnName: AccountCustomEntity
version: 1.0.0
kind: Scheduled

Stages and Predicates

Parameters

let threshold = 5;

Stage 1: source

Bitglass

Stage 2: where

| where EventType =~ 'cloudaudit'

Stage 3: where

| where Action =~ 'Action  DLPScan'

Stage 4: where

| where EventMessage has_all ('External', 'Shared', 'DLP')

Stage 5: summarize

| summarize f_cnt = makeset(SrcFileName) by User, bin(TimeGenerated, 10m)

Stage 6: where

| where array_length(f_cnt) >= threshold

Stage 7: extend

| extend AccountCustomEntity = User

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Actioneq
  • Action DLPScan
field:"Action" kind:eq value:"Action DLPScan"
EventMessagematch
  • DLP transforms: term
  • External transforms: term
  • Shared transforms: term
field:"EventMessage" kind:match
EventTypeeq
  • cloudaudit
field:"EventType" kind:eq value:"cloudaudit"

Output fields

These fields are emitted when the rule matches.

FieldSource
Usersummarize
f_cntsummarize
AccountCustomEntityextend