Skip to content

Commit a10ad35

Browse files
authored
Merge pull request #185 from cd1zz/updates/syntax-corrections
ASRrules & policy analysis added to DeviceEnrichment
2 parents 202353c + 5af1f82 commit a10ad35

17 files changed

Lines changed: 929 additions & 210 deletions

File tree

Logic Apps/SecCopilot-UserReportedPhishing-FuncApp_parsingV2/logicapp_azuredeploy.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

Logic Apps/SecCopilot-UserReportedPhishing/DefenderKqlPlugins_automation.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ SkillGroups:
1313
Description: The subject of the email
1414
Required: true
1515
Settings:
16-
Target: Defender
17-
Template: |-
16+
Target: Defender
17+
Template: |-
1818
EmailEvents
1919
| where Subject == '{{subject}}'
2020
- Name: GetUrlClicksBySubjectAndSenderEmail
@@ -28,8 +28,8 @@ SkillGroups:
2828
Description: The sender of the email
2929
Required: true
3030
Settings:
31-
Target: Defender
32-
Template: |-
31+
Target: Defender
32+
Template: |-
3333
let email = EmailEvents
3434
| where Subject == '{{subject}}' and SenderFromAddress == '{{senderEmail}}'
3535
| project NetworkMessageId;

Plugins/Community Based Plugins/Microsoft Defender XDR Custom Plugin Scenarios/DefenderIncidentInvestigation/Device-Info.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ SkillGroups:
1717
Settings:
1818
Target: Defender
1919
Template: |-
20-
DeviceInfo
21-
| where DeviceName contains '{{devicename}}'
22-
| where Timestamp > ago(30d)
23-
| summarize arg_max(Timestamp,*) by DeviceName
24-
| project Timestamp, DeviceName, OSPlatform, OSVersionInfo, OSBuild, DeviceType, Vendor, JoinType
20+
DeviceInfo
21+
| where DeviceName contains '{{devicename}}'
22+
| where Timestamp > ago(30d)
23+
| summarize arg_max(Timestamp,*) by DeviceName
24+
| project Timestamp, DeviceName, OSPlatform, OSVersionInfo, OSBuild, DeviceType, Vendor, JoinType
2525
2626
- Name: DeviceIPInfo
2727
DisplayName: Device Current and Past IPs
@@ -33,14 +33,14 @@ SkillGroups:
3333
Settings:
3434
Target: Defender
3535
Template: |-
36-
DeviceNetworkInfo
37-
| where DeviceName contains '{{devicename}}'
38-
| where Timestamp > ago(10d)
39-
| mv-expand parsejson(IPAddresses)
40-
| extend DeviceIPAddress = tostring(IPAddresses.IPAddress)
41-
| summarize arg_max(Timestamp, DeviceIPAddress) by DeviceId, DeviceName, MacAddress
42-
| project Timestamp, DeviceName, MacAddress, DeviceIPAddress
43-
| sort by Timestamp
36+
DeviceNetworkInfo
37+
| where DeviceName contains '{{devicename}}'
38+
| where Timestamp > ago(10d)
39+
| mv-expand parsejson(IPAddresses)
40+
| extend DeviceIPAddress = tostring(IPAddresses.IPAddress)
41+
| summarize arg_max(Timestamp, DeviceIPAddress) by DeviceId, DeviceName, MacAddress
42+
| project Timestamp, DeviceName, MacAddress, DeviceIPAddress
43+
| sort by Timestamp
4444
4545
- Name: DeviceUserInfo
4646
DisplayName: Device Users and Login Counts
@@ -52,16 +52,16 @@ SkillGroups:
5252
Settings:
5353
Target: Defender
5454
Template: |-
55-
DeviceInfo
56-
| where DeviceName contains '{{devicename}}'
57-
| where Timestamp > ago(30d)
58-
| mv-expand parsejson(LoggedOnUsers)
59-
| extend UserName = tostring(LoggedOnUsers.UserName)
60-
| extend Domain = tostring(LoggedOnUsers.DomainName)
61-
| extend Sid = tostring(LoggedOnUsers.Sid)
62-
| summarize LoginCount = count() by DeviceName, UserName, Domain, Sid
63-
| project DeviceName, UserName, LoginCount, Domain, Sid
64-
| sort by LoginCount
55+
DeviceInfo
56+
| where DeviceName contains '{{devicename}}'
57+
| where Timestamp > ago(30d)
58+
| mv-expand parsejson(LoggedOnUsers)
59+
| extend UserName = tostring(LoggedOnUsers.UserName)
60+
| extend Domain = tostring(LoggedOnUsers.DomainName)
61+
| extend Sid = tostring(LoggedOnUsers.Sid)
62+
| summarize LoginCount = count() by DeviceName, UserName, Domain, Sid
63+
| project DeviceName, UserName, LoginCount, Domain, Sid
64+
| sort by LoginCount
6565
6666
- Name: DeviceAlertInfo
6767
DisplayName: Device Alert Information
@@ -73,13 +73,13 @@ SkillGroups:
7373
Settings:
7474
Target: Defender
7575
Template: |-
76-
AlertInfo
77-
| where Timestamp > ago(30d)
78-
| join AlertEvidence on AlertId
79-
| where DeviceName contains '{{devicename}}'
80-
| extend Date = format_datetime(Timestamp, "yyyy-MM-dd")
81-
| summarize by Date, Title, Severity, Categories, DetectionSource
82-
| sort by Date desc, Categories
76+
AlertInfo
77+
| where Timestamp > ago(30d)
78+
| join AlertEvidence on AlertId
79+
| where DeviceName contains '{{devicename}}'
80+
| extend Date = format_datetime(Timestamp, "yyyy-MM-dd")
81+
| summarize by Date, Title, Severity, Categories, DetectionSource
82+
| sort by Date desc, Categories
8383
8484
- Name: DeviceAppInfo
8585
DisplayName: Device Installed Applications

0 commit comments

Comments
 (0)