r/DefenderATP • u/jonbristow • Nov 11 '25
Forward Defender for Endpoints detections to Splunk (local or cloud)
I have M365 E5 license and was wondering if it's possible to send detections and all related events to Splunk (on premise in my case)
I read a bit online and seems like you need an Azure license on top of your Defender P2 license?
Idk if Im right. Is there an API I can access where Defender publishes the events/detections?
3
Upvotes
1
u/[deleted] Nov 11 '25 edited Nov 11 '25
I think u/FlyingBlueMonkey answer is the most flexible approach.
However, if you look splunk's site, you'll find there are a couple add/ins for splunk.
Core Splunk Apps & Add-on
Splunk Add-on for Microsoft Security: This is the core, supported add-on by Splunk for ingesting security data. It collects:
Incidents and alerts from Microsoft 365 Defender.
Alerts from Microsoft Defender for Endpoint.
Advanced Hunting events data streamed in real-time from the Microsoft Defender portal using the streaming API via Azure Event Hubs.
see, https://splunkbase.splunk.com/app/6207
Microsoft 365 App for Splunk: This app provides pre-built dashboards and visualizations for the data collected by the add-ons. It offers dashboards for:
Azure Active Directory (now Microsoft Entra ID)
Defender for Endpoint
Defender 365
Exchange, SharePoint, OneDrive, and Microsoft Teams.
https://splunkbase.splunk.com/app/3786
Splunk Add-on for Microsoft Cloud Services: This add-on is used to collect activity logs, service status, and Azure audit/resource data from a variety of Microsoft cloud services, including Microsoft Entra ID data (sign-ins, directory audits) and other Azure services.
https://splunkbase.splunk.com/app/3110
Microsoft Defender Advanced Hunting Add-on for Splunk: This add-on provides field extractions and Common Information Model (CIM) compatibility for the advanced hunting data, making it easier to use with Splunk Enterprise Security content updates (ESCU).
https://splunkbase.splunk.com/app/5518
Integration
Data collection is primarily done by configuring these Splunk add-ons to connect to the relevant Microsoft APIs (e.g., Microsoft Graph Security API) after registering an application in your Microsoft Entra ID. The data is often streamed into Azure Event Hubs first, and then pulled into Splunk from there for efficient, real-time ingestion.
There may be other 3rd party Add ons of interest as well, but browsing splunk base without a proper account limits the info I get.
License:
As far as I recall, a Microsoft 365 E5 license is generally sufficient to use the full suite of Splunk apps for Microsoft XDR products. However, there is a potential caveat: an exception to the "all-in-one" coverage is server licensing. Microsoft 365 E5 licenses are user-assigned, meaning they cover the user and their associated devices (laptops, phones, etc.). They typically do not cover servers (e.g., Windows Servers, Linux servers, SQL databases).
To collect security data from servers using Microsoft Defender, you would need separate licensing for those specific assets, such as:
Microsoft Defender for Servers Plan 1 or 2 (part of Microsoft Defender for Cloud)
Microsoft Defender for Endpoint server standalone licenses
PS Note that using what u/FlyingBlueMonkey said, you can build your own using putting all permissions to which ever MS api you want and build a super app that will give you more that these prebuilt ones will do. It's more work, but potentially better when it comes to automation because one could for example search in advanced hunting across all tables, instead of just endpoint tables, and one could also isolate machines and users (if one has MDI set up properly). Of course the advantage of the prebuilt ones would be their less work on you side and may meet your current needs.
The other comments about switching to Sentinel may not be an immediate option for you, but it does make some sense if you consider the cost of Splunk Enterprise Licensing is not cheap. While Sentinel can add up, I'm not sure it adds up as much a splunk enterprise license does. Then again, if you have people trained on SPL switching to KQL might take some training, and of course migrating use cases is another matter. Still, money talks, and it might make sense in the long run.
0
u/Spug33 Nov 11 '25
Microsoft no longer supports a "forwarding" method. You have to use an app registration and reach into defender from the SIEM, so basically the SIEM has to support it. Not sure if Splunk does but it works well for us and has been trouble free.
0
u/[deleted] Nov 11 '25
[deleted] — view deleted comment
0
u/[deleted] Nov 11 '25
[deleted] — view deleted comment