|
| 1 | +id: 6f7df1b7-5613-45e5-9b82-3ec95d86e0e8 |
| 2 | +name: Quarantine Phish Reason trend |
| 3 | +description: | |
| 4 | + This query visualises the amount of phish emails that are quarantined, summarized daily by the detection method |
| 5 | +description-detailed: | |
| 6 | + This query visualises the amount of phish emails that are quarantined, summarized daily by the detection method |
| 7 | + Query is also included as part of the Defender for Office 365 solution in Sentinel: https://techcommunity.microsoft.com/blog/microsoftdefenderforoffice365blog/part-2-build-custom-email-security-reports-and-dashboards-with-workbooks-in-micr/4411303 |
| 8 | +requiredDataConnectors: |
| 9 | +- connectorId: MicrosoftThreatProtection |
| 10 | + dataTypes: |
| 11 | + - EmailEvents |
| 12 | +tactics: |
| 13 | + - InitialAccess |
| 14 | +relevantTechniques: |
| 15 | + - T1566 |
| 16 | +query: | |
| 17 | + let TimeStart = startofday(ago(30d)); |
| 18 | + let TimeEnd = startofday(now()); |
| 19 | + let baseQuery = EmailEvents |
| 20 | + | where TimeGenerated >= TimeStart |
| 21 | + | where DetectionMethods has "Phish" and DeliveryLocation == "Quarantine"; |
| 22 | + let ml=baseQuery |
| 23 | + | project Timestamp,RecipientEmailAddress,NetworkMessageId, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) |
| 24 | + | where Phish has 'Advanced filter' |
| 25 | + | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d |
| 26 | + | extend Details = "Advanced filter"; |
| 27 | + let camp=baseQuery |
| 28 | + | project Timestamp,RecipientEmailAddress,NetworkMessageId, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) |
| 29 | + | where Phish has 'Campaign' |
| 30 | + | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d |
| 31 | + | extend Details = "Campaign"; |
| 32 | + let fd=baseQuery |
| 33 | + | project Timestamp,RecipientEmailAddress,NetworkMessageId, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) |
| 34 | + | where Phish has 'File detonation' and Phish !has 'File detonation reputation' |
| 35 | + | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d |
| 36 | + | extend Details = "File detonation"; |
| 37 | + let fdr=baseQuery |
| 38 | + | project Timestamp,RecipientEmailAddress,NetworkMessageId, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) |
| 39 | + | where Phish has 'File detonation reputation' |
| 40 | + | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d |
| 41 | + | extend Details = "File detonation reputation"; |
| 42 | + let frp=baseQuery |
| 43 | + | project Timestamp,RecipientEmailAddress,NetworkMessageId, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) |
| 44 | + | where Phish has 'Fingerprint matching' |
| 45 | + | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d |
| 46 | + | extend Details = "Fingerprint matching"; |
| 47 | + let gf=baseQuery |
| 48 | + | project Timestamp,RecipientEmailAddress,NetworkMessageId, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) |
| 49 | + | where Phish has 'General filter' |
| 50 | + | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d |
| 51 | + | extend Details = "General filter"; |
| 52 | + let bimp=baseQuery |
| 53 | + | project Timestamp,RecipientEmailAddress,NetworkMessageId, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) |
| 54 | + | where Phish has 'Impersonation brand' |
| 55 | + | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d |
| 56 | + | extend Details = "Impersonation brand"; |
| 57 | + let dimp=baseQuery |
| 58 | + | project Timestamp,RecipientEmailAddress,NetworkMessageId, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) |
| 59 | + | where Phish has 'Impersonation domain' |
| 60 | + | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d |
| 61 | + | extend Details = "Impersonation domain"; |
| 62 | + let uimp=baseQuery |
| 63 | + | project Timestamp,RecipientEmailAddress,NetworkMessageId, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) |
| 64 | + | where Phish has 'Impersonation user' |
| 65 | + | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d |
| 66 | + | extend Details = "Impersonation user"; |
| 67 | + let mimp=baseQuery |
| 68 | + | project Timestamp,RecipientEmailAddress,NetworkMessageId, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) |
| 69 | + | where Phish has 'Mailbox intelligence impersonation' |
| 70 | + | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d |
| 71 | + | extend Details = "Mailbox intelligence impersonation"; |
| 72 | + let sdmarc=baseQuery |
| 73 | + | project Timestamp,RecipientEmailAddress,NetworkMessageId, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) |
| 74 | + | where Phish has 'Spoof DMARC' |
| 75 | + | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d |
| 76 | + | extend Details = "Spoof DMARC"; |
| 77 | + let spoofe=baseQuery |
| 78 | + | project Timestamp,RecipientEmailAddress,NetworkMessageId, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) |
| 79 | + | where Phish has 'Spoof external domain' |
| 80 | + | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d |
| 81 | + | extend Details = "Spoof external domain"; |
| 82 | + let spoofi=baseQuery |
| 83 | + | project Timestamp,RecipientEmailAddress,NetworkMessageId, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) |
| 84 | + | where Phish has 'Spoof intra-org' |
| 85 | + | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d |
| 86 | + | extend Details = "Spoof intra-org"; |
| 87 | + let ud=baseQuery |
| 88 | + | project Timestamp,RecipientEmailAddress,NetworkMessageId, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) |
| 89 | + | where Phish has 'URL detonation' and Phish !has 'URL detonation reputation' |
| 90 | + | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d |
| 91 | + | extend Details = "URL detonation"; |
| 92 | + let udr=baseQuery |
| 93 | + | project Timestamp,RecipientEmailAddress,NetworkMessageId, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) |
| 94 | + | where Phish has 'URL detonation reputation' |
| 95 | + | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d |
| 96 | + | extend Details = "URL detonation reputation"; |
| 97 | + let umr=baseQuery |
| 98 | + | project Timestamp,RecipientEmailAddress,NetworkMessageId, DT=parse_json(DetectionMethods) | evaluate bag_unpack(DT) |
| 99 | + | where Phish has 'URL malicious reputation' |
| 100 | + | make-series Count= count() default = 0 on Timestamp from TimeStart to TimeEnd step 1d |
| 101 | + | extend Details = "URL malicious reputation"; |
| 102 | + union ml,camp,fd,fdr,frp,gf,bimp,dimp,uimp,mimp,sdmarc,spoofe,spoofi,ud,udr,umr |
| 103 | + | project Count, Details, Timestamp |
| 104 | + | render timechart |
| 105 | +version: 1.0.0 |
0 commit comments