Microsoft 365 Defender
Fetch Microsoft 365 Defender incidents oldest first
A fork of the Microsoft 365 Defender connector that orders incident fetching by creation time ascending.
microsoft-365-defender_1.2.1.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.
Fork of a Content Hub connector
An enhanced copy of Microsoft 365 Defender microsoft-365-defender v1.2.0Original's documentation
The operation list matches the Content Hub original exactly, so anything this fork changes lives below the operation level.
What the author changed: Incident fetching now orders by createdTime ascending, so the oldest incidents are returned first.
Keeps the original's machine name, so importing this upgrades the Content Hub connector in place and existing configurations survive. Differences are re-measured against the current Content Hub index at every site build, so this stays truthful as the original moves.
Superseded by Triage Microsoft 365 Defender incidents and contain endpoints.
Configuration · 2 fields
- Get Access Token
auth_typeselect requiredSelect the method using which you will get authentication tokens used to access the Microsoft 365 Defender APIs. You can choose between On behalf of User – Delegate Permission or Without a User - Application Permission. For more information, see the Getting Access Tokens section.
Options On behalf of User - Delegated PermissionWithout a User - Application PermissionWhen Get Access Token is Without a User - Application Permission
- Server URL
resourcetext requiredThe service-based URL to which you will connect and perform the automated operations.
Default
https://api.security.microsoft.com - Directory (tenant) ID
tenant_idtext requiredThe ID of the tenant that you have been provided for your Azure Network Security Group instance.
- Application (client) ID
client_idtext requiredUnique ID of the Azure Network Security Group application that is used to create an authentication token required to access the API.
- Application (Client) Secret
client_secretpassword requiredUnique Client Secret of the Azure Network Security Group application that is used to create an authentication token required to access the API. For information on how to get the secret key, see https://docs.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-atp/exposed-apis-create-app-webapp.
When Get Access Token is On behalf of User - Delegated Permission
- Server URL
resourcetext requiredThe service-based URL to which you will connect and perform the automated operations.
Default
https://api.security.microsoft.com - Directory (tenant) ID
tenant_idtext requiredThe ID of the tenant that you have been provided for your Azure Network Security Group instance.
- Application (client) ID
client_idtext requiredUnique ID of the Azure Network Security Group application that is used to create an authentication token required to access the API.
- Application (Client) Secret
client_secretpassword requiredUnique Client Secret of the Azure Network Security Group application that is used to create an authentication token required to access the API. For information on how to get the secret key, see https://docs.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-atp/exposed-apis-create-app-webapp.
- Authorization Code
codepassword required(Only Applicable to On behalf of User – Delegate Permission) The authorization code that you acquired during the authorization step. For more information, see the Getting Access Tokens using the On behalf of the user – Delegate Permission method section.
- Redirect URI
redirect_urltext(Only Applicable to On behalf of User – Delegate Permission) The redirect_uri of your app, where authentication responses can be sent and received by your app. The redirect URL that you specify here must exactly match one of the redirect_uri's you have registered in your app registration portal.
- Verify SSL
verify_sslcheckboxSpecifies whether the SSL certificate for the server is to be verified or not. By default, this option is set as True.
Default
true
Operations · 4
Get Incidents List 8 params
list_incidentslist_incidentsRetrieves a list of incidents along with their status for users to sort through and create an informed cybersecurity response. It exposes a collection of incidents that were flagged in your network, based on the time range, incident owner and other details that you have specified.
- Last Updated Time
lastUpdateTimedatetimeSpecify the time when the incident was last updated on the server.
- Created Time
createdTimedatetimeSpecify the time when incident was first created.
- Status
statusmultiselectSpecifies the current status of the incident.
Options ActiveResolvedIn ProgressRedirected - Assigned To
assignedTotextSpecify the incident owner's email address.
- Filter Query
querytext(Optional) Specify the query to filter results retrieved from Microsoft 365 Defender. For query syntax and other information, refer to https://learn.microsoft.com/en-us/graph/filter-query-parameter.
- Offset
skiptext(Optional) Specify the count of the first few records to skip while retrieving response from Defender Endpoint API.
- Limit
topinteger(Optional) Specify the maximum number of incidents that this operation should return from Microsoft 365 Defender. The maximum values it can return is 100.
- Get All Records
get_all_recordscheckboxSelect to retrieve all records present and ignore the parameters Offset and Limit. By default, this is selected, i.e. set to true.
Default
true
Returns@odata.contextvalueGet Incident Details 1 param
get_incidentget_incidentRetrieves the details of a specific incident based on the incident ID that you have specified.
- Incident ID
idtext requiredSpecify the unique identifier that represents the incident to fetch its details.
Returns@odata.contextincidentIdincidentUriredirectIncidentIdincidentNamecreatedTimelastUpdateTimeassignedToclassificationdeterminationstatusseveritytagscommentsalertsUpdate Incident 6 params
update_incidentupdate_incidentUpdates the owner, status, comments, and other details of existing incidents based on the incident ID that you have specified.
- Incident ID
idtext requiredSpecify the unique identifier that represents the incident to update it.
- Status
statusselectSSelect from drop-down the status with which to update the incident.
Options ActiveResolvedIn ProgressRedirected - Assigned To
assignedTotextSpecify the incident owner's email address.
- Classification
classificationselectSelect from drop-down the specification of the incident:
Options TruePositiveInformational, expected activityFalsePositiveWhen Classification is TruePositive
- Determination
determinationselectSpecifies that the incident was a malicious activity.
Options Multistage attackMalicious user activityCompromised accountMalwarePhishingUnwanted softwareOther
When Classification is Informational, expected activity
- Determination
determinationselectSpecifies that the activity related to the incident was expected. For example, a security test.
Options Security testLine-of-business applicationConfirmed activityOther
When Classification is FalsePositive
- Determination
determinationselectSpecifies that the activity was non-malicious.
Options Not maliciousNot enough data to validateOther
- Tags
tagstextSpecify a list of incident tags.
- Comment
commenttextSpecify a comment to be added to the incident.
ReturnsstatusassignedToclassificationdeterminationtagscommentsAdvanced Hunting 1 param
advanced_huntingadvanced_huntingRetrieves data from the past 30 days based on the query that you have specified.
- Query
Querytext requiredSpecify a query to examine the past 30 days of event data in Microsoft 365 Defender. For more information on the queries, refer to Microsoft 365 Defender Advanced hunting.
ReturnsStatsSchemaResults