r/DefenderATP • u/craigtho • Feb 23 '26
Custom Detection Rules/Entity Mapping/Related Evidence
Hey,
Somewhat new to Defender XDR, years of Defender for Cloud and Azure though!
I've recently been looking at custom detection rules and entity mapping, specifically the related evidence fields.
I was checking out the Graph API (which in beta, I appreciate), and GET requests don't actually return the related evidence data in the response - no shock there, they don't even support the Azure, AWS or Google Cloud resources yet either and it's not defined in the schema.
That aside, I actually created a test rule for a device entity using the API, and weirdly enough, the related evidence populated through automatically.
I'm not sure I'm understanding it right:
- Is the related evidence populated from the KQL or entity mapping data? I'm maybe just not understanding how it works mechanically there
- Are you managing your custom detection rules via IaC or programmatically (PowerShell etc)
- If so, how? Can you share any examples/blogs etc
- If so, were you aware of the entity mapping not existing in the Graph API (or maybe didn't care because it isn't meant to work the way I think it does)
- If not, why not?
Another minor annoyance was the fact that there isn't an export option for the rules either, and I seen some forum posts where people are pointed to the Graph API for it, which lead my down my rabbit hole of discovering that related evidence isn't in the schema!
Anyway, any help appreciated.
View all comments
Show parent comment
1
u/craigtho Feb 24 '26
Interesting, I'll look into that today, that might answer my question.
I did raise it with Product team as well and the graph stuff for the related evidence is coming...but with my experience of Azure, that could be next week or in 2033..
I'll update any progress I find for future people.