Query Details

OneNote invoking browser that produced smart screen warning

Onenote Invoking Browser With Smartscreen Alert

Query

let Process = DeviceProcessEvents
| where InitiatingProcessFileName contains "onenote.exe"
// Define any other browser files below that may be present in your environment
| where FileName has_any ("firefox.exe","msedge.exe","chrome.exe")
| project Timestamp, DeviceId, DeviceName, AccountDomain, AccountName;
// Joining DeviceEvents table to correlate SmartScreen URL warnings
Process
| join (DeviceEvents
| where ActionType == "SmartScreenUrlWarning"
| project DeviceId, DeviceName, InitiatingProcessAccountUpn, RemoteUrl
) on DeviceId

About this query

OneNote invoking browser that produced smart screen warning

Description

A detection rule for OneNote files, invoking browser (inline URL) which produced a smart screen URL warning. Detection has been provided following public discussion with @DhaeyerWolf.

Microsoft 365 Defender & Microsoft Sentinel

Versioning

VersionDateComments
1.028/02/2022Initial publish
1.123/05/2023Transformed to template, minor changes

Explanation

This query is used to detect instances where OneNote files invoke a browser (using an inline URL) that triggers a smart screen warning. It joins the DeviceProcessEvents and DeviceEvents tables to correlate the smart screen URL warnings with the OneNote files. The query also includes a list of other browser files (e.g., Firefox, Microsoft Edge, Chrome) that may be present in the environment. The query has gone through versioning and updates.