diff --git a/.script/tests/KqlvalidationsTests/CustomTables/AppDependencies.json b/.script/tests/KqlvalidationsTests/CustomTables/AppDependencies.json
new file mode 100644
index 00000000000..f35c93f50a8
--- /dev/null
+++ b/.script/tests/KqlvalidationsTests/CustomTables/AppDependencies.json
@@ -0,0 +1,109 @@
+{
+ "Name": "AppDependencies",
+ "Properties": [
+ {
+ "Name": "TenantId",
+ "Type": "String"
+ },
+ {
+ "Name": "TimeGenerated",
+ "Type": "DateTime"
+ },
+ {
+ "Name": "_ResourceId",
+ "Type": "String"
+ },
+ {
+ "Name": "Type",
+ "Type": "String"
+ },
+ {
+ "Name": "AppRoleInstance",
+ "Type": "String"
+ },
+ {
+ "Name": "AppRoleName",
+ "Type": "String"
+ },
+ {
+ "Name": "AppVersion",
+ "Type": "String"
+ },
+ {
+ "Name": "OperationId",
+ "Type": "String"
+ },
+ {
+ "Name": "OperationName",
+ "Type": "String"
+ },
+ {
+ "Name": "ParentId",
+ "Type": "String"
+ },
+ {
+ "Name": "ResourceGUID",
+ "Type": "String"
+ },
+ {
+ "Name": "ClientIP",
+ "Type": "String"
+ },
+ {
+ "Name": "ClientType",
+ "Type": "String"
+ },
+ {
+ "Name": "Properties",
+ "Type": "Dynamic"
+ },
+ {
+ "Name": "Measurements",
+ "Type": "Dynamic"
+ },
+ {
+ "Name": "ItemCount",
+ "Type": "Int"
+ },
+ {
+ "Name": "SDKVersion",
+ "Type": "String"
+ },
+ {
+ "Name": "Id",
+ "Type": "String"
+ },
+ {
+ "Name": "Name",
+ "Type": "String"
+ },
+ {
+ "Name": "Target",
+ "Type": "String"
+ },
+ {
+ "Name": "DependencyType",
+ "Type": "String"
+ },
+ {
+ "Name": "Data",
+ "Type": "String"
+ },
+ {
+ "Name": "Success",
+ "Type": "Bool"
+ },
+ {
+ "Name": "ResultCode",
+ "Type": "String"
+ },
+ {
+ "Name": "DurationMs",
+ "Type": "Real"
+ },
+ {
+ "Name": "PerformanceBucket",
+ "Type": "String"
+ }
+ ]
+}
diff --git a/.script/tests/KqlvalidationsTests/CustomTables/AppRequests.json b/.script/tests/KqlvalidationsTests/CustomTables/AppRequests.json
new file mode 100644
index 00000000000..8af1cb2c995
--- /dev/null
+++ b/.script/tests/KqlvalidationsTests/CustomTables/AppRequests.json
@@ -0,0 +1,105 @@
+{
+ "Name": "AppRequests",
+ "Properties": [
+ {
+ "Name": "TenantId",
+ "Type": "String"
+ },
+ {
+ "Name": "TimeGenerated",
+ "Type": "DateTime"
+ },
+ {
+ "Name": "_ResourceId",
+ "Type": "String"
+ },
+ {
+ "Name": "Type",
+ "Type": "String"
+ },
+ {
+ "Name": "AppRoleInstance",
+ "Type": "String"
+ },
+ {
+ "Name": "AppRoleName",
+ "Type": "String"
+ },
+ {
+ "Name": "AppVersion",
+ "Type": "String"
+ },
+ {
+ "Name": "OperationId",
+ "Type": "String"
+ },
+ {
+ "Name": "OperationName",
+ "Type": "String"
+ },
+ {
+ "Name": "ParentId",
+ "Type": "String"
+ },
+ {
+ "Name": "ResourceGUID",
+ "Type": "String"
+ },
+ {
+ "Name": "ClientIP",
+ "Type": "String"
+ },
+ {
+ "Name": "ClientType",
+ "Type": "String"
+ },
+ {
+ "Name": "Properties",
+ "Type": "Dynamic"
+ },
+ {
+ "Name": "Measurements",
+ "Type": "Dynamic"
+ },
+ {
+ "Name": "ItemCount",
+ "Type": "Int"
+ },
+ {
+ "Name": "SDKVersion",
+ "Type": "String"
+ },
+ {
+ "Name": "Id",
+ "Type": "String"
+ },
+ {
+ "Name": "Name",
+ "Type": "String"
+ },
+ {
+ "Name": "Url",
+ "Type": "String"
+ },
+ {
+ "Name": "Source",
+ "Type": "String"
+ },
+ {
+ "Name": "Success",
+ "Type": "Bool"
+ },
+ {
+ "Name": "ResultCode",
+ "Type": "String"
+ },
+ {
+ "Name": "DurationMs",
+ "Type": "Real"
+ },
+ {
+ "Name": "PerformanceBucket",
+ "Type": "String"
+ }
+ ]
+}
diff --git a/.script/tests/KqlvalidationsTests/CustomTables/AppServiceConsoleLogs.json b/.script/tests/KqlvalidationsTests/CustomTables/AppServiceConsoleLogs.json
new file mode 100644
index 00000000000..8bce9a2c704
--- /dev/null
+++ b/.script/tests/KqlvalidationsTests/CustomTables/AppServiceConsoleLogs.json
@@ -0,0 +1,53 @@
+{
+ "Name": "AppServiceConsoleLogs",
+ "Properties": [
+ {
+ "Name": "TenantId",
+ "Type": "String"
+ },
+ {
+ "Name": "TimeGenerated",
+ "Type": "DateTime"
+ },
+ {
+ "Name": "_ResourceId",
+ "Type": "String"
+ },
+ {
+ "Name": "Type",
+ "Type": "String"
+ },
+ {
+ "Name": "Category",
+ "Type": "String"
+ },
+ {
+ "Name": "ContainerId",
+ "Type": "String"
+ },
+ {
+ "Name": "Host",
+ "Type": "String"
+ },
+ {
+ "Name": "Level",
+ "Type": "String"
+ },
+ {
+ "Name": "OperationName",
+ "Type": "String"
+ },
+ {
+ "Name": "ResultDescription",
+ "Type": "String"
+ },
+ {
+ "Name": "SourceSystem",
+ "Type": "String"
+ },
+ {
+ "Name": "_SubscriptionId",
+ "Type": "String"
+ }
+ ]
+}
diff --git a/.script/tests/KqlvalidationsTests/CustomTables/AppTraces.json b/.script/tests/KqlvalidationsTests/CustomTables/AppTraces.json
new file mode 100644
index 00000000000..cbd1b14bc95
--- /dev/null
+++ b/.script/tests/KqlvalidationsTests/CustomTables/AppTraces.json
@@ -0,0 +1,81 @@
+{
+ "Name": "AppTraces",
+ "Properties": [
+ {
+ "Name": "TenantId",
+ "Type": "String"
+ },
+ {
+ "Name": "TimeGenerated",
+ "Type": "DateTime"
+ },
+ {
+ "Name": "_ResourceId",
+ "Type": "String"
+ },
+ {
+ "Name": "Type",
+ "Type": "String"
+ },
+ {
+ "Name": "AppRoleInstance",
+ "Type": "String"
+ },
+ {
+ "Name": "AppRoleName",
+ "Type": "String"
+ },
+ {
+ "Name": "AppVersion",
+ "Type": "String"
+ },
+ {
+ "Name": "OperationId",
+ "Type": "String"
+ },
+ {
+ "Name": "OperationName",
+ "Type": "String"
+ },
+ {
+ "Name": "ParentId",
+ "Type": "String"
+ },
+ {
+ "Name": "ResourceGUID",
+ "Type": "String"
+ },
+ {
+ "Name": "ClientIP",
+ "Type": "String"
+ },
+ {
+ "Name": "ClientType",
+ "Type": "String"
+ },
+ {
+ "Name": "Properties",
+ "Type": "Dynamic"
+ },
+ {
+ "Name": "Measurements",
+ "Type": "Dynamic"
+ },
+ {
+ "Name": "ItemCount",
+ "Type": "Int"
+ },
+ {
+ "Name": "SDKVersion",
+ "Type": "String"
+ },
+ {
+ "Name": "Message",
+ "Type": "String"
+ },
+ {
+ "Name": "SeverityLevel",
+ "Type": "Int"
+ }
+ ]
+}
diff --git a/.script/tests/KqlvalidationsTests/CustomTables/ContainerAppConsoleLogs_CL.json b/.script/tests/KqlvalidationsTests/CustomTables/ContainerAppConsoleLogs_CL.json
new file mode 100644
index 00000000000..9d927e8fb7c
--- /dev/null
+++ b/.script/tests/KqlvalidationsTests/CustomTables/ContainerAppConsoleLogs_CL.json
@@ -0,0 +1,69 @@
+{
+ "Name": "ContainerAppConsoleLogs_CL",
+ "Properties": [
+ {
+ "Name": "TenantId",
+ "Type": "String"
+ },
+ {
+ "Name": "TimeGenerated",
+ "Type": "DateTime"
+ },
+ {
+ "Name": "_ResourceId",
+ "Type": "String"
+ },
+ {
+ "Name": "Type",
+ "Type": "String"
+ },
+ {
+ "Name": "ContainerAppName_s",
+ "Type": "String"
+ },
+ {
+ "Name": "ContainerGroupId_g",
+ "Type": "String"
+ },
+ {
+ "Name": "ContainerGroupName_s",
+ "Type": "String"
+ },
+ {
+ "Name": "ContainerId_s",
+ "Type": "String"
+ },
+ {
+ "Name": "ContainerImage_s",
+ "Type": "String"
+ },
+ {
+ "Name": "ContainerName_s",
+ "Type": "String"
+ },
+ {
+ "Name": "EnvironmentName_s",
+ "Type": "String"
+ },
+ {
+ "Name": "Log_s",
+ "Type": "String"
+ },
+ {
+ "Name": "RevisionName_s",
+ "Type": "String"
+ },
+ {
+ "Name": "Stream_s",
+ "Type": "String"
+ },
+ {
+ "Name": "Computer",
+ "Type": "String"
+ },
+ {
+ "Name": "SourceSystem",
+ "Type": "String"
+ }
+ ]
+}
diff --git a/.script/tests/KqlvalidationsTests/CustomTables/ContainerLogV2.json b/.script/tests/KqlvalidationsTests/CustomTables/ContainerLogV2.json
new file mode 100644
index 00000000000..2a419790a8a
--- /dev/null
+++ b/.script/tests/KqlvalidationsTests/CustomTables/ContainerLogV2.json
@@ -0,0 +1,61 @@
+{
+ "Name": "ContainerLogV2",
+ "Properties": [
+ {
+ "Name": "TenantId",
+ "Type": "String"
+ },
+ {
+ "Name": "TimeGenerated",
+ "Type": "DateTime"
+ },
+ {
+ "Name": "_ResourceId",
+ "Type": "String"
+ },
+ {
+ "Name": "Type",
+ "Type": "String"
+ },
+ {
+ "Name": "Computer",
+ "Type": "String"
+ },
+ {
+ "Name": "ContainerId",
+ "Type": "String"
+ },
+ {
+ "Name": "ContainerName",
+ "Type": "String"
+ },
+ {
+ "Name": "PodName",
+ "Type": "String"
+ },
+ {
+ "Name": "PodNamespace",
+ "Type": "String"
+ },
+ {
+ "Name": "LogMessage",
+ "Type": "Dynamic"
+ },
+ {
+ "Name": "LogSource",
+ "Type": "String"
+ },
+ {
+ "Name": "LogLevel",
+ "Type": "String"
+ },
+ {
+ "Name": "KubernetesMetadata",
+ "Type": "Dynamic"
+ },
+ {
+ "Name": "SourceSystem",
+ "Type": "String"
+ }
+ ]
+}
diff --git a/.script/tests/KqlvalidationsTests/CustomTables/FunctionAppLogs.json b/.script/tests/KqlvalidationsTests/CustomTables/FunctionAppLogs.json
new file mode 100644
index 00000000000..7a9f6575ca4
--- /dev/null
+++ b/.script/tests/KqlvalidationsTests/CustomTables/FunctionAppLogs.json
@@ -0,0 +1,89 @@
+{
+ "Name": "FunctionAppLogs",
+ "Properties": [
+ {
+ "Name": "TenantId",
+ "Type": "String"
+ },
+ {
+ "Name": "TimeGenerated",
+ "Type": "DateTime"
+ },
+ {
+ "Name": "_ResourceId",
+ "Type": "String"
+ },
+ {
+ "Name": "Type",
+ "Type": "String"
+ },
+ {
+ "Name": "Category",
+ "Type": "String"
+ },
+ {
+ "Name": "EventId",
+ "Type": "Int"
+ },
+ {
+ "Name": "EventName",
+ "Type": "String"
+ },
+ {
+ "Name": "ExceptionDetails",
+ "Type": "String"
+ },
+ {
+ "Name": "ExceptionMessage",
+ "Type": "String"
+ },
+ {
+ "Name": "ExceptionType",
+ "Type": "String"
+ },
+ {
+ "Name": "FunctionInvocationId",
+ "Type": "String"
+ },
+ {
+ "Name": "FunctionName",
+ "Type": "String"
+ },
+ {
+ "Name": "HostInstanceId",
+ "Type": "String"
+ },
+ {
+ "Name": "HostVersion",
+ "Type": "String"
+ },
+ {
+ "Name": "Level",
+ "Type": "String"
+ },
+ {
+ "Name": "LevelId",
+ "Type": "Int"
+ },
+ {
+ "Name": "Location",
+ "Type": "String"
+ },
+ {
+ "Name": "Message",
+ "Type": "String"
+ },
+ {
+ "Name": "ProcessId",
+ "Type": "Int"
+ },
+ {
+ "Name": "RoleInstance",
+ "Type": "String"
+ },
+ {
+ "Name": "_SubscriptionId",
+ "Type": "String"
+ }
+ ]
+}
diff --git a/Logos/DugganUSA.svg b/Logos/DugganUSA.svg
new file mode 100644
index 00000000000..0687d803e89
--- /dev/null
+++ b/Logos/DugganUSA.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/Solutions/DugganUSA Threat Intelligence/Analytic Rules/DugganUSADomainIndicatorDns.yaml b/Solutions/DugganUSA Threat Intelligence/Analytic Rules/DugganUSADomainIndicatorDns.yaml
new file mode 100644
index 00000000000..5f4acd51f13
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Analytic Rules/DugganUSADomainIndicatorDns.yaml
@@ -0,0 +1,99 @@
+id: 9a82ac5f-d039-4ece-ad02-be2b2376123f
+name: DugganUSA - domain indicator matched in DNS activity (ASIM)
+description: |
+ 'Matches active DugganUSA domain indicators against DNS activity normalized by the ASIM Dns schema: a host inside the estate resolved a domain in the DugganUSA feed. Indicators are selected by a TAXII friendly name containing "DugganUSA" or by the DugganUSA STIX identity (created_by_ref), so a renamed connector still matches. Expired (ValidUntil in the past), inactive and deleted indicators are excluded. The confidence score is a dial for you to set, not a verdict: the rule defaults to 80. Requires the ASIM Dns parsers and DNS telemetry in the workspace.'
+severity: Medium
+status: Available
+requiredDataConnectors:
+ - connectorId: ThreatIntelligenceTaxii
+ dataTypes:
+ - ThreatIntelIndicators
+queryFrequency: 1h
+queryPeriod: 14d
+triggerOperator: gt
+triggerThreshold: 0
+tactics:
+ - CommandAndControl
+relevantTechniques:
+ - T1071
+ - T1568
+query: |
+ let dugganusa_identity = "identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d";
+ let ioc_lookback = 14d;
+ let dns_lookback = 1h;
+ let confidence_floor = 80;
+ let DugganUSA_Domains =
+ ThreatIntelIndicators
+ | where TimeGenerated >= ago(ioc_lookback)
+ | where SourceSystem has "DugganUSA" or tostring(Data.created_by_ref) == dugganusa_identity
+ | where ObservableKey == "domain-name:value"
+ | where isnotempty(ObservableValue)
+ | summarize arg_max(TimeGenerated, *) by Id
+ | where IsActive == true and IsDeleted == false
+ | where isempty(ValidUntil) or ValidUntil > now()
+ | where Confidence >= confidence_floor
+ | extend IndicatorDomain = tolower(trim_end(@"\.", tostring(ObservableValue)))
+ | project
+ IndicatorDomain,
+ Confidence,
+ IndicatorName = tostring(Data.name),
+ IndicatorStixId = tostring(Data.id),
+ ValidUntil;
+ let DnsActivity =
+ _Im_Dns(starttime = ago(dns_lookback), endtime = now())
+ | where isnotempty(DnsQuery)
+ | extend IndicatorDomain = tolower(trim_end(@"\.", DnsQuery))
+ | project DnsTime = TimeGenerated, IndicatorDomain, SrcIpAddr, SrcHostname, EventVendor, EventProduct;
+ DugganUSA_Domains
+ | join kind=inner DnsActivity on IndicatorDomain
+ | where isempty(ValidUntil) or DnsTime < ValidUntil
+ | summarize
+ FirstResolved = min(DnsTime),
+ LastResolved = max(DnsTime),
+ QueryCount = count(),
+ SourceIps = make_set(SrcIpAddr, 50),
+ SourceHosts = make_set(SrcHostname, 50),
+ SeenBy = make_set(strcat(EventVendor, " ", EventProduct), 10)
+ by IndicatorDomain, Confidence, IndicatorName, IndicatorStixId
+ | extend
+ SourceIp = tostring(SourceIps[0]),
+ SourceHost = tostring(SourceHosts[0])
+ | extend timestamp = LastResolved
+ | order by Confidence desc, QueryCount desc
+eventGroupingSettings:
+ aggregationKind: AlertPerResult
+alertDetailsOverride:
+ alertDisplayNameFormat: 'DugganUSA: {{IndicatorDomain}} resolved from inside the estate'
+ alertDescriptionFormat: |
+ {{IndicatorDomain}} was resolved from inside the estate. It is a domain indicator in the DugganUSA feed at confidence {{Confidence}}. Review the source hosts in the alert and the indicator in the Threat intelligence page.
+customDetails:
+ IndicatorStixId: IndicatorStixId
+ Confidence: Confidence
+ ResolutionCount: QueryCount
+ ObservedBy: SeenBy
+entityMappings:
+ - entityType: DNS
+ fieldMappings:
+ - identifier: DomainName
+ columnName: IndicatorDomain
+ - entityType: IP
+ fieldMappings:
+ - identifier: Address
+ columnName: SourceIp
+ - entityType: Host
+ fieldMappings:
+ - identifier: HostName
+ columnName: SourceHost
+incidentConfiguration:
+ createIncident: true
+ groupingConfiguration:
+ enabled: true
+ reopenClosedIncident: false
+ lookbackDuration: P1D
+ matchingMethod: Selected
+ groupByEntities:
+ - DNS
+suppressionEnabled: false
+suppressionDuration: 1h
+version: 1.0.0
+kind: Scheduled
diff --git a/Solutions/DugganUSA Threat Intelligence/Analytic Rules/DugganUSAIPIndicatorNetworkSession.yaml b/Solutions/DugganUSA Threat Intelligence/Analytic Rules/DugganUSAIPIndicatorNetworkSession.yaml
new file mode 100644
index 00000000000..d113b212fe7
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Analytic Rules/DugganUSAIPIndicatorNetworkSession.yaml
@@ -0,0 +1,103 @@
+id: c1372b99-168e-4c12-b120-d523bbd995ee
+name: DugganUSA - IP indicator matched in network sessions (ASIM)
+description: |
+ 'Matches active DugganUSA IPv4 indicators against network sessions normalized by the ASIM NetworkSession schema, in both directions: a host inside the estate connected to an indicator, or an indicator connected in. Indicators are selected by a TAXII friendly name containing "DugganUSA" or by the DugganUSA STIX identity (created_by_ref), so a renamed connector still matches. Expired (ValidUntil in the past), inactive and deleted indicators are excluded. The confidence score is a dial for you to set, not a verdict: the rule defaults to 80. Requires the ASIM NetworkSession parsers and network telemetry in the workspace.'
+severity: Medium
+status: Available
+requiredDataConnectors:
+ - connectorId: ThreatIntelligenceTaxii
+ dataTypes:
+ - ThreatIntelIndicators
+queryFrequency: 1h
+queryPeriod: 14d
+triggerOperator: gt
+triggerThreshold: 0
+tactics:
+ - CommandAndControl
+relevantTechniques:
+ - T1071
+query: |
+ let dugganusa_identity = "identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d";
+ let ioc_lookback = 14d;
+ let session_lookback = 1h;
+ let confidence_floor = 80;
+ let DugganUSA_IPs =
+ ThreatIntelIndicators
+ | where TimeGenerated >= ago(ioc_lookback)
+ | where SourceSystem has "DugganUSA" or tostring(Data.created_by_ref) == dugganusa_identity
+ | where ObservableKey == "ipv4-addr:value"
+ | where isnotempty(ObservableValue)
+ | summarize arg_max(TimeGenerated, *) by Id
+ | where IsActive == true and IsDeleted == false
+ | where isempty(ValidUntil) or ValidUntil > now()
+ | where Confidence >= confidence_floor
+ | project
+ TI_ip = tostring(ObservableValue),
+ Confidence,
+ IndicatorName = tostring(Data.name),
+ IndicatorStixId = tostring(Data.id),
+ ValidUntil;
+ let Sessions =
+ _Im_NetworkSession(starttime = ago(session_lookback), endtime = now())
+ | project TimeGenerated, SrcIpAddr, DstIpAddr, DstPortNumber, SrcHostname, DstHostname, DvcAction, EventVendor, EventProduct;
+ union
+ (Sessions | extend TI_ip = DstIpAddr, LocalIp = SrcIpAddr, LocalHostname = SrcHostname, Direction = "to indicator"),
+ (Sessions | extend TI_ip = SrcIpAddr, LocalIp = DstIpAddr, LocalHostname = DstHostname, Direction = "from indicator")
+ | where isnotempty(TI_ip)
+ | join kind=inner DugganUSA_IPs on TI_ip
+ | where isempty(ValidUntil) or TimeGenerated < ValidUntil
+ | summarize
+ FirstSeen = min(TimeGenerated),
+ LastSeen = max(TimeGenerated),
+ SessionCount = count(),
+ LocalIps = make_set(LocalIp, 50),
+ LocalHosts = make_set(LocalHostname, 50),
+ DstPorts = make_set(DstPortNumber, 20),
+ Actions = make_set(DvcAction, 10),
+ SeenBy = make_set(strcat(EventVendor, " ", EventProduct), 10)
+ by TI_ip, Direction, Confidence, IndicatorName, IndicatorStixId
+ | extend
+ LocalIp = tostring(LocalIps[0]),
+ LocalHost = tostring(LocalHosts[0])
+ | extend timestamp = LastSeen
+ | order by Confidence desc, SessionCount desc
+eventGroupingSettings:
+ aggregationKind: AlertPerResult
+alertDetailsOverride:
+ alertDisplayNameFormat: 'DugganUSA: network session {{Direction}} {{TI_ip}}'
+ alertDescriptionFormat: |
+ A network session was seen {{Direction}} {{TI_ip}}, an IPv4 indicator in the DugganUSA feed at confidence {{Confidence}}. Review the local IPs and hosts in the alert and the indicator in the Threat intelligence page.
+customDetails:
+ IndicatorStixId: IndicatorStixId
+ Confidence: Confidence
+ Direction: Direction
+ SessionCount: SessionCount
+ DstPorts: DstPorts
+ DeviceActions: Actions
+ ObservedBy: SeenBy
+entityMappings:
+ - entityType: IP
+ fieldMappings:
+ - identifier: Address
+ columnName: TI_ip
+ - entityType: IP
+ fieldMappings:
+ - identifier: Address
+ columnName: LocalIp
+ - entityType: Host
+ fieldMappings:
+ - identifier: HostName
+ columnName: LocalHost
+incidentConfiguration:
+ createIncident: true
+ groupingConfiguration:
+ enabled: true
+ reopenClosedIncident: false
+ lookbackDuration: P1D
+ matchingMethod: Selected
+ groupByEntities:
+ - IP
+suppressionEnabled: false
+suppressionDuration: 1h
+version: 1.0.0
+kind: Scheduled
diff --git a/Solutions/DugganUSA Threat Intelligence/Analytic Rules/DugganUSAIPIndicatorSignin.yaml b/Solutions/DugganUSA Threat Intelligence/Analytic Rules/DugganUSAIPIndicatorSignin.yaml
new file mode 100644
index 00000000000..2c3a22021d7
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Analytic Rules/DugganUSAIPIndicatorSignin.yaml
@@ -0,0 +1,111 @@
+id: 6e914b6e-74f2-4589-ab52-44c06b13eb51
+name: DugganUSA - working credential used from a DugganUSA IP indicator
+description: |
+ 'Matches active DugganUSA IPv4 and IPv6 indicators against Microsoft Entra ID sign-ins (interactive and non-interactive): someone used a working credential for your tenant from an address in the DugganUSA feed. Alerts on every outcome except the result codes known to mean the credential was rejected (bad password, locked out, unknown or disabled user, unknown tenant): a success, a password accepted and then stopped by MFA, Conditional Access or an interruption, and any result code it does not recognize (fail closed). Rejected credentials do not alert here; failed attempts are rolled into one daily Informational alert by the companion rule, so a password-spray from a listed address does not page anyone. Indicators are selected by a TAXII friendly name containing "DugganUSA" or by the DugganUSA STIX identity (created_by_ref). Expired, inactive and deleted indicators are excluded. The confidence floor defaults to 80 and is a dial for you to set, not a verdict. Requires Entra ID sign-in logs in the workspace (Microsoft Entra ID P1 or P2 for the diagnostic export).'
+severity: High
+status: Available
+requiredDataConnectors:
+ - connectorId: ThreatIntelligenceTaxii
+ dataTypes:
+ - ThreatIntelIndicators
+ - connectorId: AzureActiveDirectory
+ dataTypes:
+ - SigninLogs
+ - AADNonInteractiveUserSignInLogs
+queryFrequency: 1h
+queryPeriod: 14d
+triggerOperator: gt
+triggerThreshold: 0
+tactics:
+ - InitialAccess
+ - CredentialAccess
+relevantTechniques:
+ - T1078
+ - T1110
+query: |
+ let dugganusa_identity = "identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d";
+ let ioc_lookback = 14d;
+ let signin_lookback = 1h;
+ let confidence_floor = 80;
+ // IPv6 has many spellings (2001:db8::1 = 2001:0db8:0:0:0:0:0:1): join on parse_ipv6, which gives one canonical form.
+ let ipkey = (ip:string) { iff(ip has ":", tostring(parse_ipv6(ip)), tolower(ip)) };
+ let DugganUSA_IPs =
+ ThreatIntelIndicators
+ | where TimeGenerated >= ago(ioc_lookback)
+ | where SourceSystem has "DugganUSA" or tostring(Data.created_by_ref) == dugganusa_identity
+ | where ObservableKey in ("ipv4-addr:value", "ipv6-addr:value")
+ | where isnotempty(ObservableValue)
+ | summarize arg_max(TimeGenerated, *) by Id
+ | where IsActive == true and IsDeleted == false
+ | where isempty(ValidUntil) or ValidUntil > now()
+ | where Confidence >= confidence_floor
+ | extend IndicatorIp = tostring(ObservableValue), IpKey = ipkey(tostring(ObservableValue))
+ | project IndicatorIp, IpKey, Confidence, IndicatorName = tostring(Data.name), IndicatorStixId = tostring(Data.id), ValidUntil;
+ let Signins =
+ union isfuzzy=true
+ (SigninLogs | where TimeGenerated >= ago(signin_lookback) | extend SigninKind = "interactive"),
+ (AADNonInteractiveUserSignInLogs | where TimeGenerated >= ago(signin_lookback) | extend SigninKind = "non-interactive")
+ | extend IpKey = ipkey(IPAddress)
+ // Fail closed: everything except result codes known to mean the credential was REJECTED alerts here.
+ // 50126 bad username or password, 50053 locked out, 50034 no such user, 50056 no password, 50057 disabled,
+ // 50064 credential validation failed, 50128/50059 no such tenant. These go to the daily digest.
+ | where tostring(ResultType) !in ("50126", "50053", "50034", "50056", "50057", "50064", "50128", "50059")
+ | extend Outcome = case(
+ tostring(ResultType) == "0", "signed in",
+ tostring(ResultType) in ("50074", "50076", "50079", "50072", "50158", "50140", "50125", "50097", "50129", "50055", "53003", "53000", "53001", "53002", "50199"),
+ "password accepted, stopped by MFA, policy or an interruption",
+ "unrecognized result code: review")
+ | project SigninTime = TimeGenerated, IpKey, UserPrincipalName, AppDisplayName, ResultType, Outcome, SigninKind;
+ DugganUSA_IPs
+ | join kind=inner Signins on IpKey
+ | where isempty(ValidUntil) or SigninTime < ValidUntil
+ | summarize
+ FirstAttempt = min(SigninTime),
+ LastAttempt = max(SigninTime),
+ Attempts = count(),
+ Successes = countif(Outcome == "signed in"),
+ MfaStops = countif(Outcome startswith "password accepted"),
+ Unrecognized = countif(Outcome startswith "unrecognized"),
+ ResultTypes = make_set(tostring(ResultType), 10),
+ Accounts = make_set(UserPrincipalName, 50),
+ Apps = make_set(AppDisplayName, 20),
+ Kinds = make_set(SigninKind, 2)
+ by IndicatorIp, Confidence, IndicatorName, IndicatorStixId
+ | extend Account = tostring(Accounts[0])
+ | extend timestamp = LastAttempt
+ | order by Successes desc, MfaStops desc, Unrecognized desc
+eventGroupingSettings:
+ aggregationKind: AlertPerResult
+alertDetailsOverride:
+ alertDisplayNameFormat: 'DugganUSA: working credential used from {{IndicatorIp}}'
+ alertDescriptionFormat: |
+ {{IndicatorIp}} presented a working credential {{Attempts}} time(s): see Successes and MfaStops in the alert details. It is an IP indicator in the DugganUSA feed at confidence {{Confidence}}. If unexpected, revoke the account's sessions and reset its password; an MFA stop still means the password is known.
+customDetails:
+ IndicatorStixId: IndicatorStixId
+ Successes: Successes
+ MfaStops: MfaStops
+ Unrecognized: Unrecognized
+ Confidence: Confidence
+ Attempts: Attempts
+entityMappings:
+ - entityType: IP
+ fieldMappings:
+ - identifier: Address
+ columnName: IndicatorIp
+ - entityType: Account
+ fieldMappings:
+ - identifier: FullName
+ columnName: Account
+incidentConfiguration:
+ createIncident: true
+ groupingConfiguration:
+ enabled: true
+ reopenClosedIncident: false
+ lookbackDuration: P1D
+ matchingMethod: Selected
+ groupByEntities:
+ - IP
+suppressionEnabled: false
+suppressionDuration: 1h
+version: 1.2.0
+kind: Scheduled
diff --git a/Solutions/DugganUSA Threat Intelligence/Analytic Rules/DugganUSAIPIndicatorSigninFailedDigest.yaml b/Solutions/DugganUSA Threat Intelligence/Analytic Rules/DugganUSAIPIndicatorSigninFailedDigest.yaml
new file mode 100644
index 00000000000..5135c1b5766
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Analytic Rules/DugganUSAIPIndicatorSigninFailedDigest.yaml
@@ -0,0 +1,90 @@
+id: d48faa29-0c46-498d-a4d8-0270ae1af1c3
+name: DugganUSA - daily digest of failed sign-ins from DugganUSA IP indicators
+description: |
+ 'Once a day, one Informational alert that lists every DugganUSA IPv4 and IPv6 indicator that failed to sign in to Microsoft Entra ID (interactive and non-interactive) in the last 24 hours, with attempt counts and the accounts targeted. It exists so failed attempts from listed addresses are recorded without paging anyone: only result codes known to mean the credential was rejected are counted here (bad password, locked out, unknown or disabled user, unknown tenant). Every other outcome, including a success, a password accepted and then stopped by MFA or Conditional Access, and any unrecognized code, alerts at High in the companion rule "DugganUSA - working credential used from a DugganUSA IP indicator", so neither rule drops an attempt. No row cap: every listed address that failed is in the alert. Indicators are selected by a TAXII friendly name containing "DugganUSA" or by the DugganUSA STIX identity (created_by_ref). Expired, inactive and deleted indicators are excluded. The confidence floor defaults to 80 and is a dial for you to set. Requires Entra ID sign-in logs in the workspace (Microsoft Entra ID P1 or P2 for the diagnostic export).'
+severity: Informational
+status: Available
+requiredDataConnectors:
+ - connectorId: ThreatIntelligenceTaxii
+ dataTypes:
+ - ThreatIntelIndicators
+ - connectorId: AzureActiveDirectory
+ dataTypes:
+ - SigninLogs
+ - AADNonInteractiveUserSignInLogs
+queryFrequency: 1d
+queryPeriod: 14d
+triggerOperator: gt
+triggerThreshold: 0
+tactics:
+ - CredentialAccess
+relevantTechniques:
+ - T1110
+query: |
+ let dugganusa_identity = "identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d";
+ let ioc_lookback = 14d;
+ let signin_lookback = 1d;
+ let confidence_floor = 80;
+ // IPv6 has many spellings (2001:db8::1 = 2001:0db8:0:0:0:0:0:1): join on parse_ipv6, which gives one canonical form.
+ let ipkey = (ip:string) { iff(ip has ":", tostring(parse_ipv6(ip)), tolower(ip)) };
+ let DugganUSA_IPs =
+ ThreatIntelIndicators
+ | where TimeGenerated >= ago(ioc_lookback)
+ | where SourceSystem has "DugganUSA" or tostring(Data.created_by_ref) == dugganusa_identity
+ | where ObservableKey in ("ipv4-addr:value", "ipv6-addr:value")
+ | where isnotempty(ObservableValue)
+ | summarize arg_max(TimeGenerated, *) by Id
+ | where IsActive == true and IsDeleted == false
+ | where isempty(ValidUntil) or ValidUntil > now()
+ | where Confidence >= confidence_floor
+ | extend IpKey = ipkey(tostring(ObservableValue))
+ | summarize Confidence = max(Confidence), ValidUntil = max(ValidUntil), IndicatorIp = take_any(tostring(ObservableValue)) by IpKey;
+ let Failures =
+ union isfuzzy=true
+ (SigninLogs | where TimeGenerated >= ago(signin_lookback)),
+ (AADNonInteractiveUserSignInLogs | where TimeGenerated >= ago(signin_lookback))
+ // Only result codes known to mean the credential was REJECTED (bad password, locked out, no such user,
+ // no password, disabled, validation failed, no such tenant). Every other code, known or not, alerts at High
+ // in the companion rule, so nothing from a listed address is dropped by either rule (fail closed).
+ | where tostring(ResultType) in ("50126", "50053", "50034", "50056", "50057", "50064", "50128", "50059")
+ | extend IpKey = ipkey(IPAddress)
+ | project SigninTime = TimeGenerated, IpKey, UserPrincipalName, ResultType;
+ DugganUSA_IPs
+ | join kind=inner Failures on IpKey
+ | where isempty(ValidUntil) or SigninTime < ValidUntil
+ | summarize
+ FirstAttempt = min(SigninTime),
+ LastAttempt = max(SigninTime),
+ Attempts = count(),
+ AccountCount = dcount(UserPrincipalName),
+ Accounts = make_set(UserPrincipalName, 20),
+ ResultTypes = make_set(tostring(ResultType), 10)
+ by IndicatorIp, Confidence
+ | order by AccountCount desc, Attempts desc
+ | extend timestamp = LastAttempt
+eventGroupingSettings:
+ aggregationKind: SingleAlert
+alertDetailsOverride:
+ alertDisplayNameFormat: 'DugganUSA: daily digest of failed sign-ins from listed IPs'
+ alertDescriptionFormat: |
+ Failed sign-in attempts from DugganUSA-listed IP addresses in the last 24 hours, rolled into one alert. Only rejected credentials are included here; every other outcome raises its own High alert. Open the alert's events for the per-address list.
+customDetails:
+ Attempts: Attempts
+ AccountCount: AccountCount
+ Confidence: Confidence
+entityMappings:
+ - entityType: IP
+ fieldMappings:
+ - identifier: Address
+ columnName: IndicatorIp
+incidentConfiguration:
+ createIncident: true
+ groupingConfiguration:
+ enabled: true
+ reopenClosedIncident: false
+ lookbackDuration: P7D
+ matchingMethod: AllEntities
+suppressionEnabled: false
+suppressionDuration: 1h
+version: 1.1.0
+kind: Scheduled
diff --git a/Solutions/DugganUSA Threat Intelligence/Analytic Rules/DugganUSALeakedSecretInLogs.yaml b/Solutions/DugganUSA Threat Intelligence/Analytic Rules/DugganUSALeakedSecretInLogs.yaml
new file mode 100644
index 00000000000..56dd094c2a8
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Analytic Rules/DugganUSALeakedSecretInLogs.yaml
@@ -0,0 +1,133 @@
+id: 67dbf549-159a-45b8-bbec-ab719f890544
+name: DugganUSA - key-shaped secret written to your logs
+description: |
+ 'A key or token in a recognized format was written to one of your logs: AWS access keys, GitHub tokens, Slack tokens, Stripe live keys, Anthropic, OpenAI and Google API keys, npm tokens, Azure storage account keys and SAS signatures, private keys (PEM), DugganUSA keys, JWTs and opaque bearer tokens. Anyone who can read that log can use the secret. The alert never contains the secret: it carries the type, the tables and columns, a hint (at most one sixth of the value) and a fingerprint, the first 16 hex characters of the SHA-256 of the exact value (for a private key, of its base64 body with line breaks removed), so you can confirm which key it is by hashing your own copy. Severity is High for keys and private keys and Medium for JWTs, bearer tokens, SAS signatures and Slack tokens. Tables your workspace does not have are skipped. Documented example keys are ignored. One incident per secret: repeat sightings of the same fingerprint within 7 days join it.'
+severity: High
+status: Available
+requiredDataConnectors:
+ - connectorId: Syslog
+ dataTypes:
+ - Syslog
+ - connectorId: AzureActivity
+ dataTypes:
+ - AzureActivity
+ - connectorId: MicrosoftThreatProtection
+ dataTypes:
+ - DeviceProcessEvents
+ - connectorId: CEF
+ dataTypes:
+ - CommonSecurityLog
+queryFrequency: 1h
+queryPeriod: 1h
+triggerOperator: gt
+triggerThreshold: 0
+tactics:
+ - CredentialAccess
+relevantTechniques:
+ - T1552
+query: |
+ let lookback = 1h;
+ // Known key formats. One capture group; the type is decided from the captured value below.
+ let known_rx = @"((?:AKIA|ASIA)[0-9A-Z]{16}|gh[pousr]_[A-Za-z0-9]{36,255}|github_pat_[A-Za-z0-9_]{60,255}|xox[baprs]-[A-Za-z0-9-]{10,}|(?:sk|rk)_live_[A-Za-z0-9]{20,}|sk-ant-[A-Za-z0-9_-]{20,}|sk-proj-[A-Za-z0-9_-]{20,}|sk-[A-Za-z0-9]{40,}|AIza[0-9A-Za-z_-]{35}|npm_[A-Za-z0-9]{36}|AccountKey=[A-Za-z0-9+/]{86}==|sig=[A-Za-z0-9%+/=]{40,}|-----BEGIN (?:RSA |EC |OPENSSH |DSA |ENCRYPTED )?PRIVATE KEY-----[\\A-Za-z0-9+/= \t\r\n]*(?:-----END (?:RSA |EC |OPENSSH |DSA |ENCRYPTED )?PRIVATE KEY-----)?|dugusa_[A-Za-z0-9_-]{30,}|eyJ[A-Za-z0-9_-]{10,}\.eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,})";
+ // Opaque bearer tokens that match no known format.
+ let bearer_rx = @"[Bb]earer\s+([A-Za-z0-9._~+/=-]{30,})";
+ let Sources = union isfuzzy=true
+ (print TimeGenerated = now(), SourceTable = "", Column = "", Text = "", ResourceId = "", Host = "" | where false),
+ (AzureDiagnostics | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "AzureDiagnostics", Column = "(all columns)", Text = tostring(pack_all()), ResourceId = _ResourceId, Host = ""),
+ (Syslog | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "Syslog", Column = "SyslogMessage", Text = SyslogMessage, ResourceId = _ResourceId, Host = Computer),
+ (SecurityEvent | where TimeGenerated > ago(lookback) and isnotempty(CommandLine) | project TimeGenerated, SourceTable = "SecurityEvent", Column = "CommandLine", Text = CommandLine, ResourceId = _ResourceId, Host = Computer),
+ (DeviceProcessEvents | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "DeviceProcessEvents", Column = "ProcessCommandLine", Text = ProcessCommandLine, ResourceId = "", Host = DeviceName),
+ (CommonSecurityLog | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "CommonSecurityLog", Column = "RequestURL+AdditionalExtensions", Text = strcat(RequestURL, " ", AdditionalExtensions), ResourceId = _ResourceId, Host = Computer),
+ (AzureActivity | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "AzureActivity", Column = "Properties", Text = tostring(Properties), ResourceId = _ResourceId, Host = ""),
+ (AppTraces | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "AppTraces", Column = "Message", Text = Message, ResourceId = _ResourceId, Host = AppRoleInstance),
+ (AppRequests | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "AppRequests", Column = "Url", Text = Url, ResourceId = _ResourceId, Host = AppRoleInstance),
+ (AppDependencies | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "AppDependencies", Column = "Data", Text = Data, ResourceId = _ResourceId, Host = AppRoleInstance),
+ (FunctionAppLogs | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "FunctionAppLogs", Column = "Message", Text = Message, ResourceId = _ResourceId, Host = HostInstanceId),
+ (AppServiceConsoleLogs | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "AppServiceConsoleLogs", Column = "ResultDescription", Text = ResultDescription, ResourceId = _ResourceId, Host = Host),
+ (AppServiceHTTPLogs | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "AppServiceHTTPLogs", Column = "CsUriQuery", Text = CsUriQuery, ResourceId = _ResourceId, Host = CsHost),
+ (ContainerAppConsoleLogs_CL | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "ContainerAppConsoleLogs_CL", Column = "Log_s", Text = Log_s, ResourceId = _ResourceId, Host = ContainerAppName_s),
+ (ContainerLogV2 | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "ContainerLogV2", Column = "LogMessage", Text = tostring(LogMessage), ResourceId = _ResourceId, Host = Computer),
+ (W3CIISLog | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "W3CIISLog", Column = "csUriQuery", Text = csUriQuery, ResourceId = _ResourceId, Host = Computer)
+ | where isnotempty(Text);
+ Sources
+ | extend Found = set_union(extract_all(known_rx, Text), extract_all(bearer_rx, Text))
+ | project-away Text
+ | mv-expand Secret = Found to typeof(string)
+ | where isnotempty(Secret)
+ | where Secret !contains "EXAMPLE" and Secret !in ("AKIAIOSFODNN7EXAMPLE")
+ | extend Kind = case(
+ Secret matches regex @"^(AKIA|ASIA)", "aws-access-key",
+ Secret startswith "github_pat_" or Secret matches regex @"^gh[pousr]_", "github-token",
+ Secret startswith "xox", "slack-token",
+ Secret matches regex @"^(sk|rk)_live_", "stripe-live-key",
+ Secret startswith "sk-ant-", "anthropic-api-key",
+ Secret startswith "sk-", "openai-api-key",
+ Secret startswith "AIza", "google-api-key",
+ Secret startswith "npm_", "npm-token",
+ Secret startswith "AccountKey=", "azure-storage-account-key",
+ Secret startswith "sig=", "azure-sas-signature",
+ Secret startswith "-----BEGIN", "private-key",
+ Secret startswith "dugusa_", "dugganusa-api-key",
+ Secret matches regex @"^eyJ[A-Za-z0-9_-]+\.eyJ", "jwt",
+ "bearer-token")
+ // A private key is fingerprinted on its base64 body alone (markers, spaces and line breaks, real or escaped, removed),
+ // so hashing the key file the same way reproduces it.
+ | extend Fingerprint = substring(hash_sha256(iff(Kind == "private-key", replace_regex(Secret, @"-----[A-Z ]+-----|\\[nrt]|\s", ""), Secret)), 0, 16),
+ Hint = strcat(substring(Secret, 0, min_of(8, strlen(Secret) / 6)), "... (", strlen(Secret), " chars)")
+ | project-away Secret, Found
+ | summarize FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), Hits = count(),
+ Tables = make_set(SourceTable, 10), Columns = make_set(Column, 10),
+ Resources = make_set_if(ResourceId, isnotempty(ResourceId), 10), Hosts = make_set_if(Host, isnotempty(Host), 10)
+ by Fingerprint, Kind, Hint
+ | extend Severity = iff(Kind in ("jwt", "bearer-token", "azure-sas-signature", "slack-token"), "Medium", "High"),
+ RotateAt = case(
+ Kind == "aws-access-key", "https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html",
+ Kind == "github-token", "https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation",
+ Kind == "slack-token", "https://api.slack.com/authentication/rotation",
+ Kind == "stripe-live-key", "https://docs.stripe.com/keys",
+ Kind == "anthropic-api-key", "https://console.anthropic.com/settings/keys",
+ Kind == "openai-api-key", "https://platform.openai.com/api-keys",
+ Kind == "google-api-key", "https://cloud.google.com/docs/authentication/api-keys",
+ Kind == "npm-token", "https://docs.npmjs.com/revoking-access-tokens",
+ Kind == "azure-storage-account-key", "https://learn.microsoft.com/azure/storage/common/storage-account-keys-manage",
+ Kind == "azure-sas-signature", "https://learn.microsoft.com/azure/storage/common/sas-expiration-policy",
+ Kind == "dugganusa-api-key", "https://docs.dugganusa.com/",
+ "Expire it at its issuer, then find and fix what logged it"),
+ ResourceId = tostring(Resources[0]), Host = tostring(Hosts[0]), TableList = strcat_array(Tables, ", ")
+ | order by Severity asc, Hits desc
+eventGroupingSettings:
+ aggregationKind: AlertPerResult
+alertDetailsOverride:
+ alertDisplayNameFormat: 'Secret in logs: {{Kind}} ({{Hint}})'
+ alertDescriptionFormat: |
+ A {{Kind}} was written to {{TableList}}. The secret is not copied into this alert. Rotate it at the issuer (see the RotateAt detail), then fix whatever logged it, and treat the log itself as exposed.
+ alertSeverityColumnName: Severity
+customDetails:
+ Fingerprint: Fingerprint
+ Kind: Kind
+ Hint: Hint
+ Hits: Hits
+ Tables: TableList
+ RotateAt: RotateAt
+entityMappings:
+ - entityType: AzureResource
+ fieldMappings:
+ - identifier: ResourceId
+ columnName: ResourceId
+ - entityType: Host
+ fieldMappings:
+ - identifier: HostName
+ columnName: Host
+incidentConfiguration:
+ createIncident: true
+ groupingConfiguration:
+ enabled: true
+ reopenClosedIncident: false
+ lookbackDuration: P7D
+ matchingMethod: Selected
+ groupByCustomDetails:
+ - Fingerprint
+suppressionEnabled: false
+suppressionDuration: 1h
+version: 1.0.0
+kind: Scheduled
diff --git a/Solutions/DugganUSA Threat Intelligence/Data Connectors/DugganUSA_ThreatIntelligence_TAXII.json b/Solutions/DugganUSA Threat Intelligence/Data Connectors/DugganUSA_ThreatIntelligence_TAXII.json
new file mode 100644
index 00000000000..f18f1564c61
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Data Connectors/DugganUSA_ThreatIntelligence_TAXII.json
@@ -0,0 +1,114 @@
+{
+ "id": "DugganUSAThreatIntelligence",
+ "title": "DugganUSA Threat Intelligence (via TAXII)",
+ "publisher": "DugganUSA",
+ "descriptionMarkdown": "The DugganUSA Threat Intelligence connector brings DugganUSA STIX 2.1 indicators (IPv4 and IPv6 addresses, domains, URLs, file hashes and X.509 certificate hashes, each with a confidence score) into Microsoft Sentinel. Ingestion runs on Microsoft Sentinel's built-in **Threat Intelligence - TAXII** connector polling the DugganUSA TAXII 2.1 server, so indicators land in the `ThreatIntelIndicators` table and the Threat intelligence page. This page sets that connection up for you: paste your DugganUSA API key into a one-step deployment, or enter the values below in the TAXII connector by hand. Indicators from third-party sources we redistribute are labeled as such, never as our own observations.",
+ "graphQueries": [
+ {
+ "metricName": "Total indicators received",
+ "legend": "DugganUSA indicators",
+ "baseQuery": "ThreatIntelIndicators | where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\""
+ }
+ ],
+ "sampleQueries": [
+ {
+ "description": "Active DugganUSA indicators by type",
+ "query": "ThreatIntelIndicators\n| where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\"\n| summarize arg_max(TimeGenerated, *) by Id\n| where IsActive == true and IsDeleted == false and (isempty(ValidUntil) or ValidUntil > now())\n| summarize Indicators = dcount(Id), MaxConfidence = max(Confidence), Newest = max(TimeGenerated) by IndicatorType = tostring(split(ObservableKey, \":\")[0])"
+ },
+ {
+ "description": "Newest DugganUSA indicators at confidence 80 or higher",
+ "query": "ThreatIntelIndicators\n| where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\"\n| where Confidence >= 80\n| summarize arg_max(TimeGenerated, *) by Id\n| project TimeGenerated, ObservableKey, ObservableValue, Confidence, ValidUntil, Name = tostring(Data.name)\n| sort by TimeGenerated desc\n| take 100"
+ }
+ ],
+ "dataTypes": [
+ {
+ "name": "ThreatIntelIndicators",
+ "lastDataReceivedQuery": "ThreatIntelIndicators\n| where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\"\n| summarize Time = max(TimeGenerated)\n| where isnotempty(Time)"
+ }
+ ],
+ "connectivityCriterias": [
+ {
+ "type": "IsConnectedQuery",
+ "value": [
+ "ThreatIntelIndicators\n| where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\"\n| summarize LastLogReceived = max(TimeGenerated)\n| project IsConnected = LastLogReceived > ago(7d)"
+ ]
+ }
+ ],
+ "availability": {
+ "status": 1,
+ "isPreview": false
+ },
+ "permissions": {
+ "resourceProvider": [
+ {
+ "provider": "Microsoft.OperationalInsights/workspaces",
+ "permissionsDisplayText": "read and write permissions on the workspace are required.",
+ "providerDisplayName": "Workspace",
+ "scope": "Workspace",
+ "requiredPermissions": {
+ "write": true,
+ "read": true,
+ "delete": true
+ }
+ }
+ ],
+ "customs": [
+ {
+ "name": "DugganUSA API key",
+ "description": "A DugganUSA API key is the TAXII password. Register at [analytics.dugganusa.com/stix/register](https://analytics.dugganusa.com/stix/register). The free tier is rate-limited (10 feed queries a day), so its first import completes over several days; paid tiers support hourly polling. Tiers: [analytics.dugganusa.com/pricing](https://analytics.dugganusa.com/pricing)."
+ },
+ {
+ "name": "Microsoft Sentinel Contributor",
+ "description": "Creating the TAXII connection needs the **Microsoft Sentinel Contributor** role on the workspace's resource group."
+ }
+ ]
+ },
+ "instructionSteps": [
+ {
+ "title": "1. Get a DugganUSA API key",
+ "description": "Register at [analytics.dugganusa.com/stix/register](https://analytics.dugganusa.com/stix/register). Already have a key for the DugganUSA feed, API or MCP servers? It is the same key. Keep it out of chat, tickets and URLs: it is the TAXII password."
+ },
+ {
+ "title": "2. Connect DugganUSA (recommended: one-step deployment)",
+ "description": "Select **Deploy to Azure**, choose the resource group of this workspace, type the workspace name, paste your API key and choose a polling frequency: **OnceADay** for the free tier, **OnceAnHour** with a paid key. The key is a secure parameter: the portal masks it and Azure does not return it in deployment history. The deployment creates the **Threat Intelligence - TAXII** connection for the DugganUSA collection (importing the last 7 days by default) and three DugganUSA hunting queries.\n\n[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fpduggusa%2Fdugganusa-sentinel%2F77c20954b95fbb131ea952469fc42ac4bfcd3303%2FSolution%2FData%2520Connectors%2Fdugganusa-taxii-connector.json)\n\nTo rotate the key later, run the same deployment again with the new key: it updates the existing connection in place."
+ },
+ {
+ "title": "3. Or connect by hand in the Threat Intelligence - TAXII connector",
+ "description": "Install the **Threat Intelligence** solution by Microsoft from the Content hub if it is not installed, open the **Threat Intelligence - TAXII** data connector, select **Add**, and enter these values. Microsoft Sentinel rejects spaces in the friendly name.",
+ "instructions": [
+ {
+ "parameters": {
+ "label": "Friendly name",
+ "value": "DugganUSA"
+ },
+ "type": "CopyableLabel"
+ },
+ {
+ "parameters": {
+ "label": "API root URL",
+ "value": "https://analytics.dugganusa.com/api/v1/taxii/"
+ },
+ "type": "CopyableLabel"
+ },
+ {
+ "parameters": {
+ "label": "Collection ID",
+ "value": "dugganusa-threat-intel"
+ },
+ "type": "CopyableLabel"
+ },
+ {
+ "parameters": {
+ "label": "Username (any value)",
+ "value": "sentinel"
+ },
+ "type": "CopyableLabel"
+ }
+ ]
+ },
+ {
+ "title": "4. Confirm indicators arrived",
+ "description": "After the first poll, this page shows **Connected** and the graph above starts to fill. Open the **DugganUSA Threat Intelligence** workbook for indicator counts, confidence and matches, then enable the two DugganUSA analytic rules (IP indicator in ASIM network sessions, domain indicator in ASIM DNS activity) from **Analytics > Rule templates**. Indicators carry an expiry (`ValidUntil`): IPs and URLs 30 days, domains 60, file hashes 120, refreshed while they stay listed. Setup guide: [docs.dugganusa.com/siem/sentinel/](https://docs.dugganusa.com/siem/sentinel/)."
+ }
+ ]
+}
diff --git a/Solutions/DugganUSA Threat Intelligence/Data/Solution_DugganUSA.json b/Solutions/DugganUSA Threat Intelligence/Data/Solution_DugganUSA.json
new file mode 100644
index 00000000000..1f7600c3517
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Data/Solution_DugganUSA.json
@@ -0,0 +1,42 @@
+{
+ "Name": "DugganUSA Threat Intelligence",
+ "Author": "DugganUSA LLC - butterbot@dugganusa.com",
+ "Logo": "",
+ "Description": "The [DugganUSA](https://www.dugganusa.com) solution for Microsoft Sentinel adds a connector page, analytic rules, hunting queries and a workbook for the DugganUSA threat-intelligence feed, published as STIX 2.1 indicators over a TAXII 2.1 server. DugganUSA LLC licenses threat-intelligence data: IPv4 addresses, domains, URLs, file hashes (MD5, SHA-1, SHA-256) and X.509 certificate hashes, each with a confidence score you can filter on. Indicators from third-party sources we redistribute are labeled as such, never as our own observations, and corrections are published openly at [analytics.dugganusa.com/updates](https://analytics.dugganusa.com/updates).\n\nIndicators arrive through Microsoft Sentinel's built-in **Threat Intelligence - TAXII** data connector and land in the **ThreatIntelIndicators** table. The solution adds a **DugganUSA Threat Intelligence (via TAXII)** connector page that sets up that connection: a one-step deployment where you paste your API key and choose a polling frequency, or the values to enter by hand. It also installs five analytic rules, eight hunting queries and a workbook.\n\n**Before you install**\n\nYou need a DugganUSA API key. Register at [analytics.dugganusa.com/stix/register](https://analytics.dugganusa.com/stix/register). A free tier exists; it is rate-limited (10 feed queries a day), so its first import completes over several days and it suits once-a-day polling. Paid tiers are listed at [analytics.dugganusa.com/pricing](https://analytics.dugganusa.com/pricing).\n\n**Connecting the feed**\n\nAfter installing, open **Data connectors**, find **DugganUSA Threat Intelligence (via TAXII)** and select **Open connector page**. Use **Deploy to Azure** there, or open **Threat Intelligence - TAXII** (install the **Threat Intelligence** solution from the Content hub if it is missing), select **Add**, and enter:\n\n| Field | Value |\n|---|---|\n| Friendly name | `DugganUSA` |\n| API root URL | `https://analytics.dugganusa.com/api/v1/taxii/` |\n| Collection ID | `dugganusa-threat-intel` |\n| Username | any value, for example `sentinel` |\n| Password | your DugganUSA API key |\n\n**Prerequisites for the analytic rules and hunting queries**\n\nThe analytic rules and hunting queries match indicators against network-session and DNS activity through the [Advanced Security Information Model (ASIM)](https://learn.microsoft.com/azure/sentinel/normalization). They return results only when the workspace receives telemetry covered by the ASIM NetworkSession or Dns parsers.\n\nFour of the hunting queries read Microsoft Defender XDR tables instead (DeviceNetworkEvents, DeviceFileEvents, DeviceProcessEvents, EmailEvents, EmailUrlInfo, UrlClickEvents). They return results when those tables reach the workspace through the Microsoft Defender XDR connector, and they run unchanged in advanced hunting in the Microsoft Defender portal when the workspace is onboarded there.\n\n**Underlying Microsoft Technologies used:**\n\nThis solution takes a dependency on the following technologies, and some of these dependencies either may be in [Preview](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) state or might result in additional ingestion or operational costs:\n\na. [Threat Intelligence - TAXII data connector](https://learn.microsoft.com/azure/sentinel/connect-threat-intelligence-taxii)",
+ "WorkbookBladeDescription": "This Microsoft Sentinel solution installs a workbook that shows DugganUSA indicator volume by type, the confidence distribution, matches against your own network and DNS activity, a 30-day lookback across the logs you already hold and, for DugganUSA edge customers, what the edge blocked.",
+ "AnalyticalRuleBladeDescription": "This solution installs the following analytic rule templates. After installing the solution, create and enable analytic rules in Manage solution view.",
+ "HuntingQueryBladeDescription": "This solution installs the following hunting queries. After installing the solution, run these hunting queries to hunt for threats in Manage solution view.",
+ "Analytic Rules": [
+ "Analytic Rules/DugganUSAIPIndicatorNetworkSession.yaml",
+ "Analytic Rules/DugganUSADomainIndicatorDns.yaml",
+ "Analytic Rules/DugganUSAIPIndicatorSignin.yaml",
+ "Analytic Rules/DugganUSAIPIndicatorSigninFailedDigest.yaml",
+ "Analytic Rules/DugganUSALeakedSecretInLogs.yaml"
+ ],
+ "Hunting Queries": [
+ "Hunting Queries/DugganUSAIPIndicatorNetworkSession.yaml",
+ "Hunting Queries/DugganUSADomainIndicatorDns.yaml",
+ "Hunting Queries/DugganUSAIPIndicatorDeviceNetworkEvents.yaml",
+ "Hunting Queries/DugganUSADomainUrlIndicatorDeviceNetworkEvents.yaml",
+ "Hunting Queries/DugganUSAIndicatorEmailUrlsAndClicks.yaml",
+ "Hunting Queries/DugganUSAFileHashIndicatorDeviceEvents.yaml",
+ "Hunting Queries/DugganUSARetroHunt.yaml",
+ "Hunting Queries/DugganUSALeakedSecretSweep.yaml"
+ ],
+ "Data Connectors": [
+ "Data Connectors/DugganUSA_ThreatIntelligence_TAXII.json"
+ ],
+ "Workbooks": [
+ "Workbooks/DugganUSAThreatIntelligence.json"
+ ],
+ "Parsers": [],
+ "Playbooks": [],
+ "SavedSearches": [],
+ "Watchlists": [],
+ "BasePath": "C:\\GitHub\\Azure-Sentinel\\Solutions\\DugganUSA Threat Intelligence",
+ "Version": "3.0.2",
+ "Metadata": "SolutionMetadata.json",
+ "TemplateSpec": false,
+ "Is1PConnector": false,
+ "WorkbookDescription": "DugganUSA indicators in your workspace: active indicators by type, average confidence, indicators received over time, the confidence distribution, the indicators that matched your ASIM network-session and DNS activity, a 30-day lookback of matches in the logs the workspace already holds, and (shown only when the DugganUSAEdgeDecisions_CL table exists) blocks and canary hits from the DugganUSA edge shield."
+}
diff --git a/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSADomainIndicatorDns.yaml b/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSADomainIndicatorDns.yaml
new file mode 100644
index 00000000000..a6d7060b9a3
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSADomainIndicatorDns.yaml
@@ -0,0 +1,68 @@
+id: 55c04d14-991c-4a2c-a103-68dea284c8bd
+name: DugganUSA - domain indicator resolved in DNS
+description: |
+ 'Matches active DugganUSA domain indicators against DNS activity normalized by the ASIM Dns schema, surfacing hosts inside the estate that resolved a domain in the DugganUSA feed. Indicators are selected by the DugganUSA STIX identity (created_by_ref) or by a TAXII server friendly name containing "DugganUSA". Adjust dns_lookback to your DNS retention to retro-hunt. The confidence score is a dial for you to set, not a verdict. Requires the ASIM Dns parsers and DNS telemetry in the workspace.'
+requiredDataConnectors:
+ - connectorId: ThreatIntelligenceTaxii
+ dataTypes:
+ - ThreatIntelIndicators
+tactics:
+ - CommandAndControl
+relevantTechniques:
+ - T1071
+ - T1568
+query: |
+ let dugganusa_identity = "identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d";
+ let ioc_lookback = 14d;
+ let dns_lookback = 1d;
+ let confidence_floor = 80;
+ let DugganUSA_Domains =
+ ThreatIntelIndicators
+ | where TimeGenerated >= ago(ioc_lookback)
+ | where SourceSystem has "DugganUSA" or tostring(Data.created_by_ref) == dugganusa_identity
+ | where ObservableKey == "domain-name:value"
+ | where isnotempty(ObservableValue)
+ | summarize arg_max(TimeGenerated, *) by Id
+ | where IsActive == true and IsDeleted == false
+ | where isempty(ValidUntil) or ValidUntil > now()
+ | where Confidence >= confidence_floor
+ | extend IndicatorDomain = tolower(trim_end(@"\.", tostring(ObservableValue)))
+ | project
+ IndicatorDomain,
+ Confidence,
+ IndicatorName = tostring(Data.name),
+ IndicatorStixId = tostring(Data.id);
+ let DnsActivity =
+ _Im_Dns(starttime = ago(dns_lookback), endtime = now())
+ | where isnotempty(DnsQuery)
+ | extend IndicatorDomain = tolower(trim_end(@"\.", DnsQuery))
+ | project DnsTime = TimeGenerated, IndicatorDomain, SrcIpAddr, SrcHostname, EventVendor, EventProduct;
+ DugganUSA_Domains
+ | join kind=inner DnsActivity on IndicatorDomain
+ | summarize
+ FirstResolved = min(DnsTime),
+ LastResolved = max(DnsTime),
+ QueryCount = count(),
+ SourceIps = make_set(SrcIpAddr, 50),
+ SourceHosts = make_set(SrcHostname, 50),
+ SeenBy = make_set(strcat(EventVendor, " ", EventProduct), 10)
+ by IndicatorDomain, Confidence, IndicatorName, IndicatorStixId
+ | extend
+ SourceIp = tostring(SourceIps[0]),
+ SourceHost = tostring(SourceHosts[0])
+ | order by LastResolved desc
+entityMappings:
+ - entityType: DNS
+ fieldMappings:
+ - identifier: DomainName
+ columnName: IndicatorDomain
+ - entityType: IP
+ fieldMappings:
+ - identifier: Address
+ columnName: SourceIp
+ - entityType: Host
+ fieldMappings:
+ - identifier: HostName
+ columnName: SourceHost
+version: 1.0.0
+kind: Hunting
diff --git a/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSADomainUrlIndicatorDeviceNetworkEvents.yaml b/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSADomainUrlIndicatorDeviceNetworkEvents.yaml
new file mode 100644
index 00000000000..36a8b5f41eb
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSADomainUrlIndicatorDeviceNetworkEvents.yaml
@@ -0,0 +1,78 @@
+id: 37912a95-3760-43ff-8f29-a0d781fb2218
+name: DugganUSA - device reached a domain or URL indicator (Defender for Endpoint)
+description: |
+ 'Devices whose network connections reached a DugganUSA domain (exact host or subdomain) or URL indicator, from Defender for Endpoint DeviceNetworkEvents.RemoteUrl.'
+requiredDataConnectors:
+ - connectorId: MicrosoftThreatProtection
+ dataTypes:
+ - DeviceNetworkEvents
+ - connectorId: ThreatIntelligenceTaxii
+ dataTypes:
+ - ThreatIntelIndicators
+tactics:
+ - CommandAndControl
+relevantTechniques:
+ - T1071
+ - T1568
+query: |
+ let dugganusa_identity = "identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d";
+ let confidence_floor = 80;
+ let lookback = 1d;
+ // URL key: scheme and host lowercased (case-insensitive), path and query kept as written (case-sensitive);
+ // only a bare "/" path is dropped, so http://a.com/ and http://a.com match but /Payload and /payload do not.
+ let urlkey = (u:string) {
+ let pre = iff(u has "://", extract(@"^([^:/?#]+://[^/?#]*)", 1, u), extract(@"^([^/?#]*)", 1, u));
+ let rest = substring(u, strlen(pre));
+ strcat(tolower(trim_end(@"\.", pre)), iff(rest == "/", "", rest))
+ };
+ let DugganUSA =
+ ThreatIntelIndicators
+ | where TimeGenerated > ago(14d)
+ | where SourceSystem has "DugganUSA" or tostring(Data.created_by_ref) == dugganusa_identity
+ | summarize arg_max(TimeGenerated, *) by Id
+ | where IsActive == true and IsDeleted == false
+ | where isempty(ValidUntil) or ValidUntil > now()
+ | where Confidence >= confidence_floor
+ | where ObservableKey in ("domain-name:value", "url:value")
+ | extend Key = iff(ObservableKey == "url:value",
+ strcat("url|", urlkey(tostring(ObservableValue))),
+ strcat("dom|", tolower(trim_end(@"\.", tostring(ObservableValue)))))
+ | where not(Key matches regex @"^dom\|\d{1,3}(\.\d{1,3}){3}$")
+ | project Key, Confidence, IndicatorType = ObservableKey,
+ IndicatorName = tostring(Data.name), IndicatorDescription = tostring(Data.description),
+ IndicatorStixId = tostring(Data.id), IndicatorTags = Tags
+ | summarize arg_max(Confidence, *) by Key;
+ let Traffic =
+ DeviceNetworkEvents
+ | where Timestamp > ago(lookback)
+ | where isnotempty(RemoteUrl)
+ | extend Host = tolower(trim_end(@"\.", tostring(parse_url(iff(RemoteUrl has "://", RemoteUrl, strcat("http://", RemoteUrl))).Host)))
+ | where isnotempty(Host)
+ // Every parent of the host down to two labels, so x.a.b.example.co.uk can match a.b.example.co.uk.
+ | extend Labels = split(Host, ".")
+ | extend Candidates = array_concat(pack_array(strcat("url|", urlkey(RemoteUrl))),
+ iff(array_length(Labels) >= 2, range(0, array_length(Labels) - 2, 1), dynamic([])))
+ | mv-expand Candidate = Candidates
+ | extend Key = iff(tostring(Candidate) startswith "url|", tostring(Candidate), strcat("dom|", strcat_array(array_slice(Labels, toint(Candidate), -1), ".")))
+ | distinct Timestamp, DeviceId, DeviceName, ReportId, ActionType, RemoteIP, RemotePort, RemoteUrl, Host, Key,
+ InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessAccountUpn;
+ DugganUSA
+ | join kind=inner Traffic on Key
+ | extend MatchType = case(IndicatorType == "url:value", "exact URL",
+ Key == strcat("dom|", Host), "exact host", "parent domain")
+ // ReportId repeats over time on a device: Timestamp is part of the event identity.
+ | summarize arg_max(Confidence, *) by Timestamp, ReportId, DeviceId
+ | project Timestamp, DeviceId, DeviceName, ReportId, ActionType, RemoteUrl, RemoteIP, RemotePort, MatchType,
+ MatchedIndicator = substring(Key, 4), IndicatorType, Confidence, IndicatorName, IndicatorDescription,
+ IndicatorStixId, IndicatorTags, InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessAccountUpn
+ | order by Confidence desc, Timestamp desc
+entityMappings:
+ - entityType: URL
+ fieldMappings:
+ - identifier: Url
+ columnName: RemoteUrl
+ - entityType: Host
+ fieldMappings:
+ - identifier: HostName
+ columnName: DeviceName
+version: 1.0.0
diff --git a/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSAFileHashIndicatorDeviceEvents.yaml b/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSAFileHashIndicatorDeviceEvents.yaml
new file mode 100644
index 00000000000..22ca8673acf
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSAFileHashIndicatorDeviceEvents.yaml
@@ -0,0 +1,61 @@
+id: f9398de3-89c5-4fa6-9193-3bc04814d65a
+name: DugganUSA - file or process matched a file-hash indicator (Defender for Endpoint)
+description: |
+ 'Files written or processes run whose SHA-256, SHA-1 or MD5 is a DugganUSA file-hash indicator, from DeviceFileEvents and DeviceProcessEvents.'
+requiredDataConnectors:
+ - connectorId: MicrosoftThreatProtection
+ dataTypes:
+ - DeviceFileEvents
+ - DeviceProcessEvents
+ - connectorId: ThreatIntelligenceTaxii
+ dataTypes:
+ - ThreatIntelIndicators
+tactics:
+ - Execution
+relevantTechniques:
+ - T1204
+query: |
+ let dugganusa_identity = "identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d";
+ let confidence_floor = 80;
+ let lookback = 1d;
+ let DugganUSA_Hashes =
+ ThreatIntelIndicators
+ | where TimeGenerated > ago(14d)
+ | where SourceSystem has "DugganUSA" or tostring(Data.created_by_ref) == dugganusa_identity
+ | summarize arg_max(TimeGenerated, *) by Id
+ | where IsActive == true and IsDeleted == false
+ | where isempty(ValidUntil) or ValidUntil > now()
+ | where Confidence >= confidence_floor
+ | where ObservableKey startswith "file:hashes"
+ | project Hash = tolower(tostring(ObservableValue)), Confidence, IndicatorName = tostring(Data.name),
+ IndicatorDescription = tostring(Data.description), IndicatorStixId = tostring(Data.id), IndicatorTags = Tags
+ | summarize arg_max(Confidence, *) by Hash;
+ let FileActivity =
+ union
+ (DeviceFileEvents
+ | where Timestamp > ago(lookback)
+ | project Timestamp, DeviceId, DeviceName, ReportId, ActionType, FileName, FolderPath, SHA256, SHA1, MD5,
+ FileOriginUrl, AccountUpn = InitiatingProcessAccountUpn, InitiatingProcessFileName, Source = "DeviceFileEvents"),
+ (DeviceProcessEvents
+ | where Timestamp > ago(lookback)
+ | project Timestamp, DeviceId, DeviceName, ReportId, ActionType, FileName, FolderPath, SHA256, SHA1, MD5,
+ FileOriginUrl = "", AccountUpn, InitiatingProcessFileName, Source = "DeviceProcessEvents")
+ | extend Candidates = pack_array(tolower(SHA256), tolower(SHA1), tolower(MD5))
+ | mv-expand Hash = Candidates to typeof(string)
+ | where isnotempty(Hash);
+ DugganUSA_Hashes
+ | join kind=inner FileActivity on Hash
+ | project Timestamp, DeviceId, DeviceName, ReportId, Source, ActionType, FileName, FolderPath, SHA256, SHA1, MD5,
+ MatchedHash = Hash, FileOriginUrl, AccountUpn, InitiatingProcessFileName, Confidence, IndicatorName,
+ IndicatorDescription, IndicatorStixId, IndicatorTags
+ | order by Confidence desc, Timestamp desc
+entityMappings:
+ - entityType: FileHash
+ fieldMappings:
+ - identifier: Value
+ columnName: MatchedHash
+ - entityType: Host
+ fieldMappings:
+ - identifier: HostName
+ columnName: DeviceName
+version: 1.0.0
diff --git a/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSAIPIndicatorDeviceNetworkEvents.yaml b/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSAIPIndicatorDeviceNetworkEvents.yaml
new file mode 100644
index 00000000000..cc376668c75
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSAIPIndicatorDeviceNetworkEvents.yaml
@@ -0,0 +1,58 @@
+id: dc9dd59e-334f-4c42-a07d-fdc78297f4c4
+name: DugganUSA - device connected to an IP indicator (Defender for Endpoint)
+description: |
+ 'Devices that connected to, or accepted a connection from, an active DugganUSA IP indicator, from Defender for Endpoint DeviceNetworkEvents. The confidence floor (default 80) is your dial.'
+requiredDataConnectors:
+ - connectorId: MicrosoftThreatProtection
+ dataTypes:
+ - DeviceNetworkEvents
+ - connectorId: ThreatIntelligenceTaxii
+ dataTypes:
+ - ThreatIntelIndicators
+tactics:
+ - CommandAndControl
+relevantTechniques:
+ - T1071
+query: |
+ let dugganusa_identity = "identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d";
+ let confidence_floor = 80; // your dial: raise it for fewer, surer matches
+ // IPv6 has many spellings (2001:db8::1 = 2001:0db8:0:0:0:0:0:1): join on parse_ipv6, which gives one canonical form.
+ let ipkey = (ip:string) { iff(ip has ":", tostring(parse_ipv6(ip)), tolower(ip)) };
+ let lookback = 1d;
+ let DugganUSA_IPs =
+ ThreatIntelIndicators
+ | where TimeGenerated > ago(14d)
+ | where SourceSystem has "DugganUSA" or tostring(Data.created_by_ref) == dugganusa_identity
+ | summarize arg_max(TimeGenerated, *) by Id
+ | where IsActive == true and IsDeleted == false
+ | where isempty(ValidUntil) or ValidUntil > now()
+ | where Confidence >= confidence_floor
+ | where ObservableKey in ("ipv4-addr:value", "ipv6-addr:value")
+ | project IndicatorIp = tostring(ObservableValue), IpKey = ipkey(tostring(ObservableValue)), Confidence,
+ IndicatorName = tostring(Data.name), IndicatorDescription = tostring(Data.description),
+ IndicatorStixId = tostring(Data.id), IndicatorTags = Tags, IndicatorValidUntil = ValidUntil
+ | summarize arg_max(Confidence, *) by IpKey;
+ DugganUSA_IPs
+ | join kind=inner (
+ DeviceNetworkEvents
+ | where Timestamp > ago(lookback)
+ | where RemoteIPType == "Public"
+ | project Timestamp, DeviceId, DeviceName, ReportId, ActionType, RemoteIP, RemotePort, RemoteUrl, LocalIP,
+ Protocol, InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessAccountUpn,
+ InitiatingProcessSHA1
+ | extend IpKey = ipkey(RemoteIP)
+ ) on IpKey
+ | project Timestamp, DeviceId, DeviceName, ReportId, ActionType, RemoteIP, RemotePort, RemoteUrl, LocalIP, Protocol,
+ InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessAccountUpn, InitiatingProcessSHA1,
+ Confidence, IndicatorName, IndicatorDescription, IndicatorStixId, IndicatorTags, IndicatorValidUntil
+ | order by Confidence desc, Timestamp desc
+entityMappings:
+ - entityType: IP
+ fieldMappings:
+ - identifier: Address
+ columnName: RemoteIP
+ - entityType: Host
+ fieldMappings:
+ - identifier: HostName
+ columnName: DeviceName
+version: 1.0.0
diff --git a/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSAIPIndicatorNetworkSession.yaml b/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSAIPIndicatorNetworkSession.yaml
new file mode 100644
index 00000000000..d57d927fa55
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSAIPIndicatorNetworkSession.yaml
@@ -0,0 +1,65 @@
+id: 0ea80425-2d10-4c67-b546-f8b456a98184
+name: DugganUSA - IP indicator seen in network sessions
+description: |
+ 'Matches active DugganUSA IPv4 indicators against network sessions normalized by the ASIM NetworkSession schema, in both directions: hosts that connected to an indicator, and indicators that connected in. Indicators are selected by the DugganUSA STIX identity (created_by_ref) or by a TAXII server friendly name containing "DugganUSA". Raise or lower confidence_floor to suit your tolerance; the confidence score is a dial for you to set, not a verdict. Requires the ASIM NetworkSession parsers and network telemetry in the workspace.'
+requiredDataConnectors:
+ - connectorId: ThreatIntelligenceTaxii
+ dataTypes:
+ - ThreatIntelIndicators
+tactics:
+ - CommandAndControl
+ - InitialAccess
+relevantTechniques:
+ - T1071
+ - T1190
+query: |
+ let dugganusa_identity = "identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d";
+ let ioc_lookback = 14d;
+ let session_lookback = 1d;
+ let confidence_floor = 80;
+ let DugganUSA_IPs =
+ ThreatIntelIndicators
+ | where TimeGenerated >= ago(ioc_lookback)
+ | where SourceSystem has "DugganUSA" or tostring(Data.created_by_ref) == dugganusa_identity
+ | where ObservableKey == "ipv4-addr:value"
+ | where isnotempty(ObservableValue)
+ | summarize arg_max(TimeGenerated, *) by Id
+ | where IsActive == true and IsDeleted == false
+ | where isempty(ValidUntil) or ValidUntil > now()
+ | where Confidence >= confidence_floor
+ | project
+ TI_ip = tostring(ObservableValue),
+ Confidence,
+ IndicatorName = tostring(Data.name),
+ IndicatorStixId = tostring(Data.id);
+ let Sessions =
+ _Im_NetworkSession(starttime = ago(session_lookback), endtime = now())
+ | project TimeGenerated, SrcIpAddr, DstIpAddr, DstPortNumber, SrcHostname, DstHostname, DvcAction, EventVendor, EventProduct;
+ union
+ (Sessions | extend TI_ip = DstIpAddr, Direction = "to indicator"),
+ (Sessions | extend TI_ip = SrcIpAddr, Direction = "from indicator")
+ | where isnotempty(TI_ip)
+ | join kind=inner DugganUSA_IPs on TI_ip
+ | summarize
+ FirstSeen = min(TimeGenerated),
+ LastSeen = max(TimeGenerated),
+ SessionCount = count(),
+ LocalIps = make_set(iff(Direction == "to indicator", SrcIpAddr, DstIpAddr), 50),
+ LocalHosts = make_set(iff(Direction == "to indicator", SrcHostname, DstHostname), 50),
+ DstPorts = make_set(DstPortNumber, 20),
+ Actions = make_set(DvcAction, 10),
+ SeenBy = make_set(strcat(EventVendor, " ", EventProduct), 10)
+ by TI_ip, Direction, Confidence, IndicatorName, IndicatorStixId
+ | extend LocalHost = tostring(LocalHosts[0])
+ | order by Confidence desc, SessionCount desc
+entityMappings:
+ - entityType: IP
+ fieldMappings:
+ - identifier: Address
+ columnName: TI_ip
+ - entityType: Host
+ fieldMappings:
+ - identifier: HostName
+ columnName: LocalHost
+version: 1.0.0
+kind: Hunting
diff --git a/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSAIndicatorEmailUrlsAndClicks.yaml b/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSAIndicatorEmailUrlsAndClicks.yaml
new file mode 100644
index 00000000000..668d67ba0b8
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSAIndicatorEmailUrlsAndClicks.yaml
@@ -0,0 +1,96 @@
+id: a952f95b-beae-444d-b308-1e7bcaafb1af
+name: DugganUSA - email carried an indicator, and who clicked (Defender for Office 365)
+description: |
+ 'Messages carrying a DugganUSA URL or domain indicator, or sent from a DugganUSA sender domain or IP, with Safe Links click-through outcome. Needs Defender for Office 365.'
+requiredDataConnectors:
+ - connectorId: MicrosoftThreatProtection
+ dataTypes:
+ - EmailEvents
+ - EmailUrlInfo
+ - UrlClickEvents
+ - connectorId: ThreatIntelligenceTaxii
+ dataTypes:
+ - ThreatIntelIndicators
+tactics:
+ - InitialAccess
+relevantTechniques:
+ - T1566
+query: |
+ let dugganusa_identity = "identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d";
+ let confidence_floor = 80;
+ let lookback = 1d;
+ // URL key: scheme and host lowercased (case-insensitive), path and query kept as written (case-sensitive);
+ // only a bare "/" path is dropped, so http://a.com/ and http://a.com match but /Payload and /payload do not.
+ let urlkey = (u:string) {
+ let pre = iff(u has "://", extract(@"^([^:/?#]+://[^/?#]*)", 1, u), extract(@"^([^/?#]*)", 1, u));
+ let rest = substring(u, strlen(pre));
+ strcat(tolower(trim_end(@"\.", pre)), iff(rest == "/", "", rest))
+ };
+ let DugganUSA =
+ ThreatIntelIndicators
+ | where TimeGenerated > ago(14d)
+ | where SourceSystem has "DugganUSA" or tostring(Data.created_by_ref) == dugganusa_identity
+ | summarize arg_max(TimeGenerated, *) by Id
+ | where IsActive == true and IsDeleted == false
+ | where isempty(ValidUntil) or ValidUntil > now()
+ | where Confidence >= confidence_floor
+ | where ObservableKey in ("domain-name:value", "url:value", "ipv4-addr:value")
+ | extend Key = case(
+ ObservableKey == "url:value", strcat("url|", urlkey(tostring(ObservableValue))),
+ ObservableKey == "ipv4-addr:value", strcat("ip|", tostring(ObservableValue)),
+ strcat("dom|", tolower(trim_end(@"\.", tostring(ObservableValue)))))
+ | where not(Key matches regex @"^dom\|\d{1,3}(\.\d{1,3}){3}$")
+ | project Key, Confidence, IndicatorType = ObservableKey, IndicatorName = tostring(Data.name),
+ IndicatorDescription = tostring(Data.description), IndicatorStixId = tostring(Data.id)
+ | summarize arg_max(Confidence, *) by Key;
+ let UrlHits =
+ EmailUrlInfo
+ | where Timestamp > ago(lookback)
+ | extend Candidates = pack_array(strcat("dom|", tolower(UrlDomain)), strcat("url|", urlkey(Url)))
+ | mv-expand Key = Candidates to typeof(string)
+ | join kind=inner DugganUSA on Key
+ | project NetworkMessageId, MatchedOn = strcat("URL in body: ", Url), Url, ClickKey = urlkey(Url), Key, Confidence, IndicatorType,
+ IndicatorName, IndicatorDescription, IndicatorStixId;
+ let SenderHits =
+ EmailEvents
+ | where Timestamp > ago(lookback)
+ | extend Candidates = pack_array(strcat("dom|", tolower(SenderFromDomain)), strcat("dom|", tolower(SenderMailFromDomain)),
+ strcat("ip|", SenderIPv4))
+ | mv-expand Key = Candidates to typeof(string)
+ | join kind=inner DugganUSA on Key
+ | project NetworkMessageId, MatchedOn = strcat("Sender: ", substring(Key, indexof(Key, "|") + 1)), Url = "", ClickKey = "", Key,
+ Confidence, IndicatorType, IndicatorName, IndicatorDescription, IndicatorStixId;
+ let Hits = union UrlHits, SenderHits
+ | summarize arg_max(Confidence, *) by NetworkMessageId;
+ Hits
+ | join kind=inner (
+ EmailEvents
+ | where Timestamp > ago(lookback)
+ | project Timestamp, ReportId, NetworkMessageId, RecipientEmailAddress, SenderFromAddress, SenderFromDomain,
+ SenderIPv4, Subject, DeliveryAction, DeliveryLocation, ThreatTypes, EmailDirection
+ ) on NetworkMessageId
+ | extend Recipient = tolower(RecipientEmailAddress)
+ // Clicks are counted on the matched URL itself; for a sender match (no URL) any click in that message counts.
+ | join kind=leftouter (
+ UrlClickEvents
+ | where Timestamp > ago(lookback)
+ | extend ClickedBy = tolower(AccountUpn), UrlClicked = urlkey(Url)
+ | mv-expand ClickKey = pack_array(UrlClicked, "") to typeof(string)
+ | summarize Clicks = count(), ClickedThrough = countif(IsClickedThrough == true),
+ ClickActions = make_set(ActionType, 5), LastClick = max(Timestamp)
+ by NetworkMessageId, ClickedBy, ClickKey
+ ) on NetworkMessageId, $left.Recipient == $right.ClickedBy, ClickKey
+ | project Timestamp, ReportId, NetworkMessageId, RecipientEmailAddress, SenderFromAddress, SenderIPv4, Subject,
+ DeliveryAction, DeliveryLocation, MatchedOn, Url, Confidence, IndicatorType, IndicatorName, IndicatorDescription,
+ IndicatorStixId, Clicks = coalesce(Clicks, 0), ClickedThrough = coalesce(ClickedThrough, 0), ClickActions, LastClick
+ | order by ClickedThrough desc, Confidence desc, Timestamp desc
+entityMappings:
+ - entityType: Account
+ fieldMappings:
+ - identifier: FullName
+ columnName: RecipientEmailAddress
+ - entityType: URL
+ fieldMappings:
+ - identifier: Url
+ columnName: Url
+version: 1.0.0
diff --git a/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSALeakedSecretSweep.yaml b/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSALeakedSecretSweep.yaml
new file mode 100644
index 00000000000..c082ec3cab2
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSALeakedSecretSweep.yaml
@@ -0,0 +1,91 @@
+id: 9eb2060f-fcd7-4e1e-b779-07a69e7a458c
+name: DugganUSA - key-shaped secrets already in your logs (30-day sweep)
+description: |
+ 'Run once when you install the solution, then after any incident: the same detection as the analytic rule, over 30 days. A key or token in a recognized format was written to one of your logs: AWS access keys, GitHub tokens, Slack tokens, Stripe live keys, Anthropic, OpenAI and Google API keys, npm tokens, Azure storage account keys and SAS signatures, private keys (PEM), DugganUSA keys, JWTs and opaque bearer tokens. Anyone who can read that log can use the secret. The alert never contains the secret: it carries the type, the tables and columns, a hint (at most one sixth of the value) and a fingerprint, the first 16 hex characters of the SHA-256 of the exact value (for a private key, of its base64 body with line breaks removed), so you can confirm which key it is by hashing your own copy. Severity is High for keys and private keys and Medium for JWTs, bearer tokens, SAS signatures and Slack tokens. Tables your workspace does not have are skipped. Documented example keys are ignored.'
+requiredDataConnectors:
+ - connectorId: Syslog
+ dataTypes:
+ - Syslog
+ - connectorId: AzureActivity
+ dataTypes:
+ - AzureActivity
+tactics:
+ - CredentialAccess
+relevantTechniques:
+ - T1552
+query: |
+ let lookback = 30d; // your workspace retention is the real limit
+ // Known key formats. One capture group; the type is decided from the captured value below.
+ let known_rx = @"((?:AKIA|ASIA)[0-9A-Z]{16}|gh[pousr]_[A-Za-z0-9]{36,255}|github_pat_[A-Za-z0-9_]{60,255}|xox[baprs]-[A-Za-z0-9-]{10,}|(?:sk|rk)_live_[A-Za-z0-9]{20,}|sk-ant-[A-Za-z0-9_-]{20,}|sk-proj-[A-Za-z0-9_-]{20,}|sk-[A-Za-z0-9]{40,}|AIza[0-9A-Za-z_-]{35}|npm_[A-Za-z0-9]{36}|AccountKey=[A-Za-z0-9+/]{86}==|sig=[A-Za-z0-9%+/=]{40,}|-----BEGIN (?:RSA |EC |OPENSSH |DSA |ENCRYPTED )?PRIVATE KEY-----[\\A-Za-z0-9+/= \t\r\n]*(?:-----END (?:RSA |EC |OPENSSH |DSA |ENCRYPTED )?PRIVATE KEY-----)?|dugusa_[A-Za-z0-9_-]{30,}|eyJ[A-Za-z0-9_-]{10,}\.eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,})";
+ // Opaque bearer tokens that match no known format.
+ let bearer_rx = @"[Bb]earer\s+([A-Za-z0-9._~+/=-]{30,})";
+ let Sources = union isfuzzy=true
+ (print TimeGenerated = now(), SourceTable = "", Column = "", Text = "", ResourceId = "", Host = "" | where false),
+ (AzureDiagnostics | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "AzureDiagnostics", Column = "(all columns)", Text = tostring(pack_all()), ResourceId = _ResourceId, Host = ""),
+ (Syslog | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "Syslog", Column = "SyslogMessage", Text = SyslogMessage, ResourceId = _ResourceId, Host = Computer),
+ (SecurityEvent | where TimeGenerated > ago(lookback) and isnotempty(CommandLine) | project TimeGenerated, SourceTable = "SecurityEvent", Column = "CommandLine", Text = CommandLine, ResourceId = _ResourceId, Host = Computer),
+ (DeviceProcessEvents | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "DeviceProcessEvents", Column = "ProcessCommandLine", Text = ProcessCommandLine, ResourceId = "", Host = DeviceName),
+ (CommonSecurityLog | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "CommonSecurityLog", Column = "RequestURL+AdditionalExtensions", Text = strcat(RequestURL, " ", AdditionalExtensions), ResourceId = _ResourceId, Host = Computer),
+ (AzureActivity | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "AzureActivity", Column = "Properties", Text = tostring(Properties), ResourceId = _ResourceId, Host = ""),
+ (AppTraces | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "AppTraces", Column = "Message", Text = Message, ResourceId = _ResourceId, Host = AppRoleInstance),
+ (AppRequests | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "AppRequests", Column = "Url", Text = Url, ResourceId = _ResourceId, Host = AppRoleInstance),
+ (AppDependencies | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "AppDependencies", Column = "Data", Text = Data, ResourceId = _ResourceId, Host = AppRoleInstance),
+ (FunctionAppLogs | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "FunctionAppLogs", Column = "Message", Text = Message, ResourceId = _ResourceId, Host = HostInstanceId),
+ (AppServiceConsoleLogs | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "AppServiceConsoleLogs", Column = "ResultDescription", Text = ResultDescription, ResourceId = _ResourceId, Host = Host),
+ (AppServiceHTTPLogs | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "AppServiceHTTPLogs", Column = "CsUriQuery", Text = CsUriQuery, ResourceId = _ResourceId, Host = CsHost),
+ (ContainerAppConsoleLogs_CL | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "ContainerAppConsoleLogs_CL", Column = "Log_s", Text = Log_s, ResourceId = _ResourceId, Host = ContainerAppName_s),
+ (ContainerLogV2 | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "ContainerLogV2", Column = "LogMessage", Text = tostring(LogMessage), ResourceId = _ResourceId, Host = Computer),
+ (W3CIISLog | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = "W3CIISLog", Column = "csUriQuery", Text = csUriQuery, ResourceId = _ResourceId, Host = Computer)
+ | where isnotempty(Text);
+ Sources
+ | extend Found = set_union(extract_all(known_rx, Text), extract_all(bearer_rx, Text))
+ | project-away Text
+ | mv-expand Secret = Found to typeof(string)
+ | where isnotempty(Secret)
+ | where Secret !contains "EXAMPLE" and Secret !in ("AKIAIOSFODNN7EXAMPLE")
+ | extend Kind = case(
+ Secret matches regex @"^(AKIA|ASIA)", "aws-access-key",
+ Secret startswith "github_pat_" or Secret matches regex @"^gh[pousr]_", "github-token",
+ Secret startswith "xox", "slack-token",
+ Secret matches regex @"^(sk|rk)_live_", "stripe-live-key",
+ Secret startswith "sk-ant-", "anthropic-api-key",
+ Secret startswith "sk-", "openai-api-key",
+ Secret startswith "AIza", "google-api-key",
+ Secret startswith "npm_", "npm-token",
+ Secret startswith "AccountKey=", "azure-storage-account-key",
+ Secret startswith "sig=", "azure-sas-signature",
+ Secret startswith "-----BEGIN", "private-key",
+ Secret startswith "dugusa_", "dugganusa-api-key",
+ Secret matches regex @"^eyJ[A-Za-z0-9_-]+\.eyJ", "jwt",
+ "bearer-token")
+ // A private key is fingerprinted on its base64 body alone (markers, spaces and line breaks, real or escaped, removed),
+ // so hashing the key file the same way reproduces it.
+ | extend Fingerprint = substring(hash_sha256(iff(Kind == "private-key", replace_regex(Secret, @"-----[A-Z ]+-----|\\[nrt]|\s", ""), Secret)), 0, 16),
+ Hint = strcat(substring(Secret, 0, min_of(8, strlen(Secret) / 6)), "... (", strlen(Secret), " chars)")
+ | project-away Secret, Found
+ | summarize FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), Hits = count(),
+ Tables = make_set(SourceTable, 10), Columns = make_set(Column, 10),
+ Resources = make_set_if(ResourceId, isnotempty(ResourceId), 10), Hosts = make_set_if(Host, isnotempty(Host), 10)
+ by Fingerprint, Kind, Hint
+ | extend Severity = iff(Kind in ("jwt", "bearer-token", "azure-sas-signature", "slack-token"), "Medium", "High"),
+ RotateAt = case(
+ Kind == "aws-access-key", "https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html",
+ Kind == "github-token", "https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation",
+ Kind == "slack-token", "https://api.slack.com/authentication/rotation",
+ Kind == "stripe-live-key", "https://docs.stripe.com/keys",
+ Kind == "anthropic-api-key", "https://console.anthropic.com/settings/keys",
+ Kind == "openai-api-key", "https://platform.openai.com/api-keys",
+ Kind == "google-api-key", "https://cloud.google.com/docs/authentication/api-keys",
+ Kind == "npm-token", "https://docs.npmjs.com/revoking-access-tokens",
+ Kind == "azure-storage-account-key", "https://learn.microsoft.com/azure/storage/common/storage-account-keys-manage",
+ Kind == "azure-sas-signature", "https://learn.microsoft.com/azure/storage/common/sas-expiration-policy",
+ Kind == "dugganusa-api-key", "https://docs.dugganusa.com/",
+ "Expire it at its issuer, then find and fix what logged it"),
+ ResourceId = tostring(Resources[0]), Host = tostring(Hosts[0]), TableList = strcat_array(Tables, ", ")
+ | order by Severity asc, Hits desc
+entityMappings:
+ - entityType: AzureResource
+ fieldMappings:
+ - identifier: ResourceId
+ columnName: ResourceId
+version: 1.0.0
diff --git a/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSARetroHunt.yaml b/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSARetroHunt.yaml
new file mode 100644
index 00000000000..3919558b67c
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Hunting Queries/DugganUSARetroHunt.yaml
@@ -0,0 +1,64 @@
+id: 682a9dc2-0ec5-4959-941a-ba34a19b9c25
+name: DugganUSA - retro-hunt, which indicators already reached you (last 30 days)
+description: |
+ 'Run once after connecting the DugganUSA feed, then monthly. Matches every active DugganUSA IP and domain indicator against the last 30 days of the logs this workspace already holds: Entra ID sign-ins, Defender for Endpoint network events, Defender for Office email URLs and clicks, Windows DNS events, CEF/Syslog firewalls (CommonSecurityLog), Microsoft 365 activity and Azure activity. One row per indicator and table, with first and last seen and a count. Tables the workspace does not have are skipped. The confidence floor (default 80) is your dial. A row is a match against your own logs, not proof of compromise: read the table and direction before acting.'
+requiredDataConnectors:
+ - connectorId: ThreatIntelligenceTaxii
+ dataTypes:
+ - ThreatIntelIndicators
+tactics:
+ - InitialAccess
+ - CommandAndControl
+relevantTechniques:
+ - T1078
+ - T1071
+query: |
+ let dugganusa_identity = "identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d";
+ let confidence_floor = 80; // your dial
+ let lookback = 30d; // limited by your workspace retention
+ // IPv6 has many spellings (2001:db8::1 = 2001:0db8:0:0:0:0:0:1): join on parse_ipv6, which gives one canonical form.
+ let ipkey = (ip:string) { iff(ip has ":", tostring(parse_ipv6(ip)), tolower(ip)) };
+ // Microsoft 365 ClientIP comes as 1.2.3.4, 1.2.3.4:port, [2001:db8::1]:port or 2001:db8::1. Strip a port only where one can exist.
+ let officeip = (s:string) { case(s matches regex @"^\d{1,3}(\.\d{1,3}){3}:\d+$", tostring(split(s, ":")[0]), s startswith "[", extract(@"^\[([^\]]+)\]", 1, s), s) };
+ let Indicators =
+ ThreatIntelIndicators
+ | where TimeGenerated > ago(14d)
+ | where SourceSystem has "DugganUSA" or tostring(Data.created_by_ref) == dugganusa_identity
+ | summarize arg_max(TimeGenerated, *) by Id
+ | where IsActive == true and IsDeleted == false
+ | where isempty(ValidUntil) or ValidUntil > now()
+ | where Confidence >= confidence_floor
+ | where ObservableKey in ("ipv4-addr:value", "ipv6-addr:value", "domain-name:value")
+ | extend Kind = tostring(split(ObservableKey, ":")[0])
+ | extend Indicator = iff(Kind == "domain-name", trim_end(@"\.", tolower(tostring(ObservableValue))), ipkey(tostring(ObservableValue)))
+ | where isnotempty(Indicator)
+ | summarize arg_max(Confidence, IndicatorName = tostring(Data.name), Kind, IndicatorValue = tostring(ObservableValue)) by Indicator;
+ let Seen = union isfuzzy=true
+ (SigninLogs | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = ipkey(IPAddress), Source = "Entra sign-in"),
+ (AADNonInteractiveUserSignInLogs | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = ipkey(IPAddress), Source = "Entra sign-in (non-interactive)"),
+ (DeviceNetworkEvents | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = ipkey(RemoteIP), Source = "Defender for Endpoint network"),
+ (DeviceNetworkEvents | where TimeGenerated > ago(lookback) | where isnotempty(RemoteUrl) | project TimeGenerated, Indicator = tolower(tostring(coalesce(tostring(parse_url(RemoteUrl).Host), RemoteUrl))), Source = "Defender for Endpoint network (host)"),
+ (EmailUrlInfo | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = tolower(UrlDomain), Source = "Email URL"),
+ (UrlClickEvents | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = tolower(tostring(parse_url(Url).Host)), Source = "Email URL click"),
+ (DnsEvents | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = trim_end(@"\.", tolower(Name)), Source = "Windows DNS"),
+ (CommonSecurityLog | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = ipkey(SourceIP), Source = "Firewall (inbound source)"),
+ (CommonSecurityLog | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = ipkey(DestinationIP), Source = "Firewall (outbound destination)"),
+ (OfficeActivity | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = ipkey(officeip(tostring(ClientIP))), Source = "Microsoft 365 activity"),
+ (AzureActivity | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = ipkey(CallerIpAddress), Source = "Azure activity")
+ | where isnotempty(Indicator);
+ Indicators
+ | join kind=inner (Seen | summarize Hits = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by Indicator, Source) on Indicator
+ // Separate columns per entity type: an IP entity gets only IPs, a DNS entity only domains.
+ | extend IpAddress = iff(Kind != "domain-name", IndicatorValue, ""), DomainName = iff(Kind == "domain-name", Indicator, "")
+ | project Indicator = IndicatorValue, Kind, Source, Hits, FirstSeen, LastSeen, Confidence, IndicatorName, IpAddress, DomainName
+ | order by Confidence desc, Hits desc
+entityMappings:
+ - entityType: IP
+ fieldMappings:
+ - identifier: Address
+ columnName: IpAddress
+ - entityType: DNS
+ fieldMappings:
+ - identifier: DomainName
+ columnName: DomainName
+version: 1.0.0
diff --git a/Solutions/DugganUSA Threat Intelligence/Package/3.0.1.zip b/Solutions/DugganUSA Threat Intelligence/Package/3.0.1.zip
new file mode 100644
index 00000000000..9675de084b8
Binary files /dev/null and b/Solutions/DugganUSA Threat Intelligence/Package/3.0.1.zip differ
diff --git a/Solutions/DugganUSA Threat Intelligence/Package/3.0.2.zip b/Solutions/DugganUSA Threat Intelligence/Package/3.0.2.zip
new file mode 100644
index 00000000000..5a20b9a3f2f
Binary files /dev/null and b/Solutions/DugganUSA Threat Intelligence/Package/3.0.2.zip differ
diff --git a/Solutions/DugganUSA Threat Intelligence/Package/createUiDefinition.json b/Solutions/DugganUSA Threat Intelligence/Package/createUiDefinition.json
new file mode 100644
index 00000000000..c7b8268d590
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Package/createUiDefinition.json
@@ -0,0 +1,361 @@
+{
+ "$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#",
+ "handler": "Microsoft.Azure.CreateUIDef",
+ "version": "0.1.2-preview",
+ "parameters": {
+ "config": {
+ "isWizard": false,
+ "basics": {
+ "description": "
\n\n**Note:** Please refer to the following before installing the solution: \n\n• Review the solution [Release Notes](https://github.com/Azure/Azure-Sentinel/tree/master/Solutions/DugganUSA%20Threat%20Intelligence/ReleaseNotes.md)\n\n • There may be [known issues](https://aka.ms/sentinelsolutionsknownissues) pertaining to this Solution, please refer to them before installing.\n\nThe [DugganUSA](https://www.dugganusa.com) solution for Microsoft Sentinel adds a connector page, analytic rules, hunting queries and a workbook for the DugganUSA threat-intelligence feed, published as STIX 2.1 indicators over a TAXII 2.1 server. DugganUSA LLC licenses threat-intelligence data: IPv4 addresses, domains, URLs, file hashes (MD5, SHA-1, SHA-256) and X.509 certificate hashes, each with a confidence score you can filter on. Indicators from third-party sources we redistribute are labeled as such, never as our own observations, and corrections are published openly at [analytics.dugganusa.com/updates](https://analytics.dugganusa.com/updates).\n\nIndicators arrive through Microsoft Sentinel's built-in **Threat Intelligence - TAXII** data connector and land in the **ThreatIntelIndicators** table. The solution adds a **DugganUSA Threat Intelligence (via TAXII)** connector page that sets up that connection: a one-step deployment where you paste your API key and choose a polling frequency, or the values to enter by hand. It also installs five analytic rules, eight hunting queries and a workbook.\n\n**Before you install**\n\nYou need a DugganUSA API key. Register at [analytics.dugganusa.com/stix/register](https://analytics.dugganusa.com/stix/register). A free tier exists; it is rate-limited (10 feed queries a day), so its first import completes over several days and it suits once-a-day polling. Paid tiers are listed at [analytics.dugganusa.com/pricing](https://analytics.dugganusa.com/pricing).\n\n**Connecting the feed**\n\nAfter installing, open **Data connectors**, find **DugganUSA Threat Intelligence (via TAXII)** and select **Open connector page**. Use **Deploy to Azure** there, or open **Threat Intelligence - TAXII** (install the **Threat Intelligence** solution from the Content hub if it is missing), select **Add**, and enter:\n\n| Field | Value |\n|---|---|\n| Friendly name | `DugganUSA` |\n| API root URL | `https://analytics.dugganusa.com/api/v1/taxii/` |\n| Collection ID | `dugganusa-threat-intel` |\n| Username | any value, for example `sentinel` |\n| Password | your DugganUSA API key |\n\n**Prerequisites for the analytic rules and hunting queries**\n\nThe analytic rules and hunting queries match indicators against network-session and DNS activity through the [Advanced Security Information Model (ASIM)](https://learn.microsoft.com/azure/sentinel/normalization). They return results only when the workspace receives telemetry covered by the ASIM NetworkSession or Dns parsers.\n\nFour of the hunting queries read Microsoft Defender XDR tables instead (DeviceNetworkEvents, DeviceFileEvents, DeviceProcessEvents, EmailEvents, EmailUrlInfo, UrlClickEvents). They return results when those tables reach the workspace through the Microsoft Defender XDR connector, and they run unchanged in advanced hunting in the Microsoft Defender portal when the workspace is onboarded there.\n\n**Underlying Microsoft Technologies used:**\n\nThis solution takes a dependency on the following technologies, and some of these dependencies either may be in [Preview](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) state or might result in additional ingestion or operational costs:\n\na. [Threat Intelligence - TAXII data connector](https://learn.microsoft.com/azure/sentinel/connect-threat-intelligence-taxii)\n\n**Data Connectors:** 1, **Workbooks:** 1, **Analytic Rules:** 5, **Hunting Queries:** 8\n\n[Learn more about Microsoft Sentinel](https://aka.ms/azuresentinel) | [Learn more about Solutions](https://aka.ms/azuresentinelsolutionsdoc)",
+ "subscription": {
+ "resourceProviders": [
+ "Microsoft.OperationsManagement/solutions",
+ "Microsoft.OperationalInsights/workspaces/providers/alertRules",
+ "Microsoft.Insights/workbooks",
+ "Microsoft.Logic/workflows"
+ ]
+ },
+ "location": {
+ "metadata": {
+ "hidden": "Hiding location, we get it from the log analytics workspace"
+ },
+ "visible": false
+ },
+ "resourceGroup": {
+ "allowExisting": true
+ }
+ }
+ },
+ "basics": [
+ {
+ "name": "getLAWorkspace",
+ "type": "Microsoft.Solutions.ArmApiControl",
+ "toolTip": "This filters by workspaces that exist in the Resource Group selected",
+ "condition": "[greater(length(resourceGroup().name),0)]",
+ "request": {
+ "method": "GET",
+ "path": "[concat(subscription().id,'/providers/Microsoft.OperationalInsights/workspaces?api-version=2020-08-01')]"
+ }
+ },
+ {
+ "name": "workspace",
+ "type": "Microsoft.Common.DropDown",
+ "label": "Workspace",
+ "placeholder": "Select a workspace",
+ "toolTip": "This dropdown will list only workspace that exists in the Resource Group selected",
+ "constraints": {
+ "allowedValues": "[map(filter(basics('getLAWorkspace').value, (filter) => contains(toLower(filter.id), toLower(resourceGroup().name))), (item) => parse(concat('{\"label\":\"', item.name, '\",\"value\":\"', item.name, '\"}')))]",
+ "required": true
+ },
+ "visible": true
+ }
+ ],
+ "steps": [
+ {
+ "name": "dataconnectors",
+ "label": "Data Connectors",
+ "bladeTitle": "Data Connectors",
+ "elements": [
+ {
+ "name": "dataconnectors1-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "This Solution installs the data connector for DugganUSA Threat Intelligence. You can get DugganUSA Threat Intelligence custom log data in your Microsoft Sentinel workspace. After installing the solution, configure and enable this data connector by following guidance in Manage solution view."
+ }
+ },
+ {
+ "name": "dataconnectors-link1",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "link": {
+ "label": "Learn more about connecting data sources",
+ "uri": "https://docs.microsoft.com/azure/sentinel/connect-data-sources"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "name": "workbooks",
+ "label": "Workbooks",
+ "subLabel": {
+ "preValidation": "Configure the workbooks",
+ "postValidation": "Done"
+ },
+ "bladeTitle": "Workbooks",
+ "elements": [
+ {
+ "name": "workbooks-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "This Microsoft Sentinel solution installs a workbook that shows DugganUSA indicator volume by type, the confidence distribution, matches against your own network and DNS activity, a 30-day lookback across the logs you already hold and, for DugganUSA edge customers, what the edge blocked."
+ }
+ },
+ {
+ "name": "workbooks-link",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "link": {
+ "label": "Learn more",
+ "uri": "https://docs.microsoft.com/azure/sentinel/tutorial-monitor-your-data"
+ }
+ }
+ },
+ {
+ "name": "workbook1",
+ "type": "Microsoft.Common.Section",
+ "label": "DugganUSA Threat Intelligence",
+ "elements": [
+ {
+ "name": "workbook1-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "DugganUSA threat intelligence in Microsoft Sentinel: active indicators by type, average confidence, indicators received over time, the confidence distribution, the indicators that matched your ASIM network-session and DNS activity, a 30-day lookback of matches in the logs the workspace already holds, and edge-shield blocks and canary hits when the DugganUSAEdgeDecisions_CL table exists."
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "analytics",
+ "label": "Analytics",
+ "subLabel": {
+ "preValidation": "Configure the analytics",
+ "postValidation": "Done"
+ },
+ "bladeTitle": "Analytics",
+ "elements": [
+ {
+ "name": "analytics-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "This solution installs the following analytic rule templates. After installing the solution, create and enable analytic rules in Manage solution view."
+ }
+ },
+ {
+ "name": "analytics-link",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "link": {
+ "label": "Learn more",
+ "uri": "https://docs.microsoft.com/azure/sentinel/tutorial-detect-threats-custom?WT.mc_id=Portal-Microsoft_Azure_CreateUIDef"
+ }
+ }
+ },
+ {
+ "name": "analytic1",
+ "type": "Microsoft.Common.Section",
+ "label": "DugganUSA - IP indicator matched in network sessions (ASIM)",
+ "elements": [
+ {
+ "name": "analytic1-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "Matches active DugganUSA IPv4 indicators against network sessions normalized by the ASIM NetworkSession schema, in both directions: a host inside the estate connected to an indicator, or an indicator connected in. Indicators are selected by a TAXII friendly name containing \"DugganUSA\" or by the DugganUSA STIX identity (created_by_ref), so a renamed connector still matches. Expired (ValidUntil in the past), inactive and deleted indicators are excluded. The confidence score is a dial for you to set, not a verdict: the rule defaults to 80. Requires the ASIM NetworkSession parsers and network telemetry in the workspace."
+ }
+ }
+ ]
+ },
+ {
+ "name": "analytic2",
+ "type": "Microsoft.Common.Section",
+ "label": "DugganUSA - domain indicator matched in DNS activity (ASIM)",
+ "elements": [
+ {
+ "name": "analytic2-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "Matches active DugganUSA domain indicators against DNS activity normalized by the ASIM Dns schema: a host inside the estate resolved a domain in the DugganUSA feed. Indicators are selected by a TAXII friendly name containing \"DugganUSA\" or by the DugganUSA STIX identity (created_by_ref), so a renamed connector still matches. Expired (ValidUntil in the past), inactive and deleted indicators are excluded. The confidence score is a dial for you to set, not a verdict: the rule defaults to 80. Requires the ASIM Dns parsers and DNS telemetry in the workspace."
+ }
+ }
+ ]
+ },
+ {
+ "name": "analytic3",
+ "type": "Microsoft.Common.Section",
+ "label": "DugganUSA - working credential used from a DugganUSA IP indicator",
+ "elements": [
+ {
+ "name": "analytic3-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "Matches active DugganUSA IPv4 and IPv6 indicators against Microsoft Entra ID sign-ins (interactive and non-interactive): someone used a working credential for your tenant from an address in the DugganUSA feed. Alerts on every outcome except the result codes known to mean the credential was rejected (bad password, locked out, unknown or disabled user, unknown tenant): a success, a password accepted and then stopped by MFA, Conditional Access or an interruption, and any result code it does not recognize (fail closed). Rejected credentials do not alert here; failed attempts are rolled into one daily Informational alert by the companion rule, so a password-spray from a listed address does not page anyone. Indicators are selected by a TAXII friendly name containing \"DugganUSA\" or by the DugganUSA STIX identity (created_by_ref). Expired, inactive and deleted indicators are excluded. The confidence floor defaults to 80 and is a dial for you to set, not a verdict. Requires Entra ID sign-in logs in the workspace (Microsoft Entra ID P1 or P2 for the diagnostic export)."
+ }
+ }
+ ]
+ },
+ {
+ "name": "analytic4",
+ "type": "Microsoft.Common.Section",
+ "label": "DugganUSA - daily digest of failed sign-ins from DugganUSA IP indicators",
+ "elements": [
+ {
+ "name": "analytic4-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "Once a day, one Informational alert that lists every DugganUSA IPv4 and IPv6 indicator that failed to sign in to Microsoft Entra ID (interactive and non-interactive) in the last 24 hours, with attempt counts and the accounts targeted. It exists so failed attempts from listed addresses are recorded without paging anyone: only result codes known to mean the credential was rejected are counted here (bad password, locked out, unknown or disabled user, unknown tenant). Every other outcome, including a success, a password accepted and then stopped by MFA or Conditional Access, and any unrecognized code, alerts at High in the companion rule \"DugganUSA - working credential used from a DugganUSA IP indicator\", so neither rule drops an attempt. No row cap: every listed address that failed is in the alert. Indicators are selected by a TAXII friendly name containing \"DugganUSA\" or by the DugganUSA STIX identity (created_by_ref). Expired, inactive and deleted indicators are excluded. The confidence floor defaults to 80 and is a dial for you to set. Requires Entra ID sign-in logs in the workspace (Microsoft Entra ID P1 or P2 for the diagnostic export)."
+ }
+ }
+ ]
+ },
+ {
+ "name": "analytic5",
+ "type": "Microsoft.Common.Section",
+ "label": "DugganUSA - key-shaped secret written to your logs",
+ "elements": [
+ {
+ "name": "analytic5-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "A key or token in a recognized format was written to one of your logs: AWS access keys, GitHub tokens, Slack tokens, Stripe live keys, Anthropic, OpenAI and Google API keys, npm tokens, Azure storage account keys and SAS signatures, private keys (PEM), DugganUSA keys, JWTs and opaque bearer tokens. Anyone who can read that log can use the secret. The alert never contains the secret: it carries the type, the tables and columns, a hint (at most one sixth of the value) and a fingerprint, the first 16 hex characters of the SHA-256 of the exact value (for a private key, of its base64 body with line breaks removed), so you can confirm which key it is by hashing your own copy. Severity is High for keys and private keys and Medium for JWTs, bearer tokens, SAS signatures and Slack tokens. Tables your workspace does not have are skipped. Documented example keys are ignored. One incident per secret: repeat sightings of the same fingerprint within 7 days join it."
+ }
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "name": "huntingqueries",
+ "label": "Hunting Queries",
+ "bladeTitle": "Hunting Queries",
+ "elements": [
+ {
+ "name": "huntingqueries-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "This solution installs the following hunting queries. After installing the solution, run these hunting queries to hunt for threats in Manage solution view."
+ }
+ },
+ {
+ "name": "huntingqueries-link",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "link": {
+ "label": "Learn more",
+ "uri": "https://docs.microsoft.com/azure/sentinel/hunting"
+ }
+ }
+ },
+ {
+ "name": "huntingquery1",
+ "type": "Microsoft.Common.Section",
+ "label": "DugganUSA - IP indicator seen in network sessions",
+ "elements": [
+ {
+ "name": "huntingquery1-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "Matches active DugganUSA IPv4 indicators against network sessions normalized by the ASIM NetworkSession schema, in both directions: hosts that connected to an indicator, and indicators that connected in. Indicators are selected by the DugganUSA STIX identity (created_by_ref) or by a TAXII server friendly name containing \"DugganUSA\". Raise or lower confidence_floor to suit your tolerance; the confidence score is a dial for you to set, not a verdict. Requires the ASIM NetworkSession parsers and network telemetry in the workspace. This hunting query depends on ThreatIntelligenceTaxii data connector (ThreatIntelIndicators Parser or Table)"
+ }
+ }
+ ]
+ },
+ {
+ "name": "huntingquery2",
+ "type": "Microsoft.Common.Section",
+ "label": "DugganUSA - domain indicator resolved in DNS",
+ "elements": [
+ {
+ "name": "huntingquery2-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "Matches active DugganUSA domain indicators against DNS activity normalized by the ASIM Dns schema, surfacing hosts inside the estate that resolved a domain in the DugganUSA feed. Indicators are selected by the DugganUSA STIX identity (created_by_ref) or by a TAXII server friendly name containing \"DugganUSA\". Adjust dns_lookback to your DNS retention to retro-hunt. The confidence score is a dial for you to set, not a verdict. Requires the ASIM Dns parsers and DNS telemetry in the workspace. This hunting query depends on ThreatIntelligenceTaxii data connector (ThreatIntelIndicators Parser or Table)"
+ }
+ }
+ ]
+ },
+ {
+ "name": "huntingquery3",
+ "type": "Microsoft.Common.Section",
+ "label": "DugganUSA - device connected to an IP indicator (Defender for Endpoint)",
+ "elements": [
+ {
+ "name": "huntingquery3-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "Devices that connected to, or accepted a connection from, an active DugganUSA IP indicator, from Defender for Endpoint DeviceNetworkEvents. The confidence floor (default 80) is your dial. This hunting query depends on MicrosoftThreatProtection ThreatIntelligenceTaxii data connector (DeviceNetworkEvents ThreatIntelIndicators Parser or Table)"
+ }
+ }
+ ]
+ },
+ {
+ "name": "huntingquery4",
+ "type": "Microsoft.Common.Section",
+ "label": "DugganUSA - device reached a domain or URL indicator (Defender for Endpoint)",
+ "elements": [
+ {
+ "name": "huntingquery4-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "Devices whose network connections reached a DugganUSA domain (exact host or subdomain) or URL indicator, from Defender for Endpoint DeviceNetworkEvents.RemoteUrl. This hunting query depends on MicrosoftThreatProtection ThreatIntelligenceTaxii data connector (DeviceNetworkEvents ThreatIntelIndicators Parser or Table)"
+ }
+ }
+ ]
+ },
+ {
+ "name": "huntingquery5",
+ "type": "Microsoft.Common.Section",
+ "label": "DugganUSA - email carried an indicator, and who clicked (Defender for Office 365)",
+ "elements": [
+ {
+ "name": "huntingquery5-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "Messages carrying a DugganUSA URL or domain indicator, or sent from a DugganUSA sender domain or IP, with Safe Links click-through outcome. Needs Defender for Office 365. This hunting query depends on MicrosoftThreatProtection ThreatIntelligenceTaxii data connector (EmailEvents EmailUrlInfo UrlClickEvents ThreatIntelIndicators Parser or Table)"
+ }
+ }
+ ]
+ },
+ {
+ "name": "huntingquery6",
+ "type": "Microsoft.Common.Section",
+ "label": "DugganUSA - file or process matched a file-hash indicator (Defender for Endpoint)",
+ "elements": [
+ {
+ "name": "huntingquery6-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "Files written or processes run whose SHA-256, SHA-1 or MD5 is a DugganUSA file-hash indicator, from DeviceFileEvents and DeviceProcessEvents. This hunting query depends on MicrosoftThreatProtection ThreatIntelligenceTaxii data connector (DeviceFileEvents DeviceProcessEvents ThreatIntelIndicators Parser or Table)"
+ }
+ }
+ ]
+ },
+ {
+ "name": "huntingquery7",
+ "type": "Microsoft.Common.Section",
+ "label": "DugganUSA - retro-hunt, which indicators already reached you (last 30 days)",
+ "elements": [
+ {
+ "name": "huntingquery7-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "Run once after connecting the DugganUSA feed, then monthly. Matches every active DugganUSA IP and domain indicator against the last 30 days of the logs this workspace already holds: Entra ID sign-ins, Defender for Endpoint network events, Defender for Office email URLs and clicks, Windows DNS events, CEF/Syslog firewalls (CommonSecurityLog), Microsoft 365 activity and Azure activity. One row per indicator and table, with first and last seen and a count. Tables the workspace does not have are skipped. The confidence floor (default 80) is your dial. A row is a match against your own logs, not proof of compromise: read the table and direction before acting. This hunting query depends on ThreatIntelligenceTaxii data connector (ThreatIntelIndicators Parser or Table)"
+ }
+ }
+ ]
+ },
+ {
+ "name": "huntingquery8",
+ "type": "Microsoft.Common.Section",
+ "label": "DugganUSA - key-shaped secrets already in your logs (30-day sweep)",
+ "elements": [
+ {
+ "name": "huntingquery8-text",
+ "type": "Microsoft.Common.TextBlock",
+ "options": {
+ "text": "Run once when you install the solution, then after any incident: the same detection as the analytic rule, over 30 days. A key or token in a recognized format was written to one of your logs: AWS access keys, GitHub tokens, Slack tokens, Stripe live keys, Anthropic, OpenAI and Google API keys, npm tokens, Azure storage account keys and SAS signatures, private keys (PEM), DugganUSA keys, JWTs and opaque bearer tokens. Anyone who can read that log can use the secret. The alert never contains the secret: it carries the type, the tables and columns, a hint (at most one sixth of the value) and a fingerprint, the first 16 hex characters of the SHA-256 of the exact value (for a private key, of its base64 body with line breaks removed), so you can confirm which key it is by hashing your own copy. Severity is High for keys and private keys and Medium for JWTs, bearer tokens, SAS signatures and Slack tokens. Tables your workspace does not have are skipped. Documented example keys are ignored. This hunting query depends on Syslog AzureActivity data connector (Syslog AzureActivity Parser or Table)"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "outputs": {
+ "workspace-location": "[first(map(filter(basics('getLAWorkspace').value, (filter) => and(contains(toLower(filter.id), toLower(resourceGroup().name)),equals(filter.name,basics('workspace')))), (item) => item.location))]",
+ "location": "[location()]",
+ "workspace": "[basics('workspace')]"
+ }
+ }
+}
diff --git a/Solutions/DugganUSA Threat Intelligence/Package/mainTemplate.json b/Solutions/DugganUSA Threat Intelligence/Package/mainTemplate.json
new file mode 100644
index 00000000000..7bb3f7b4323
--- /dev/null
+++ b/Solutions/DugganUSA Threat Intelligence/Package/mainTemplate.json
@@ -0,0 +1,2108 @@
+{
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "1.0.0.0",
+ "metadata": {
+ "author": "DugganUSA LLC - butterbot@dugganusa.com",
+ "comments": "Solution template for DugganUSA Threat Intelligence"
+ },
+ "parameters": {
+ "location": {
+ "type": "string",
+ "minLength": 1,
+ "defaultValue": "[resourceGroup().location]",
+ "metadata": {
+ "description": "Not used, but needed to pass arm-ttk test `Location-Should-Not-Be-Hardcoded`. We instead use the `workspace-location` which is derived from the LA workspace"
+ }
+ },
+ "workspace-location": {
+ "type": "string",
+ "defaultValue": "",
+ "metadata": {
+ "description": "[concat('Region to deploy solution resources -- separate from location selection',parameters('location'))]"
+ }
+ },
+ "workspace": {
+ "defaultValue": "",
+ "type": "string",
+ "metadata": {
+ "description": "Workspace name for Log Analytics where Microsoft Sentinel is setup"
+ }
+ },
+ "workbook1-name": {
+ "type": "string",
+ "defaultValue": "DugganUSA Threat Intelligence",
+ "minLength": 1,
+ "metadata": {
+ "description": "Name for the workbook"
+ }
+ }
+ },
+ "variables": {
+ "email": "butterbot@dugganusa.com",
+ "_email": "[variables('email')]",
+ "_solutionName": "DugganUSA Threat Intelligence",
+ "_solutionVersion": "3.0.2",
+ "solutionId": "microsoftsentinelcommunity.azure-sentinel-solution-dugganusa",
+ "_solutionId": "[variables('solutionId')]",
+ "analyticRuleObject1": {
+ "analyticRuleVersion1": "1.0.0",
+ "_analyticRulecontentId1": "c1372b99-168e-4c12-b120-d523bbd995ee",
+ "analyticRuleId1": "[resourceId('Microsoft.SecurityInsights/AlertRuleTemplates', 'c1372b99-168e-4c12-b120-d523bbd995ee')]",
+ "analyticRuleTemplateSpecName1": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-ar-',uniquestring('c1372b99-168e-4c12-b120-d523bbd995ee')))]",
+ "_analyticRulecontentProductId1": "[concat(take(variables('_solutionId'),50),'-','ar','-', uniqueString(concat(variables('_solutionId'),'-','AnalyticsRule','-','c1372b99-168e-4c12-b120-d523bbd995ee','-', '1.0.0')))]"
+ },
+ "analyticRuleObject2": {
+ "analyticRuleVersion2": "1.0.0",
+ "_analyticRulecontentId2": "9a82ac5f-d039-4ece-ad02-be2b2376123f",
+ "analyticRuleId2": "[resourceId('Microsoft.SecurityInsights/AlertRuleTemplates', '9a82ac5f-d039-4ece-ad02-be2b2376123f')]",
+ "analyticRuleTemplateSpecName2": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-ar-',uniquestring('9a82ac5f-d039-4ece-ad02-be2b2376123f')))]",
+ "_analyticRulecontentProductId2": "[concat(take(variables('_solutionId'),50),'-','ar','-', uniqueString(concat(variables('_solutionId'),'-','AnalyticsRule','-','9a82ac5f-d039-4ece-ad02-be2b2376123f','-', '1.0.0')))]"
+ },
+ "analyticRuleObject3": {
+ "analyticRuleVersion3": "1.2.0",
+ "_analyticRulecontentId3": "6e914b6e-74f2-4589-ab52-44c06b13eb51",
+ "analyticRuleId3": "[resourceId('Microsoft.SecurityInsights/AlertRuleTemplates', '6e914b6e-74f2-4589-ab52-44c06b13eb51')]",
+ "analyticRuleTemplateSpecName3": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-ar-',uniquestring('6e914b6e-74f2-4589-ab52-44c06b13eb51')))]",
+ "_analyticRulecontentProductId3": "[concat(take(variables('_solutionId'),50),'-','ar','-', uniqueString(concat(variables('_solutionId'),'-','AnalyticsRule','-','6e914b6e-74f2-4589-ab52-44c06b13eb51','-', '1.2.0')))]"
+ },
+ "analyticRuleObject4": {
+ "analyticRuleVersion4": "1.1.0",
+ "_analyticRulecontentId4": "d48faa29-0c46-498d-a4d8-0270ae1af1c3",
+ "analyticRuleId4": "[resourceId('Microsoft.SecurityInsights/AlertRuleTemplates', 'd48faa29-0c46-498d-a4d8-0270ae1af1c3')]",
+ "analyticRuleTemplateSpecName4": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-ar-',uniquestring('d48faa29-0c46-498d-a4d8-0270ae1af1c3')))]",
+ "_analyticRulecontentProductId4": "[concat(take(variables('_solutionId'),50),'-','ar','-', uniqueString(concat(variables('_solutionId'),'-','AnalyticsRule','-','d48faa29-0c46-498d-a4d8-0270ae1af1c3','-', '1.1.0')))]"
+ },
+ "analyticRuleObject5": {
+ "analyticRuleVersion5": "1.0.0",
+ "_analyticRulecontentId5": "67dbf549-159a-45b8-bbec-ab719f890544",
+ "analyticRuleId5": "[resourceId('Microsoft.SecurityInsights/AlertRuleTemplates', '67dbf549-159a-45b8-bbec-ab719f890544')]",
+ "analyticRuleTemplateSpecName5": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-ar-',uniquestring('67dbf549-159a-45b8-bbec-ab719f890544')))]",
+ "_analyticRulecontentProductId5": "[concat(take(variables('_solutionId'),50),'-','ar','-', uniqueString(concat(variables('_solutionId'),'-','AnalyticsRule','-','67dbf549-159a-45b8-bbec-ab719f890544','-', '1.0.0')))]"
+ },
+ "huntingQueryObject1": {
+ "huntingQueryVersion1": "1.0.0",
+ "_huntingQuerycontentId1": "0ea80425-2d10-4c67-b546-f8b456a98184",
+ "huntingQueryTemplateSpecName1": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-hq-',uniquestring('0ea80425-2d10-4c67-b546-f8b456a98184')))]"
+ },
+ "huntingQueryObject2": {
+ "huntingQueryVersion2": "1.0.0",
+ "_huntingQuerycontentId2": "55c04d14-991c-4a2c-a103-68dea284c8bd",
+ "huntingQueryTemplateSpecName2": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-hq-',uniquestring('55c04d14-991c-4a2c-a103-68dea284c8bd')))]"
+ },
+ "huntingQueryObject3": {
+ "huntingQueryVersion3": "1.0.0",
+ "_huntingQuerycontentId3": "dc9dd59e-334f-4c42-a07d-fdc78297f4c4",
+ "huntingQueryTemplateSpecName3": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-hq-',uniquestring('dc9dd59e-334f-4c42-a07d-fdc78297f4c4')))]"
+ },
+ "huntingQueryObject4": {
+ "huntingQueryVersion4": "1.0.0",
+ "_huntingQuerycontentId4": "37912a95-3760-43ff-8f29-a0d781fb2218",
+ "huntingQueryTemplateSpecName4": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-hq-',uniquestring('37912a95-3760-43ff-8f29-a0d781fb2218')))]"
+ },
+ "huntingQueryObject5": {
+ "huntingQueryVersion5": "1.0.0",
+ "_huntingQuerycontentId5": "a952f95b-beae-444d-b308-1e7bcaafb1af",
+ "huntingQueryTemplateSpecName5": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-hq-',uniquestring('a952f95b-beae-444d-b308-1e7bcaafb1af')))]"
+ },
+ "huntingQueryObject6": {
+ "huntingQueryVersion6": "1.0.0",
+ "_huntingQuerycontentId6": "f9398de3-89c5-4fa6-9193-3bc04814d65a",
+ "huntingQueryTemplateSpecName6": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-hq-',uniquestring('f9398de3-89c5-4fa6-9193-3bc04814d65a')))]"
+ },
+ "huntingQueryObject7": {
+ "huntingQueryVersion7": "1.0.0",
+ "_huntingQuerycontentId7": "682a9dc2-0ec5-4959-941a-ba34a19b9c25",
+ "huntingQueryTemplateSpecName7": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-hq-',uniquestring('682a9dc2-0ec5-4959-941a-ba34a19b9c25')))]"
+ },
+ "huntingQueryObject8": {
+ "huntingQueryVersion8": "1.0.0",
+ "_huntingQuerycontentId8": "9eb2060f-fcd7-4e1e-b779-07a69e7a458c",
+ "huntingQueryTemplateSpecName8": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-hq-',uniquestring('9eb2060f-fcd7-4e1e-b779-07a69e7a458c')))]"
+ },
+ "uiConfigId1": "DugganUSAThreatIntelligence",
+ "_uiConfigId1": "[variables('uiConfigId1')]",
+ "dataConnectorContentId1": "DugganUSAThreatIntelligence",
+ "_dataConnectorContentId1": "[variables('dataConnectorContentId1')]",
+ "dataConnectorId1": "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/dataConnectors', variables('_dataConnectorContentId1'))]",
+ "_dataConnectorId1": "[variables('dataConnectorId1')]",
+ "dataConnectorTemplateSpecName1": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-dc-',uniquestring(variables('_dataConnectorContentId1'))))]",
+ "dataConnectorVersion1": "1.0.0",
+ "_dataConnectorcontentProductId1": "[concat(take(variables('_solutionId'),50),'-','dc','-', uniqueString(concat(variables('_solutionId'),'-','DataConnector','-',variables('_dataConnectorContentId1'),'-', variables('dataConnectorVersion1'))))]",
+ "workbookVersion1": "1.1.0",
+ "workbookContentId1": "DugganUSAThreatIntelligence",
+ "workbookId1": "[resourceId('Microsoft.Insights/workbooks', variables('workbookContentId1'))]",
+ "workbookTemplateSpecName1": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat(parameters('workspace'),'-wb-',uniquestring(variables('_workbookContentId1'))))]",
+ "_workbookContentId1": "[variables('workbookContentId1')]",
+ "workspaceResourceId": "[resourceId('microsoft.OperationalInsights/Workspaces', parameters('workspace'))]",
+ "_workbookcontentProductId1": "[concat(take(variables('_solutionId'),50),'-','wb','-', uniqueString(concat(variables('_solutionId'),'-','Workbook','-',variables('_workbookContentId1'),'-', variables('workbookVersion1'))))]",
+ "_solutioncontentProductId": "[concat(take(variables('_solutionId'),50),'-','sl','-', uniqueString(concat(variables('_solutionId'),'-','Solution','-',variables('_solutionId'),'-', variables('_solutionVersion'))))]"
+ },
+ "resources": [
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[variables('analyticRuleObject1').analyticRuleTemplateSpecName1]",
+ "location": "[parameters('workspace-location')]",
+ "dependsOn": [
+ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]"
+ ],
+ "properties": {
+ "description": "DugganUSAIPIndicatorNetworkSession_AnalyticalRules Analytics Rule with template version 3.0.2",
+ "mainTemplate": {
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "[variables('analyticRuleObject1').analyticRuleVersion1]",
+ "parameters": {},
+ "variables": {},
+ "resources": [
+ {
+ "type": "Microsoft.SecurityInsights/AlertRuleTemplates",
+ "name": "[variables('analyticRuleObject1')._analyticRulecontentId1]",
+ "apiVersion": "2023-02-01-preview",
+ "kind": "Scheduled",
+ "location": "[parameters('workspace-location')]",
+ "properties": {
+ "description": "Matches active DugganUSA IPv4 indicators against network sessions normalized by the ASIM NetworkSession schema, in both directions: a host inside the estate connected to an indicator, or an indicator connected in. Indicators are selected by a TAXII friendly name containing \"DugganUSA\" or by the DugganUSA STIX identity (created_by_ref), so a renamed connector still matches. Expired (ValidUntil in the past), inactive and deleted indicators are excluded. The confidence score is a dial for you to set, not a verdict: the rule defaults to 80. Requires the ASIM NetworkSession parsers and network telemetry in the workspace.",
+ "displayName": "DugganUSA - IP indicator matched in network sessions (ASIM)",
+ "enabled": false,
+ "query": "let dugganusa_identity = \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\";\nlet ioc_lookback = 14d;\nlet session_lookback = 1h;\nlet confidence_floor = 80;\nlet DugganUSA_IPs =\n ThreatIntelIndicators\n | where TimeGenerated >= ago(ioc_lookback)\n | where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == dugganusa_identity\n | where ObservableKey == \"ipv4-addr:value\"\n | where isnotempty(ObservableValue)\n | summarize arg_max(TimeGenerated, *) by Id\n | where IsActive == true and IsDeleted == false\n | where isempty(ValidUntil) or ValidUntil > now()\n | where Confidence >= confidence_floor\n | project\n TI_ip = tostring(ObservableValue),\n Confidence,\n IndicatorName = tostring(Data.name),\n IndicatorStixId = tostring(Data.id),\n ValidUntil;\nlet Sessions =\n _Im_NetworkSession(starttime = ago(session_lookback), endtime = now())\n | project TimeGenerated, SrcIpAddr, DstIpAddr, DstPortNumber, SrcHostname, DstHostname, DvcAction, EventVendor, EventProduct;\nunion\n (Sessions | extend TI_ip = DstIpAddr, LocalIp = SrcIpAddr, LocalHostname = SrcHostname, Direction = \"to indicator\"),\n (Sessions | extend TI_ip = SrcIpAddr, LocalIp = DstIpAddr, LocalHostname = DstHostname, Direction = \"from indicator\")\n| where isnotempty(TI_ip)\n| join kind=inner DugganUSA_IPs on TI_ip\n| where isempty(ValidUntil) or TimeGenerated < ValidUntil\n| summarize\n FirstSeen = min(TimeGenerated),\n LastSeen = max(TimeGenerated),\n SessionCount = count(),\n LocalIps = make_set(LocalIp, 50),\n LocalHosts = make_set(LocalHostname, 50),\n DstPorts = make_set(DstPortNumber, 20),\n Actions = make_set(DvcAction, 10),\n SeenBy = make_set(strcat(EventVendor, \" \", EventProduct), 10)\n by TI_ip, Direction, Confidence, IndicatorName, IndicatorStixId\n| extend\n LocalIp = tostring(LocalIps[0]),\n LocalHost = tostring(LocalHosts[0])\n| extend timestamp = LastSeen\n| order by Confidence desc, SessionCount desc\n",
+ "queryFrequency": "PT1H",
+ "queryPeriod": "P14D",
+ "severity": "Medium",
+ "suppressionDuration": "PT1H",
+ "suppressionEnabled": false,
+ "triggerOperator": "GreaterThan",
+ "triggerThreshold": 0,
+ "status": "Available",
+ "requiredDataConnectors": [
+ {
+ "dataTypes": [
+ "ThreatIntelIndicators"
+ ],
+ "connectorId": "ThreatIntelligenceTaxii"
+ }
+ ],
+ "tactics": [
+ "CommandAndControl"
+ ],
+ "techniques": [
+ "T1071"
+ ],
+ "entityMappings": [
+ {
+ "fieldMappings": [
+ {
+ "identifier": "Address",
+ "columnName": "TI_ip"
+ }
+ ],
+ "entityType": "IP"
+ },
+ {
+ "fieldMappings": [
+ {
+ "identifier": "Address",
+ "columnName": "LocalIp"
+ }
+ ],
+ "entityType": "IP"
+ },
+ {
+ "fieldMappings": [
+ {
+ "identifier": "HostName",
+ "columnName": "LocalHost"
+ }
+ ],
+ "entityType": "Host"
+ }
+ ],
+ "eventGroupingSettings": {
+ "aggregationKind": "AlertPerResult"
+ },
+ "customDetails": {
+ "DeviceActions": "Actions",
+ "Direction": "Direction",
+ "IndicatorStixId": "[if(true(), 'IndicatorStixId', 'IndicatorStixId')]",
+ "SessionCount": "SessionCount",
+ "Confidence": "Confidence",
+ "DstPorts": "DstPorts",
+ "ObservedBy": "SeenBy"
+ },
+ "alertDetailsOverride": {
+ "alertDisplayNameFormat": "DugganUSA: network session {{Direction}} {{TI_ip}}",
+ "alertDescriptionFormat": "A network session was seen {{Direction}} {{TI_ip}}, an IPv4 indicator in the DugganUSA feed at confidence {{Confidence}}. Review the local IPs and hosts in the alert and the indicator in the Threat intelligence page.\n"
+ },
+ "incidentConfiguration": {
+ "createIncident": true,
+ "groupingConfiguration": {
+ "reopenClosedIncident": false,
+ "matchingMethod": "Selected",
+ "groupByEntities": [
+ "IP"
+ ],
+ "enabled": true,
+ "lookbackDuration": "P1D"
+ }
+ }
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/metadata",
+ "apiVersion": "2022-01-01-preview",
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('AnalyticsRule-', last(split(variables('analyticRuleObject1').analyticRuleId1,'/'))))]",
+ "properties": {
+ "description": "DugganUSA Threat Intelligence Analytics Rule 1",
+ "parentId": "[variables('analyticRuleObject1').analyticRuleId1]",
+ "contentId": "[variables('analyticRuleObject1')._analyticRulecontentId1]",
+ "kind": "AnalyticsRule",
+ "version": "[variables('analyticRuleObject1').analyticRuleVersion1]",
+ "source": {
+ "kind": "Solution",
+ "name": "DugganUSA Threat Intelligence",
+ "sourceId": "[variables('_solutionId')]"
+ },
+ "author": {
+ "name": "DugganUSA LLC",
+ "email": "[variables('_email')]"
+ },
+ "support": {
+ "name": "DugganUSA LLC",
+ "email": "butterbot@dugganusa.com",
+ "tier": "Community",
+ "link": "https://www.dugganusa.com"
+ }
+ }
+ }
+ ]
+ },
+ "packageKind": "Solution",
+ "packageVersion": "[variables('_solutionVersion')]",
+ "packageName": "[variables('_solutionName')]",
+ "packageId": "[variables('_solutionId')]",
+ "contentSchemaVersion": "3.0.0",
+ "contentId": "[variables('analyticRuleObject1')._analyticRulecontentId1]",
+ "contentKind": "AnalyticsRule",
+ "displayName": "DugganUSA - IP indicator matched in network sessions (ASIM)",
+ "contentProductId": "[variables('analyticRuleObject1')._analyticRulecontentProductId1]",
+ "id": "[variables('analyticRuleObject1')._analyticRulecontentProductId1]",
+ "version": "[variables('analyticRuleObject1').analyticRuleVersion1]"
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[variables('analyticRuleObject2').analyticRuleTemplateSpecName2]",
+ "location": "[parameters('workspace-location')]",
+ "dependsOn": [
+ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]"
+ ],
+ "properties": {
+ "description": "DugganUSADomainIndicatorDns_AnalyticalRules Analytics Rule with template version 3.0.2",
+ "mainTemplate": {
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "[variables('analyticRuleObject2').analyticRuleVersion2]",
+ "parameters": {},
+ "variables": {},
+ "resources": [
+ {
+ "type": "Microsoft.SecurityInsights/AlertRuleTemplates",
+ "name": "[variables('analyticRuleObject2')._analyticRulecontentId2]",
+ "apiVersion": "2023-02-01-preview",
+ "kind": "Scheduled",
+ "location": "[parameters('workspace-location')]",
+ "properties": {
+ "description": "Matches active DugganUSA domain indicators against DNS activity normalized by the ASIM Dns schema: a host inside the estate resolved a domain in the DugganUSA feed. Indicators are selected by a TAXII friendly name containing \"DugganUSA\" or by the DugganUSA STIX identity (created_by_ref), so a renamed connector still matches. Expired (ValidUntil in the past), inactive and deleted indicators are excluded. The confidence score is a dial for you to set, not a verdict: the rule defaults to 80. Requires the ASIM Dns parsers and DNS telemetry in the workspace.",
+ "displayName": "DugganUSA - domain indicator matched in DNS activity (ASIM)",
+ "enabled": false,
+ "query": "let dugganusa_identity = \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\";\nlet ioc_lookback = 14d;\nlet dns_lookback = 1h;\nlet confidence_floor = 80;\nlet DugganUSA_Domains =\n ThreatIntelIndicators\n | where TimeGenerated >= ago(ioc_lookback)\n | where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == dugganusa_identity\n | where ObservableKey == \"domain-name:value\"\n | where isnotempty(ObservableValue)\n | summarize arg_max(TimeGenerated, *) by Id\n | where IsActive == true and IsDeleted == false\n | where isempty(ValidUntil) or ValidUntil > now()\n | where Confidence >= confidence_floor\n | extend IndicatorDomain = tolower(trim_end(@\"\\.\", tostring(ObservableValue)))\n | project\n IndicatorDomain,\n Confidence,\n IndicatorName = tostring(Data.name),\n IndicatorStixId = tostring(Data.id),\n ValidUntil;\nlet DnsActivity =\n _Im_Dns(starttime = ago(dns_lookback), endtime = now())\n | where isnotempty(DnsQuery)\n | extend IndicatorDomain = tolower(trim_end(@\"\\.\", DnsQuery))\n | project DnsTime = TimeGenerated, IndicatorDomain, SrcIpAddr, SrcHostname, EventVendor, EventProduct;\nDugganUSA_Domains\n| join kind=inner DnsActivity on IndicatorDomain\n| where isempty(ValidUntil) or DnsTime < ValidUntil\n| summarize\n FirstResolved = min(DnsTime),\n LastResolved = max(DnsTime),\n QueryCount = count(),\n SourceIps = make_set(SrcIpAddr, 50),\n SourceHosts = make_set(SrcHostname, 50),\n SeenBy = make_set(strcat(EventVendor, \" \", EventProduct), 10)\n by IndicatorDomain, Confidence, IndicatorName, IndicatorStixId\n| extend\n SourceIp = tostring(SourceIps[0]),\n SourceHost = tostring(SourceHosts[0])\n| extend timestamp = LastResolved\n| order by Confidence desc, QueryCount desc\n",
+ "queryFrequency": "PT1H",
+ "queryPeriod": "P14D",
+ "severity": "Medium",
+ "suppressionDuration": "PT1H",
+ "suppressionEnabled": false,
+ "triggerOperator": "GreaterThan",
+ "triggerThreshold": 0,
+ "status": "Available",
+ "requiredDataConnectors": [
+ {
+ "dataTypes": [
+ "ThreatIntelIndicators"
+ ],
+ "connectorId": "ThreatIntelligenceTaxii"
+ }
+ ],
+ "tactics": [
+ "CommandAndControl"
+ ],
+ "techniques": [
+ "T1071",
+ "T1568"
+ ],
+ "entityMappings": [
+ {
+ "fieldMappings": [
+ {
+ "identifier": "DomainName",
+ "columnName": "IndicatorDomain"
+ }
+ ],
+ "entityType": "DNS"
+ },
+ {
+ "fieldMappings": [
+ {
+ "identifier": "Address",
+ "columnName": "SourceIp"
+ }
+ ],
+ "entityType": "IP"
+ },
+ {
+ "fieldMappings": [
+ {
+ "identifier": "HostName",
+ "columnName": "SourceHost"
+ }
+ ],
+ "entityType": "Host"
+ }
+ ],
+ "eventGroupingSettings": {
+ "aggregationKind": "AlertPerResult"
+ },
+ "customDetails": {
+ "IndicatorStixId": "[if(true(), 'IndicatorStixId', 'IndicatorStixId')]",
+ "Confidence": "Confidence",
+ "ObservedBy": "SeenBy",
+ "ResolutionCount": "QueryCount"
+ },
+ "alertDetailsOverride": {
+ "alertDisplayNameFormat": "DugganUSA: {{IndicatorDomain}} resolved from inside the estate",
+ "alertDescriptionFormat": "{{IndicatorDomain}} was resolved from inside the estate. It is a domain indicator in the DugganUSA feed at confidence {{Confidence}}. Review the source hosts in the alert and the indicator in the Threat intelligence page.\n"
+ },
+ "incidentConfiguration": {
+ "createIncident": true,
+ "groupingConfiguration": {
+ "reopenClosedIncident": false,
+ "matchingMethod": "Selected",
+ "groupByEntities": [
+ "DNS"
+ ],
+ "enabled": true,
+ "lookbackDuration": "P1D"
+ }
+ }
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/metadata",
+ "apiVersion": "2022-01-01-preview",
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('AnalyticsRule-', last(split(variables('analyticRuleObject2').analyticRuleId2,'/'))))]",
+ "properties": {
+ "description": "DugganUSA Threat Intelligence Analytics Rule 2",
+ "parentId": "[variables('analyticRuleObject2').analyticRuleId2]",
+ "contentId": "[variables('analyticRuleObject2')._analyticRulecontentId2]",
+ "kind": "AnalyticsRule",
+ "version": "[variables('analyticRuleObject2').analyticRuleVersion2]",
+ "source": {
+ "kind": "Solution",
+ "name": "DugganUSA Threat Intelligence",
+ "sourceId": "[variables('_solutionId')]"
+ },
+ "author": {
+ "name": "DugganUSA LLC",
+ "email": "[variables('_email')]"
+ },
+ "support": {
+ "name": "DugganUSA LLC",
+ "email": "butterbot@dugganusa.com",
+ "tier": "Community",
+ "link": "https://www.dugganusa.com"
+ }
+ }
+ }
+ ]
+ },
+ "packageKind": "Solution",
+ "packageVersion": "[variables('_solutionVersion')]",
+ "packageName": "[variables('_solutionName')]",
+ "packageId": "[variables('_solutionId')]",
+ "contentSchemaVersion": "3.0.0",
+ "contentId": "[variables('analyticRuleObject2')._analyticRulecontentId2]",
+ "contentKind": "AnalyticsRule",
+ "displayName": "DugganUSA - domain indicator matched in DNS activity (ASIM)",
+ "contentProductId": "[variables('analyticRuleObject2')._analyticRulecontentProductId2]",
+ "id": "[variables('analyticRuleObject2')._analyticRulecontentProductId2]",
+ "version": "[variables('analyticRuleObject2').analyticRuleVersion2]"
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[variables('analyticRuleObject3').analyticRuleTemplateSpecName3]",
+ "location": "[parameters('workspace-location')]",
+ "dependsOn": [
+ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]"
+ ],
+ "properties": {
+ "description": "DugganUSAIPIndicatorSignin_AnalyticalRules Analytics Rule with template version 3.0.2",
+ "mainTemplate": {
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "[variables('analyticRuleObject3').analyticRuleVersion3]",
+ "parameters": {},
+ "variables": {},
+ "resources": [
+ {
+ "type": "Microsoft.SecurityInsights/AlertRuleTemplates",
+ "name": "[variables('analyticRuleObject3')._analyticRulecontentId3]",
+ "apiVersion": "2023-02-01-preview",
+ "kind": "Scheduled",
+ "location": "[parameters('workspace-location')]",
+ "properties": {
+ "description": "Matches active DugganUSA IPv4 and IPv6 indicators against Microsoft Entra ID sign-ins (interactive and non-interactive): someone used a working credential for your tenant from an address in the DugganUSA feed. Alerts on every outcome except the result codes known to mean the credential was rejected (bad password, locked out, unknown or disabled user, unknown tenant): a success, a password accepted and then stopped by MFA, Conditional Access or an interruption, and any result code it does not recognize (fail closed). Rejected credentials do not alert here; failed attempts are rolled into one daily Informational alert by the companion rule, so a password-spray from a listed address does not page anyone. Indicators are selected by a TAXII friendly name containing \"DugganUSA\" or by the DugganUSA STIX identity (created_by_ref). Expired, inactive and deleted indicators are excluded. The confidence floor defaults to 80 and is a dial for you to set, not a verdict. Requires Entra ID sign-in logs in the workspace (Microsoft Entra ID P1 or P2 for the diagnostic export).",
+ "displayName": "DugganUSA - working credential used from a DugganUSA IP indicator",
+ "enabled": false,
+ "query": "let dugganusa_identity = \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\";\nlet ioc_lookback = 14d;\nlet signin_lookback = 1h;\nlet confidence_floor = 80;\n// IPv6 has many spellings (2001:db8::1 = 2001:0db8:0:0:0:0:0:1): join on parse_ipv6, which gives one canonical form.\nlet ipkey = (ip:string) { iff(ip has \":\", tostring(parse_ipv6(ip)), tolower(ip)) };\nlet DugganUSA_IPs =\n ThreatIntelIndicators\n | where TimeGenerated >= ago(ioc_lookback)\n | where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == dugganusa_identity\n | where ObservableKey in (\"ipv4-addr:value\", \"ipv6-addr:value\")\n | where isnotempty(ObservableValue)\n | summarize arg_max(TimeGenerated, *) by Id\n | where IsActive == true and IsDeleted == false\n | where isempty(ValidUntil) or ValidUntil > now()\n | where Confidence >= confidence_floor\n | extend IndicatorIp = tostring(ObservableValue), IpKey = ipkey(tostring(ObservableValue))\n | project IndicatorIp, IpKey, Confidence, IndicatorName = tostring(Data.name), IndicatorStixId = tostring(Data.id), ValidUntil;\nlet Signins =\n union isfuzzy=true\n (SigninLogs | where TimeGenerated >= ago(signin_lookback) | extend SigninKind = \"interactive\"),\n (AADNonInteractiveUserSignInLogs | where TimeGenerated >= ago(signin_lookback) | extend SigninKind = \"non-interactive\")\n | extend IpKey = ipkey(IPAddress)\n // Fail closed: everything except result codes known to mean the credential was REJECTED alerts here.\n // 50126 bad username or password, 50053 locked out, 50034 no such user, 50056 no password, 50057 disabled,\n // 50064 credential validation failed, 50128/50059 no such tenant. These go to the daily digest.\n | where tostring(ResultType) !in (\"50126\", \"50053\", \"50034\", \"50056\", \"50057\", \"50064\", \"50128\", \"50059\")\n | extend Outcome = case(\n tostring(ResultType) == \"0\", \"signed in\",\n tostring(ResultType) in (\"50074\", \"50076\", \"50079\", \"50072\", \"50158\", \"50140\", \"50125\", \"50097\", \"50129\", \"50055\", \"53003\", \"53000\", \"53001\", \"53002\", \"50199\"),\n \"password accepted, stopped by MFA, policy or an interruption\",\n \"unrecognized result code: review\")\n | project SigninTime = TimeGenerated, IpKey, UserPrincipalName, AppDisplayName, ResultType, Outcome, SigninKind;\nDugganUSA_IPs\n| join kind=inner Signins on IpKey\n| where isempty(ValidUntil) or SigninTime < ValidUntil\n| summarize\n FirstAttempt = min(SigninTime),\n LastAttempt = max(SigninTime),\n Attempts = count(),\n Successes = countif(Outcome == \"signed in\"),\n MfaStops = countif(Outcome startswith \"password accepted\"),\n Unrecognized = countif(Outcome startswith \"unrecognized\"),\n ResultTypes = make_set(tostring(ResultType), 10),\n Accounts = make_set(UserPrincipalName, 50),\n Apps = make_set(AppDisplayName, 20),\n Kinds = make_set(SigninKind, 2)\n by IndicatorIp, Confidence, IndicatorName, IndicatorStixId\n| extend Account = tostring(Accounts[0])\n| extend timestamp = LastAttempt\n| order by Successes desc, MfaStops desc, Unrecognized desc\n",
+ "queryFrequency": "PT1H",
+ "queryPeriod": "P14D",
+ "severity": "High",
+ "suppressionDuration": "PT1H",
+ "suppressionEnabled": false,
+ "triggerOperator": "GreaterThan",
+ "triggerThreshold": 0,
+ "status": "Available",
+ "requiredDataConnectors": [
+ {
+ "dataTypes": [
+ "ThreatIntelIndicators"
+ ],
+ "connectorId": "ThreatIntelligenceTaxii"
+ },
+ {
+ "dataTypes": [
+ "SigninLogs",
+ "AADNonInteractiveUserSignInLogs"
+ ],
+ "connectorId": "AzureActiveDirectory"
+ }
+ ],
+ "tactics": [
+ "InitialAccess",
+ "CredentialAccess"
+ ],
+ "techniques": [
+ "T1078",
+ "T1110"
+ ],
+ "entityMappings": [
+ {
+ "fieldMappings": [
+ {
+ "identifier": "Address",
+ "columnName": "IndicatorIp"
+ }
+ ],
+ "entityType": "IP"
+ },
+ {
+ "fieldMappings": [
+ {
+ "identifier": "FullName",
+ "columnName": "Account"
+ }
+ ],
+ "entityType": "Account"
+ }
+ ],
+ "eventGroupingSettings": {
+ "aggregationKind": "AlertPerResult"
+ },
+ "customDetails": {
+ "Confidence": "Confidence",
+ "IndicatorStixId": "[if(true(), 'IndicatorStixId', 'IndicatorStixId')]",
+ "Unrecognized": "Unrecognized",
+ "Successes": "Successes",
+ "MfaStops": "MfaStops",
+ "Attempts": "Attempts"
+ },
+ "alertDetailsOverride": {
+ "alertDisplayNameFormat": "DugganUSA: working credential used from {{IndicatorIp}}",
+ "alertDescriptionFormat": "{{IndicatorIp}} presented a working credential {{Attempts}} time(s): see Successes and MfaStops in the alert details. It is an IP indicator in the DugganUSA feed at confidence {{Confidence}}. If unexpected, revoke the account's sessions and reset its password; an MFA stop still means the password is known.\n"
+ },
+ "incidentConfiguration": {
+ "createIncident": true,
+ "groupingConfiguration": {
+ "reopenClosedIncident": false,
+ "matchingMethod": "Selected",
+ "groupByEntities": [
+ "IP"
+ ],
+ "enabled": true,
+ "lookbackDuration": "P1D"
+ }
+ }
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/metadata",
+ "apiVersion": "2022-01-01-preview",
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('AnalyticsRule-', last(split(variables('analyticRuleObject3').analyticRuleId3,'/'))))]",
+ "properties": {
+ "description": "DugganUSA Threat Intelligence Analytics Rule 3",
+ "parentId": "[variables('analyticRuleObject3').analyticRuleId3]",
+ "contentId": "[variables('analyticRuleObject3')._analyticRulecontentId3]",
+ "kind": "AnalyticsRule",
+ "version": "[variables('analyticRuleObject3').analyticRuleVersion3]",
+ "source": {
+ "kind": "Solution",
+ "name": "DugganUSA Threat Intelligence",
+ "sourceId": "[variables('_solutionId')]"
+ },
+ "author": {
+ "name": "DugganUSA LLC",
+ "email": "[variables('_email')]"
+ },
+ "support": {
+ "name": "DugganUSA LLC",
+ "email": "butterbot@dugganusa.com",
+ "tier": "Community",
+ "link": "https://www.dugganusa.com"
+ }
+ }
+ }
+ ]
+ },
+ "packageKind": "Solution",
+ "packageVersion": "[variables('_solutionVersion')]",
+ "packageName": "[variables('_solutionName')]",
+ "packageId": "[variables('_solutionId')]",
+ "contentSchemaVersion": "3.0.0",
+ "contentId": "[variables('analyticRuleObject3')._analyticRulecontentId3]",
+ "contentKind": "AnalyticsRule",
+ "displayName": "DugganUSA - working credential used from a DugganUSA IP indicator",
+ "contentProductId": "[variables('analyticRuleObject3')._analyticRulecontentProductId3]",
+ "id": "[variables('analyticRuleObject3')._analyticRulecontentProductId3]",
+ "version": "[variables('analyticRuleObject3').analyticRuleVersion3]"
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[variables('analyticRuleObject4').analyticRuleTemplateSpecName4]",
+ "location": "[parameters('workspace-location')]",
+ "dependsOn": [
+ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]"
+ ],
+ "properties": {
+ "description": "DugganUSAIPIndicatorSigninFailedDigest_AnalyticalRules Analytics Rule with template version 3.0.2",
+ "mainTemplate": {
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "[variables('analyticRuleObject4').analyticRuleVersion4]",
+ "parameters": {},
+ "variables": {},
+ "resources": [
+ {
+ "type": "Microsoft.SecurityInsights/AlertRuleTemplates",
+ "name": "[variables('analyticRuleObject4')._analyticRulecontentId4]",
+ "apiVersion": "2023-02-01-preview",
+ "kind": "Scheduled",
+ "location": "[parameters('workspace-location')]",
+ "properties": {
+ "description": "Once a day, one Informational alert that lists every DugganUSA IPv4 and IPv6 indicator that failed to sign in to Microsoft Entra ID (interactive and non-interactive) in the last 24 hours, with attempt counts and the accounts targeted. It exists so failed attempts from listed addresses are recorded without paging anyone: only result codes known to mean the credential was rejected are counted here (bad password, locked out, unknown or disabled user, unknown tenant). Every other outcome, including a success, a password accepted and then stopped by MFA or Conditional Access, and any unrecognized code, alerts at High in the companion rule \"DugganUSA - working credential used from a DugganUSA IP indicator\", so neither rule drops an attempt. No row cap: every listed address that failed is in the alert. Indicators are selected by a TAXII friendly name containing \"DugganUSA\" or by the DugganUSA STIX identity (created_by_ref). Expired, inactive and deleted indicators are excluded. The confidence floor defaults to 80 and is a dial for you to set. Requires Entra ID sign-in logs in the workspace (Microsoft Entra ID P1 or P2 for the diagnostic export).",
+ "displayName": "DugganUSA - daily digest of failed sign-ins from DugganUSA IP indicators",
+ "enabled": false,
+ "query": "let dugganusa_identity = \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\";\nlet ioc_lookback = 14d;\nlet signin_lookback = 1d;\nlet confidence_floor = 80;\n// IPv6 has many spellings (2001:db8::1 = 2001:0db8:0:0:0:0:0:1): join on parse_ipv6, which gives one canonical form.\nlet ipkey = (ip:string) { iff(ip has \":\", tostring(parse_ipv6(ip)), tolower(ip)) };\nlet DugganUSA_IPs =\n ThreatIntelIndicators\n | where TimeGenerated >= ago(ioc_lookback)\n | where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == dugganusa_identity\n | where ObservableKey in (\"ipv4-addr:value\", \"ipv6-addr:value\")\n | where isnotempty(ObservableValue)\n | summarize arg_max(TimeGenerated, *) by Id\n | where IsActive == true and IsDeleted == false\n | where isempty(ValidUntil) or ValidUntil > now()\n | where Confidence >= confidence_floor\n | extend IpKey = ipkey(tostring(ObservableValue))\n | summarize Confidence = max(Confidence), ValidUntil = max(ValidUntil), IndicatorIp = take_any(tostring(ObservableValue)) by IpKey;\nlet Failures =\n union isfuzzy=true\n (SigninLogs | where TimeGenerated >= ago(signin_lookback)),\n (AADNonInteractiveUserSignInLogs | where TimeGenerated >= ago(signin_lookback))\n // Only result codes known to mean the credential was REJECTED (bad password, locked out, no such user,\n // no password, disabled, validation failed, no such tenant). Every other code, known or not, alerts at High\n // in the companion rule, so nothing from a listed address is dropped by either rule (fail closed).\n | where tostring(ResultType) in (\"50126\", \"50053\", \"50034\", \"50056\", \"50057\", \"50064\", \"50128\", \"50059\")\n | extend IpKey = ipkey(IPAddress)\n | project SigninTime = TimeGenerated, IpKey, UserPrincipalName, ResultType;\nDugganUSA_IPs\n| join kind=inner Failures on IpKey\n| where isempty(ValidUntil) or SigninTime < ValidUntil\n| summarize\n FirstAttempt = min(SigninTime),\n LastAttempt = max(SigninTime),\n Attempts = count(),\n AccountCount = dcount(UserPrincipalName),\n Accounts = make_set(UserPrincipalName, 20),\n ResultTypes = make_set(tostring(ResultType), 10)\n by IndicatorIp, Confidence\n| order by AccountCount desc, Attempts desc\n| extend timestamp = LastAttempt\n",
+ "queryFrequency": "P1D",
+ "queryPeriod": "P14D",
+ "severity": "Informational",
+ "suppressionDuration": "PT1H",
+ "suppressionEnabled": false,
+ "triggerOperator": "GreaterThan",
+ "triggerThreshold": 0,
+ "status": "Available",
+ "requiredDataConnectors": [
+ {
+ "dataTypes": [
+ "ThreatIntelIndicators"
+ ],
+ "connectorId": "ThreatIntelligenceTaxii"
+ },
+ {
+ "dataTypes": [
+ "SigninLogs",
+ "AADNonInteractiveUserSignInLogs"
+ ],
+ "connectorId": "AzureActiveDirectory"
+ }
+ ],
+ "tactics": [
+ "CredentialAccess"
+ ],
+ "techniques": [
+ "T1110"
+ ],
+ "entityMappings": [
+ {
+ "fieldMappings": [
+ {
+ "identifier": "Address",
+ "columnName": "IndicatorIp"
+ }
+ ],
+ "entityType": "IP"
+ }
+ ],
+ "eventGroupingSettings": {
+ "aggregationKind": "SingleAlert"
+ },
+ "customDetails": {
+ "Confidence": "Confidence",
+ "Attempts": "Attempts",
+ "AccountCount": "AccountCount"
+ },
+ "alertDetailsOverride": {
+ "alertDisplayNameFormat": "DugganUSA: daily digest of failed sign-ins from listed IPs",
+ "alertDescriptionFormat": "Failed sign-in attempts from DugganUSA-listed IP addresses in the last 24 hours, rolled into one alert. Only rejected credentials are included here; every other outcome raises its own High alert. Open the alert's events for the per-address list.\n"
+ },
+ "incidentConfiguration": {
+ "createIncident": true,
+ "groupingConfiguration": {
+ "reopenClosedIncident": false,
+ "matchingMethod": "AllEntities",
+ "enabled": true,
+ "lookbackDuration": "P7D"
+ }
+ }
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/metadata",
+ "apiVersion": "2022-01-01-preview",
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('AnalyticsRule-', last(split(variables('analyticRuleObject4').analyticRuleId4,'/'))))]",
+ "properties": {
+ "description": "DugganUSA Threat Intelligence Analytics Rule 4",
+ "parentId": "[variables('analyticRuleObject4').analyticRuleId4]",
+ "contentId": "[variables('analyticRuleObject4')._analyticRulecontentId4]",
+ "kind": "AnalyticsRule",
+ "version": "[variables('analyticRuleObject4').analyticRuleVersion4]",
+ "source": {
+ "kind": "Solution",
+ "name": "DugganUSA Threat Intelligence",
+ "sourceId": "[variables('_solutionId')]"
+ },
+ "author": {
+ "name": "DugganUSA LLC",
+ "email": "[variables('_email')]"
+ },
+ "support": {
+ "name": "DugganUSA LLC",
+ "email": "butterbot@dugganusa.com",
+ "tier": "Community",
+ "link": "https://www.dugganusa.com"
+ }
+ }
+ }
+ ]
+ },
+ "packageKind": "Solution",
+ "packageVersion": "[variables('_solutionVersion')]",
+ "packageName": "[variables('_solutionName')]",
+ "packageId": "[variables('_solutionId')]",
+ "contentSchemaVersion": "3.0.0",
+ "contentId": "[variables('analyticRuleObject4')._analyticRulecontentId4]",
+ "contentKind": "AnalyticsRule",
+ "displayName": "DugganUSA - daily digest of failed sign-ins from DugganUSA IP indicators",
+ "contentProductId": "[variables('analyticRuleObject4')._analyticRulecontentProductId4]",
+ "id": "[variables('analyticRuleObject4')._analyticRulecontentProductId4]",
+ "version": "[variables('analyticRuleObject4').analyticRuleVersion4]"
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[variables('analyticRuleObject5').analyticRuleTemplateSpecName5]",
+ "location": "[parameters('workspace-location')]",
+ "dependsOn": [
+ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]"
+ ],
+ "properties": {
+ "description": "DugganUSALeakedSecretInLogs_AnalyticalRules Analytics Rule with template version 3.0.2",
+ "mainTemplate": {
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "[variables('analyticRuleObject5').analyticRuleVersion5]",
+ "parameters": {},
+ "variables": {},
+ "resources": [
+ {
+ "type": "Microsoft.SecurityInsights/AlertRuleTemplates",
+ "name": "[variables('analyticRuleObject5')._analyticRulecontentId5]",
+ "apiVersion": "2023-02-01-preview",
+ "kind": "Scheduled",
+ "location": "[parameters('workspace-location')]",
+ "properties": {
+ "description": "A key or token in a recognized format was written to one of your logs: AWS access keys, GitHub tokens, Slack tokens, Stripe live keys, Anthropic, OpenAI and Google API keys, npm tokens, Azure storage account keys and SAS signatures, private keys (PEM), DugganUSA keys, JWTs and opaque bearer tokens. Anyone who can read that log can use the secret. The alert never contains the secret: it carries the type, the tables and columns, a hint (at most one sixth of the value) and a fingerprint, the first 16 hex characters of the SHA-256 of the exact value (for a private key, of its base64 body with line breaks removed), so you can confirm which key it is by hashing your own copy. Severity is High for keys and private keys and Medium for JWTs, bearer tokens, SAS signatures and Slack tokens. Tables your workspace does not have are skipped. Documented example keys are ignored. One incident per secret: repeat sightings of the same fingerprint within 7 days join it.",
+ "displayName": "DugganUSA - key-shaped secret written to your logs",
+ "enabled": false,
+ "query": "let lookback = 1h;\n// Known key formats. One capture group; the type is decided from the captured value below.\nlet known_rx = @\"((?:AKIA|ASIA)[0-9A-Z]{16}|gh[pousr]_[A-Za-z0-9]{36,255}|github_pat_[A-Za-z0-9_]{60,255}|xox[baprs]-[A-Za-z0-9-]{10,}|(?:sk|rk)_live_[A-Za-z0-9]{20,}|sk-ant-[A-Za-z0-9_-]{20,}|sk-proj-[A-Za-z0-9_-]{20,}|sk-[A-Za-z0-9]{40,}|AIza[0-9A-Za-z_-]{35}|npm_[A-Za-z0-9]{36}|AccountKey=[A-Za-z0-9+/]{86}==|sig=[A-Za-z0-9%+/=]{40,}|-----BEGIN (?:RSA |EC |OPENSSH |DSA |ENCRYPTED )?PRIVATE KEY-----[\\\\A-Za-z0-9+/= \\t\\r\\n]*(?:-----END (?:RSA |EC |OPENSSH |DSA |ENCRYPTED )?PRIVATE KEY-----)?|dugusa_[A-Za-z0-9_-]{30,}|eyJ[A-Za-z0-9_-]{10,}\\.eyJ[A-Za-z0-9_-]{10,}\\.[A-Za-z0-9_-]{10,})\";\n// Opaque bearer tokens that match no known format.\nlet bearer_rx = @\"[Bb]earer\\s+([A-Za-z0-9._~+/=-]{30,})\";\nlet Sources = union isfuzzy=true\n (print TimeGenerated = now(), SourceTable = \"\", Column = \"\", Text = \"\", ResourceId = \"\", Host = \"\" | where false),\n (AzureDiagnostics | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"AzureDiagnostics\", Column = \"(all columns)\", Text = tostring(pack_all()), ResourceId = _ResourceId, Host = \"\"),\n (Syslog | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"Syslog\", Column = \"SyslogMessage\", Text = SyslogMessage, ResourceId = _ResourceId, Host = Computer),\n (SecurityEvent | where TimeGenerated > ago(lookback) and isnotempty(CommandLine) | project TimeGenerated, SourceTable = \"SecurityEvent\", Column = \"CommandLine\", Text = CommandLine, ResourceId = _ResourceId, Host = Computer),\n (DeviceProcessEvents | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"DeviceProcessEvents\", Column = \"ProcessCommandLine\", Text = ProcessCommandLine, ResourceId = \"\", Host = DeviceName),\n (CommonSecurityLog | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"CommonSecurityLog\", Column = \"RequestURL+AdditionalExtensions\", Text = strcat(RequestURL, \" \", AdditionalExtensions), ResourceId = _ResourceId, Host = Computer),\n (AzureActivity | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"AzureActivity\", Column = \"Properties\", Text = tostring(Properties), ResourceId = _ResourceId, Host = \"\"),\n (AppTraces | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"AppTraces\", Column = \"Message\", Text = Message, ResourceId = _ResourceId, Host = AppRoleInstance),\n (AppRequests | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"AppRequests\", Column = \"Url\", Text = Url, ResourceId = _ResourceId, Host = AppRoleInstance),\n (AppDependencies | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"AppDependencies\", Column = \"Data\", Text = Data, ResourceId = _ResourceId, Host = AppRoleInstance),\n (FunctionAppLogs | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"FunctionAppLogs\", Column = \"Message\", Text = Message, ResourceId = _ResourceId, Host = HostInstanceId),\n (AppServiceConsoleLogs | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"AppServiceConsoleLogs\", Column = \"ResultDescription\", Text = ResultDescription, ResourceId = _ResourceId, Host = Host),\n (AppServiceHTTPLogs | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"AppServiceHTTPLogs\", Column = \"CsUriQuery\", Text = CsUriQuery, ResourceId = _ResourceId, Host = CsHost),\n (ContainerAppConsoleLogs_CL | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"ContainerAppConsoleLogs_CL\", Column = \"Log_s\", Text = Log_s, ResourceId = _ResourceId, Host = ContainerAppName_s),\n (ContainerLogV2 | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"ContainerLogV2\", Column = \"LogMessage\", Text = tostring(LogMessage), ResourceId = _ResourceId, Host = Computer),\n (W3CIISLog | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"W3CIISLog\", Column = \"csUriQuery\", Text = csUriQuery, ResourceId = _ResourceId, Host = Computer)\n | where isnotempty(Text);\nSources\n| extend Found = set_union(extract_all(known_rx, Text), extract_all(bearer_rx, Text))\n| project-away Text\n| mv-expand Secret = Found to typeof(string)\n| where isnotempty(Secret)\n| where Secret !contains \"EXAMPLE\" and Secret !in (\"AKIAIOSFODNN7EXAMPLE\")\n| extend Kind = case(\n Secret matches regex @\"^(AKIA|ASIA)\", \"aws-access-key\",\n Secret startswith \"github_pat_\" or Secret matches regex @\"^gh[pousr]_\", \"github-token\",\n Secret startswith \"xox\", \"slack-token\",\n Secret matches regex @\"^(sk|rk)_live_\", \"stripe-live-key\",\n Secret startswith \"sk-ant-\", \"anthropic-api-key\",\n Secret startswith \"sk-\", \"openai-api-key\",\n Secret startswith \"AIza\", \"google-api-key\",\n Secret startswith \"npm_\", \"npm-token\",\n Secret startswith \"AccountKey=\", \"azure-storage-account-key\",\n Secret startswith \"sig=\", \"azure-sas-signature\",\n Secret startswith \"-----BEGIN\", \"private-key\",\n Secret startswith \"dugusa_\", \"dugganusa-api-key\",\n Secret matches regex @\"^eyJ[A-Za-z0-9_-]+\\.eyJ\", \"jwt\",\n \"bearer-token\")\n// A private key is fingerprinted on its base64 body alone (markers, spaces and line breaks, real or escaped, removed),\n// so hashing the key file the same way reproduces it.\n| extend Fingerprint = substring(hash_sha256(iff(Kind == \"private-key\", replace_regex(Secret, @\"-----[A-Z ]+-----|\\\\[nrt]|\\s\", \"\"), Secret)), 0, 16),\n Hint = strcat(substring(Secret, 0, min_of(8, strlen(Secret) / 6)), \"... (\", strlen(Secret), \" chars)\")\n| project-away Secret, Found\n| summarize FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), Hits = count(),\n Tables = make_set(SourceTable, 10), Columns = make_set(Column, 10),\n Resources = make_set_if(ResourceId, isnotempty(ResourceId), 10), Hosts = make_set_if(Host, isnotempty(Host), 10)\n by Fingerprint, Kind, Hint\n| extend Severity = iff(Kind in (\"jwt\", \"bearer-token\", \"azure-sas-signature\", \"slack-token\"), \"Medium\", \"High\"),\n RotateAt = case(\n Kind == \"aws-access-key\", \"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html\",\n Kind == \"github-token\", \"https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation\",\n Kind == \"slack-token\", \"https://api.slack.com/authentication/rotation\",\n Kind == \"stripe-live-key\", \"https://docs.stripe.com/keys\",\n Kind == \"anthropic-api-key\", \"https://console.anthropic.com/settings/keys\",\n Kind == \"openai-api-key\", \"https://platform.openai.com/api-keys\",\n Kind == \"google-api-key\", \"https://cloud.google.com/docs/authentication/api-keys\",\n Kind == \"npm-token\", \"https://docs.npmjs.com/revoking-access-tokens\",\n Kind == \"azure-storage-account-key\", \"https://learn.microsoft.com/azure/storage/common/storage-account-keys-manage\",\n Kind == \"azure-sas-signature\", \"https://learn.microsoft.com/azure/storage/common/sas-expiration-policy\",\n Kind == \"dugganusa-api-key\", \"https://docs.dugganusa.com/\",\n \"Expire it at its issuer, then find and fix what logged it\"),\n ResourceId = tostring(Resources[0]), Host = tostring(Hosts[0]), TableList = strcat_array(Tables, \", \")\n| order by Severity asc, Hits desc\n",
+ "queryFrequency": "PT1H",
+ "queryPeriod": "PT1H",
+ "severity": "High",
+ "suppressionDuration": "PT1H",
+ "suppressionEnabled": false,
+ "triggerOperator": "GreaterThan",
+ "triggerThreshold": 0,
+ "status": "Available",
+ "requiredDataConnectors": [
+ {
+ "dataTypes": [
+ "Syslog"
+ ],
+ "connectorId": "Syslog"
+ },
+ {
+ "dataTypes": [
+ "AzureActivity"
+ ],
+ "connectorId": "AzureActivity"
+ },
+ {
+ "dataTypes": [
+ "DeviceProcessEvents"
+ ],
+ "connectorId": "MicrosoftThreatProtection"
+ },
+ {
+ "dataTypes": [
+ "CommonSecurityLog"
+ ],
+ "connectorId": "CEF"
+ }
+ ],
+ "tactics": [
+ "CredentialAccess"
+ ],
+ "techniques": [
+ "T1552"
+ ],
+ "entityMappings": [
+ {
+ "fieldMappings": [
+ {
+ "identifier": "ResourceId",
+ "columnName": "ResourceId"
+ }
+ ],
+ "entityType": "AzureResource"
+ },
+ {
+ "fieldMappings": [
+ {
+ "identifier": "HostName",
+ "columnName": "Host"
+ }
+ ],
+ "entityType": "Host"
+ }
+ ],
+ "eventGroupingSettings": {
+ "aggregationKind": "AlertPerResult"
+ },
+ "customDetails": {
+ "Kind": "Kind",
+ "RotateAt": "RotateAt",
+ "Tables": "TableList",
+ "Fingerprint": "Fingerprint",
+ "Hits": "Hits",
+ "Hint": "Hint"
+ },
+ "alertDetailsOverride": {
+ "alertDescriptionFormat": "A {{Kind}} was written to {{TableList}}. The secret is not copied into this alert. Rotate it at the issuer (see the RotateAt detail), then fix whatever logged it, and treat the log itself as exposed.\n",
+ "alertDisplayNameFormat": "Secret in logs: {{Kind}} ({{Hint}})",
+ "alertSeverityColumnName": "Severity"
+ },
+ "incidentConfiguration": {
+ "createIncident": true,
+ "groupingConfiguration": {
+ "reopenClosedIncident": false,
+ "groupByCustomDetails": [
+ "Fingerprint"
+ ],
+ "matchingMethod": "Selected",
+ "enabled": true,
+ "lookbackDuration": "P7D"
+ }
+ }
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/metadata",
+ "apiVersion": "2022-01-01-preview",
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('AnalyticsRule-', last(split(variables('analyticRuleObject5').analyticRuleId5,'/'))))]",
+ "properties": {
+ "description": "DugganUSA Threat Intelligence Analytics Rule 5",
+ "parentId": "[variables('analyticRuleObject5').analyticRuleId5]",
+ "contentId": "[variables('analyticRuleObject5')._analyticRulecontentId5]",
+ "kind": "AnalyticsRule",
+ "version": "[variables('analyticRuleObject5').analyticRuleVersion5]",
+ "source": {
+ "kind": "Solution",
+ "name": "DugganUSA Threat Intelligence",
+ "sourceId": "[variables('_solutionId')]"
+ },
+ "author": {
+ "name": "DugganUSA LLC",
+ "email": "[variables('_email')]"
+ },
+ "support": {
+ "name": "DugganUSA LLC",
+ "email": "butterbot@dugganusa.com",
+ "tier": "Community",
+ "link": "https://www.dugganusa.com"
+ }
+ }
+ }
+ ]
+ },
+ "packageKind": "Solution",
+ "packageVersion": "[variables('_solutionVersion')]",
+ "packageName": "[variables('_solutionName')]",
+ "packageId": "[variables('_solutionId')]",
+ "contentSchemaVersion": "3.0.0",
+ "contentId": "[variables('analyticRuleObject5')._analyticRulecontentId5]",
+ "contentKind": "AnalyticsRule",
+ "displayName": "DugganUSA - key-shaped secret written to your logs",
+ "contentProductId": "[variables('analyticRuleObject5')._analyticRulecontentProductId5]",
+ "id": "[variables('analyticRuleObject5')._analyticRulecontentProductId5]",
+ "version": "[variables('analyticRuleObject5').analyticRuleVersion5]"
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[variables('huntingQueryObject1').huntingQueryTemplateSpecName1]",
+ "location": "[parameters('workspace-location')]",
+ "dependsOn": [
+ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]"
+ ],
+ "properties": {
+ "description": "DugganUSAIPIndicatorNetworkSession_HuntingQueries Hunting Query with template version 3.0.2",
+ "mainTemplate": {
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "[variables('huntingQueryObject1').huntingQueryVersion1]",
+ "parameters": {},
+ "variables": {},
+ "resources": [
+ {
+ "type": "Microsoft.OperationalInsights/savedSearches",
+ "apiVersion": "2025-07-01",
+ "name": "DugganUSA_Threat_Intelligence_Hunting_Query_1",
+ "location": "[parameters('workspace-location')]",
+ "properties": {
+ "eTag": "*",
+ "displayName": "DugganUSA - IP indicator seen in network sessions",
+ "category": "Hunting Queries",
+ "query": "let dugganusa_identity = \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\";\nlet ioc_lookback = 14d;\nlet session_lookback = 1d;\nlet confidence_floor = 80;\nlet DugganUSA_IPs =\n ThreatIntelIndicators\n | where TimeGenerated >= ago(ioc_lookback)\n | where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == dugganusa_identity\n | where ObservableKey == \"ipv4-addr:value\"\n | where isnotempty(ObservableValue)\n | summarize arg_max(TimeGenerated, *) by Id\n | where IsActive == true and IsDeleted == false\n | where isempty(ValidUntil) or ValidUntil > now()\n | where Confidence >= confidence_floor\n | project\n TI_ip = tostring(ObservableValue),\n Confidence,\n IndicatorName = tostring(Data.name),\n IndicatorStixId = tostring(Data.id);\nlet Sessions =\n _Im_NetworkSession(starttime = ago(session_lookback), endtime = now())\n | project TimeGenerated, SrcIpAddr, DstIpAddr, DstPortNumber, SrcHostname, DstHostname, DvcAction, EventVendor, EventProduct;\nunion\n (Sessions | extend TI_ip = DstIpAddr, Direction = \"to indicator\"),\n (Sessions | extend TI_ip = SrcIpAddr, Direction = \"from indicator\")\n| where isnotempty(TI_ip)\n| join kind=inner DugganUSA_IPs on TI_ip\n| summarize\n FirstSeen = min(TimeGenerated),\n LastSeen = max(TimeGenerated),\n SessionCount = count(),\n LocalIps = make_set(iff(Direction == \"to indicator\", SrcIpAddr, DstIpAddr), 50),\n LocalHosts = make_set(iff(Direction == \"to indicator\", SrcHostname, DstHostname), 50),\n DstPorts = make_set(DstPortNumber, 20),\n Actions = make_set(DvcAction, 10),\n SeenBy = make_set(strcat(EventVendor, \" \", EventProduct), 10)\n by TI_ip, Direction, Confidence, IndicatorName, IndicatorStixId\n| extend LocalHost = tostring(LocalHosts[0])\n| order by Confidence desc, SessionCount desc\n",
+ "version": 2,
+ "tags": [
+ {
+ "name": "description",
+ "value": "Matches active DugganUSA IPv4 indicators against network sessions normalized by the ASIM NetworkSession schema, in both directions: hosts that connected to an indicator, and indicators that connected in. Indicators are selected by the DugganUSA STIX identity (created_by_ref) or by a TAXII server friendly name containing \"DugganUSA\". Raise or lower confidence_floor to suit your tolerance; the confidence score is a dial for you to set, not a verdict. Requires the ASIM NetworkSession parsers and network telemetry in the workspace."
+ },
+ {
+ "name": "tactics",
+ "value": "CommandAndControl,InitialAccess"
+ },
+ {
+ "name": "techniques",
+ "value": "T1071,T1190"
+ }
+ ]
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/metadata",
+ "apiVersion": "2022-01-01-preview",
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('HuntingQuery-', last(split(resourceId('Microsoft.OperationalInsights/savedSearches', variables('huntingQueryObject1')._huntingQuerycontentId1),'/'))))]",
+ "properties": {
+ "description": "DugganUSA Threat Intelligence Hunting Query 1",
+ "parentId": "[resourceId('Microsoft.OperationalInsights/savedSearches', variables('huntingQueryObject1')._huntingQuerycontentId1)]",
+ "contentId": "[variables('huntingQueryObject1')._huntingQuerycontentId1]",
+ "kind": "HuntingQuery",
+ "version": "[variables('huntingQueryObject1').huntingQueryVersion1]",
+ "source": {
+ "kind": "Solution",
+ "name": "DugganUSA Threat Intelligence",
+ "sourceId": "[variables('_solutionId')]"
+ },
+ "author": {
+ "name": "DugganUSA LLC",
+ "email": "[variables('_email')]"
+ },
+ "support": {
+ "name": "DugganUSA LLC",
+ "email": "butterbot@dugganusa.com",
+ "tier": "Community",
+ "link": "https://www.dugganusa.com"
+ }
+ }
+ }
+ ]
+ },
+ "packageKind": "Solution",
+ "packageVersion": "[variables('_solutionVersion')]",
+ "packageName": "[variables('_solutionName')]",
+ "packageId": "[variables('_solutionId')]",
+ "contentSchemaVersion": "3.0.0",
+ "contentId": "[variables('huntingQueryObject1')._huntingQuerycontentId1]",
+ "contentKind": "HuntingQuery",
+ "displayName": "DugganUSA - IP indicator seen in network sessions",
+ "contentProductId": "[concat(take(variables('_solutionId'),50),'-','hq','-', uniqueString(concat(variables('_solutionId'),'-','HuntingQuery','-',variables('huntingQueryObject1')._huntingQuerycontentId1,'-', '1.0.0')))]",
+ "id": "[concat(take(variables('_solutionId'),50),'-','hq','-', uniqueString(concat(variables('_solutionId'),'-','HuntingQuery','-',variables('huntingQueryObject1')._huntingQuerycontentId1,'-', '1.0.0')))]",
+ "version": "1.0.0"
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[variables('huntingQueryObject2').huntingQueryTemplateSpecName2]",
+ "location": "[parameters('workspace-location')]",
+ "dependsOn": [
+ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]"
+ ],
+ "properties": {
+ "description": "DugganUSADomainIndicatorDns_HuntingQueries Hunting Query with template version 3.0.2",
+ "mainTemplate": {
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "[variables('huntingQueryObject2').huntingQueryVersion2]",
+ "parameters": {},
+ "variables": {},
+ "resources": [
+ {
+ "type": "Microsoft.OperationalInsights/savedSearches",
+ "apiVersion": "2025-07-01",
+ "name": "DugganUSA_Threat_Intelligence_Hunting_Query_2",
+ "location": "[parameters('workspace-location')]",
+ "properties": {
+ "eTag": "*",
+ "displayName": "DugganUSA - domain indicator resolved in DNS",
+ "category": "Hunting Queries",
+ "query": "let dugganusa_identity = \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\";\nlet ioc_lookback = 14d;\nlet dns_lookback = 1d;\nlet confidence_floor = 80;\nlet DugganUSA_Domains =\n ThreatIntelIndicators\n | where TimeGenerated >= ago(ioc_lookback)\n | where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == dugganusa_identity\n | where ObservableKey == \"domain-name:value\"\n | where isnotempty(ObservableValue)\n | summarize arg_max(TimeGenerated, *) by Id\n | where IsActive == true and IsDeleted == false\n | where isempty(ValidUntil) or ValidUntil > now()\n | where Confidence >= confidence_floor\n | extend IndicatorDomain = tolower(trim_end(@\"\\.\", tostring(ObservableValue)))\n | project\n IndicatorDomain,\n Confidence,\n IndicatorName = tostring(Data.name),\n IndicatorStixId = tostring(Data.id);\nlet DnsActivity =\n _Im_Dns(starttime = ago(dns_lookback), endtime = now())\n | where isnotempty(DnsQuery)\n | extend IndicatorDomain = tolower(trim_end(@\"\\.\", DnsQuery))\n | project DnsTime = TimeGenerated, IndicatorDomain, SrcIpAddr, SrcHostname, EventVendor, EventProduct;\nDugganUSA_Domains\n| join kind=inner DnsActivity on IndicatorDomain\n| summarize\n FirstResolved = min(DnsTime),\n LastResolved = max(DnsTime),\n QueryCount = count(),\n SourceIps = make_set(SrcIpAddr, 50),\n SourceHosts = make_set(SrcHostname, 50),\n SeenBy = make_set(strcat(EventVendor, \" \", EventProduct), 10)\n by IndicatorDomain, Confidence, IndicatorName, IndicatorStixId\n| extend\n SourceIp = tostring(SourceIps[0]),\n SourceHost = tostring(SourceHosts[0])\n| order by LastResolved desc\n",
+ "version": 2,
+ "tags": [
+ {
+ "name": "description",
+ "value": "Matches active DugganUSA domain indicators against DNS activity normalized by the ASIM Dns schema, surfacing hosts inside the estate that resolved a domain in the DugganUSA feed. Indicators are selected by the DugganUSA STIX identity (created_by_ref) or by a TAXII server friendly name containing \"DugganUSA\". Adjust dns_lookback to your DNS retention to retro-hunt. The confidence score is a dial for you to set, not a verdict. Requires the ASIM Dns parsers and DNS telemetry in the workspace."
+ },
+ {
+ "name": "tactics",
+ "value": "CommandAndControl"
+ },
+ {
+ "name": "techniques",
+ "value": "T1071,T1568"
+ }
+ ]
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/metadata",
+ "apiVersion": "2022-01-01-preview",
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('HuntingQuery-', last(split(resourceId('Microsoft.OperationalInsights/savedSearches', variables('huntingQueryObject2')._huntingQuerycontentId2),'/'))))]",
+ "properties": {
+ "description": "DugganUSA Threat Intelligence Hunting Query 2",
+ "parentId": "[resourceId('Microsoft.OperationalInsights/savedSearches', variables('huntingQueryObject2')._huntingQuerycontentId2)]",
+ "contentId": "[variables('huntingQueryObject2')._huntingQuerycontentId2]",
+ "kind": "HuntingQuery",
+ "version": "[variables('huntingQueryObject2').huntingQueryVersion2]",
+ "source": {
+ "kind": "Solution",
+ "name": "DugganUSA Threat Intelligence",
+ "sourceId": "[variables('_solutionId')]"
+ },
+ "author": {
+ "name": "DugganUSA LLC",
+ "email": "[variables('_email')]"
+ },
+ "support": {
+ "name": "DugganUSA LLC",
+ "email": "butterbot@dugganusa.com",
+ "tier": "Community",
+ "link": "https://www.dugganusa.com"
+ }
+ }
+ }
+ ]
+ },
+ "packageKind": "Solution",
+ "packageVersion": "[variables('_solutionVersion')]",
+ "packageName": "[variables('_solutionName')]",
+ "packageId": "[variables('_solutionId')]",
+ "contentSchemaVersion": "3.0.0",
+ "contentId": "[variables('huntingQueryObject2')._huntingQuerycontentId2]",
+ "contentKind": "HuntingQuery",
+ "displayName": "DugganUSA - domain indicator resolved in DNS",
+ "contentProductId": "[concat(take(variables('_solutionId'),50),'-','hq','-', uniqueString(concat(variables('_solutionId'),'-','HuntingQuery','-',variables('huntingQueryObject2')._huntingQuerycontentId2,'-', '1.0.0')))]",
+ "id": "[concat(take(variables('_solutionId'),50),'-','hq','-', uniqueString(concat(variables('_solutionId'),'-','HuntingQuery','-',variables('huntingQueryObject2')._huntingQuerycontentId2,'-', '1.0.0')))]",
+ "version": "1.0.0"
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[variables('huntingQueryObject3').huntingQueryTemplateSpecName3]",
+ "location": "[parameters('workspace-location')]",
+ "dependsOn": [
+ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]"
+ ],
+ "properties": {
+ "description": "DugganUSAIPIndicatorDeviceNetworkEvents_HuntingQueries Hunting Query with template version 3.0.2",
+ "mainTemplate": {
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "[variables('huntingQueryObject3').huntingQueryVersion3]",
+ "parameters": {},
+ "variables": {},
+ "resources": [
+ {
+ "type": "Microsoft.OperationalInsights/savedSearches",
+ "apiVersion": "2025-07-01",
+ "name": "DugganUSA_Threat_Intelligence_Hunting_Query_3",
+ "location": "[parameters('workspace-location')]",
+ "properties": {
+ "eTag": "*",
+ "displayName": "DugganUSA - device connected to an IP indicator (Defender for Endpoint)",
+ "category": "Hunting Queries",
+ "query": "let dugganusa_identity = \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\";\nlet confidence_floor = 80; // your dial: raise it for fewer, surer matches\n// IPv6 has many spellings (2001:db8::1 = 2001:0db8:0:0:0:0:0:1): join on parse_ipv6, which gives one canonical form.\nlet ipkey = (ip:string) { iff(ip has \":\", tostring(parse_ipv6(ip)), tolower(ip)) };\nlet lookback = 1d;\nlet DugganUSA_IPs =\n ThreatIntelIndicators\n | where TimeGenerated > ago(14d)\n | where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == dugganusa_identity\n | summarize arg_max(TimeGenerated, *) by Id\n | where IsActive == true and IsDeleted == false\n | where isempty(ValidUntil) or ValidUntil > now()\n | where Confidence >= confidence_floor\n | where ObservableKey in (\"ipv4-addr:value\", \"ipv6-addr:value\")\n | project IndicatorIp = tostring(ObservableValue), IpKey = ipkey(tostring(ObservableValue)), Confidence,\n IndicatorName = tostring(Data.name), IndicatorDescription = tostring(Data.description),\n IndicatorStixId = tostring(Data.id), IndicatorTags = Tags, IndicatorValidUntil = ValidUntil\n | summarize arg_max(Confidence, *) by IpKey;\nDugganUSA_IPs\n| join kind=inner (\n DeviceNetworkEvents\n | where Timestamp > ago(lookback)\n | where RemoteIPType == \"Public\"\n | project Timestamp, DeviceId, DeviceName, ReportId, ActionType, RemoteIP, RemotePort, RemoteUrl, LocalIP,\n Protocol, InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessAccountUpn,\n InitiatingProcessSHA1\n | extend IpKey = ipkey(RemoteIP)\n ) on IpKey\n| project Timestamp, DeviceId, DeviceName, ReportId, ActionType, RemoteIP, RemotePort, RemoteUrl, LocalIP, Protocol,\n InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessAccountUpn, InitiatingProcessSHA1,\n Confidence, IndicatorName, IndicatorDescription, IndicatorStixId, IndicatorTags, IndicatorValidUntil\n| order by Confidence desc, Timestamp desc\n",
+ "version": 2,
+ "tags": [
+ {
+ "name": "description",
+ "value": "Devices that connected to, or accepted a connection from, an active DugganUSA IP indicator, from Defender for Endpoint DeviceNetworkEvents. The confidence floor (default 80) is your dial."
+ },
+ {
+ "name": "tactics",
+ "value": "CommandAndControl"
+ },
+ {
+ "name": "techniques",
+ "value": "T1071"
+ }
+ ]
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/metadata",
+ "apiVersion": "2022-01-01-preview",
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('HuntingQuery-', last(split(resourceId('Microsoft.OperationalInsights/savedSearches', variables('huntingQueryObject3')._huntingQuerycontentId3),'/'))))]",
+ "properties": {
+ "description": "DugganUSA Threat Intelligence Hunting Query 3",
+ "parentId": "[resourceId('Microsoft.OperationalInsights/savedSearches', variables('huntingQueryObject3')._huntingQuerycontentId3)]",
+ "contentId": "[variables('huntingQueryObject3')._huntingQuerycontentId3]",
+ "kind": "HuntingQuery",
+ "version": "[variables('huntingQueryObject3').huntingQueryVersion3]",
+ "source": {
+ "kind": "Solution",
+ "name": "DugganUSA Threat Intelligence",
+ "sourceId": "[variables('_solutionId')]"
+ },
+ "author": {
+ "name": "DugganUSA LLC",
+ "email": "[variables('_email')]"
+ },
+ "support": {
+ "name": "DugganUSA LLC",
+ "email": "butterbot@dugganusa.com",
+ "tier": "Community",
+ "link": "https://www.dugganusa.com"
+ }
+ }
+ }
+ ]
+ },
+ "packageKind": "Solution",
+ "packageVersion": "[variables('_solutionVersion')]",
+ "packageName": "[variables('_solutionName')]",
+ "packageId": "[variables('_solutionId')]",
+ "contentSchemaVersion": "3.0.0",
+ "contentId": "[variables('huntingQueryObject3')._huntingQuerycontentId3]",
+ "contentKind": "HuntingQuery",
+ "displayName": "DugganUSA - device connected to an IP indicator (Defender for Endpoint)",
+ "contentProductId": "[concat(take(variables('_solutionId'),50),'-','hq','-', uniqueString(concat(variables('_solutionId'),'-','HuntingQuery','-',variables('huntingQueryObject3')._huntingQuerycontentId3,'-', '1.0.0')))]",
+ "id": "[concat(take(variables('_solutionId'),50),'-','hq','-', uniqueString(concat(variables('_solutionId'),'-','HuntingQuery','-',variables('huntingQueryObject3')._huntingQuerycontentId3,'-', '1.0.0')))]",
+ "version": "1.0.0"
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[variables('huntingQueryObject4').huntingQueryTemplateSpecName4]",
+ "location": "[parameters('workspace-location')]",
+ "dependsOn": [
+ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]"
+ ],
+ "properties": {
+ "description": "DugganUSADomainUrlIndicatorDeviceNetworkEvents_HuntingQueries Hunting Query with template version 3.0.2",
+ "mainTemplate": {
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "[variables('huntingQueryObject4').huntingQueryVersion4]",
+ "parameters": {},
+ "variables": {},
+ "resources": [
+ {
+ "type": "Microsoft.OperationalInsights/savedSearches",
+ "apiVersion": "2025-07-01",
+ "name": "DugganUSA_Threat_Intelligence_Hunting_Query_4",
+ "location": "[parameters('workspace-location')]",
+ "properties": {
+ "eTag": "*",
+ "displayName": "DugganUSA - device reached a domain or URL indicator (Defender for Endpoint)",
+ "category": "Hunting Queries",
+ "query": "let dugganusa_identity = \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\";\nlet confidence_floor = 80;\nlet lookback = 1d;\n// URL key: scheme and host lowercased (case-insensitive), path and query kept as written (case-sensitive);\n// only a bare \"/\" path is dropped, so http://a.com/ and http://a.com match but /Payload and /payload do not.\nlet urlkey = (u:string) {\n let pre = iff(u has \"://\", extract(@\"^([^:/?#]+://[^/?#]*)\", 1, u), extract(@\"^([^/?#]*)\", 1, u));\n let rest = substring(u, strlen(pre));\n strcat(tolower(trim_end(@\"\\.\", pre)), iff(rest == \"/\", \"\", rest))\n};\nlet DugganUSA =\n ThreatIntelIndicators\n | where TimeGenerated > ago(14d)\n | where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == dugganusa_identity\n | summarize arg_max(TimeGenerated, *) by Id\n | where IsActive == true and IsDeleted == false\n | where isempty(ValidUntil) or ValidUntil > now()\n | where Confidence >= confidence_floor\n | where ObservableKey in (\"domain-name:value\", \"url:value\")\n | extend Key = iff(ObservableKey == \"url:value\",\n strcat(\"url|\", urlkey(tostring(ObservableValue))),\n strcat(\"dom|\", tolower(trim_end(@\"\\.\", tostring(ObservableValue)))))\n | where not(Key matches regex @\"^dom\\|\\d{1,3}(\\.\\d{1,3}){3}$\")\n | project Key, Confidence, IndicatorType = ObservableKey,\n IndicatorName = tostring(Data.name), IndicatorDescription = tostring(Data.description),\n IndicatorStixId = tostring(Data.id), IndicatorTags = Tags\n | summarize arg_max(Confidence, *) by Key;\nlet Traffic =\n DeviceNetworkEvents\n | where Timestamp > ago(lookback)\n | where isnotempty(RemoteUrl)\n | extend Host = tolower(trim_end(@\"\\.\", tostring(parse_url(iff(RemoteUrl has \"://\", RemoteUrl, strcat(\"http://\", RemoteUrl))).Host)))\n | where isnotempty(Host)\n // Every parent of the host down to two labels, so x.a.b.example.co.uk can match a.b.example.co.uk.\n | extend Labels = split(Host, \".\")\n | extend Candidates = array_concat(pack_array(strcat(\"url|\", urlkey(RemoteUrl))),\n iff(array_length(Labels) >= 2, range(0, array_length(Labels) - 2, 1), dynamic([])))\n | mv-expand Candidate = Candidates\n | extend Key = iff(tostring(Candidate) startswith \"url|\", tostring(Candidate), strcat(\"dom|\", strcat_array(array_slice(Labels, toint(Candidate), -1), \".\")))\n | distinct Timestamp, DeviceId, DeviceName, ReportId, ActionType, RemoteIP, RemotePort, RemoteUrl, Host, Key,\n InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessAccountUpn;\nDugganUSA\n| join kind=inner Traffic on Key\n| extend MatchType = case(IndicatorType == \"url:value\", \"exact URL\",\n Key == strcat(\"dom|\", Host), \"exact host\", \"parent domain\")\n// ReportId repeats over time on a device: Timestamp is part of the event identity.\n| summarize arg_max(Confidence, *) by Timestamp, ReportId, DeviceId\n| project Timestamp, DeviceId, DeviceName, ReportId, ActionType, RemoteUrl, RemoteIP, RemotePort, MatchType,\n MatchedIndicator = substring(Key, 4), IndicatorType, Confidence, IndicatorName, IndicatorDescription,\n IndicatorStixId, IndicatorTags, InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessAccountUpn\n| order by Confidence desc, Timestamp desc\n",
+ "version": 2,
+ "tags": [
+ {
+ "name": "description",
+ "value": "Devices whose network connections reached a DugganUSA domain (exact host or subdomain) or URL indicator, from Defender for Endpoint DeviceNetworkEvents.RemoteUrl."
+ },
+ {
+ "name": "tactics",
+ "value": "CommandAndControl"
+ },
+ {
+ "name": "techniques",
+ "value": "T1071,T1568"
+ }
+ ]
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/metadata",
+ "apiVersion": "2022-01-01-preview",
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('HuntingQuery-', last(split(resourceId('Microsoft.OperationalInsights/savedSearches', variables('huntingQueryObject4')._huntingQuerycontentId4),'/'))))]",
+ "properties": {
+ "description": "DugganUSA Threat Intelligence Hunting Query 4",
+ "parentId": "[resourceId('Microsoft.OperationalInsights/savedSearches', variables('huntingQueryObject4')._huntingQuerycontentId4)]",
+ "contentId": "[variables('huntingQueryObject4')._huntingQuerycontentId4]",
+ "kind": "HuntingQuery",
+ "version": "[variables('huntingQueryObject4').huntingQueryVersion4]",
+ "source": {
+ "kind": "Solution",
+ "name": "DugganUSA Threat Intelligence",
+ "sourceId": "[variables('_solutionId')]"
+ },
+ "author": {
+ "name": "DugganUSA LLC",
+ "email": "[variables('_email')]"
+ },
+ "support": {
+ "name": "DugganUSA LLC",
+ "email": "butterbot@dugganusa.com",
+ "tier": "Community",
+ "link": "https://www.dugganusa.com"
+ }
+ }
+ }
+ ]
+ },
+ "packageKind": "Solution",
+ "packageVersion": "[variables('_solutionVersion')]",
+ "packageName": "[variables('_solutionName')]",
+ "packageId": "[variables('_solutionId')]",
+ "contentSchemaVersion": "3.0.0",
+ "contentId": "[variables('huntingQueryObject4')._huntingQuerycontentId4]",
+ "contentKind": "HuntingQuery",
+ "displayName": "DugganUSA - device reached a domain or URL indicator (Defender for Endpoint)",
+ "contentProductId": "[concat(take(variables('_solutionId'),50),'-','hq','-', uniqueString(concat(variables('_solutionId'),'-','HuntingQuery','-',variables('huntingQueryObject4')._huntingQuerycontentId4,'-', '1.0.0')))]",
+ "id": "[concat(take(variables('_solutionId'),50),'-','hq','-', uniqueString(concat(variables('_solutionId'),'-','HuntingQuery','-',variables('huntingQueryObject4')._huntingQuerycontentId4,'-', '1.0.0')))]",
+ "version": "1.0.0"
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[variables('huntingQueryObject5').huntingQueryTemplateSpecName5]",
+ "location": "[parameters('workspace-location')]",
+ "dependsOn": [
+ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]"
+ ],
+ "properties": {
+ "description": "DugganUSAIndicatorEmailUrlsAndClicks_HuntingQueries Hunting Query with template version 3.0.2",
+ "mainTemplate": {
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "[variables('huntingQueryObject5').huntingQueryVersion5]",
+ "parameters": {},
+ "variables": {},
+ "resources": [
+ {
+ "type": "Microsoft.OperationalInsights/savedSearches",
+ "apiVersion": "2025-07-01",
+ "name": "DugganUSA_Threat_Intelligence_Hunting_Query_5",
+ "location": "[parameters('workspace-location')]",
+ "properties": {
+ "eTag": "*",
+ "displayName": "DugganUSA - email carried an indicator, and who clicked (Defender for Office 365)",
+ "category": "Hunting Queries",
+ "query": "let dugganusa_identity = \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\";\nlet confidence_floor = 80;\nlet lookback = 1d;\n// URL key: scheme and host lowercased (case-insensitive), path and query kept as written (case-sensitive);\n// only a bare \"/\" path is dropped, so http://a.com/ and http://a.com match but /Payload and /payload do not.\nlet urlkey = (u:string) {\n let pre = iff(u has \"://\", extract(@\"^([^:/?#]+://[^/?#]*)\", 1, u), extract(@\"^([^/?#]*)\", 1, u));\n let rest = substring(u, strlen(pre));\n strcat(tolower(trim_end(@\"\\.\", pre)), iff(rest == \"/\", \"\", rest))\n};\nlet DugganUSA =\n ThreatIntelIndicators\n | where TimeGenerated > ago(14d)\n | where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == dugganusa_identity\n | summarize arg_max(TimeGenerated, *) by Id\n | where IsActive == true and IsDeleted == false\n | where isempty(ValidUntil) or ValidUntil > now()\n | where Confidence >= confidence_floor\n | where ObservableKey in (\"domain-name:value\", \"url:value\", \"ipv4-addr:value\")\n | extend Key = case(\n ObservableKey == \"url:value\", strcat(\"url|\", urlkey(tostring(ObservableValue))),\n ObservableKey == \"ipv4-addr:value\", strcat(\"ip|\", tostring(ObservableValue)),\n strcat(\"dom|\", tolower(trim_end(@\"\\.\", tostring(ObservableValue)))))\n | where not(Key matches regex @\"^dom\\|\\d{1,3}(\\.\\d{1,3}){3}$\")\n | project Key, Confidence, IndicatorType = ObservableKey, IndicatorName = tostring(Data.name),\n IndicatorDescription = tostring(Data.description), IndicatorStixId = tostring(Data.id)\n | summarize arg_max(Confidence, *) by Key;\nlet UrlHits =\n EmailUrlInfo\n | where Timestamp > ago(lookback)\n | extend Candidates = pack_array(strcat(\"dom|\", tolower(UrlDomain)), strcat(\"url|\", urlkey(Url)))\n | mv-expand Key = Candidates to typeof(string)\n | join kind=inner DugganUSA on Key\n | project NetworkMessageId, MatchedOn = strcat(\"URL in body: \", Url), Url, ClickKey = urlkey(Url), Key, Confidence, IndicatorType,\n IndicatorName, IndicatorDescription, IndicatorStixId;\nlet SenderHits =\n EmailEvents\n | where Timestamp > ago(lookback)\n | extend Candidates = pack_array(strcat(\"dom|\", tolower(SenderFromDomain)), strcat(\"dom|\", tolower(SenderMailFromDomain)),\n strcat(\"ip|\", SenderIPv4))\n | mv-expand Key = Candidates to typeof(string)\n | join kind=inner DugganUSA on Key\n | project NetworkMessageId, MatchedOn = strcat(\"Sender: \", substring(Key, indexof(Key, \"|\") + 1)), Url = \"\", ClickKey = \"\", Key,\n Confidence, IndicatorType, IndicatorName, IndicatorDescription, IndicatorStixId;\nlet Hits = union UrlHits, SenderHits\n | summarize arg_max(Confidence, *) by NetworkMessageId;\nHits\n| join kind=inner (\n EmailEvents\n | where Timestamp > ago(lookback)\n | project Timestamp, ReportId, NetworkMessageId, RecipientEmailAddress, SenderFromAddress, SenderFromDomain,\n SenderIPv4, Subject, DeliveryAction, DeliveryLocation, ThreatTypes, EmailDirection\n ) on NetworkMessageId\n| extend Recipient = tolower(RecipientEmailAddress)\n// Clicks are counted on the matched URL itself; for a sender match (no URL) any click in that message counts.\n| join kind=leftouter (\n UrlClickEvents\n | where Timestamp > ago(lookback)\n | extend ClickedBy = tolower(AccountUpn), UrlClicked = urlkey(Url)\n | mv-expand ClickKey = pack_array(UrlClicked, \"\") to typeof(string)\n | summarize Clicks = count(), ClickedThrough = countif(IsClickedThrough == true),\n ClickActions = make_set(ActionType, 5), LastClick = max(Timestamp)\n by NetworkMessageId, ClickedBy, ClickKey\n ) on NetworkMessageId, $left.Recipient == $right.ClickedBy, ClickKey\n| project Timestamp, ReportId, NetworkMessageId, RecipientEmailAddress, SenderFromAddress, SenderIPv4, Subject,\n DeliveryAction, DeliveryLocation, MatchedOn, Url, Confidence, IndicatorType, IndicatorName, IndicatorDescription,\n IndicatorStixId, Clicks = coalesce(Clicks, 0), ClickedThrough = coalesce(ClickedThrough, 0), ClickActions, LastClick\n| order by ClickedThrough desc, Confidence desc, Timestamp desc\n",
+ "version": 2,
+ "tags": [
+ {
+ "name": "description",
+ "value": "Messages carrying a DugganUSA URL or domain indicator, or sent from a DugganUSA sender domain or IP, with Safe Links click-through outcome. Needs Defender for Office 365."
+ },
+ {
+ "name": "tactics",
+ "value": "InitialAccess"
+ },
+ {
+ "name": "techniques",
+ "value": "T1566"
+ }
+ ]
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/metadata",
+ "apiVersion": "2022-01-01-preview",
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('HuntingQuery-', last(split(resourceId('Microsoft.OperationalInsights/savedSearches', variables('huntingQueryObject5')._huntingQuerycontentId5),'/'))))]",
+ "properties": {
+ "description": "DugganUSA Threat Intelligence Hunting Query 5",
+ "parentId": "[resourceId('Microsoft.OperationalInsights/savedSearches', variables('huntingQueryObject5')._huntingQuerycontentId5)]",
+ "contentId": "[variables('huntingQueryObject5')._huntingQuerycontentId5]",
+ "kind": "HuntingQuery",
+ "version": "[variables('huntingQueryObject5').huntingQueryVersion5]",
+ "source": {
+ "kind": "Solution",
+ "name": "DugganUSA Threat Intelligence",
+ "sourceId": "[variables('_solutionId')]"
+ },
+ "author": {
+ "name": "DugganUSA LLC",
+ "email": "[variables('_email')]"
+ },
+ "support": {
+ "name": "DugganUSA LLC",
+ "email": "butterbot@dugganusa.com",
+ "tier": "Community",
+ "link": "https://www.dugganusa.com"
+ }
+ }
+ }
+ ]
+ },
+ "packageKind": "Solution",
+ "packageVersion": "[variables('_solutionVersion')]",
+ "packageName": "[variables('_solutionName')]",
+ "packageId": "[variables('_solutionId')]",
+ "contentSchemaVersion": "3.0.0",
+ "contentId": "[variables('huntingQueryObject5')._huntingQuerycontentId5]",
+ "contentKind": "HuntingQuery",
+ "displayName": "DugganUSA - email carried an indicator, and who clicked (Defender for Office 365)",
+ "contentProductId": "[concat(take(variables('_solutionId'),50),'-','hq','-', uniqueString(concat(variables('_solutionId'),'-','HuntingQuery','-',variables('huntingQueryObject5')._huntingQuerycontentId5,'-', '1.0.0')))]",
+ "id": "[concat(take(variables('_solutionId'),50),'-','hq','-', uniqueString(concat(variables('_solutionId'),'-','HuntingQuery','-',variables('huntingQueryObject5')._huntingQuerycontentId5,'-', '1.0.0')))]",
+ "version": "1.0.0"
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[variables('huntingQueryObject6').huntingQueryTemplateSpecName6]",
+ "location": "[parameters('workspace-location')]",
+ "dependsOn": [
+ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]"
+ ],
+ "properties": {
+ "description": "DugganUSAFileHashIndicatorDeviceEvents_HuntingQueries Hunting Query with template version 3.0.2",
+ "mainTemplate": {
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "[variables('huntingQueryObject6').huntingQueryVersion6]",
+ "parameters": {},
+ "variables": {},
+ "resources": [
+ {
+ "type": "Microsoft.OperationalInsights/savedSearches",
+ "apiVersion": "2025-07-01",
+ "name": "DugganUSA_Threat_Intelligence_Hunting_Query_6",
+ "location": "[parameters('workspace-location')]",
+ "properties": {
+ "eTag": "*",
+ "displayName": "DugganUSA - file or process matched a file-hash indicator (Defender for Endpoint)",
+ "category": "Hunting Queries",
+ "query": "let dugganusa_identity = \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\";\nlet confidence_floor = 80;\nlet lookback = 1d;\nlet DugganUSA_Hashes =\n ThreatIntelIndicators\n | where TimeGenerated > ago(14d)\n | where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == dugganusa_identity\n | summarize arg_max(TimeGenerated, *) by Id\n | where IsActive == true and IsDeleted == false\n | where isempty(ValidUntil) or ValidUntil > now()\n | where Confidence >= confidence_floor\n | where ObservableKey startswith \"file:hashes\"\n | project Hash = tolower(tostring(ObservableValue)), Confidence, IndicatorName = tostring(Data.name),\n IndicatorDescription = tostring(Data.description), IndicatorStixId = tostring(Data.id), IndicatorTags = Tags\n | summarize arg_max(Confidence, *) by Hash;\nlet FileActivity =\n union\n (DeviceFileEvents\n | where Timestamp > ago(lookback)\n | project Timestamp, DeviceId, DeviceName, ReportId, ActionType, FileName, FolderPath, SHA256, SHA1, MD5,\n FileOriginUrl, AccountUpn = InitiatingProcessAccountUpn, InitiatingProcessFileName, Source = \"DeviceFileEvents\"),\n (DeviceProcessEvents\n | where Timestamp > ago(lookback)\n | project Timestamp, DeviceId, DeviceName, ReportId, ActionType, FileName, FolderPath, SHA256, SHA1, MD5,\n FileOriginUrl = \"\", AccountUpn, InitiatingProcessFileName, Source = \"DeviceProcessEvents\")\n | extend Candidates = pack_array(tolower(SHA256), tolower(SHA1), tolower(MD5))\n | mv-expand Hash = Candidates to typeof(string)\n | where isnotempty(Hash);\nDugganUSA_Hashes\n| join kind=inner FileActivity on Hash\n| project Timestamp, DeviceId, DeviceName, ReportId, Source, ActionType, FileName, FolderPath, SHA256, SHA1, MD5,\n MatchedHash = Hash, FileOriginUrl, AccountUpn, InitiatingProcessFileName, Confidence, IndicatorName,\n IndicatorDescription, IndicatorStixId, IndicatorTags\n| order by Confidence desc, Timestamp desc\n",
+ "version": 2,
+ "tags": [
+ {
+ "name": "description",
+ "value": "Files written or processes run whose SHA-256, SHA-1 or MD5 is a DugganUSA file-hash indicator, from DeviceFileEvents and DeviceProcessEvents."
+ },
+ {
+ "name": "tactics",
+ "value": "Execution"
+ },
+ {
+ "name": "techniques",
+ "value": "T1204"
+ }
+ ]
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/metadata",
+ "apiVersion": "2022-01-01-preview",
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('HuntingQuery-', last(split(resourceId('Microsoft.OperationalInsights/savedSearches', variables('huntingQueryObject6')._huntingQuerycontentId6),'/'))))]",
+ "properties": {
+ "description": "DugganUSA Threat Intelligence Hunting Query 6",
+ "parentId": "[resourceId('Microsoft.OperationalInsights/savedSearches', variables('huntingQueryObject6')._huntingQuerycontentId6)]",
+ "contentId": "[variables('huntingQueryObject6')._huntingQuerycontentId6]",
+ "kind": "HuntingQuery",
+ "version": "[variables('huntingQueryObject6').huntingQueryVersion6]",
+ "source": {
+ "kind": "Solution",
+ "name": "DugganUSA Threat Intelligence",
+ "sourceId": "[variables('_solutionId')]"
+ },
+ "author": {
+ "name": "DugganUSA LLC",
+ "email": "[variables('_email')]"
+ },
+ "support": {
+ "name": "DugganUSA LLC",
+ "email": "butterbot@dugganusa.com",
+ "tier": "Community",
+ "link": "https://www.dugganusa.com"
+ }
+ }
+ }
+ ]
+ },
+ "packageKind": "Solution",
+ "packageVersion": "[variables('_solutionVersion')]",
+ "packageName": "[variables('_solutionName')]",
+ "packageId": "[variables('_solutionId')]",
+ "contentSchemaVersion": "3.0.0",
+ "contentId": "[variables('huntingQueryObject6')._huntingQuerycontentId6]",
+ "contentKind": "HuntingQuery",
+ "displayName": "DugganUSA - file or process matched a file-hash indicator (Defender for Endpoint)",
+ "contentProductId": "[concat(take(variables('_solutionId'),50),'-','hq','-', uniqueString(concat(variables('_solutionId'),'-','HuntingQuery','-',variables('huntingQueryObject6')._huntingQuerycontentId6,'-', '1.0.0')))]",
+ "id": "[concat(take(variables('_solutionId'),50),'-','hq','-', uniqueString(concat(variables('_solutionId'),'-','HuntingQuery','-',variables('huntingQueryObject6')._huntingQuerycontentId6,'-', '1.0.0')))]",
+ "version": "1.0.0"
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[variables('huntingQueryObject7').huntingQueryTemplateSpecName7]",
+ "location": "[parameters('workspace-location')]",
+ "dependsOn": [
+ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]"
+ ],
+ "properties": {
+ "description": "DugganUSARetroHunt_HuntingQueries Hunting Query with template version 3.0.2",
+ "mainTemplate": {
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "[variables('huntingQueryObject7').huntingQueryVersion7]",
+ "parameters": {},
+ "variables": {},
+ "resources": [
+ {
+ "type": "Microsoft.OperationalInsights/savedSearches",
+ "apiVersion": "2025-07-01",
+ "name": "DugganUSA_Threat_Intelligence_Hunting_Query_7",
+ "location": "[parameters('workspace-location')]",
+ "properties": {
+ "eTag": "*",
+ "displayName": "DugganUSA - retro-hunt, which indicators already reached you (last 30 days)",
+ "category": "Hunting Queries",
+ "query": "let dugganusa_identity = \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\";\nlet confidence_floor = 80; // your dial\nlet lookback = 30d; // limited by your workspace retention\n// IPv6 has many spellings (2001:db8::1 = 2001:0db8:0:0:0:0:0:1): join on parse_ipv6, which gives one canonical form.\nlet ipkey = (ip:string) { iff(ip has \":\", tostring(parse_ipv6(ip)), tolower(ip)) };\n// Microsoft 365 ClientIP comes as 1.2.3.4, 1.2.3.4:port, [2001:db8::1]:port or 2001:db8::1. Strip a port only where one can exist.\nlet officeip = (s:string) { case(s matches regex @\"^\\d{1,3}(\\.\\d{1,3}){3}:\\d+$\", tostring(split(s, \":\")[0]), s startswith \"[\", extract(@\"^\\[([^\\]]+)\\]\", 1, s), s) };\nlet Indicators =\n ThreatIntelIndicators\n | where TimeGenerated > ago(14d)\n | where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == dugganusa_identity\n | summarize arg_max(TimeGenerated, *) by Id\n | where IsActive == true and IsDeleted == false\n | where isempty(ValidUntil) or ValidUntil > now()\n | where Confidence >= confidence_floor\n | where ObservableKey in (\"ipv4-addr:value\", \"ipv6-addr:value\", \"domain-name:value\")\n | extend Kind = tostring(split(ObservableKey, \":\")[0])\n | extend Indicator = iff(Kind == \"domain-name\", trim_end(@\"\\.\", tolower(tostring(ObservableValue))), ipkey(tostring(ObservableValue)))\n | where isnotempty(Indicator)\n | summarize arg_max(Confidence, IndicatorName = tostring(Data.name), Kind, IndicatorValue = tostring(ObservableValue)) by Indicator;\nlet Seen = union isfuzzy=true\n (SigninLogs | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = ipkey(IPAddress), Source = \"Entra sign-in\"),\n (AADNonInteractiveUserSignInLogs | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = ipkey(IPAddress), Source = \"Entra sign-in (non-interactive)\"),\n (DeviceNetworkEvents | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = ipkey(RemoteIP), Source = \"Defender for Endpoint network\"),\n (DeviceNetworkEvents | where TimeGenerated > ago(lookback) | where isnotempty(RemoteUrl) | project TimeGenerated, Indicator = tolower(tostring(coalesce(tostring(parse_url(RemoteUrl).Host), RemoteUrl))), Source = \"Defender for Endpoint network (host)\"),\n (EmailUrlInfo | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = tolower(UrlDomain), Source = \"Email URL\"),\n (UrlClickEvents | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = tolower(tostring(parse_url(Url).Host)), Source = \"Email URL click\"),\n (DnsEvents | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = trim_end(@\"\\.\", tolower(Name)), Source = \"Windows DNS\"),\n (CommonSecurityLog | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = ipkey(SourceIP), Source = \"Firewall (inbound source)\"),\n (CommonSecurityLog | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = ipkey(DestinationIP), Source = \"Firewall (outbound destination)\"),\n (OfficeActivity | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = ipkey(officeip(tostring(ClientIP))), Source = \"Microsoft 365 activity\"),\n (AzureActivity | where TimeGenerated > ago(lookback) | project TimeGenerated, Indicator = ipkey(CallerIpAddress), Source = \"Azure activity\")\n | where isnotempty(Indicator);\nIndicators\n| join kind=inner (Seen | summarize Hits = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by Indicator, Source) on Indicator\n// Separate columns per entity type: an IP entity gets only IPs, a DNS entity only domains.\n| extend IpAddress = iff(Kind != \"domain-name\", IndicatorValue, \"\"), DomainName = iff(Kind == \"domain-name\", Indicator, \"\")\n| project Indicator = IndicatorValue, Kind, Source, Hits, FirstSeen, LastSeen, Confidence, IndicatorName, IpAddress, DomainName\n| order by Confidence desc, Hits desc\n",
+ "version": 2,
+ "tags": [
+ {
+ "name": "description",
+ "value": "Run once after connecting the DugganUSA feed, then monthly. Matches every active DugganUSA IP and domain indicator against the last 30 days of the logs this workspace already holds: Entra ID sign-ins, Defender for Endpoint network events, Defender for Office email URLs and clicks, Windows DNS events, CEF/Syslog firewalls (CommonSecurityLog), Microsoft 365 activity and Azure activity. One row per indicator and table, with first and last seen and a count. Tables the workspace does not have are skipped. The confidence floor (default 80) is your dial. A row is a match against your own logs, not proof of compromise: read the table and direction before acting."
+ },
+ {
+ "name": "tactics",
+ "value": "InitialAccess,CommandAndControl"
+ },
+ {
+ "name": "techniques",
+ "value": "T1078,T1071"
+ }
+ ]
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/metadata",
+ "apiVersion": "2022-01-01-preview",
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('HuntingQuery-', last(split(resourceId('Microsoft.OperationalInsights/savedSearches', variables('huntingQueryObject7')._huntingQuerycontentId7),'/'))))]",
+ "properties": {
+ "description": "DugganUSA Threat Intelligence Hunting Query 7",
+ "parentId": "[resourceId('Microsoft.OperationalInsights/savedSearches', variables('huntingQueryObject7')._huntingQuerycontentId7)]",
+ "contentId": "[variables('huntingQueryObject7')._huntingQuerycontentId7]",
+ "kind": "HuntingQuery",
+ "version": "[variables('huntingQueryObject7').huntingQueryVersion7]",
+ "source": {
+ "kind": "Solution",
+ "name": "DugganUSA Threat Intelligence",
+ "sourceId": "[variables('_solutionId')]"
+ },
+ "author": {
+ "name": "DugganUSA LLC",
+ "email": "[variables('_email')]"
+ },
+ "support": {
+ "name": "DugganUSA LLC",
+ "email": "butterbot@dugganusa.com",
+ "tier": "Community",
+ "link": "https://www.dugganusa.com"
+ }
+ }
+ }
+ ]
+ },
+ "packageKind": "Solution",
+ "packageVersion": "[variables('_solutionVersion')]",
+ "packageName": "[variables('_solutionName')]",
+ "packageId": "[variables('_solutionId')]",
+ "contentSchemaVersion": "3.0.0",
+ "contentId": "[variables('huntingQueryObject7')._huntingQuerycontentId7]",
+ "contentKind": "HuntingQuery",
+ "displayName": "DugganUSA - retro-hunt, which indicators already reached you (last 30 days)",
+ "contentProductId": "[concat(take(variables('_solutionId'),50),'-','hq','-', uniqueString(concat(variables('_solutionId'),'-','HuntingQuery','-',variables('huntingQueryObject7')._huntingQuerycontentId7,'-', '1.0.0')))]",
+ "id": "[concat(take(variables('_solutionId'),50),'-','hq','-', uniqueString(concat(variables('_solutionId'),'-','HuntingQuery','-',variables('huntingQueryObject7')._huntingQuerycontentId7,'-', '1.0.0')))]",
+ "version": "1.0.0"
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[variables('huntingQueryObject8').huntingQueryTemplateSpecName8]",
+ "location": "[parameters('workspace-location')]",
+ "dependsOn": [
+ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]"
+ ],
+ "properties": {
+ "description": "DugganUSALeakedSecretSweep_HuntingQueries Hunting Query with template version 3.0.2",
+ "mainTemplate": {
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "[variables('huntingQueryObject8').huntingQueryVersion8]",
+ "parameters": {},
+ "variables": {},
+ "resources": [
+ {
+ "type": "Microsoft.OperationalInsights/savedSearches",
+ "apiVersion": "2025-07-01",
+ "name": "DugganUSA_Threat_Intelligence_Hunting_Query_8",
+ "location": "[parameters('workspace-location')]",
+ "properties": {
+ "eTag": "*",
+ "displayName": "DugganUSA - key-shaped secrets already in your logs (30-day sweep)",
+ "category": "Hunting Queries",
+ "query": "let lookback = 30d; // your workspace retention is the real limit\n// Known key formats. One capture group; the type is decided from the captured value below.\nlet known_rx = @\"((?:AKIA|ASIA)[0-9A-Z]{16}|gh[pousr]_[A-Za-z0-9]{36,255}|github_pat_[A-Za-z0-9_]{60,255}|xox[baprs]-[A-Za-z0-9-]{10,}|(?:sk|rk)_live_[A-Za-z0-9]{20,}|sk-ant-[A-Za-z0-9_-]{20,}|sk-proj-[A-Za-z0-9_-]{20,}|sk-[A-Za-z0-9]{40,}|AIza[0-9A-Za-z_-]{35}|npm_[A-Za-z0-9]{36}|AccountKey=[A-Za-z0-9+/]{86}==|sig=[A-Za-z0-9%+/=]{40,}|-----BEGIN (?:RSA |EC |OPENSSH |DSA |ENCRYPTED )?PRIVATE KEY-----[\\\\A-Za-z0-9+/= \\t\\r\\n]*(?:-----END (?:RSA |EC |OPENSSH |DSA |ENCRYPTED )?PRIVATE KEY-----)?|dugusa_[A-Za-z0-9_-]{30,}|eyJ[A-Za-z0-9_-]{10,}\\.eyJ[A-Za-z0-9_-]{10,}\\.[A-Za-z0-9_-]{10,})\";\n// Opaque bearer tokens that match no known format.\nlet bearer_rx = @\"[Bb]earer\\s+([A-Za-z0-9._~+/=-]{30,})\";\nlet Sources = union isfuzzy=true\n (print TimeGenerated = now(), SourceTable = \"\", Column = \"\", Text = \"\", ResourceId = \"\", Host = \"\" | where false),\n (AzureDiagnostics | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"AzureDiagnostics\", Column = \"(all columns)\", Text = tostring(pack_all()), ResourceId = _ResourceId, Host = \"\"),\n (Syslog | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"Syslog\", Column = \"SyslogMessage\", Text = SyslogMessage, ResourceId = _ResourceId, Host = Computer),\n (SecurityEvent | where TimeGenerated > ago(lookback) and isnotempty(CommandLine) | project TimeGenerated, SourceTable = \"SecurityEvent\", Column = \"CommandLine\", Text = CommandLine, ResourceId = _ResourceId, Host = Computer),\n (DeviceProcessEvents | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"DeviceProcessEvents\", Column = \"ProcessCommandLine\", Text = ProcessCommandLine, ResourceId = \"\", Host = DeviceName),\n (CommonSecurityLog | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"CommonSecurityLog\", Column = \"RequestURL+AdditionalExtensions\", Text = strcat(RequestURL, \" \", AdditionalExtensions), ResourceId = _ResourceId, Host = Computer),\n (AzureActivity | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"AzureActivity\", Column = \"Properties\", Text = tostring(Properties), ResourceId = _ResourceId, Host = \"\"),\n (AppTraces | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"AppTraces\", Column = \"Message\", Text = Message, ResourceId = _ResourceId, Host = AppRoleInstance),\n (AppRequests | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"AppRequests\", Column = \"Url\", Text = Url, ResourceId = _ResourceId, Host = AppRoleInstance),\n (AppDependencies | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"AppDependencies\", Column = \"Data\", Text = Data, ResourceId = _ResourceId, Host = AppRoleInstance),\n (FunctionAppLogs | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"FunctionAppLogs\", Column = \"Message\", Text = Message, ResourceId = _ResourceId, Host = HostInstanceId),\n (AppServiceConsoleLogs | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"AppServiceConsoleLogs\", Column = \"ResultDescription\", Text = ResultDescription, ResourceId = _ResourceId, Host = Host),\n (AppServiceHTTPLogs | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"AppServiceHTTPLogs\", Column = \"CsUriQuery\", Text = CsUriQuery, ResourceId = _ResourceId, Host = CsHost),\n (ContainerAppConsoleLogs_CL | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"ContainerAppConsoleLogs_CL\", Column = \"Log_s\", Text = Log_s, ResourceId = _ResourceId, Host = ContainerAppName_s),\n (ContainerLogV2 | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"ContainerLogV2\", Column = \"LogMessage\", Text = tostring(LogMessage), ResourceId = _ResourceId, Host = Computer),\n (W3CIISLog | where TimeGenerated > ago(lookback) | project TimeGenerated, SourceTable = \"W3CIISLog\", Column = \"csUriQuery\", Text = csUriQuery, ResourceId = _ResourceId, Host = Computer)\n | where isnotempty(Text);\nSources\n| extend Found = set_union(extract_all(known_rx, Text), extract_all(bearer_rx, Text))\n| project-away Text\n| mv-expand Secret = Found to typeof(string)\n| where isnotempty(Secret)\n| where Secret !contains \"EXAMPLE\" and Secret !in (\"AKIAIOSFODNN7EXAMPLE\")\n| extend Kind = case(\n Secret matches regex @\"^(AKIA|ASIA)\", \"aws-access-key\",\n Secret startswith \"github_pat_\" or Secret matches regex @\"^gh[pousr]_\", \"github-token\",\n Secret startswith \"xox\", \"slack-token\",\n Secret matches regex @\"^(sk|rk)_live_\", \"stripe-live-key\",\n Secret startswith \"sk-ant-\", \"anthropic-api-key\",\n Secret startswith \"sk-\", \"openai-api-key\",\n Secret startswith \"AIza\", \"google-api-key\",\n Secret startswith \"npm_\", \"npm-token\",\n Secret startswith \"AccountKey=\", \"azure-storage-account-key\",\n Secret startswith \"sig=\", \"azure-sas-signature\",\n Secret startswith \"-----BEGIN\", \"private-key\",\n Secret startswith \"dugusa_\", \"dugganusa-api-key\",\n Secret matches regex @\"^eyJ[A-Za-z0-9_-]+\\.eyJ\", \"jwt\",\n \"bearer-token\")\n// A private key is fingerprinted on its base64 body alone (markers, spaces and line breaks, real or escaped, removed),\n// so hashing the key file the same way reproduces it.\n| extend Fingerprint = substring(hash_sha256(iff(Kind == \"private-key\", replace_regex(Secret, @\"-----[A-Z ]+-----|\\\\[nrt]|\\s\", \"\"), Secret)), 0, 16),\n Hint = strcat(substring(Secret, 0, min_of(8, strlen(Secret) / 6)), \"... (\", strlen(Secret), \" chars)\")\n| project-away Secret, Found\n| summarize FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated), Hits = count(),\n Tables = make_set(SourceTable, 10), Columns = make_set(Column, 10),\n Resources = make_set_if(ResourceId, isnotempty(ResourceId), 10), Hosts = make_set_if(Host, isnotempty(Host), 10)\n by Fingerprint, Kind, Hint\n| extend Severity = iff(Kind in (\"jwt\", \"bearer-token\", \"azure-sas-signature\", \"slack-token\"), \"Medium\", \"High\"),\n RotateAt = case(\n Kind == \"aws-access-key\", \"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html\",\n Kind == \"github-token\", \"https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation\",\n Kind == \"slack-token\", \"https://api.slack.com/authentication/rotation\",\n Kind == \"stripe-live-key\", \"https://docs.stripe.com/keys\",\n Kind == \"anthropic-api-key\", \"https://console.anthropic.com/settings/keys\",\n Kind == \"openai-api-key\", \"https://platform.openai.com/api-keys\",\n Kind == \"google-api-key\", \"https://cloud.google.com/docs/authentication/api-keys\",\n Kind == \"npm-token\", \"https://docs.npmjs.com/revoking-access-tokens\",\n Kind == \"azure-storage-account-key\", \"https://learn.microsoft.com/azure/storage/common/storage-account-keys-manage\",\n Kind == \"azure-sas-signature\", \"https://learn.microsoft.com/azure/storage/common/sas-expiration-policy\",\n Kind == \"dugganusa-api-key\", \"https://docs.dugganusa.com/\",\n \"Expire it at its issuer, then find and fix what logged it\"),\n ResourceId = tostring(Resources[0]), Host = tostring(Hosts[0]), TableList = strcat_array(Tables, \", \")\n| order by Severity asc, Hits desc\n",
+ "version": 2,
+ "tags": [
+ {
+ "name": "description",
+ "value": "Run once when you install the solution, then after any incident: the same detection as the analytic rule, over 30 days. A key or token in a recognized format was written to one of your logs: AWS access keys, GitHub tokens, Slack tokens, Stripe live keys, Anthropic, OpenAI and Google API keys, npm tokens, Azure storage account keys and SAS signatures, private keys (PEM), DugganUSA keys, JWTs and opaque bearer tokens. Anyone who can read that log can use the secret. The alert never contains the secret: it carries the type, the tables and columns, a hint (at most one sixth of the value) and a fingerprint, the first 16 hex characters of the SHA-256 of the exact value (for a private key, of its base64 body with line breaks removed), so you can confirm which key it is by hashing your own copy. Severity is High for keys and private keys and Medium for JWTs, bearer tokens, SAS signatures and Slack tokens. Tables your workspace does not have are skipped. Documented example keys are ignored."
+ },
+ {
+ "name": "tactics",
+ "value": "CredentialAccess"
+ },
+ {
+ "name": "techniques",
+ "value": "T1552"
+ }
+ ]
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/metadata",
+ "apiVersion": "2022-01-01-preview",
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('HuntingQuery-', last(split(resourceId('Microsoft.OperationalInsights/savedSearches', variables('huntingQueryObject8')._huntingQuerycontentId8),'/'))))]",
+ "properties": {
+ "description": "DugganUSA Threat Intelligence Hunting Query 8",
+ "parentId": "[resourceId('Microsoft.OperationalInsights/savedSearches', variables('huntingQueryObject8')._huntingQuerycontentId8)]",
+ "contentId": "[variables('huntingQueryObject8')._huntingQuerycontentId8]",
+ "kind": "HuntingQuery",
+ "version": "[variables('huntingQueryObject8').huntingQueryVersion8]",
+ "source": {
+ "kind": "Solution",
+ "name": "DugganUSA Threat Intelligence",
+ "sourceId": "[variables('_solutionId')]"
+ },
+ "author": {
+ "name": "DugganUSA LLC",
+ "email": "[variables('_email')]"
+ },
+ "support": {
+ "name": "DugganUSA LLC",
+ "email": "butterbot@dugganusa.com",
+ "tier": "Community",
+ "link": "https://www.dugganusa.com"
+ }
+ }
+ }
+ ]
+ },
+ "packageKind": "Solution",
+ "packageVersion": "[variables('_solutionVersion')]",
+ "packageName": "[variables('_solutionName')]",
+ "packageId": "[variables('_solutionId')]",
+ "contentSchemaVersion": "3.0.0",
+ "contentId": "[variables('huntingQueryObject8')._huntingQuerycontentId8]",
+ "contentKind": "HuntingQuery",
+ "displayName": "DugganUSA - key-shaped secrets already in your logs (30-day sweep)",
+ "contentProductId": "[concat(take(variables('_solutionId'),50),'-','hq','-', uniqueString(concat(variables('_solutionId'),'-','HuntingQuery','-',variables('huntingQueryObject8')._huntingQuerycontentId8,'-', '1.0.0')))]",
+ "id": "[concat(take(variables('_solutionId'),50),'-','hq','-', uniqueString(concat(variables('_solutionId'),'-','HuntingQuery','-',variables('huntingQueryObject8')._huntingQuerycontentId8,'-', '1.0.0')))]",
+ "version": "1.0.0"
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[variables('dataConnectorTemplateSpecName1')]",
+ "location": "[parameters('workspace-location')]",
+ "dependsOn": [
+ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]"
+ ],
+ "properties": {
+ "description": "DugganUSA Threat Intelligence data connector with template version 3.0.2",
+ "mainTemplate": {
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "[variables('dataConnectorVersion1')]",
+ "parameters": {},
+ "variables": {},
+ "resources": [
+ {
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',variables('_dataConnectorContentId1'))]",
+ "apiVersion": "2021-03-01-preview",
+ "type": "Microsoft.OperationalInsights/workspaces/providers/dataConnectors",
+ "location": "[parameters('workspace-location')]",
+ "kind": "GenericUI",
+ "properties": {
+ "connectorUiConfig": {
+ "id": "[variables('_uiConfigId1')]",
+ "title": "DugganUSA Threat Intelligence (via TAXII)",
+ "publisher": "DugganUSA",
+ "descriptionMarkdown": "The DugganUSA Threat Intelligence connector brings DugganUSA STIX 2.1 indicators (IPv4 and IPv6 addresses, domains, URLs, file hashes and X.509 certificate hashes, each with a confidence score) into Microsoft Sentinel. Ingestion runs on Microsoft Sentinel's built-in **Threat Intelligence - TAXII** connector polling the DugganUSA TAXII 2.1 server, so indicators land in the `ThreatIntelIndicators` table and the Threat intelligence page. This page sets that connection up for you: paste your DugganUSA API key into a one-step deployment, or enter the values below in the TAXII connector by hand. Indicators from third-party sources we redistribute are labeled as such, never as our own observations.",
+ "graphQueries": [
+ {
+ "metricName": "Total indicators received",
+ "legend": "DugganUSA indicators",
+ "baseQuery": "ThreatIntelIndicators | where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\""
+ }
+ ],
+ "sampleQueries": [
+ {
+ "description": "Active DugganUSA indicators by type",
+ "query": "ThreatIntelIndicators\n| where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\"\n| summarize arg_max(TimeGenerated, *) by Id\n| where IsActive == true and IsDeleted == false and (isempty(ValidUntil) or ValidUntil > now())\n| summarize Indicators = dcount(Id), MaxConfidence = max(Confidence), Newest = max(TimeGenerated) by IndicatorType = tostring(split(ObservableKey, \":\")[0])"
+ },
+ {
+ "description": "Newest DugganUSA indicators at confidence 80 or higher",
+ "query": "ThreatIntelIndicators\n| where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\"\n| where Confidence >= 80\n| summarize arg_max(TimeGenerated, *) by Id\n| project TimeGenerated, ObservableKey, ObservableValue, Confidence, ValidUntil, Name = tostring(Data.name)\n| sort by TimeGenerated desc\n| take 100"
+ }
+ ],
+ "dataTypes": [
+ {
+ "name": "ThreatIntelIndicators",
+ "lastDataReceivedQuery": "ThreatIntelIndicators\n| where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\"\n| summarize Time = max(TimeGenerated)\n| where isnotempty(Time)"
+ }
+ ],
+ "connectivityCriterias": [
+ {
+ "type": "IsConnectedQuery",
+ "value": [
+ "ThreatIntelIndicators\n| where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\"\n| summarize LastLogReceived = max(TimeGenerated)\n| project IsConnected = LastLogReceived > ago(7d)"
+ ]
+ }
+ ],
+ "availability": {
+ "status": 1,
+ "isPreview": false
+ },
+ "permissions": {
+ "resourceProvider": [
+ {
+ "provider": "Microsoft.OperationalInsights/workspaces",
+ "permissionsDisplayText": "read and write permissions on the workspace are required.",
+ "providerDisplayName": "Workspace",
+ "scope": "Workspace",
+ "requiredPermissions": {
+ "write": true,
+ "read": true,
+ "delete": true
+ }
+ }
+ ],
+ "customs": [
+ {
+ "name": "DugganUSA API key",
+ "description": "A DugganUSA API key is the TAXII password. Register at [analytics.dugganusa.com/stix/register](https://analytics.dugganusa.com/stix/register). The free tier is rate-limited (10 feed queries a day), so its first import completes over several days; paid tiers support hourly polling. Tiers: [analytics.dugganusa.com/pricing](https://analytics.dugganusa.com/pricing)."
+ },
+ {
+ "name": "Microsoft Sentinel Contributor",
+ "description": "Creating the TAXII connection needs the **Microsoft Sentinel Contributor** role on the workspace's resource group."
+ }
+ ]
+ },
+ "instructionSteps": [
+ {
+ "description": "Register at [analytics.dugganusa.com/stix/register](https://analytics.dugganusa.com/stix/register). Already have a key for the DugganUSA feed, API or MCP servers? It is the same key. Keep it out of chat, tickets and URLs: it is the TAXII password.",
+ "title": "1. Get a DugganUSA API key"
+ },
+ {
+ "description": "Select **Deploy to Azure**, choose the resource group of this workspace, type the workspace name, paste your API key and choose a polling frequency: **OnceADay** for the free tier, **OnceAnHour** with a paid key. The key is a secure parameter: the portal masks it and Azure does not return it in deployment history. The deployment creates the **Threat Intelligence - TAXII** connection for the DugganUSA collection (importing the last 7 days by default) and three DugganUSA hunting queries.\n\n[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fpduggusa%2Fdugganusa-sentinel%2F77c20954b95fbb131ea952469fc42ac4bfcd3303%2FSolution%2FData%2520Connectors%2Fdugganusa-taxii-connector.json)\n\nTo rotate the key later, run the same deployment again with the new key: it updates the existing connection in place.",
+ "title": "2. Connect DugganUSA (recommended: one-step deployment)"
+ },
+ {
+ "description": "Install the **Threat Intelligence** solution by Microsoft from the Content hub if it is not installed, open the **Threat Intelligence - TAXII** data connector, select **Add**, and enter these values. Microsoft Sentinel rejects spaces in the friendly name.",
+ "instructions": [
+ {
+ "parameters": {
+ "label": "Friendly name",
+ "value": "DugganUSA"
+ },
+ "type": "CopyableLabel"
+ },
+ {
+ "parameters": {
+ "label": "API root URL",
+ "value": "https://analytics.dugganusa.com/api/v1/taxii/"
+ },
+ "type": "CopyableLabel"
+ },
+ {
+ "parameters": {
+ "label": "Collection ID",
+ "value": "dugganusa-threat-intel"
+ },
+ "type": "CopyableLabel"
+ },
+ {
+ "parameters": {
+ "label": "Username (any value)",
+ "value": "sentinel"
+ },
+ "type": "CopyableLabel"
+ }
+ ],
+ "title": "3. Or connect by hand in the Threat Intelligence - TAXII connector"
+ },
+ {
+ "description": "After the first poll, this page shows **Connected** and the graph above starts to fill. Open the **DugganUSA Threat Intelligence** workbook for indicator counts, confidence and matches, then enable the two DugganUSA analytic rules (IP indicator in ASIM network sessions, domain indicator in ASIM DNS activity) from **Analytics > Rule templates**. Indicators carry an expiry (`ValidUntil`): IPs and URLs 30 days, domains 60, file hashes 120, refreshed while they stay listed. Setup guide: [docs.dugganusa.com/siem/sentinel/](https://docs.dugganusa.com/siem/sentinel/).",
+ "title": "4. Confirm indicators arrived"
+ }
+ ]
+ }
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/metadata",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('DataConnector-', last(split(variables('_dataConnectorId1'),'/'))))]",
+ "properties": {
+ "parentId": "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/dataConnectors', variables('_dataConnectorContentId1'))]",
+ "contentId": "[variables('_dataConnectorContentId1')]",
+ "kind": "DataConnector",
+ "version": "[variables('dataConnectorVersion1')]",
+ "source": {
+ "kind": "Solution",
+ "name": "DugganUSA Threat Intelligence",
+ "sourceId": "[variables('_solutionId')]"
+ },
+ "author": {
+ "name": "DugganUSA LLC",
+ "email": "[variables('_email')]"
+ },
+ "support": {
+ "name": "DugganUSA LLC",
+ "email": "butterbot@dugganusa.com",
+ "tier": "Community",
+ "link": "https://www.dugganusa.com"
+ }
+ }
+ }
+ ]
+ },
+ "packageKind": "Solution",
+ "packageVersion": "[variables('_solutionVersion')]",
+ "packageName": "[variables('_solutionName')]",
+ "packageId": "[variables('_solutionId')]",
+ "contentSchemaVersion": "3.0.0",
+ "contentId": "[variables('_dataConnectorContentId1')]",
+ "contentKind": "DataConnector",
+ "displayName": "DugganUSA Threat Intelligence (via TAXII)",
+ "contentProductId": "[variables('_dataConnectorcontentProductId1')]",
+ "id": "[variables('_dataConnectorcontentProductId1')]",
+ "version": "[variables('dataConnectorVersion1')]"
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/metadata",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('DataConnector-', last(split(variables('_dataConnectorId1'),'/'))))]",
+ "dependsOn": [
+ "[variables('_dataConnectorId1')]"
+ ],
+ "location": "[parameters('workspace-location')]",
+ "properties": {
+ "parentId": "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/dataConnectors', variables('_dataConnectorContentId1'))]",
+ "contentId": "[variables('_dataConnectorContentId1')]",
+ "kind": "DataConnector",
+ "version": "[variables('dataConnectorVersion1')]",
+ "source": {
+ "kind": "Solution",
+ "name": "DugganUSA Threat Intelligence",
+ "sourceId": "[variables('_solutionId')]"
+ },
+ "author": {
+ "name": "DugganUSA LLC",
+ "email": "[variables('_email')]"
+ },
+ "support": {
+ "name": "DugganUSA LLC",
+ "email": "butterbot@dugganusa.com",
+ "tier": "Community",
+ "link": "https://www.dugganusa.com"
+ }
+ }
+ },
+ {
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',variables('_dataConnectorContentId1'))]",
+ "apiVersion": "2021-03-01-preview",
+ "type": "Microsoft.OperationalInsights/workspaces/providers/dataConnectors",
+ "location": "[parameters('workspace-location')]",
+ "kind": "GenericUI",
+ "properties": {
+ "connectorUiConfig": {
+ "title": "DugganUSA Threat Intelligence (via TAXII)",
+ "publisher": "DugganUSA",
+ "descriptionMarkdown": "The DugganUSA Threat Intelligence connector brings DugganUSA STIX 2.1 indicators (IPv4 and IPv6 addresses, domains, URLs, file hashes and X.509 certificate hashes, each with a confidence score) into Microsoft Sentinel. Ingestion runs on Microsoft Sentinel's built-in **Threat Intelligence - TAXII** connector polling the DugganUSA TAXII 2.1 server, so indicators land in the `ThreatIntelIndicators` table and the Threat intelligence page. This page sets that connection up for you: paste your DugganUSA API key into a one-step deployment, or enter the values below in the TAXII connector by hand. Indicators from third-party sources we redistribute are labeled as such, never as our own observations.",
+ "graphQueries": [
+ {
+ "metricName": "Total indicators received",
+ "legend": "DugganUSA indicators",
+ "baseQuery": "ThreatIntelIndicators | where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\""
+ }
+ ],
+ "dataTypes": [
+ {
+ "name": "ThreatIntelIndicators",
+ "lastDataReceivedQuery": "ThreatIntelIndicators\n| where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\"\n| summarize Time = max(TimeGenerated)\n| where isnotempty(Time)"
+ }
+ ],
+ "connectivityCriterias": [
+ {
+ "type": "IsConnectedQuery",
+ "value": [
+ "ThreatIntelIndicators\n| where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\"\n| summarize LastLogReceived = max(TimeGenerated)\n| project IsConnected = LastLogReceived > ago(7d)"
+ ]
+ }
+ ],
+ "sampleQueries": [
+ {
+ "description": "Active DugganUSA indicators by type",
+ "query": "ThreatIntelIndicators\n| where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\"\n| summarize arg_max(TimeGenerated, *) by Id\n| where IsActive == true and IsDeleted == false and (isempty(ValidUntil) or ValidUntil > now())\n| summarize Indicators = dcount(Id), MaxConfidence = max(Confidence), Newest = max(TimeGenerated) by IndicatorType = tostring(split(ObservableKey, \":\")[0])"
+ },
+ {
+ "description": "Newest DugganUSA indicators at confidence 80 or higher",
+ "query": "ThreatIntelIndicators\n| where SourceSystem has \"DugganUSA\" or tostring(Data.created_by_ref) == \"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\"\n| where Confidence >= 80\n| summarize arg_max(TimeGenerated, *) by Id\n| project TimeGenerated, ObservableKey, ObservableValue, Confidence, ValidUntil, Name = tostring(Data.name)\n| sort by TimeGenerated desc\n| take 100"
+ }
+ ],
+ "availability": {
+ "status": 1,
+ "isPreview": false
+ },
+ "permissions": {
+ "resourceProvider": [
+ {
+ "provider": "Microsoft.OperationalInsights/workspaces",
+ "permissionsDisplayText": "read and write permissions on the workspace are required.",
+ "providerDisplayName": "Workspace",
+ "scope": "Workspace",
+ "requiredPermissions": {
+ "write": true,
+ "read": true,
+ "delete": true
+ }
+ }
+ ],
+ "customs": [
+ {
+ "name": "DugganUSA API key",
+ "description": "A DugganUSA API key is the TAXII password. Register at [analytics.dugganusa.com/stix/register](https://analytics.dugganusa.com/stix/register). The free tier is rate-limited (10 feed queries a day), so its first import completes over several days; paid tiers support hourly polling. Tiers: [analytics.dugganusa.com/pricing](https://analytics.dugganusa.com/pricing)."
+ },
+ {
+ "name": "Microsoft Sentinel Contributor",
+ "description": "Creating the TAXII connection needs the **Microsoft Sentinel Contributor** role on the workspace's resource group."
+ }
+ ]
+ },
+ "instructionSteps": [
+ {
+ "description": "Register at [analytics.dugganusa.com/stix/register](https://analytics.dugganusa.com/stix/register). Already have a key for the DugganUSA feed, API or MCP servers? It is the same key. Keep it out of chat, tickets and URLs: it is the TAXII password.",
+ "title": "1. Get a DugganUSA API key"
+ },
+ {
+ "description": "Select **Deploy to Azure**, choose the resource group of this workspace, type the workspace name, paste your API key and choose a polling frequency: **OnceADay** for the free tier, **OnceAnHour** with a paid key. The key is a secure parameter: the portal masks it and Azure does not return it in deployment history. The deployment creates the **Threat Intelligence - TAXII** connection for the DugganUSA collection (importing the last 7 days by default) and three DugganUSA hunting queries.\n\n[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fpduggusa%2Fdugganusa-sentinel%2F77c20954b95fbb131ea952469fc42ac4bfcd3303%2FSolution%2FData%2520Connectors%2Fdugganusa-taxii-connector.json)\n\nTo rotate the key later, run the same deployment again with the new key: it updates the existing connection in place.",
+ "title": "2. Connect DugganUSA (recommended: one-step deployment)"
+ },
+ {
+ "description": "Install the **Threat Intelligence** solution by Microsoft from the Content hub if it is not installed, open the **Threat Intelligence - TAXII** data connector, select **Add**, and enter these values. Microsoft Sentinel rejects spaces in the friendly name.",
+ "instructions": [
+ {
+ "parameters": {
+ "label": "Friendly name",
+ "value": "DugganUSA"
+ },
+ "type": "CopyableLabel"
+ },
+ {
+ "parameters": {
+ "label": "API root URL",
+ "value": "https://analytics.dugganusa.com/api/v1/taxii/"
+ },
+ "type": "CopyableLabel"
+ },
+ {
+ "parameters": {
+ "label": "Collection ID",
+ "value": "dugganusa-threat-intel"
+ },
+ "type": "CopyableLabel"
+ },
+ {
+ "parameters": {
+ "label": "Username (any value)",
+ "value": "sentinel"
+ },
+ "type": "CopyableLabel"
+ }
+ ],
+ "title": "3. Or connect by hand in the Threat Intelligence - TAXII connector"
+ },
+ {
+ "description": "After the first poll, this page shows **Connected** and the graph above starts to fill. Open the **DugganUSA Threat Intelligence** workbook for indicator counts, confidence and matches, then enable the two DugganUSA analytic rules (IP indicator in ASIM network sessions, domain indicator in ASIM DNS activity) from **Analytics > Rule templates**. Indicators carry an expiry (`ValidUntil`): IPs and URLs 30 days, domains 60, file hashes 120, refreshed while they stay listed. Setup guide: [docs.dugganusa.com/siem/sentinel/](https://docs.dugganusa.com/siem/sentinel/).",
+ "title": "4. Confirm indicators arrived"
+ }
+ ],
+ "id": "[variables('_uiConfigId1')]"
+ }
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/contentTemplates",
+ "apiVersion": "2023-04-01-preview",
+ "name": "[variables('workbookTemplateSpecName1')]",
+ "location": "[parameters('workspace-location')]",
+ "dependsOn": [
+ "[extensionResourceId(resourceId('Microsoft.OperationalInsights/workspaces', parameters('workspace')), 'Microsoft.SecurityInsights/contentPackages', variables('_solutionId'))]"
+ ],
+ "properties": {
+ "description": "DugganUSAThreatIntelligence Workbook with template version 3.0.2",
+ "mainTemplate": {
+ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
+ "contentVersion": "[variables('workbookVersion1')]",
+ "parameters": {},
+ "variables": {},
+ "resources": [
+ {
+ "type": "Microsoft.Insights/workbooks",
+ "name": "[variables('workbookContentId1')]",
+ "location": "[parameters('workspace-location')]",
+ "kind": "shared",
+ "apiVersion": "2021-08-01",
+ "metadata": {
+ "description": "DugganUSA threat intelligence in Microsoft Sentinel: active indicators by type, average confidence, indicators received over time, the confidence distribution, the indicators that matched your ASIM network-session and DNS activity, a 30-day lookback of matches in the logs the workspace already holds, and edge-shield blocks and canary hits when the DugganUSAEdgeDecisions_CL table exists."
+ },
+ "properties": {
+ "displayName": "[parameters('workbook1-name')]",
+ "serializedData": "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"## DugganUSA Threat Intelligence\\nIndicators from the DugganUSA TAXII 2.1 feed in your workspace, and where they met your own network and DNS activity. **Confidence** is the score DugganUSA assigns (never above 95): a dial for your alerting threshold, not a verdict. Indicators from third-party sources we redistribute are labeled as such. Corrections: [analytics.dugganusa.com/updates](https://analytics.dugganusa.com/updates).\"},\"name\":\"header\"},{\"type\":9,\"content\":{\"version\":\"KqlParameterItem/1.0\",\"parameters\":[{\"id\":\"5f0f2a51-7c2e-4f53-9a51-2b8a0c6d1e01\",\"version\":\"KqlParameterItem/1.0\",\"name\":\"TimeRange\",\"label\":\"Time range\",\"type\":4,\"isRequired\":true,\"typeSettings\":{\"selectableValues\":[{\"durationMs\":86400000},{\"durationMs\":604800000},{\"durationMs\":1209600000},{\"durationMs\":2592000000},{\"durationMs\":7776000000}],\"allowCustom\":true},\"value\":{\"durationMs\":2592000000}},{\"id\":\"5f0f2a51-7c2e-4f53-9a51-2b8a0c6d1e02\",\"version\":\"KqlParameterItem/1.0\",\"name\":\"IndicatorType\",\"label\":\"Indicator type\",\"type\":2,\"multiSelect\":true,\"quote\":\"'\",\"delimiter\":\",\",\"query\":\"ThreatIntelIndicators\\n| where TimeGenerated {TimeRange}\\n| where SourceSystem has \\\"DugganUSA\\\" or tostring(Data.created_by_ref) == \\\"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\\\"\\n| summarize arg_max(TimeGenerated, ObservableKey, Pattern) by Id\\n| extend IndicatorType = tostring(split(ObservableKey, \\\":\\\")[0])\\n| extend IndicatorType = iff(isnotempty(IndicatorType), IndicatorType,\\n coalesce(extract(@\\\"\\\\[\\\\s*([A-Za-z0-9-]+)\\\\s*:\\\", 1, tostring(Pattern)), \\\"unlabeled\\\"))\\n| summarize by IndicatorType\\n| order by IndicatorType asc\",\"typeSettings\":{\"additionalResourceOptions\":[\"value::all\"],\"selectAllValue\":\"*\",\"showDefault\":false},\"defaultValue\":\"value::all\",\"value\":[\"value::all\"],\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\"},{\"id\":\"5f0f2a51-7c2e-4f53-9a51-2b8a0c6d1e03\",\"version\":\"KqlParameterItem/1.0\",\"name\":\"ConfidenceFloor\",\"label\":\"Match confidence floor\",\"type\":2,\"jsonData\":\"[{\\\"value\\\": \\\"50\\\", \\\"label\\\": \\\"50\\\"}, {\\\"value\\\": \\\"70\\\", \\\"label\\\": \\\"70\\\"}, {\\\"value\\\": \\\"80\\\", \\\"label\\\": \\\"80 (rule default)\\\", \\\"selected\\\": true}, {\\\"value\\\": \\\"90\\\", \\\"label\\\": \\\"90\\\"}]\",\"typeSettings\":{\"showDefault\":false},\"value\":\"80\"},{\"id\":\"5f0f2a51-7c2e-4f53-9a51-2b8a0c6d1e04\",\"version\":\"KqlParameterItem/1.0\",\"name\":\"HasData\",\"type\":1,\"isHiddenWhenLocked\":true,\"query\":\"ThreatIntelIndicators\\n| where TimeGenerated {TimeRange}\\n| where SourceSystem has \\\"DugganUSA\\\" or tostring(Data.created_by_ref) == \\\"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\\\"\\n| summarize n = count()\\n| project HasData = iff(n > 0, \\\"yes\\\", \\\"no\\\")\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\"},{\"id\":\"5f0f2a51-7c2e-4f53-9a51-2b8a0c6d1e05\",\"version\":\"KqlParameterItem/1.0\",\"name\":\"HasMatches\",\"type\":1,\"isHiddenWhenLocked\":true,\"query\":\"let DugganUSA = ThreatIntelIndicators\\n| where TimeGenerated {TimeRange}\\n| where SourceSystem has \\\"DugganUSA\\\" or tostring(Data.created_by_ref) == \\\"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\\\"\\n| summarize arg_max(TimeGenerated, *) by Id\\n| where IsActive == true and IsDeleted == false and (isempty(ValidUntil) or ValidUntil > now())\\n| extend IndicatorType = tostring(split(ObservableKey, \\\":\\\")[0])\\n| extend IndicatorType = iff(isnotempty(IndicatorType), IndicatorType,\\n coalesce(extract(@\\\"\\\\[\\\\s*([A-Za-z0-9-]+)\\\\s*:\\\", 1, tostring(Pattern)), \\\"unlabeled\\\"))\\n| where IndicatorType in ({IndicatorType}) or '*' in ({IndicatorType});\\nlet IpMatches = DugganUSA\\n| where ObservableKey == \\\"ipv4-addr:value\\\"\\n| project Indicator = tostring(ObservableValue), IndicatorType, Confidence, ValidUntil\\n| join kind=inner (_Im_NetworkSession(starttime = {TimeRange:start}, endtime = now())\\n | project TimeGenerated, SrcIpAddr, DstIpAddr, SrcHostname\\n | mv-expand Indicator = pack_array(SrcIpAddr, DstIpAddr) to typeof(string)\\n | where isnotempty(Indicator)) on Indicator\\n| where isempty(ValidUntil) or TimeGenerated < ValidUntil\\n| project TimeGenerated, Indicator, IndicatorType, Confidence, Host = SrcHostname, Rule = \\\"IP in network sessions\\\";\\nlet DnsMatches = DugganUSA\\n| where ObservableKey == \\\"domain-name:value\\\"\\n| project Indicator = tolower(trim_end(@\\\"\\\\.\\\", tostring(ObservableValue))), IndicatorType, Confidence, ValidUntil\\n| join kind=inner (_Im_Dns(starttime = {TimeRange:start}, endtime = now())\\n | where isnotempty(DnsQuery)\\n | project TimeGenerated, Indicator = tolower(trim_end(@\\\"\\\\.\\\", DnsQuery)), SrcHostname) on Indicator\\n| where isempty(ValidUntil) or TimeGenerated < ValidUntil\\n| project TimeGenerated, Indicator, IndicatorType, Confidence, Host = SrcHostname, Rule = \\\"Domain in DNS activity\\\";\\nlet Matches = union IpMatches, DnsMatches | where Confidence >= {ConfidenceFloor};\\nMatches\\n| summarize n = count()\\n| project HasMatches = iff(n > 0, \\\"yes\\\", \\\"no\\\")\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\"},{\"id\":\"5f0f2a51-7c2e-4f53-9a51-2b8a0c6d1e06\",\"version\":\"KqlParameterItem/1.0\",\"name\":\"HasLookback\",\"type\":1,\"isHiddenWhenLocked\":true,\"query\":\"let DugganUSA = ThreatIntelIndicators\\n| where TimeGenerated {TimeRange}\\n| where SourceSystem has \\\"DugganUSA\\\" or tostring(Data.created_by_ref) == \\\"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\\\"\\n| summarize arg_max(TimeGenerated, *) by Id\\n| where IsActive == true and IsDeleted == false and (isempty(ValidUntil) or ValidUntil > now())\\n| extend IndicatorType = tostring(split(ObservableKey, \\\":\\\")[0])\\n| extend IndicatorType = iff(isnotempty(IndicatorType), IndicatorType,\\n coalesce(extract(@\\\"\\\\[\\\\s*([A-Za-z0-9-]+)\\\\s*:\\\", 1, tostring(Pattern)), \\\"unlabeled\\\"))\\n| where IndicatorType in ({IndicatorType}) or '*' in ({IndicatorType});\\nlet LbIndicators = DugganUSA\\n| where Confidence >= {ConfidenceFloor}\\n| where ObservableKey in (\\\"ipv4-addr:value\\\", \\\"ipv6-addr:value\\\", \\\"domain-name:value\\\")\\n| extend Indicator = tolower(tostring(ObservableValue))\\n| where isnotempty(Indicator)\\n| extend IndicatorType = case(Indicator matches regex @\\\"^\\\\d{1,3}(\\\\.\\\\d{1,3}){3}$\\\", \\\"ipv4-addr\\\", Indicator contains \\\":\\\", \\\"ipv6-addr\\\", \\\"domain-name\\\")\\n| summarize arg_max(Confidence, IndicatorName = tostring(Data.name), IndicatorType) by Indicator;\\nlet Seen = union isfuzzy=true\\n (SigninLogs | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(IPAddress), Source = \\\"Entra sign-in\\\", Who = tostring(UserPrincipalName), Failed = tostring(ResultType) != \\\"0\\\"),\\n (AADNonInteractiveUserSignInLogs | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(IPAddress), Source = \\\"Entra sign-in (non-interactive)\\\", Who = tostring(UserPrincipalName), Failed = tostring(ResultType) != \\\"0\\\"),\\n (DeviceNetworkEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(RemoteIP), Source = \\\"Defender for Endpoint network\\\", Who = tostring(DeviceName), Failed = false),\\n (DeviceNetworkEvents | where TimeGenerated {TimeRange} | where isnotempty(RemoteUrl) | project TimeGenerated, Indicator = tolower(tostring(coalesce(tostring(parse_url(RemoteUrl).Host), RemoteUrl))), Source = \\\"Defender for Endpoint network (host)\\\", Who = tostring(DeviceName), Failed = false),\\n (EmailUrlInfo | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(UrlDomain), Source = \\\"Email URL\\\", Who = tostring(NetworkMessageId), Failed = false),\\n (UrlClickEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(tostring(parse_url(Url).Host)), Source = \\\"Email URL click\\\", Who = tostring(AccountUpn), Failed = false),\\n (DnsEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = trim_end(@\\\"\\\\.\\\", tolower(Name)), Source = \\\"Windows DNS\\\", Who = tostring(Computer), Failed = false),\\n (CommonSecurityLog | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(SourceIP), Source = \\\"Firewall (inbound source)\\\", Who = tostring(DeviceName), Failed = false),\\n (CommonSecurityLog | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(DestinationIP), Source = \\\"Firewall (outbound destination)\\\", Who = tostring(DeviceName), Failed = false),\\n (OfficeActivity | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(tostring(split(ClientIP, \\\":\\\")[0])), Source = \\\"Microsoft 365 activity\\\", Who = tostring(UserId), Failed = false),\\n (AzureActivity | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(CallerIpAddress), Source = \\\"Azure activity\\\", Who = tostring(Caller), Failed = false)\\n| where isnotempty(Indicator);\\nlet LbMatches = LbIndicators | join kind=inner (Seen) on Indicator;\\nLbMatches\\n| summarize n = count()\\n| project HasLookback = iff(n > 0, \\\"yes\\\", \\\"no\\\")\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\"},{\"id\":\"5f0f2a51-7c2e-4f53-9a51-2b8a0c6d1e07\",\"version\":\"KqlParameterItem/1.0\",\"name\":\"HasEdge\",\"type\":1,\"isHiddenWhenLocked\":true,\"query\":\"union isfuzzy=true (datatable(x:int)[0] | where false), (DugganUSAEdgeDecisions_CL | where TimeGenerated {TimeRange} | take 1 | project x = 1)\\n| summarize n = count()\\n| project HasEdge = iff(n > 0, \\\"yes\\\", \\\"no\\\")\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\"}],\"style\":\"pills\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\"},\"name\":\"parameters\"},{\"type\":1,\"content\":{\"json\":\"### No DugganUSA indicators yet\\nThis workspace has not received DugganUSA indicators in the selected time range. To connect the feed:\\n\\n1. Get an API key at [analytics.dugganusa.com/stix/register](https://analytics.dugganusa.com/stix/register).\\n2. Open **Data connectors** (Microsoft Sentinel > Configuration), find **DugganUSA Threat Intelligence (via TAXII)** and select **Open connector page**. Use **Deploy to Azure** there: paste the key, pick a polling frequency, done.\\n3. Come back after the first poll. Hourly polling needs a paid key; the free tier imports over several days.\\n\\nFull guide: [docs.dugganusa.com/siem/sentinel/](https://docs.dugganusa.com/siem/sentinel/).\",\"style\":\"info\"},\"name\":\"empty-state\",\"conditionalVisibility\":{\"parameterName\":\"HasData\",\"comparison\":\"isEqualTo\",\"value\":\"no\"}},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"let DugganUSA = ThreatIntelIndicators\\n| where TimeGenerated {TimeRange}\\n| where SourceSystem has \\\"DugganUSA\\\" or tostring(Data.created_by_ref) == \\\"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\\\"\\n| summarize arg_max(TimeGenerated, *) by Id\\n| where IsActive == true and IsDeleted == false and (isempty(ValidUntil) or ValidUntil > now())\\n| extend IndicatorType = tostring(split(ObservableKey, \\\":\\\")[0])\\n| extend IndicatorType = iff(isnotempty(IndicatorType), IndicatorType,\\n coalesce(extract(@\\\"\\\\[\\\\s*([A-Za-z0-9-]+)\\\\s*:\\\", 1, tostring(Pattern)), \\\"unlabeled\\\"))\\n| where IndicatorType in ({IndicatorType}) or '*' in ({IndicatorType});\\nlet IpMatches = DugganUSA\\n| where ObservableKey == \\\"ipv4-addr:value\\\"\\n| project Indicator = tostring(ObservableValue), IndicatorType, Confidence, ValidUntil\\n| join kind=inner (_Im_NetworkSession(starttime = ago(1d), endtime = now())\\n | project TimeGenerated, SrcIpAddr, DstIpAddr, SrcHostname\\n | mv-expand Indicator = pack_array(SrcIpAddr, DstIpAddr) to typeof(string)\\n | where isnotempty(Indicator)) on Indicator\\n| where isempty(ValidUntil) or TimeGenerated < ValidUntil\\n| project TimeGenerated, Indicator, IndicatorType, Confidence, Host = SrcHostname, Rule = \\\"IP in network sessions\\\";\\nlet DnsMatches = DugganUSA\\n| where ObservableKey == \\\"domain-name:value\\\"\\n| project Indicator = tolower(trim_end(@\\\"\\\\.\\\", tostring(ObservableValue))), IndicatorType, Confidence, ValidUntil\\n| join kind=inner (_Im_Dns(starttime = ago(1d), endtime = now())\\n | where isnotempty(DnsQuery)\\n | project TimeGenerated, Indicator = tolower(trim_end(@\\\"\\\\.\\\", DnsQuery)), SrcHostname) on Indicator\\n| where isempty(ValidUntil) or TimeGenerated < ValidUntil\\n| project TimeGenerated, Indicator, IndicatorType, Confidence, Host = SrcHostname, Rule = \\\"Domain in DNS activity\\\";\\nlet Matches = union IpMatches, DnsMatches | where Confidence >= {ConfidenceFloor};\\nlet Active = toscalar(DugganUSA | summarize dcount(Id));\\nlet AvgConf = toscalar(DugganUSA | summarize round(avg(Confidence), 1));\\nlet High = toscalar(DugganUSA | where Confidence >= {ConfidenceFloor} | summarize dcount(Id));\\nlet Matched = toscalar(Matches | summarize count());\\nlet Newest = toscalar(DugganUSA | summarize max(TimeGenerated));\\ndatatable(Order:int, Metric:string, Value:real, Note:string) [\\n 1, \\\"Active indicators\\\", 0, \\\"not expired, not revoked\\\",\\n 2, \\\"Average confidence\\\", 0, \\\"DugganUSA caps confidence at 95\\\",\\n 3, \\\"At or above floor\\\", 0, \\\"indicators the rules would use\\\",\\n 4, \\\"Matches, last 24h\\\", 0, \\\"network sessions + DNS lookups\\\"\\n]\\n| extend Value = case(Order == 1, todouble(Active), Order == 2, todouble(AvgConf), Order == 3, todouble(High), todouble(Matched))\\n| extend Note = iff(Order == 1 and isnotempty(Newest), strcat(\\\"newest \\\", format_datetime(Newest, \\\"yyyy-MM-dd HH:mm\\\"), \\\" UTC\\\"), Note)\\n| order by Order asc\",\"size\":4,\"title\":\"\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\",\"visualization\":\"tiles\",\"noDataMessage\":\"No DugganUSA indicators in this time range. Open the Connect DugganUSA section at the bottom of this workbook.\",\"noDataMessageStyle\":2,\"tileSettings\":{\"titleContent\":{\"columnMatch\":\"Metric\",\"formatter\":1},\"leftContent\":{\"columnMatch\":\"Value\",\"formatter\":12,\"formatOptions\":{\"palette\":\"none\"},\"numberFormat\":{\"unit\":17,\"options\":{\"style\":\"decimal\",\"maximumFractionDigits\":1}}},\"secondaryContent\":{\"columnMatch\":\"Note\",\"formatter\":1},\"showBorder\":true,\"size\":\"auto\"}},\"name\":\"summary-tiles\"},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"let DugganUSA = ThreatIntelIndicators\\n| where TimeGenerated {TimeRange}\\n| where SourceSystem has \\\"DugganUSA\\\" or tostring(Data.created_by_ref) == \\\"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\\\"\\n| summarize arg_max(TimeGenerated, *) by Id\\n| where IsActive == true and IsDeleted == false and (isempty(ValidUntil) or ValidUntil > now())\\n| extend IndicatorType = tostring(split(ObservableKey, \\\":\\\")[0])\\n| extend IndicatorType = iff(isnotempty(IndicatorType), IndicatorType,\\n coalesce(extract(@\\\"\\\\[\\\\s*([A-Za-z0-9-]+)\\\\s*:\\\", 1, tostring(Pattern)), \\\"unlabeled\\\"))\\n| where IndicatorType in ({IndicatorType}) or '*' in ({IndicatorType});\\nDugganUSA\\n| summarize Indicators = dcount(Id), AvgConfidence = round(avg(Confidence), 0) by IndicatorType\\n| extend Detail = strcat(\\\"avg confidence \\\", tostring(AvgConfidence))\\n| order by Indicators desc\",\"size\":4,\"title\":\"Active indicators by type\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\",\"visualization\":\"tiles\",\"noDataMessage\":\"No DugganUSA indicators in this time range. Open the Connect DugganUSA section at the bottom of this workbook.\",\"noDataMessageStyle\":2,\"tileSettings\":{\"titleContent\":{\"columnMatch\":\"IndicatorType\",\"formatter\":1},\"leftContent\":{\"columnMatch\":\"Indicators\",\"formatter\":12,\"formatOptions\":{\"palette\":\"none\"},\"numberFormat\":{\"unit\":17,\"options\":{\"style\":\"decimal\",\"maximumFractionDigits\":0}}},\"secondaryContent\":{\"columnMatch\":\"Detail\",\"formatter\":1},\"showBorder\":false,\"size\":\"auto\"}},\"name\":\"type-tiles\"},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"ThreatIntelIndicators\\n| where TimeGenerated {TimeRange}\\n| where SourceSystem has \\\"DugganUSA\\\" or tostring(Data.created_by_ref) == \\\"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\\\"\\n| extend IndicatorType = tostring(split(ObservableKey, \\\":\\\")[0])\\n| extend IndicatorType = iff(isnotempty(IndicatorType), IndicatorType,\\n coalesce(extract(@\\\"\\\\[\\\\s*([A-Za-z0-9-]+)\\\\s*:\\\", 1, tostring(Pattern)), \\\"unlabeled\\\"))\\n| where IndicatorType in ({IndicatorType}) or '*' in ({IndicatorType})\\n| summarize Indicators = dcount(Id) by bin(TimeGenerated, {TimeRange:grain}), IndicatorType\",\"size\":0,\"title\":\"Indicators received over time, by type\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\",\"visualization\":\"timechart\",\"noDataMessage\":\"No DugganUSA indicators in this time range. Open the Connect DugganUSA section at the bottom of this workbook.\",\"noDataMessageStyle\":2,\"chartSettings\":{\"showLegend\":true,\"ySettings\":{\"min\":0}}},\"name\":\"received-over-time\",\"customWidth\":\"60\"},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"let DugganUSA = ThreatIntelIndicators\\n| where TimeGenerated {TimeRange}\\n| where SourceSystem has \\\"DugganUSA\\\" or tostring(Data.created_by_ref) == \\\"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\\\"\\n| summarize arg_max(TimeGenerated, *) by Id\\n| where IsActive == true and IsDeleted == false and (isempty(ValidUntil) or ValidUntil > now())\\n| extend IndicatorType = tostring(split(ObservableKey, \\\":\\\")[0])\\n| extend IndicatorType = iff(isnotempty(IndicatorType), IndicatorType,\\n coalesce(extract(@\\\"\\\\[\\\\s*([A-Za-z0-9-]+)\\\\s*:\\\", 1, tostring(Pattern)), \\\"unlabeled\\\"))\\n| where IndicatorType in ({IndicatorType}) or '*' in ({IndicatorType});\\nDugganUSA\\n| summarize Indicators = dcount(Id) by ConfidenceBand = bin(Confidence, 10)\\n| extend ConfidenceBand = strcat(tostring(ConfidenceBand), \\\"-\\\", tostring(min_of(ConfidenceBand + 9, 95)))\\n| order by ConfidenceBand asc\",\"size\":0,\"title\":\"Confidence distribution (active indicators)\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\",\"visualization\":\"barchart\",\"noDataMessage\":\"No DugganUSA indicators in this time range. Open the Connect DugganUSA section at the bottom of this workbook.\",\"noDataMessageStyle\":2,\"chartSettings\":{\"xColumn\":\"ConfidenceBand\",\"yAxis\":[\"Indicators\"],\"showLegend\":false,\"seriesLabelSettings\":[{\"seriesName\":\"Indicators\",\"color\":\"turquoise\"}]}},\"name\":\"confidence-distribution\",\"customWidth\":\"40\"},{\"type\":1,\"content\":{\"json\":\"**Matched indicators:** No matches. That is the good outcome, or the workspace has no ASIM network-session or DNS telemetry to match against: the analytic rules need the same.\",\"style\":\"info\"},\"name\":\"no-matches\",\"conditionalVisibility\":{\"parameterName\":\"HasMatches\",\"comparison\":\"isEqualTo\",\"value\":\"no\"}},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"let DugganUSA = ThreatIntelIndicators\\n| where TimeGenerated {TimeRange}\\n| where SourceSystem has \\\"DugganUSA\\\" or tostring(Data.created_by_ref) == \\\"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\\\"\\n| summarize arg_max(TimeGenerated, *) by Id\\n| where IsActive == true and IsDeleted == false and (isempty(ValidUntil) or ValidUntil > now())\\n| extend IndicatorType = tostring(split(ObservableKey, \\\":\\\")[0])\\n| extend IndicatorType = iff(isnotempty(IndicatorType), IndicatorType,\\n coalesce(extract(@\\\"\\\\[\\\\s*([A-Za-z0-9-]+)\\\\s*:\\\", 1, tostring(Pattern)), \\\"unlabeled\\\"))\\n| where IndicatorType in ({IndicatorType}) or '*' in ({IndicatorType});\\nlet IpMatches = DugganUSA\\n| where ObservableKey == \\\"ipv4-addr:value\\\"\\n| project Indicator = tostring(ObservableValue), IndicatorType, Confidence, ValidUntil\\n| join kind=inner (_Im_NetworkSession(starttime = {TimeRange:start}, endtime = now())\\n | project TimeGenerated, SrcIpAddr, DstIpAddr, SrcHostname\\n | mv-expand Indicator = pack_array(SrcIpAddr, DstIpAddr) to typeof(string)\\n | where isnotempty(Indicator)) on Indicator\\n| where isempty(ValidUntil) or TimeGenerated < ValidUntil\\n| project TimeGenerated, Indicator, IndicatorType, Confidence, Host = SrcHostname, Rule = \\\"IP in network sessions\\\";\\nlet DnsMatches = DugganUSA\\n| where ObservableKey == \\\"domain-name:value\\\"\\n| project Indicator = tolower(trim_end(@\\\"\\\\.\\\", tostring(ObservableValue))), IndicatorType, Confidence, ValidUntil\\n| join kind=inner (_Im_Dns(starttime = {TimeRange:start}, endtime = now())\\n | where isnotempty(DnsQuery)\\n | project TimeGenerated, Indicator = tolower(trim_end(@\\\"\\\\.\\\", DnsQuery)), SrcHostname) on Indicator\\n| where isempty(ValidUntil) or TimeGenerated < ValidUntil\\n| project TimeGenerated, Indicator, IndicatorType, Confidence, Host = SrcHostname, Rule = \\\"Domain in DNS activity\\\";\\nlet Matches = union IpMatches, DnsMatches | where Confidence >= {ConfidenceFloor};\\nMatches\\n| summarize Matches = count(), Hosts = dcount(Host), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated),\\n SampleHosts = make_set(Host, 5) by Indicator, IndicatorType, Confidence, Rule\\n| order by Confidence desc, Matches desc\\n| take 50\",\"size\":0,\"title\":\"Top matched indicators (same logic as the two DugganUSA analytic rules)\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\",\"noDataMessage\":\"No matches. That is the good outcome, or the workspace has no ASIM network-session or DNS telemetry to match against: the analytic rules need the same.\",\"noDataMessageStyle\":2,\"gridSettings\":{\"formatters\":[{\"columnMatch\":\"Confidence\",\"formatter\":4,\"formatOptions\":{\"min\":0,\"max\":95,\"palette\":\"blue\"}},{\"columnMatch\":\"Matches\",\"formatter\":8,\"formatOptions\":{\"palette\":\"blue\"}}],\"rowLimit\":50,\"filter\":true,\"sortBy\":[{\"itemKey\":\"Confidence\",\"sortOrder\":2}]},\"sortBy\":[{\"itemKey\":\"Confidence\",\"sortOrder\":2}]},\"name\":\"top-matches\",\"conditionalVisibility\":{\"parameterName\":\"HasMatches\",\"comparison\":\"isNotEqualTo\",\"value\":\"no\"}},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"let DugganUSA = ThreatIntelIndicators\\n| where TimeGenerated {TimeRange}\\n| where SourceSystem has \\\"DugganUSA\\\" or tostring(Data.created_by_ref) == \\\"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\\\"\\n| summarize arg_max(TimeGenerated, *) by Id\\n| where IsActive == true and IsDeleted == false and (isempty(ValidUntil) or ValidUntil > now())\\n| extend IndicatorType = tostring(split(ObservableKey, \\\":\\\")[0])\\n| extend IndicatorType = iff(isnotempty(IndicatorType), IndicatorType,\\n coalesce(extract(@\\\"\\\\[\\\\s*([A-Za-z0-9-]+)\\\\s*:\\\", 1, tostring(Pattern)), \\\"unlabeled\\\"))\\n| where IndicatorType in ({IndicatorType}) or '*' in ({IndicatorType});\\nlet IpMatches = DugganUSA\\n| where ObservableKey == \\\"ipv4-addr:value\\\"\\n| project Indicator = tostring(ObservableValue), IndicatorType, Confidence, ValidUntil\\n| join kind=inner (_Im_NetworkSession(starttime = {TimeRange:start}, endtime = now())\\n | project TimeGenerated, SrcIpAddr, DstIpAddr, SrcHostname\\n | mv-expand Indicator = pack_array(SrcIpAddr, DstIpAddr) to typeof(string)\\n | where isnotempty(Indicator)) on Indicator\\n| where isempty(ValidUntil) or TimeGenerated < ValidUntil\\n| project TimeGenerated, Indicator, IndicatorType, Confidence, Host = SrcHostname, Rule = \\\"IP in network sessions\\\";\\nlet DnsMatches = DugganUSA\\n| where ObservableKey == \\\"domain-name:value\\\"\\n| project Indicator = tolower(trim_end(@\\\"\\\\.\\\", tostring(ObservableValue))), IndicatorType, Confidence, ValidUntil\\n| join kind=inner (_Im_Dns(starttime = {TimeRange:start}, endtime = now())\\n | where isnotempty(DnsQuery)\\n | project TimeGenerated, Indicator = tolower(trim_end(@\\\"\\\\.\\\", DnsQuery)), SrcHostname) on Indicator\\n| where isempty(ValidUntil) or TimeGenerated < ValidUntil\\n| project TimeGenerated, Indicator, IndicatorType, Confidence, Host = SrcHostname, Rule = \\\"Domain in DNS activity\\\";\\nlet Matches = union IpMatches, DnsMatches | where Confidence >= {ConfidenceFloor};\\nMatches\\n| summarize Matches = count() by bin(TimeGenerated, {TimeRange:grain}), Rule\",\"size\":0,\"title\":\"Matches over time, by rule\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\",\"visualization\":\"timechart\",\"noDataMessage\":\"No matches. That is the good outcome, or the workspace has no ASIM network-session or DNS telemetry to match against: the analytic rules need the same.\",\"noDataMessageStyle\":2},\"name\":\"matches-over-time\",\"conditionalVisibility\":{\"parameterName\":\"HasMatches\",\"comparison\":\"isNotEqualTo\",\"value\":\"no\"}},{\"type\":1,\"content\":{\"json\":\"---\\n### 30-day lookback: did anything on the DugganUSA feed already reach you?\\nEvery active DugganUSA IP and domain at or above the confidence floor, matched against the logs this workspace already holds: Entra sign-ins, Defender for Endpoint, Defender for Office email, Windows DNS, firewalls (CEF), Microsoft 365 and Azure activity. Same tables as the **DugganUSA - retro-hunt** hunting query. Read the coverage line first: **zero matches only means something if a lot was checked.** A match is your own log touching a listed indicator, not proof of compromise.\"},\"name\":\"lookback-header\"},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"let DugganUSA = ThreatIntelIndicators\\n| where TimeGenerated {TimeRange}\\n| where SourceSystem has \\\"DugganUSA\\\" or tostring(Data.created_by_ref) == \\\"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\\\"\\n| summarize arg_max(TimeGenerated, *) by Id\\n| where IsActive == true and IsDeleted == false and (isempty(ValidUntil) or ValidUntil > now())\\n| extend IndicatorType = tostring(split(ObservableKey, \\\":\\\")[0])\\n| extend IndicatorType = iff(isnotempty(IndicatorType), IndicatorType,\\n coalesce(extract(@\\\"\\\\[\\\\s*([A-Za-z0-9-]+)\\\\s*:\\\", 1, tostring(Pattern)), \\\"unlabeled\\\"))\\n| where IndicatorType in ({IndicatorType}) or '*' in ({IndicatorType});\\nlet LbIndicators = DugganUSA\\n| where Confidence >= {ConfidenceFloor}\\n| where ObservableKey in (\\\"ipv4-addr:value\\\", \\\"ipv6-addr:value\\\", \\\"domain-name:value\\\")\\n| extend Indicator = tolower(tostring(ObservableValue))\\n| where isnotempty(Indicator)\\n| extend IndicatorType = case(Indicator matches regex @\\\"^\\\\d{1,3}(\\\\.\\\\d{1,3}){3}$\\\", \\\"ipv4-addr\\\", Indicator contains \\\":\\\", \\\"ipv6-addr\\\", \\\"domain-name\\\")\\n| summarize arg_max(Confidence, IndicatorName = tostring(Data.name), IndicatorType) by Indicator;\\nlet Seen = union isfuzzy=true\\n (SigninLogs | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(IPAddress), Source = \\\"Entra sign-in\\\", Who = tostring(UserPrincipalName), Failed = tostring(ResultType) != \\\"0\\\"),\\n (AADNonInteractiveUserSignInLogs | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(IPAddress), Source = \\\"Entra sign-in (non-interactive)\\\", Who = tostring(UserPrincipalName), Failed = tostring(ResultType) != \\\"0\\\"),\\n (DeviceNetworkEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(RemoteIP), Source = \\\"Defender for Endpoint network\\\", Who = tostring(DeviceName), Failed = false),\\n (DeviceNetworkEvents | where TimeGenerated {TimeRange} | where isnotempty(RemoteUrl) | project TimeGenerated, Indicator = tolower(tostring(coalesce(tostring(parse_url(RemoteUrl).Host), RemoteUrl))), Source = \\\"Defender for Endpoint network (host)\\\", Who = tostring(DeviceName), Failed = false),\\n (EmailUrlInfo | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(UrlDomain), Source = \\\"Email URL\\\", Who = tostring(NetworkMessageId), Failed = false),\\n (UrlClickEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(tostring(parse_url(Url).Host)), Source = \\\"Email URL click\\\", Who = tostring(AccountUpn), Failed = false),\\n (DnsEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = trim_end(@\\\"\\\\.\\\", tolower(Name)), Source = \\\"Windows DNS\\\", Who = tostring(Computer), Failed = false),\\n (CommonSecurityLog | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(SourceIP), Source = \\\"Firewall (inbound source)\\\", Who = tostring(DeviceName), Failed = false),\\n (CommonSecurityLog | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(DestinationIP), Source = \\\"Firewall (outbound destination)\\\", Who = tostring(DeviceName), Failed = false),\\n (OfficeActivity | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(tostring(split(ClientIP, \\\":\\\")[0])), Source = \\\"Microsoft 365 activity\\\", Who = tostring(UserId), Failed = false),\\n (AzureActivity | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(CallerIpAddress), Source = \\\"Azure activity\\\", Who = tostring(Caller), Failed = false)\\n| where isnotempty(Indicator);\\nlet AllSources = datatable(Source:string) [\\\"Entra sign-in\\\", \\\"Entra sign-in (non-interactive)\\\", \\\"Defender for Endpoint network\\\", \\\"Defender for Endpoint network (host)\\\", \\\"Email URL\\\", \\\"Email URL click\\\", \\\"Windows DNS\\\", \\\"Firewall (inbound source)\\\", \\\"Firewall (outbound destination)\\\", \\\"Microsoft 365 activity\\\", \\\"Azure activity\\\"];\\nlet Floor = toscalar(LbIndicators | count);\\nlet Values = toscalar(Seen | summarize dcount(Indicator));\\nlet Tables = toscalar(Seen | summarize dcount(Source));\\nlet Total = toscalar(AllSources | count);\\nlet M = LbIndicators | join kind=inner (Seen) on Indicator;\\nlet Matched = toscalar(M | summarize dcount(Indicator));\\nlet Touched = toscalar(M | where isnotempty(Who) | summarize dcount(Who));\\ndatatable(Order:int, Metric:string, Value:long, Note:string) [\\n 1, \\\"Feed indicators checked\\\", 0, \\\"IPs + domains at or above the floor\\\",\\n 2, \\\"Your IPs/domains checked\\\", 0, \\\"distinct values in your logs\\\",\\n 3, \\\"Log sources with data\\\", 0, \\\"\\\",\\n 4, \\\"Indicators that reached you\\\", 0, \\\"\\\",\\n 5, \\\"Users / devices involved\\\", 0, \\\"from the matching rows\\\"\\n]\\n| extend Value = case(Order == 1, Floor, Order == 2, Values, Order == 3, Tables, Order == 4, Matched, Touched)\\n| extend Note = case(Order == 3, strcat(\\\"of \\\", tostring(Total), \\\" the lookback reads\\\"),\\n Order == 4, iff(Matched == 0, strcat(\\\"none, across \\\", tostring(Values), \\\" values checked\\\"), \\\"see the table below\\\"), Note)\\n| order by Order asc\",\"size\":4,\"title\":\"\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\",\"visualization\":\"tiles\",\"noDataMessage\":\"No DugganUSA indicators in this time range. Open the Connect DugganUSA section at the bottom of this workbook.\",\"noDataMessageStyle\":2,\"tileSettings\":{\"titleContent\":{\"columnMatch\":\"Metric\",\"formatter\":1},\"leftContent\":{\"columnMatch\":\"Value\",\"formatter\":12,\"formatOptions\":{\"palette\":\"none\"},\"numberFormat\":{\"unit\":17,\"options\":{\"style\":\"decimal\",\"maximumFractionDigits\":0}}},\"secondaryContent\":{\"columnMatch\":\"Note\",\"formatter\":1},\"showBorder\":true,\"size\":\"auto\"}},\"name\":\"lookback-tiles\"},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"let DugganUSA = ThreatIntelIndicators\\n| where TimeGenerated {TimeRange}\\n| where SourceSystem has \\\"DugganUSA\\\" or tostring(Data.created_by_ref) == \\\"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\\\"\\n| summarize arg_max(TimeGenerated, *) by Id\\n| where IsActive == true and IsDeleted == false and (isempty(ValidUntil) or ValidUntil > now())\\n| extend IndicatorType = tostring(split(ObservableKey, \\\":\\\")[0])\\n| extend IndicatorType = iff(isnotempty(IndicatorType), IndicatorType,\\n coalesce(extract(@\\\"\\\\[\\\\s*([A-Za-z0-9-]+)\\\\s*:\\\", 1, tostring(Pattern)), \\\"unlabeled\\\"))\\n| where IndicatorType in ({IndicatorType}) or '*' in ({IndicatorType});\\nlet LbIndicators = DugganUSA\\n| where Confidence >= {ConfidenceFloor}\\n| where ObservableKey in (\\\"ipv4-addr:value\\\", \\\"ipv6-addr:value\\\", \\\"domain-name:value\\\")\\n| extend Indicator = tolower(tostring(ObservableValue))\\n| where isnotempty(Indicator)\\n| extend IndicatorType = case(Indicator matches regex @\\\"^\\\\d{1,3}(\\\\.\\\\d{1,3}){3}$\\\", \\\"ipv4-addr\\\", Indicator contains \\\":\\\", \\\"ipv6-addr\\\", \\\"domain-name\\\")\\n| summarize arg_max(Confidence, IndicatorName = tostring(Data.name), IndicatorType) by Indicator;\\nlet Seen = union isfuzzy=true\\n (SigninLogs | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(IPAddress), Source = \\\"Entra sign-in\\\", Who = tostring(UserPrincipalName), Failed = tostring(ResultType) != \\\"0\\\"),\\n (AADNonInteractiveUserSignInLogs | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(IPAddress), Source = \\\"Entra sign-in (non-interactive)\\\", Who = tostring(UserPrincipalName), Failed = tostring(ResultType) != \\\"0\\\"),\\n (DeviceNetworkEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(RemoteIP), Source = \\\"Defender for Endpoint network\\\", Who = tostring(DeviceName), Failed = false),\\n (DeviceNetworkEvents | where TimeGenerated {TimeRange} | where isnotempty(RemoteUrl) | project TimeGenerated, Indicator = tolower(tostring(coalesce(tostring(parse_url(RemoteUrl).Host), RemoteUrl))), Source = \\\"Defender for Endpoint network (host)\\\", Who = tostring(DeviceName), Failed = false),\\n (EmailUrlInfo | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(UrlDomain), Source = \\\"Email URL\\\", Who = tostring(NetworkMessageId), Failed = false),\\n (UrlClickEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(tostring(parse_url(Url).Host)), Source = \\\"Email URL click\\\", Who = tostring(AccountUpn), Failed = false),\\n (DnsEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = trim_end(@\\\"\\\\.\\\", tolower(Name)), Source = \\\"Windows DNS\\\", Who = tostring(Computer), Failed = false),\\n (CommonSecurityLog | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(SourceIP), Source = \\\"Firewall (inbound source)\\\", Who = tostring(DeviceName), Failed = false),\\n (CommonSecurityLog | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(DestinationIP), Source = \\\"Firewall (outbound destination)\\\", Who = tostring(DeviceName), Failed = false),\\n (OfficeActivity | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(tostring(split(ClientIP, \\\":\\\")[0])), Source = \\\"Microsoft 365 activity\\\", Who = tostring(UserId), Failed = false),\\n (AzureActivity | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(CallerIpAddress), Source = \\\"Azure activity\\\", Who = tostring(Caller), Failed = false)\\n| where isnotempty(Indicator);\\nlet AllSources = datatable(Source:string) [\\\"Entra sign-in\\\", \\\"Entra sign-in (non-interactive)\\\", \\\"Defender for Endpoint network\\\", \\\"Defender for Endpoint network (host)\\\", \\\"Email URL\\\", \\\"Email URL click\\\", \\\"Windows DNS\\\", \\\"Firewall (inbound source)\\\", \\\"Firewall (outbound destination)\\\", \\\"Microsoft 365 activity\\\", \\\"Azure activity\\\"];\\nlet Checked = Seen | summarize Rows = count(), Values = dcount(Indicator) by Source;\\nlet Hit = LbIndicators | join kind=inner (Seen | summarize by Indicator, Source) on Indicator | summarize Matched = dcount(Indicator) by Source;\\nAllSources\\n| join kind=leftouter Checked on Source\\n| join kind=leftouter Hit on Source\\n| extend Rows = coalesce(Rows, 0), Values = coalesce(Values, 0), Matched = coalesce(Matched, 0)\\n| extend Status = case(Rows == 0, \\\"not in this workspace\\\", Matched > 0, \\\"matches found\\\", \\\"checked, clean\\\")\\n| project Source, Status, [\\\"Log rows\\\"] = Rows, [\\\"Distinct IPs/domains\\\"] = Values, [\\\"Feed indicators matched\\\"] = Matched\\n| order by [\\\"Feed indicators matched\\\"] desc, [\\\"Log rows\\\"] desc\",\"size\":0,\"title\":\"What the lookback read (the denominator)\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\",\"noDataMessage\":\"No DugganUSA indicators in this time range. Open the Connect DugganUSA section at the bottom of this workbook.\",\"noDataMessageStyle\":2,\"gridSettings\":{\"formatters\":[{\"columnMatch\":\"Status\",\"formatter\":18,\"formatOptions\":{\"thresholdsOptions\":\"icons\",\"thresholdsGrid\":[{\"operator\":\"==\",\"thresholdValue\":\"matches found\",\"representation\":\"2\",\"text\":\"{0}{1}\"},{\"operator\":\"==\",\"thresholdValue\":\"checked, clean\",\"representation\":\"success\",\"text\":\"{0}{1}\"},{\"operator\":\"Default\",\"representation\":\"disabled\",\"text\":\"{0}{1}\"}]}},{\"columnMatch\":\"Log rows\",\"formatter\":8,\"formatOptions\":{\"palette\":\"grayBlue\"}},{\"columnMatch\":\"Feed indicators matched\",\"formatter\":8,\"formatOptions\":{\"palette\":\"orange\"}}],\"rowLimit\":20}},\"name\":\"lookback-coverage\",\"customWidth\":\"50\"},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"let DugganUSA = ThreatIntelIndicators\\n| where TimeGenerated {TimeRange}\\n| where SourceSystem has \\\"DugganUSA\\\" or tostring(Data.created_by_ref) == \\\"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\\\"\\n| summarize arg_max(TimeGenerated, *) by Id\\n| where IsActive == true and IsDeleted == false and (isempty(ValidUntil) or ValidUntil > now())\\n| extend IndicatorType = tostring(split(ObservableKey, \\\":\\\")[0])\\n| extend IndicatorType = iff(isnotempty(IndicatorType), IndicatorType,\\n coalesce(extract(@\\\"\\\\[\\\\s*([A-Za-z0-9-]+)\\\\s*:\\\", 1, tostring(Pattern)), \\\"unlabeled\\\"))\\n| where IndicatorType in ({IndicatorType}) or '*' in ({IndicatorType});\\nlet LbIndicators = DugganUSA\\n| where Confidence >= {ConfidenceFloor}\\n| where ObservableKey in (\\\"ipv4-addr:value\\\", \\\"ipv6-addr:value\\\", \\\"domain-name:value\\\")\\n| extend Indicator = tolower(tostring(ObservableValue))\\n| where isnotempty(Indicator)\\n| extend IndicatorType = case(Indicator matches regex @\\\"^\\\\d{1,3}(\\\\.\\\\d{1,3}){3}$\\\", \\\"ipv4-addr\\\", Indicator contains \\\":\\\", \\\"ipv6-addr\\\", \\\"domain-name\\\")\\n| summarize arg_max(Confidence, IndicatorName = tostring(Data.name), IndicatorType) by Indicator;\\nlet Seen = union isfuzzy=true\\n (SigninLogs | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(IPAddress), Source = \\\"Entra sign-in\\\", Who = tostring(UserPrincipalName), Failed = tostring(ResultType) != \\\"0\\\"),\\n (AADNonInteractiveUserSignInLogs | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(IPAddress), Source = \\\"Entra sign-in (non-interactive)\\\", Who = tostring(UserPrincipalName), Failed = tostring(ResultType) != \\\"0\\\"),\\n (DeviceNetworkEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(RemoteIP), Source = \\\"Defender for Endpoint network\\\", Who = tostring(DeviceName), Failed = false),\\n (DeviceNetworkEvents | where TimeGenerated {TimeRange} | where isnotempty(RemoteUrl) | project TimeGenerated, Indicator = tolower(tostring(coalesce(tostring(parse_url(RemoteUrl).Host), RemoteUrl))), Source = \\\"Defender for Endpoint network (host)\\\", Who = tostring(DeviceName), Failed = false),\\n (EmailUrlInfo | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(UrlDomain), Source = \\\"Email URL\\\", Who = tostring(NetworkMessageId), Failed = false),\\n (UrlClickEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(tostring(parse_url(Url).Host)), Source = \\\"Email URL click\\\", Who = tostring(AccountUpn), Failed = false),\\n (DnsEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = trim_end(@\\\"\\\\.\\\", tolower(Name)), Source = \\\"Windows DNS\\\", Who = tostring(Computer), Failed = false),\\n (CommonSecurityLog | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(SourceIP), Source = \\\"Firewall (inbound source)\\\", Who = tostring(DeviceName), Failed = false),\\n (CommonSecurityLog | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(DestinationIP), Source = \\\"Firewall (outbound destination)\\\", Who = tostring(DeviceName), Failed = false),\\n (OfficeActivity | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(tostring(split(ClientIP, \\\":\\\")[0])), Source = \\\"Microsoft 365 activity\\\", Who = tostring(UserId), Failed = false),\\n (AzureActivity | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(CallerIpAddress), Source = \\\"Azure activity\\\", Who = tostring(Caller), Failed = false)\\n| where isnotempty(Indicator);\\nlet LbMatches = LbIndicators | join kind=inner (Seen) on Indicator;\\nLbMatches\\n| summarize Indicators = dcount(Indicator), Hits = count() by Source\\n| order by Indicators desc\",\"size\":0,\"title\":\"Indicators that reached you, by log source\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\",\"visualization\":\"barchart\",\"noDataMessage\":\"No feed indicator appears in these logs in the selected range. Check the coverage table: clean only counts where rows were read.\",\"noDataMessageStyle\":2,\"chartSettings\":{\"xColumn\":\"Source\",\"yAxis\":[\"Indicators\"],\"showLegend\":false,\"seriesLabelSettings\":[{\"seriesName\":\"Indicators\",\"color\":\"turquoise\"}]}},\"name\":\"lookback-by-source\",\"customWidth\":\"50\"},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"let DugganUSA = ThreatIntelIndicators\\n| where TimeGenerated {TimeRange}\\n| where SourceSystem has \\\"DugganUSA\\\" or tostring(Data.created_by_ref) == \\\"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\\\"\\n| summarize arg_max(TimeGenerated, *) by Id\\n| where IsActive == true and IsDeleted == false and (isempty(ValidUntil) or ValidUntil > now())\\n| extend IndicatorType = tostring(split(ObservableKey, \\\":\\\")[0])\\n| extend IndicatorType = iff(isnotempty(IndicatorType), IndicatorType,\\n coalesce(extract(@\\\"\\\\[\\\\s*([A-Za-z0-9-]+)\\\\s*:\\\", 1, tostring(Pattern)), \\\"unlabeled\\\"))\\n| where IndicatorType in ({IndicatorType}) or '*' in ({IndicatorType});\\nlet LbIndicators = DugganUSA\\n| where Confidence >= {ConfidenceFloor}\\n| where ObservableKey in (\\\"ipv4-addr:value\\\", \\\"ipv6-addr:value\\\", \\\"domain-name:value\\\")\\n| extend Indicator = tolower(tostring(ObservableValue))\\n| where isnotempty(Indicator)\\n| extend IndicatorType = case(Indicator matches regex @\\\"^\\\\d{1,3}(\\\\.\\\\d{1,3}){3}$\\\", \\\"ipv4-addr\\\", Indicator contains \\\":\\\", \\\"ipv6-addr\\\", \\\"domain-name\\\")\\n| summarize arg_max(Confidence, IndicatorName = tostring(Data.name), IndicatorType) by Indicator;\\nlet Seen = union isfuzzy=true\\n (SigninLogs | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(IPAddress), Source = \\\"Entra sign-in\\\", Who = tostring(UserPrincipalName), Failed = tostring(ResultType) != \\\"0\\\"),\\n (AADNonInteractiveUserSignInLogs | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(IPAddress), Source = \\\"Entra sign-in (non-interactive)\\\", Who = tostring(UserPrincipalName), Failed = tostring(ResultType) != \\\"0\\\"),\\n (DeviceNetworkEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(RemoteIP), Source = \\\"Defender for Endpoint network\\\", Who = tostring(DeviceName), Failed = false),\\n (DeviceNetworkEvents | where TimeGenerated {TimeRange} | where isnotempty(RemoteUrl) | project TimeGenerated, Indicator = tolower(tostring(coalesce(tostring(parse_url(RemoteUrl).Host), RemoteUrl))), Source = \\\"Defender for Endpoint network (host)\\\", Who = tostring(DeviceName), Failed = false),\\n (EmailUrlInfo | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(UrlDomain), Source = \\\"Email URL\\\", Who = tostring(NetworkMessageId), Failed = false),\\n (UrlClickEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(tostring(parse_url(Url).Host)), Source = \\\"Email URL click\\\", Who = tostring(AccountUpn), Failed = false),\\n (DnsEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = trim_end(@\\\"\\\\.\\\", tolower(Name)), Source = \\\"Windows DNS\\\", Who = tostring(Computer), Failed = false),\\n (CommonSecurityLog | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(SourceIP), Source = \\\"Firewall (inbound source)\\\", Who = tostring(DeviceName), Failed = false),\\n (CommonSecurityLog | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(DestinationIP), Source = \\\"Firewall (outbound destination)\\\", Who = tostring(DeviceName), Failed = false),\\n (OfficeActivity | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(tostring(split(ClientIP, \\\":\\\")[0])), Source = \\\"Microsoft 365 activity\\\", Who = tostring(UserId), Failed = false),\\n (AzureActivity | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(CallerIpAddress), Source = \\\"Azure activity\\\", Who = tostring(Caller), Failed = false)\\n| where isnotempty(Indicator);\\nlet LbMatches = LbIndicators | join kind=inner (Seen) on Indicator;\\nLbMatches\\n| summarize Indicators = dcount(Indicator) by bin(TimeGenerated, 1d), Source\",\"size\":0,\"title\":\"When they reached you (distinct indicators per day)\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\",\"visualization\":\"timechart\",\"noDataMessage\":\"No matches to plot.\",\"noDataMessageStyle\":2},\"name\":\"lookback-timeline\",\"conditionalVisibility\":{\"parameterName\":\"HasLookback\",\"comparison\":\"isEqualTo\",\"value\":\"yes\"}},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"let DugganUSA = ThreatIntelIndicators\\n| where TimeGenerated {TimeRange}\\n| where SourceSystem has \\\"DugganUSA\\\" or tostring(Data.created_by_ref) == \\\"identity--f4a8c3d2-1b9e-4f7a-8c2d-9e3f5b6a7c8d\\\"\\n| summarize arg_max(TimeGenerated, *) by Id\\n| where IsActive == true and IsDeleted == false and (isempty(ValidUntil) or ValidUntil > now())\\n| extend IndicatorType = tostring(split(ObservableKey, \\\":\\\")[0])\\n| extend IndicatorType = iff(isnotempty(IndicatorType), IndicatorType,\\n coalesce(extract(@\\\"\\\\[\\\\s*([A-Za-z0-9-]+)\\\\s*:\\\", 1, tostring(Pattern)), \\\"unlabeled\\\"))\\n| where IndicatorType in ({IndicatorType}) or '*' in ({IndicatorType});\\nlet LbIndicators = DugganUSA\\n| where Confidence >= {ConfidenceFloor}\\n| where ObservableKey in (\\\"ipv4-addr:value\\\", \\\"ipv6-addr:value\\\", \\\"domain-name:value\\\")\\n| extend Indicator = tolower(tostring(ObservableValue))\\n| where isnotempty(Indicator)\\n| extend IndicatorType = case(Indicator matches regex @\\\"^\\\\d{1,3}(\\\\.\\\\d{1,3}){3}$\\\", \\\"ipv4-addr\\\", Indicator contains \\\":\\\", \\\"ipv6-addr\\\", \\\"domain-name\\\")\\n| summarize arg_max(Confidence, IndicatorName = tostring(Data.name), IndicatorType) by Indicator;\\nlet Seen = union isfuzzy=true\\n (SigninLogs | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(IPAddress), Source = \\\"Entra sign-in\\\", Who = tostring(UserPrincipalName), Failed = tostring(ResultType) != \\\"0\\\"),\\n (AADNonInteractiveUserSignInLogs | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(IPAddress), Source = \\\"Entra sign-in (non-interactive)\\\", Who = tostring(UserPrincipalName), Failed = tostring(ResultType) != \\\"0\\\"),\\n (DeviceNetworkEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(RemoteIP), Source = \\\"Defender for Endpoint network\\\", Who = tostring(DeviceName), Failed = false),\\n (DeviceNetworkEvents | where TimeGenerated {TimeRange} | where isnotempty(RemoteUrl) | project TimeGenerated, Indicator = tolower(tostring(coalesce(tostring(parse_url(RemoteUrl).Host), RemoteUrl))), Source = \\\"Defender for Endpoint network (host)\\\", Who = tostring(DeviceName), Failed = false),\\n (EmailUrlInfo | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(UrlDomain), Source = \\\"Email URL\\\", Who = tostring(NetworkMessageId), Failed = false),\\n (UrlClickEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(tostring(parse_url(Url).Host)), Source = \\\"Email URL click\\\", Who = tostring(AccountUpn), Failed = false),\\n (DnsEvents | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = trim_end(@\\\"\\\\.\\\", tolower(Name)), Source = \\\"Windows DNS\\\", Who = tostring(Computer), Failed = false),\\n (CommonSecurityLog | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(SourceIP), Source = \\\"Firewall (inbound source)\\\", Who = tostring(DeviceName), Failed = false),\\n (CommonSecurityLog | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(DestinationIP), Source = \\\"Firewall (outbound destination)\\\", Who = tostring(DeviceName), Failed = false),\\n (OfficeActivity | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(tostring(split(ClientIP, \\\":\\\")[0])), Source = \\\"Microsoft 365 activity\\\", Who = tostring(UserId), Failed = false),\\n (AzureActivity | where TimeGenerated {TimeRange} | project TimeGenerated, Indicator = tolower(CallerIpAddress), Source = \\\"Azure activity\\\", Who = tostring(Caller), Failed = false)\\n| where isnotempty(Indicator);\\nlet LbMatches = LbIndicators | join kind=inner (Seen) on Indicator;\\nLbMatches\\n| summarize Hits = count(), Failed = countif(Failed), Involved = dcount(Who), Sample = make_set(Who, 5),\\n FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)\\n by Indicator, IndicatorType, Source, Confidence, IndicatorName\\n| project Indicator, IndicatorType, Source, Confidence, Hits, [\\\"Failed sign-ins\\\"] = Failed, [\\\"Users/devices\\\"] = Involved,\\n Sample, FirstSeen, LastSeen, IndicatorName\\n| order by Confidence desc, Hits desc\\n| take 200\",\"size\":0,\"title\":\"Every match (newest evidence per indicator and log source)\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\",\"noDataMessage\":\"No matches.\",\"noDataMessageStyle\":2,\"gridSettings\":{\"formatters\":[{\"columnMatch\":\"Confidence\",\"formatter\":4,\"formatOptions\":{\"min\":0,\"max\":95,\"palette\":\"blue\"}},{\"columnMatch\":\"Hits\",\"formatter\":8,\"formatOptions\":{\"palette\":\"orange\"}},{\"columnMatch\":\"Failed sign-ins\",\"formatter\":8,\"formatOptions\":{\"palette\":\"red\"}}],\"rowLimit\":200,\"filter\":true}},\"name\":\"lookback-grid\",\"conditionalVisibility\":{\"parameterName\":\"HasLookback\",\"comparison\":\"isEqualTo\",\"value\":\"yes\"}},{\"type\":1,\"content\":{\"json\":\"---\\n### Edge: what DugganUSA blocked for you\\nDecisions from the DugganUSA edge shield in front of your sites: **blocks** (a request refused at the edge) and **canary hits** (a request for a trap path no real visitor asks for). Each row arrives enriched: whether the address is on the published feed, what we know about it, and its /24 neighbors. Blocks arrive about two hours after they happen (hourly edge sync). An empty Actor or CVE means unknown, not clean.\"},\"name\":\"edge-header\",\"conditionalVisibility\":{\"parameterName\":\"HasEdge\",\"comparison\":\"isEqualTo\",\"value\":\"yes\"}},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"let Edge = DugganUSAEdgeDecisions_CL\\n| where TimeGenerated {TimeRange}\\n| extend Conf = toint(Confidence), OnFeed = tostring(OnPublishedFeed);\\nEdge\\n| summarize Blocks = countif(Kind == \\\"block\\\"), Canaries = countif(Kind == \\\"canary\\\"), Ips = dcount(ClientIP),\\n OnFeed = dcountif(ClientIP, OnFeed == \\\"True\\\"), FeedKnown = dcountif(ClientIP, OnFeed in (\\\"True\\\", \\\"False\\\")),\\n WithActor = dcountif(ClientIP, isnotempty(Actor)), Asns = dcount(ASN), Newest = max(TimeGenerated)\\n| extend r = 1\\n| join kind=inner (datatable(r:int, Order:int, Metric:string)[1,1,\\\"Blocked requests\\\",1,2,\\\"Canary hits\\\",1,3,\\\"Distinct attacker IPs\\\",1,4,\\\"Already on the published feed\\\",1,5,\\\"Networks (ASNs)\\\"]) on r\\n| extend Value = case(Order == 1, Blocks, Order == 2, Canaries, Order == 3, Ips, Order == 4, OnFeed, Asns)\\n| extend Note = case(Order == 1, strcat(\\\"newest \\\", format_datetime(Newest, \\\"yyyy-MM-dd HH:mm\\\"), \\\" UTC\\\"),\\n Order == 4, strcat(\\\"of \\\", tostring(FeedKnown), \\\" IPs with a known answer\\\"),\\n Order == 3, strcat(tostring(WithActor), \\\" with a named actor\\\"), \\\"\\\")\\n| project Order, Metric, Value, Note | order by Order asc\",\"size\":4,\"title\":\"\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\",\"visualization\":\"tiles\",\"tileSettings\":{\"titleContent\":{\"columnMatch\":\"Metric\",\"formatter\":1},\"leftContent\":{\"columnMatch\":\"Value\",\"formatter\":12,\"formatOptions\":{\"palette\":\"none\"},\"numberFormat\":{\"unit\":17,\"options\":{\"style\":\"decimal\",\"maximumFractionDigits\":0}}},\"secondaryContent\":{\"columnMatch\":\"Note\",\"formatter\":1},\"showBorder\":true,\"size\":\"auto\"}},\"name\":\"edge-tiles\",\"conditionalVisibility\":{\"parameterName\":\"HasEdge\",\"comparison\":\"isEqualTo\",\"value\":\"yes\"}},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"let Edge = DugganUSAEdgeDecisions_CL\\n| where TimeGenerated {TimeRange}\\n| extend Conf = toint(Confidence), OnFeed = tostring(OnPublishedFeed);\\nEdge\\n| summarize Decisions = count() by bin(TimeGenerated, {TimeRange:grain}), Kind\",\"size\":0,\"title\":\"Edge decisions over time\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\",\"visualization\":\"timechart\"},\"name\":\"edge-over-time\",\"customWidth\":\"60\",\"conditionalVisibility\":{\"parameterName\":\"HasEdge\",\"comparison\":\"isEqualTo\",\"value\":\"yes\"}},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"let Edge = DugganUSAEdgeDecisions_CL\\n| where TimeGenerated {TimeRange}\\n| extend Conf = toint(Confidence), OnFeed = tostring(OnPublishedFeed);\\nEdge\\n| summarize Decisions = count(), IPs = dcount(ClientIP) by ASN\\n| top 10 by Decisions\",\"size\":0,\"title\":\"Where it came from (top networks)\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\",\"visualization\":\"barchart\",\"chartSettings\":{\"xColumn\":\"ASN\",\"yAxis\":[\"Decisions\"],\"showLegend\":false,\"seriesLabelSettings\":[{\"seriesName\":\"Decisions\",\"color\":\"turquoise\"}]}},\"name\":\"edge-by-asn\",\"customWidth\":\"40\",\"conditionalVisibility\":{\"parameterName\":\"HasEdge\",\"comparison\":\"isEqualTo\",\"value\":\"yes\"}},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"let Edge = DugganUSAEdgeDecisions_CL\\n| where TimeGenerated {TimeRange}\\n| extend Conf = toint(Confidence), OnFeed = tostring(OnPublishedFeed);\\nEdge\\n| summarize Decisions = count(), IPs = dcount(ClientIP), Hosts = make_set(Host, 3), CVE = take_any(Cve)\\n by Path, Kind, Ttp = coalesce(Ttp, Reason)\\n| top 25 by Decisions\",\"size\":0,\"title\":\"What they were after (top paths and tactics)\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\",\"gridSettings\":{\"formatters\":[{\"columnMatch\":\"Decisions\",\"formatter\":8,\"formatOptions\":{\"palette\":\"orange\"}}],\"rowLimit\":25}},\"name\":\"edge-what\",\"customWidth\":\"50\",\"conditionalVisibility\":{\"parameterName\":\"HasEdge\",\"comparison\":\"isEqualTo\",\"value\":\"yes\"}},{\"type\":3,\"content\":{\"version\":\"KqlItem/1.0\",\"query\":\"let Edge = DugganUSAEdgeDecisions_CL\\n| where TimeGenerated {TimeRange}\\n| extend Conf = toint(Confidence), OnFeed = tostring(OnPublishedFeed);\\nEdge\\n| summarize Decisions = count(), Kinds = make_set(Kind), LastSeen = max(TimeGenerated)\\n by ClientIP, ASN, Country, OnPublishedFeed = OnFeed, Confidence = Conf, Actor, MalwareFamily, HeldBasis, Neighbors24 = toint(Neighbors24)\\n| order by Decisions desc\\n| take 50\",\"size\":0,\"title\":\"Who (enriched attacker IPs)\",\"timeContextFromParameter\":\"TimeRange\",\"queryType\":0,\"resourceType\":\"microsoft.operationalinsights/workspaces\",\"gridSettings\":{\"formatters\":[{\"columnMatch\":\"Confidence\",\"formatter\":4,\"formatOptions\":{\"min\":0,\"max\":95,\"palette\":\"blue\"}},{\"columnMatch\":\"Decisions\",\"formatter\":8,\"formatOptions\":{\"palette\":\"orange\"}}],\"rowLimit\":50,\"filter\":true}},\"name\":\"edge-who\",\"customWidth\":\"50\",\"conditionalVisibility\":{\"parameterName\":\"HasEdge\",\"comparison\":\"isEqualTo\",\"value\":\"yes\"}},{\"type\":1,\"content\":{\"json\":\"---\\n### Connect DugganUSA\\nIndicators arrive through Microsoft Sentinel's built-in **Threat Intelligence - TAXII** connector. The quickest path is the **DugganUSA Threat Intelligence (via TAXII)** connector page in **Data connectors**: it has a one-step deployment where you paste your API key and choose a polling frequency. By hand, the values are:\\n\\n| Field | Value |\\n|---|---|\\n| Friendly name | `DugganUSA` |\\n| API root URL | `https://analytics.dugganusa.com/api/v1/taxii/` |\\n| Collection ID | `dugganusa-threat-intel` |\\n| Username | any value, for example `sentinel` |\\n| Password | your DugganUSA API key ([register](https://analytics.dugganusa.com/stix/register)) |\\n\\nIndicators expire on their own (`ValidUntil`: IPs and URLs 30 days, domains 60, file hashes 120) and are re-sent while they stay listed. Panels above count an indicator once, at its latest version.\"},\"name\":\"connect\"}],\"fromTemplateId\":\"sentinel-DugganUSAThreatIntelligence\",\"$schema\":\"https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json\"}\n",
+ "version": "1.0",
+ "sourceId": "[variables('workspaceResourceId')]",
+ "category": "sentinel"
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/metadata",
+ "apiVersion": "2022-01-01-preview",
+ "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/',concat('Workbook-', last(split(variables('workbookId1'),'/'))))]",
+ "properties": {
+ "description": "DugganUSA threat intelligence in Microsoft Sentinel: active indicators by type, average confidence, indicators received over time, the confidence distribution, the indicators that matched your ASIM network-session and DNS activity, a 30-day lookback of matches in the logs the workspace already holds, and edge-shield blocks and canary hits when the DugganUSAEdgeDecisions_CL table exists.",
+ "parentId": "[variables('workbookId1')]",
+ "contentId": "[variables('_workbookContentId1')]",
+ "kind": "Workbook",
+ "version": "[variables('workbookVersion1')]",
+ "source": {
+ "kind": "Solution",
+ "name": "DugganUSA Threat Intelligence",
+ "sourceId": "[variables('_solutionId')]"
+ },
+ "author": {
+ "name": "DugganUSA LLC",
+ "email": "[variables('_email')]"
+ },
+ "support": {
+ "name": "DugganUSA LLC",
+ "email": "butterbot@dugganusa.com",
+ "tier": "Community",
+ "link": "https://www.dugganusa.com"
+ },
+ "dependencies": {
+ "operator": "AND",
+ "criteria": [
+ {
+ "contentId": "ThreatIntelIndicators",
+ "kind": "DataType"
+ },
+ {
+ "contentId": "ThreatIntelligenceTaxii",
+ "kind": "DataConnector"
+ }
+ ]
+ }
+ },
+ "description": "DugganUSA indicators in your workspace: active indicators by type, average confidence, indicators received over time, the confidence distribution, the indicators that matched your ASIM network-session and DNS activity, a 30-day lookback of matches in the logs the workspace already holds, and (shown only when the DugganUSAEdgeDecisions_CL table exists) blocks and canary hits from the DugganUSA edge shield."
+ }
+ ]
+ },
+ "packageKind": "Solution",
+ "packageVersion": "[variables('_solutionVersion')]",
+ "packageName": "[variables('_solutionName')]",
+ "packageId": "[variables('_solutionId')]",
+ "contentSchemaVersion": "3.0.0",
+ "contentId": "[variables('_workbookContentId1')]",
+ "contentKind": "Workbook",
+ "displayName": "[parameters('workbook1-name')]",
+ "contentProductId": "[variables('_workbookcontentProductId1')]",
+ "id": "[variables('_workbookcontentProductId1')]",
+ "version": "[variables('workbookVersion1')]"
+ }
+ },
+ {
+ "type": "Microsoft.OperationalInsights/workspaces/providers/contentPackages",
+ "apiVersion": "2023-04-01-preview",
+ "location": "[parameters('workspace-location')]",
+ "properties": {
+ "version": "3.0.2",
+ "kind": "Solution",
+ "contentSchemaVersion": "3.0.0",
+ "displayName": "DugganUSA Threat Intelligence",
+ "publisherDisplayName": "DugganUSA LLC",
+ "descriptionHtml": "
Note: Please refer to the following before installing the solution:
\n• Review the solution Release Notes
\n• There may be known issues pertaining to this Solution, please refer to them before installing.
\nThe DugganUSA solution for Microsoft Sentinel adds a connector page, analytic rules, hunting queries and a workbook for the DugganUSA threat-intelligence feed, published as STIX 2.1 indicators over a TAXII 2.1 server. DugganUSA LLC licenses threat-intelligence data: IPv4 addresses, domains, URLs, file hashes (MD5, SHA-1, SHA-256) and X.509 certificate hashes, each with a confidence score you can filter on. Indicators from third-party sources we redistribute are labeled as such, never as our own observations, and corrections are published openly at analytics.dugganusa.com/updates.
\nIndicators arrive through Microsoft Sentinel's built-in Threat Intelligence - TAXII data connector and land in the ThreatIntelIndicators table. The solution adds a DugganUSA Threat Intelligence (via TAXII) connector page that sets up that connection: a one-step deployment where you paste your API key and choose a polling frequency, or the values to enter by hand. It also installs five analytic rules, eight hunting queries and a workbook.
\nBefore you install
\nYou need a DugganUSA API key. Register at analytics.dugganusa.com/stix/register. A free tier exists; it is rate-limited (10 feed queries a day), so its first import completes over several days and it suits once-a-day polling. Paid tiers are listed at analytics.dugganusa.com/pricing.
\nConnecting the feed
\nAfter installing, open Data connectors, find DugganUSA Threat Intelligence (via TAXII) and select Open connector page. Use Deploy to Azure there, or open Threat Intelligence - TAXII (install the Threat Intelligence solution from the Content hub if it is missing), select Add, and enter:
\n| Field | \nValue | \n
|---|---|
| Friendly name | \nDugganUSA | \n
| API root URL | \nhttps://analytics.dugganusa.com/api/v1/taxii/ | \n
| Collection ID | \ndugganusa-threat-intel | \n
| Username | \nany value, for example sentinel | \n
| Password | \nyour DugganUSA API key | \n
Prerequisites for the analytic rules and hunting queries
\nThe analytic rules and hunting queries match indicators against network-session and DNS activity through the Advanced Security Information Model (ASIM). They return results only when the workspace receives telemetry covered by the ASIM NetworkSession or Dns parsers.
\nFour of the hunting queries read Microsoft Defender XDR tables instead (DeviceNetworkEvents, DeviceFileEvents, DeviceProcessEvents, EmailEvents, EmailUrlInfo, UrlClickEvents). They return results when those tables reach the workspace through the Microsoft Defender XDR connector, and they run unchanged in advanced hunting in the Microsoft Defender portal when the workspace is onboarded there.
\nUnderlying Microsoft Technologies used:
\nThis solution takes a dependency on the following technologies, and some of these dependencies either may be in Preview state or might result in additional ingestion or operational costs:
\n\nData Connectors: 1, Workbooks: 1, Analytic Rules: 5, Hunting Queries: 8
\nLearn more about Microsoft Sentinel | Learn more about Solutions
\n", + "contentKind": "Solution", + "contentProductId": "[variables('_solutioncontentProductId')]", + "id": "[variables('_solutioncontentProductId')]", + "icon": "