Details

This atomic belongs to the Microsoft Defender for Endpoint atomic group.

Runs an antivirus scan using Microsoft Defender for Endpoint. This atomic requires the following API permission: Machine.Scan.

Target: Microsoft Defender for Endpoint (Commercial or GCC) integration target or HTTP Endpoint for "api.securitycenter.microsoft.com" with no path

Account Key: None if using an integration-provided target, access token if using an HTTP Endpoint target

Steps:
[] Build the authorization header
[] Build the request payload
[] Request the antivirus scan
[] Check if the API request was successful:
[]> If it was, set output variables
[]> If it wasn't, output an error

More information about this API: https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/api/run-av-scan?view=o365-worldwide