Tracecat
Book a demo

Microsoft Graph Security integration

Work Microsoft Defender XDR alerts and incidents and run audit log queries.

SIEM / datalake
19 actions
tools.microsoft_graph_security

How it works

Each Microsoft Graph Security action is a YAML template or Python function in Tracecat's open-source registry, under tools.microsoft_graph_security. Add an action as a step in a workflow, or give it to an agent as a tool.

Credentials

Add these in Tracecat before running the actions. How credentials work

  • OAuth connection microsoft_graph_oauth (optional)
  • OAuth connection microsoft_graph_security_oauth (optional)

Actions

Missing an integration? Write your own actions in YAML or Python in a custom registry and sync them from your Git repository.

  • Create alert comment

    Create a comment for an existing alert based on the specified alert id property. Least privileged permission: SecurityAlert.ReadWrite.All for both delegated (work or school account) and application; no higher privileged permission is available. Delegated access is not supported for personal Microsoft accounts. Delegated callers must hold a supported Microsoft Entra role: Security Operator or Security Administrator. Available in the global service, US Government L4 and US Government L5 (DOD); not available in China operated by 21Vianet. Microsoft's endpoint reference does not state a separate licensing requirement.

  • Create audit log query

    Create a new auditLogQuery object. Returns `201 Created` and the auditLogQuery, whose `status` moves from notStarted to succeeded before records can be read. Auditing data is accessed through the Microsoft Purview Audit Search API. Least privileged permission: AuditLogsQuery-Entra.Read.All for both delegated (work or school account) and application; higher privileged: AuditLogsQuery-CRM.Read.All, AuditLogsQuery-Endpoint.Read.All, AuditLogsQuery-Exchange.Read.All, AuditLogsQuery-OneDrive.Read.All, AuditLogsQuery-SharePoint.Read.All or AuditLogsQuery.Read.All. Delegated access is not supported for personal Microsoft accounts. Available in the global service only; not available in US Government L4, US Government L5 (DOD) or China operated by 21Vianet. Microsoft's endpoint reference does not state a separate licensing requirement.

  • Create incident comment

    Create a comment for an existing incident based on the specified incident id property. Least privileged permission: SecurityIncident.ReadWrite.All for both delegated (work or school account) and application; no higher privileged permission is available. Delegated access is not supported for personal Microsoft accounts. Delegated callers must hold a supported Microsoft Entra role: Security Operator or Security Administrator. Microsoft does not document national cloud availability for this endpoint. Microsoft's endpoint reference does not state a separate licensing requirement.

  • Get alert

    Get the properties and relationships of an alert object. Least privileged permission: SecurityAlert.Read.All for both delegated (work or school account) and application; higher privileged: SecurityAlert.ReadWrite.All. Delegated access is not supported for personal Microsoft accounts. Delegated callers must hold a supported Microsoft Entra role: Security Reader, Global Reader, Security Operator or Security Administrator. Available in the global service, US Government L4 and US Government L5 (DOD); not available in China operated by 21Vianet. Microsoft's endpoint reference does not state a separate licensing requirement.

  • Get audit log query

    Read the properties and relationships of an auditLogQuery object, including its `status`. Auditing data is accessed through the Microsoft Purview Audit Search API. Least privileged permission: ThreatIntelligence.Read.All for both delegated (work or school account) and application; no higher privileged permission is available. Delegated access is not supported for personal Microsoft accounts. Available in the global service only; not available in US Government L4, US Government L5 (DOD) or China operated by 21Vianet. Microsoft's endpoint reference does not state a separate licensing requirement.

  • Get incident

    Retrieve the properties and relationships of an incident object. Least privileged permission: SecurityIncident.Read.All for both delegated (work or school account) and application; higher privileged: SecurityIncident.ReadWrite.All. Delegated access is not supported for personal Microsoft accounts. Delegated callers must hold a supported Microsoft Entra role: Security Reader, Global Reader, Security Operator or Security Administrator. Available in the global service, US Government L4 and US Government L5 (DOD); not available in China operated by 21Vianet. Microsoft's endpoint reference does not state a separate licensing requirement.

  • Get secure score

    Retrieve the properties and relationships of a secureScore object. Least privileged permission: SecurityEvents.Read.All for both delegated (work or school account) and application; higher privileged: SecurityEvents.ReadWrite.All. Delegated access is not supported for personal Microsoft accounts. Available in the global service, US Government L4 and US Government L5 (DOD); not available in China operated by 21Vianet. If a status code other than 2xx or 404 is returned from a provider, or if a provider times out, Microsoft Graph responds `206 Partial Content` with the provider's response in a warning header. Microsoft's endpoint reference does not state a separate licensing requirement.

  • Get secure score control profile

    Retrieve the properties and relationships of a secureScoreControlProfile object. Least privileged permission: SecurityEvents.Read.All for both delegated (work or school account) and application; higher privileged: SecurityEvents.ReadWrite.All. Delegated access is not supported for personal Microsoft accounts. Available in the global service, US Government L4 and US Government L5 (DOD); not available in China operated by 21Vianet. If a status code other than 2xx or 404 is returned from a provider, or if a provider times out, Microsoft Graph responds `206 Partial Content` with the provider's response in a warning header. Microsoft's endpoint reference does not state a separate licensing requirement.

  • List alerts

    Get a list of alert resources created to track suspicious activities in an organization. Returns the single Microsoft Graph page, including `@odata.nextLink`. Least privileged permission: SecurityAlert.Read.All for both delegated (work or school account) and application; higher privileged: SecurityAlert.ReadWrite.All. Delegated access is not supported for personal Microsoft accounts. Delegated callers must hold a supported Microsoft Entra role: Security Reader, Global Reader, Security Operator or Security Administrator. Available in the global service, US Government L4 and US Government L5 (DOD); not available in China operated by 21Vianet. Microsoft's endpoint reference does not state a separate licensing requirement.

  • List audit log queries

    List auditLogQuery objects. Returns the single Microsoft Graph page, including `@odata.nextLink`. Auditing data is accessed through the Microsoft Purview Audit Search API. Least privileged permission: AuditLogsQuery-Entra.Read.All for both delegated (work or school account) and application; higher privileged: AuditLogsQuery-CRM.Read.All, AuditLogsQuery-Endpoint.Read.All, AuditLogsQuery-Exchange.Read.All, AuditLogsQuery-OneDrive.Read.All, AuditLogsQuery-SharePoint.Read.All or AuditLogsQuery.Read.All. Delegated access is not supported for personal Microsoft accounts. Available in the global service only; not available in US Government L4, US Government L5 (DOD) or China operated by 21Vianet. Microsoft says this method supports unnamed OData query parameters, so this action exposes none. For other parameters, use `tools.microsoft_graph_sdk.call_method` with `oauth_provider` set to `microsoft_graph_security`. No separate licensing requirement is documented.

  • List audit log records

    List auditLogRecord objects for a completed audit log query. Returns the single Microsoft Graph page, including `@odata.nextLink`. Auditing data is accessed through the Microsoft Purview Audit Search API. Least privileged permission: AuditLogsQuery-Entra.Read.All for both delegated (work or school account) and application; higher privileged: AuditLogsQuery-CRM.Read.All, AuditLogsQuery-Endpoint.Read.All, AuditLogsQuery-Exchange.Read.All, AuditLogsQuery-OneDrive.Read.All, AuditLogsQuery-SharePoint.Read.All or AuditLogsQuery.Read.All. Delegated access is not supported for personal Microsoft accounts. Available in the global service only; not available in US Government L4, US Government L5 (DOD) or China operated by 21Vianet. Microsoft says this method supports unnamed OData query parameters, so this action exposes none. For other parameters, use `tools.microsoft_graph_sdk.call_method` with `oauth_provider` set to `microsoft_graph_security`. No separate licensing requirement is documented.

  • List incidents

    Get a list of incident objects that Microsoft 365 Defender created to track attacks in an organization. Returns the single Microsoft Graph page, including `@odata.nextLink`. Least privileged permission: SecurityIncident.Read.All for both delegated (work or school account) and application; higher privileged: SecurityIncident.ReadWrite.All. Delegated access is not supported for personal Microsoft accounts. Delegated callers must hold a supported Microsoft Entra role: Security Reader, Global Reader, Security Operator or Security Administrator. Available in the global service, US Government L4 and US Government L5 (DOD); not available in China operated by 21Vianet. Microsoft's endpoint reference does not state a separate licensing requirement.

  • List secure score control profiles

    Retrieve the properties and relationships of a secureScoreControlProfiles object. Returns the single Microsoft Graph page, including `@odata.nextLink`. Least privileged permission: SecurityEvents.Read.All for both delegated (work or school account) and application; higher privileged: SecurityEvents.ReadWrite.All. Delegated access is not supported for personal Microsoft accounts. Available in the global service, US Government L4 and US Government L5 (DOD); not available in China operated by 21Vianet. Microsoft's endpoint reference does not state a separate licensing requirement.

  • List secure scores

    Retrieve a list of secureScore objects. Returns the single Microsoft Graph page, including `@odata.nextLink`. Least privileged permission: SecurityEvents.Read.All for both delegated (work or school account) and application; higher privileged: SecurityEvents.ReadWrite.All. Delegated access is not supported for personal Microsoft accounts. Available in the global service, US Government L4 and US Government L5 (DOD); not available in China operated by 21Vianet. Microsoft's endpoint reference does not state a separate licensing requirement.

  • Merge incidents

    Merge multiple incident resources into a single incident. Least privileged permission: SecurityData.Manage.All for both delegated (work or school account) and application; no higher privileged permission is available. Delegated access is not supported for personal Microsoft accounts. Delegated callers must hold a supported Microsoft Entra role: Security Operator (least privileged for this operation) or Security Administrator. Available in the global service, US Government L4 and US Government L5 (DOD); not available in China operated by 21Vianet. Microsoft's endpoint reference does not state a separate licensing requirement.

  • Move alerts

    Move one or more alert resources to a new or existing incident. Least privileged permission: SecurityData.Manage.All for both delegated (work or school account) and application; no higher privileged permission is available. Delegated access is not supported for personal Microsoft accounts. Delegated callers must hold a supported Microsoft Entra role: Security Operator (least privileged for this operation) or Security Administrator. Available in the global service, US Government L4 and US Government L5 (DOD); not available in China operated by 21Vianet. Microsoft's endpoint reference does not state a separate licensing requirement.

  • Run hunting query

    Queries a specified set of event, activity, or entity data supported by Microsoft 365 Defender to proactively look for specific threats in your environment. Least privileged permission: ThreatHunting.Read.All for both delegated (work or school account) and application; no higher privileged permission is available. Delegated access is not supported for personal Microsoft accounts. Available in the global service, US Government L4 and US Government L5 (DOD); not available in China operated by 21Vianet. Microsoft's endpoint reference does not state a separate licensing requirement.

  • Update alert

    Update the properties of an alert object in an organization based on the specified alert id property. Least privileged permission: SecurityAlert.ReadWrite.All for both delegated (work or school account) and application; no higher privileged permission is available. Delegated access is not supported for personal Microsoft accounts. Delegated callers must hold a supported Microsoft Entra role: Security Operator or Security Administrator. Available in the global service, US Government L4 and US Government L5 (DOD); not available in China operated by 21Vianet. Microsoft's endpoint reference does not state a separate licensing requirement.

  • Update incident

    Update the properties of an incident object. Least privileged permission: SecurityIncident.ReadWrite.All for both delegated (work or school account) and application; no higher privileged permission is available. Delegated access is not supported for personal Microsoft accounts. Delegated callers must hold a supported Microsoft Entra role: Security Operator or Security Administrator. Available in the global service, US Government L4 and US Government L5 (DOD); not available in China operated by 21Vianet. Microsoft's endpoint reference does not state a separate licensing requirement.

Automate Microsoft Graph Security with Tracecat

Open-source workflows and agents for security teams.