Microsoft Defender for Office 365 v2
Read and update Defender for Office 365 alerts through Microsoft Graph
Lists, reads and updates Microsoft Defender for Office 365 alerts through Microsoft Graph, with a Graph pass-through for other endpoints.
microsoft-defender-office-365-v2_2.0.0.tgz
Community code that runs on your platform. A maintainer reviewed this exact source; the download is rebuilt from it. Follow the to install it.
Reads and updates Microsoft Defender for Office 365 alerts through the Microsoft Graph security alerts_v2 endpoint. Operations: List Alerts (filter by service, status, severity, classification, determination, creation time or OData, pages followed up to a limit), Get Alert (one alert by id), Update Alert (PATCH status, classification, determination and owner; returns the alert after the update), Execute Graph Request (any Graph v1.0 endpoint with GET, POST or PATCH; errors come back as data), Health Check (token plus one alert read) and a hidden List Alert Choices that feeds the Alert dropdown. Application-only client credentials; only the Graph host is called, the token is refreshed once on 401, and 429 and 503 responses honour Retry-After.
Live-tested on FortiSOAR 8.0.1 against a Microsoft 365 lab tenant.
Not live-tested
- Every operation passed live. Error responses other than the ones the lab tenant produced (401, the 404 of Update Alert and the pass-through, and the pass-through 403) are checked against labelled synthetic error mocks in the offline suite, not against live responses.
Setup
The Microsoft 365 / Graph authentication needs an Entra ID app registration with admin consent for the application permission SecurityAlert.Read.All (read alerts) and, to update alerts, SecurityAlert.ReadWrite.All. Execute Graph Request needs whatever permission the called endpoint requires; Graph names the missing permission in a 403 response.
Configuration · 5 fields
- Tenant ID
tenant_idtext requiredMicrosoft Entra ID tenant (directory) ID or domain.
- Client ID
client_idtext requiredApplication (client) ID of the Entra ID app registration.
- Client Secret
client_secretpassword requiredClient secret of the app registration (Certificates & secrets).
- Verify SSL
verify_sslcheckboxSpecifies whether SSL certificates are to be verified.
Default
true - Timeout (seconds)
timeoutintegerTimeout for each Graph request.
Default
60
Operations · 6
List Alerts 8 params
list_alertslist_alertsList security alerts from Microsoft Defender XDR (alerts_v2), filtered by service, status, severity, classification, determination, creation time or OData. Defender for Office 365 alerts use the service filter.
- Service Source
service_sourceselectOnly alerts from this Defender service. Office 365 alerts: microsoftDefenderForOffice365.
Options microsoftDefenderForOffice365microsoftDefenderForEndpointmicrosoftDefenderForIdentitymicrosoftDefenderForCloudAppsmicrosoftDefenderForCloudmicrosoftDefenderForIoT - Status
statusselectOnly alerts in this status.
Options NewIn ProgressResolved - Severity
severityselectOnly alerts of this severity.
Options UnknownInformationalLowMediumHigh - Classification
classificationselectOnly alerts with this classification.
Options UnknownTrue PositiveFalse PositiveInformational, expected activity - Determination
determinationselectOnly alerts with this determination.
Options Multi Staged AttackMalicious User ActivityCompromised AccountMalwarePhishingUnwanted SoftwareOtherSecurity TestingLine Of Business ApplicationConfirmed ActivityNot MaliciousNot Enough Data To ValidateUnknownAptSecurity PersonnelUnknown Future Value - Created After
created_afterdatetimeOnly alerts created at or after this UTC time (ISO 8601).
- OData Filter
odata_filtertextExtra OData $filter clause, ANDed with the other filters.
- Limit
topintegerMaximum alerts to return (1 to 1000, default 50). Pages are followed up to this count.
ReturnstypepropertiesGet Alert 1 param
get_alertget_alertRead one alert by its id.
- Alert
alert_idselect requiredAlert, picked by title from the tenant's recent alerts. The stored value is 'title [alert id]'; a bare id also works.
ReturnstypepropertiesUpdate Alert 4 params
update_alertupdate_alertUpdate an alert's status, classification, determination or assignee (at least one). Returns the alert after the update.
- Alert
alert_idselect requiredAlert, picked by title from the tenant's recent alerts. The stored value is 'title [alert id]'; a bare id also works.
- Status
statusselectNew status.
Options NewIn ProgressResolved - Classification
classificationselectNew classification.
Options UnknownTrue PositiveFalse PositiveInformational, expected activityWhen Classification is True Positive
- Determination
determinationselectWhy the alert was classified (shown for a classified alert).
Options Multi Staged AttackMalicious User ActivityCompromised AccountMalwarePhishingUnwanted SoftwareOtherSecurity TestingLine Of Business ApplicationConfirmed ActivityNot MaliciousNot Enough Data To ValidateUnknownAptSecurity PersonnelUnknown Future Value
When Classification is False Positive
- Determination
determinationselectWhy the alert was classified (shown for a classified alert).
Options Multi Staged AttackMalicious User ActivityCompromised AccountMalwarePhishingUnwanted SoftwareOtherSecurity TestingLine Of Business ApplicationConfirmed ActivityNot MaliciousNot Enough Data To ValidateUnknownAptSecurity PersonnelUnknown Future Value
When Classification is Informational, expected activity
- Determination
determinationselectWhy the alert was classified (shown for a classified alert).
Options Multi Staged AttackMalicious User ActivityCompromised AccountMalwarePhishingUnwanted SoftwareOtherSecurity TestingLine Of Business ApplicationConfirmed ActivityNot MaliciousNot Enough Data To ValidateUnknownAptSecurity PersonnelUnknown Future Value
- Assigned To
assigned_totextOwner (user principal name).
ReturnstypepropertiesExecute Graph Request 3 params
execute_api_requestexecute_api_requestCall any Microsoft Graph v1.0 endpoint with the connector's own auth (pass-through). Graph errors come back as data (status_code, body); other hosts are refused.
- Method
methodselect requiredHTTP method.
Options GETPOSTPATCHWhen Method is POST
- Payload (JSON)
payloadtextJSON body for POST or PATCH.
When Method is PATCH
- Payload (JSON)
payloadtextJSON body for POST or PATCH.
- Endpoint
endpointtext requiredPath under /v1.0, for example /security/alerts_v2. Full Graph URLs are accepted.
- Query Parameters (JSON)
query_paramstextJSON object of query parameters.
ReturnstypepropertiesHealth Check
health_checkhealth_checkAcquire a Graph token and read one alert.
No parameters.
ReturnstypepropertiesList Alert Choices
list_alert_choiceslist_alert_choicesDropdown source for the Alert picker: up to 100 recent alerts as 'title [alert id]' strings.
No parameters.
Returnstypeproperties