Detection rules › Kusto
Bitglass - Multiple files shared with external entity
'Detects when multiple files shared with external entity.'
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| 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.
| Field | Kind | Values | Search |
|---|---|---|---|
Action | eq |
| field:"Action" kind:eq value:"Action DLPScan" |
EventMessage | match |
| field:"EventMessage" kind:match |
EventType | eq |
| field:"EventType" kind:eq value:"cloudaudit" |
Output fields
These fields are emitted when the rule matches.
| Field | Source |
|---|---|
User | summarize |
f_cnt | summarize |
AccountCustomEntity | extend |