Syslog
| where ProcessName == 'gw-audit'
| extend
TenantName = extract("\"vportal\":\"([^\"]*)\"", 1, SyslogMessage),
UserName = extract("user=([^|]*)", 1, SyslogMessage),
Operation = extract("op=([^|]*)", 1, SyslogMessage),
EdgeFiler = extract("\"client\":\"([^\"]*)\"", 1, SyslogMessage),
RootPath = extract("rootPath=([^|]*)", 1, SyslogMessage),
Share = extract("share=([^|]*)", 1, SyslogMessage),
LocalPath = extract("path=([^|]*)", 1, SyslogMessage),
Timestamp = todatetime(extract("\"@timestamp\":\"([^\"]*)\"", 1, SyslogMessage))
| where Operation in ('ACLAdded', 'ACLDeleted', 'ACLProtectionAdded','chown', 'setsd', 'ACLProtectionDeleted', 'ACEChanged', 'setdacl')
| summarize Count = count() by UserName, bin(Timestamp, 5m)
| where Count > 5000
queryPeriod: 5m
query: |
Syslog
| where ProcessName == 'gw-audit'
| extend
TenantName = extract("\"vportal\":\"([^\"]*)\"", 1, SyslogMessage),
UserName = extract("user=([^|]*)", 1, SyslogMessage),
Operation = extract("op=([^|]*)", 1, SyslogMessage),
EdgeFiler = extract("\"client\":\"([^\"]*)\"", 1, SyslogMessage),
RootPath = extract("rootPath=([^|]*)", 1, SyslogMessage),
Share = extract("share=([^|]*)", 1, SyslogMessage),
LocalPath = extract("path=([^|]*)", 1, SyslogMessage),
Timestamp = todatetime(extract("\"@timestamp\":\"([^\"]*)\"", 1, SyslogMessage))
| where Operation in ('ACLAdded', 'ACLDeleted', 'ACLProtectionAdded','chown', 'setsd', 'ACLProtectionDeleted', 'ACEChanged', 'setdacl')
| summarize Count = count() by UserName, bin(Timestamp, 5m)
| where Count > 5000
version: 1.0.0
name: CTERA Mass Permissions Changes Detection Analytic
entityMappings:
- fieldMappings:
- columnName: UserName
identifier: Name
entityType: Account
- fieldMappings:
- columnName: EdgeFiler
identifier: Name
entityType: File
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CTERA/Analytic Rules/MassPermissionChanges.yaml
eventGroupingSettings:
aggregationKind: SingleAlert
queryFrequency: 5m
suppressionEnabled: false
alertDetailsOverride:
alertDescriptionFormat: |
Detected {{Count}} denied access attempts by user {{UserName}} on Edge Filer {{EdgeFiler}} within 5 minutes. Please investigate unauthorized access attempts or misconfigurations.
alertnameFormat: CTERA Batch Access Denied Detection
description: This analytic rule detects and alerts when access denied operations generated by the CTERA Edge Filer goes over a predefined threshold
incidentConfiguration:
groupingConfiguration:
lookbackDuration: PT5H
reopenClosedIncident: false
matchingMethod: AllEntities
enabled: false
createIncident: true
kind: Scheduled
suppressionDuration: PT5H
status: Available
severity: High
requiredDataConnectors:
- connectorId: CTERA
dataTypes:
- Syslog
triggerOperator: GreaterThan
triggerThreshold: 5000
customDetails:
UserName: UserName
EdgeFiler: EdgeFiler
RootPath: RootPath
Share: Share
TenantName: TenantName
tactics:
- PrivilegeEscalation
id: 90502ac9-19a2-41f0-ba81-e352de90b61b
relevantTechniques:
- T1068