VeriKQL by Kaushik Saha

OfficeActivity in Content Hub rules

66 rules read OfficeActivity · table guide.

Filtered columns

The most used values; a dashed chip is a string match (has, contains …).

Joined with

Parsing

split on UserId41

10 11 13 17 18 19 20 21 22 23 24 25 26 27 28 29 33 34 36 37 38 39 40 41 43 44 45 47 48 49 51 52 53 57 58 59 60 61 62 63 64

todynamic on Parameters9
split on ClientIP7
parse_json on Parameters5
parse_json on Members4
split on OfficeObjectId4
split on Site_Url3
split on OriginatingServer2
extract on ClientIP: ((?:[0-9a-fA-F]{1,4}::?){1,8}[0-9a-fA-F]{1,4}|\d{1,3}(?:\.\d{1,3}){3})-[0-9]+1
extract on ClientIP: ([0-9]+\.[0-9]+\.[0-9]+)-[0-9]+1
extract on ClientIP: \[((?:[0-9a-fA-F]{1,4}::?){1,8}[0-9a-fA-F]{1,4}|\d{1,3}(?:\.\d{1,3}){3})\]1
extract on ClientIP: \[((?:[0-9a-fA-F]{1,4}::?){1,8}[0-9a-fA-F]{1,4}|\d{1,3}(?:\.\d{1,3}){3})\]-[0-9]+1
extract on ClientIP: \[([0-9]+\.[0-9]+\.[0-9]+)\]1
extract on ClientIP: \[([0-9]+\.[0-9]+\.[0-9]+)\]-[0-9]+1
extract on Client_IPAddress: \[([^\]]*)1
extract on ModifiedProperties: (http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+);1
extract on OfficeObjectId: [^.]*.[^.]*$1
parse on ExtendedProperties: * 'User-Agent\\":\\"' UserAgent2 '\\' *1
parse on ExtendedProperties: * 'UserAgent", "Value": "' UserAgent1 '"' *1
parse on UserId: *'@' UserDomain1
parse_json on Actor1
parse_json on AffectedItems1
parse_json on DestFolder1
parse_json on Folder1
parse_json on Folders1
parse_json on Item1
parse_json on ModifiedProperties1
split on UserDomain1

Entity mappings

Account.Name ← AccountName30

1 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 48 49

Account.UPNSuffix ← AccountUPNSuffix30

1 17 18 19 20 21 22 23 24 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 48 49

IP.Address ← ClientIP28

2 7 15 16 21 22 23 24 25 26 27 28 29 37 39 43 46 47 48 50 51 53 57 58 60 61 63 64

Account.FullName ← UserId20

6 7 10 17 18 19 20 21 22 23 24 25 26 27 28 29 58 59 61 62

Account.Name ← Name14

5 8 13 55 57 58 59 60 61 62 63 64 65 66

URL.Url ← Site_Url6
IP.Address ← ClientIPAddress4
Account.FullName ← UserWhoAdded2
Account.FullName ← UserWhoDeleted2
Account.NTDomain ← AccountNTDomain2
Account.Name ← UserWhoAddedAccountName2
Account.Name ← UserWhoDeletedAccountName2
Account.UPNSuffix ← UserWhoAddedAccountUPNSuffix2
Account.UPNSuffix ← UserWhoDeletedAccountUPNSuffix2
File.Name ← SourceFileName2
IP.Address ← IPAddress2
Account.FullName ← AccountCustomEntity1
Account.FullName ← MemberAdded1
Account.FullName ← MemberAdded_Removed1
Account.FullName ← UserPrincipalName1
Account.Name ← AccountNTDomain1
Account.Name ← MemberAddedAccountName1
Account.Name ← MemberAdded_RemovedAccountName1
Account.Name ← UploaderName1
Account.Name ← UserIdName1
Account.Name ← UserName1
Account.UPNSuffix ← DomainName1
Account.UPNSuffix ← MemberAddedAccountUPNSuffix1
Account.UPNSuffix ← MemberAdded_RemovedAccountUPNSuffix1
Account.UPNSuffix ← UPNSuffix1
Account.UPNSuffix ← UploaderUPNSuffix1
Account.UPNSuffix ← UserIdUPNSuffix1
CloudApplication.AppId ← AppId1
CloudApplication.AppId ← ApplicationId1
File.Name ← DirSample1
File.Name ← FileNames1
File.Name ← FileSample1
Host.DnsDomain ← DnsDomain1
Host.FullName ← HostCustomEntity1
Host.FullName ← OriginatingServer1
Host.FullName ← OriginatingServerName1
Host.HostName ← HostName1
IP.Address ← Client_IPAddress1
IP.Address ← IPCustomEntity1
IP.Address ← SourceIPMax1
IP.Address ← SuspiciousIP1

ATT&CK techniques of these rules

T1114 15T1020 12T1078 11T1071 10T1098 8T1030 5T1136 4T1566 4T1105 3T1189 3T1203 3T1119 2T1176 2T1190 2T1199 2T1485 2T1489 2T1562 2T0863 1T0873 1T1036 1T1059 1T1102 1T1110 1T1114.002 1T1133 1T1204 1T1546 1T1548 1T1567 1T1570 1

Severity

Medium 29Low 10High 3

Schedules (analytic rules)

every 1d over 1d 11every 1h over 14d 11every 1d over 14d 5every 1h over 1h 4every 15m over 15m 2every 1d over 7d 2every 1d over 8d 2every 4h over 14d 1every 6h over 6h 1

Look-back windows in ago()

2d 17d 1

Every rule that reads it

Rules are from Azure/Azure-Sentinel (MIT licence) at commit 9ea9f7c. VeriKQL stores facts its parser read from each rule and links the rule; it does not copy rule text. Counts are what the rules do: practice, not guidance, and not Microsoft's recommendation.