Microsoft Graph is a unified programming model for data across Microsoft 365, Windows, and Enterprise Mobility + Security. REST APIs and SDKs use the single endpoint https://graph.microsoft.com.
The Microsoft Graph Security API acts as a broker: it federates a request to applicable security providers, aggregates their responses, and returns a common schema. This supports alert correlation, SIEM streaming, threat-indicator submission, investigation context, reporting, and SecOps automation.
- v1.0: stable API surface for production use.
- beta: preview capabilities that may change without notice.
Advanced hunting through Microsoft Graph
POST https://graph.microsoft.com/v1.0/security/runHuntingQuery
{
"Query": "DeviceProcessEvents
| where InitiatingProcessFileName =~ "powershell.exe"
| project Timestamp, FileName, InitiatingProcessFileName
| order by Timestamp desc
| limit 2"
}
The KQL query searches device process events, filters for PowerShell as the initiating process, selects three fields, sorts newest first, and returns two rows.
Exam takeaway: Microsoft Graph is the broad API model; the Graph Security API unifies security providers; runHuntingQuery executes KQL advanced hunting.