VeriKQL by Kaushik Saha

AWSCloudTrail in Content Hub rules

113 rules read AWSCloudTrail.

Filtered columns

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

Joined with

Parsing

split on UserIdentityArn91

1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 52 53 54 55 56 57 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 79 80 81 82 83 84 85 86 87 89 90 91 92 93 94 95 96 97 99 106 107

parse_json on RequestParameters68

7 9 10 11 12 13 14 15 16 17 18 19 20 22 24 25 26 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 55 57 63 65 68 72 77 78 79 85 86 87 88 89 90 91 92 93 94 95 96 97 98 102 103 108

parse_json on Resources56

1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 52 53 54 55 56 57 61 62 63

parse_json on ResponseElements18

1 2 8 23 57 61 63 69 70 73 93 94 95 96 97 105 106 107

parse_json on AdditionalEventData4
split on UserIdentityPrincipalid3
split on EventSource1
split on UserAgent1
split on UserIdentityUserName1
todynamic on Resources1

Entity mappings

IP.Address ← SourceIpAddress102

1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 61 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 102 105 106 107 108 109 112 113

Account.CloudAppAccountId ← RecipientAccountId56

1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 52 53 54 55 56 57 61 62 63

Account.Name ← AccountName56

1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 52 53 54 55 56 57 61 62 63

Account.UPNSuffix ← AccountUPNSuffix56

1 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 52 53 54 55 56 57 61 62 63

Account.FullName ← UserIdentityUserName36

64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 99 102

Account.Name ← Name6
Account.UPNSuffix ← UpnSuffix5
Account.ObjectGuid ← UserIdentityUserName2
Account.FullName ← UserIdentityInvokedBy1
Account.UPNSuffix ← UPNSuffix1
CloudApplication.Name ← BucketName1
File.Name ← FilePath1
IP.Address ← set_SourceIpAddress1

ATT&CK techniques of these rules

T1098.003 28T1484 13T1078 9T1071 6T1098 6T1098.001 6T1562.007 6T1078.004 5T1110 5T1528 5T1537 5T1550.001 5T1087.004 3T1189 3T1203 3T1204 3T1485 3T1486 3T1562.001 3T1580 3T1059 2T1110.001 2T1134 2T1136.003 2T1204.003 2T1484.001 2T1526 2T1530 2T1562.008 2T1053.007 1T1059.004 1T1069.002 1T1069.003 1T1078.002 1T1083 1T1087.002 1T1087.003 1T1098.004 1T1110.004 1T1190 1T1484.002 1T1489 1T1496 1T1498 1T1525 1T1535 1T1556 1T1562 1T1562.004 1T1565.001 1T1578.005 1T1583 1T1589.002 1T1589.003 1T1590 1T1591 1T1592.004 1T1595 1T1596 1T1619 1T1651 1

Severity

Medium 66High 25Low 18

Schedules (analytic rules)

every 1d over 1d 54every 1h over 1h 10every 1d over 14d 3every 10m over 10m 2every 15m over 15m 2every 1h over 14d 2every 5m over 5m 1

Look-back windows in ago()

1d 20d 114d 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.