This article is for anyone with file-related data already landing in a Microsoft Sentinel workspace, regardless of the original source (Defender for Endpoint, another EDR, a DLP tool or custom logging), who's exploring how to analyze and enrich that data with the NetClean File Analysis API. It's meant as a starting point and architectural inspiration rather than a fixed build, since the right implementation depends on your own Sentinel setup. For the mechanics of Logic Apps and Sentinel playbooks, Microsoft's own documentation is the authoritative source, and we link to it throughout.
The idea in short
Sentinel workspace (your file and hash data) → Logic App → NetClean File Analysis API → match/no match → your Sentinel workflows
An Azure Logic App (referred to as a "playbook" when tied into Sentinel's incident pipeline) reads relevant file hash data from your workspace, submits it to the File Analysis API to be analyzed and enriched against NetClean's risk intelligence, and acts on the result.
If your file data doesn't reach Sentinel yet, see Collecting file signals with Microsoft Defender and Sentinel for one way to collect it.
A few ways this is typically approached
There's more than one reasonable way to trigger this kind of integration, and which one fits depends on how your data already flows through Sentinel:
- A Logic App on a recurring schedule that queries your workspace directly using the Azure Monitor Logs connector and processes matching rows as they come in. This is often the simplest starting point when the source data is plain log rows rather than existing alerts.
See Microsoft's guidance on the Azure Monitor Logs connector - A playbook triggered by a Sentinel analytics rule or automation rule, if you already turn relevant file events into alerts or incidents as part of your existing setup.
See Microsoft's documentation on Sentinel automation and playbooks
What integrating the API generally involves, at a high level
- Selecting or building the query that identifies which rows in your workspace are candidates for analysis. See Choosing what to analyze files for filtering guidance.
- Authenticating to the File Analysis API. Requests use a JWT Bearer token issued through the platform's Microsoft Entra ID tenant, obtained with the API credentials (client secret or certificate) set up for your tenant in the ProActive portal. Credentials are best kept in Azure Key Vault and referenced from the Logic App rather than stored inline.
- Submitting hashes in batches. The API accepts up to 2,000 SHA-1 hashes (40-character hex values) per request, so design for batching rather than calling the API once per row.
- Handling the response and deciding what happens next, for example writing matches to a table or watchlist that feeds your existing alerting or incident workflow. A match is a verified event, not a heuristic alert, and no match is a high-confidence clearance for the analyzed hashes.
Worth keeping in mind
A few characteristics of the File Analysis API are worth designing around rather than discovering later. It only accepts and returns hash values: no file content, filenames or other contextual metadata should be included in the request, even if that context is useful for correlation on your own side afterward. The service also enforces a per-tenant rate limit in addition to the per-request batch cap, so pace how often and how much your Logic App submits, particularly if you start with a broad scope.
When acting on matches, avoid automated deletion of matching files. Preserving the file and device state matters for any subsequent investigation or reporting obligations.
Further reading
Beyond the links above, Microsoft's broader documentation on building and triggering Logic Apps and Sentinel playbooks covers the underlying mechanics in more depth than this article does: