An integrated threat protection solution designed to detect, investigate, and respond to cyber threats across Microsoft 365 services.
A 403 at the blob download step means the package download URL was issued, but the download request is being blocked before the package can be retrieved. For Defender for Endpoint investigation packages, the download link is short-lived and should be used immediately. If the collection action exists but is not complete, the API returns 404 instead, so a 403 at download time points to access being denied on the package URL rather than the collection still running.
Use this validation path:
- In Microsoft Defender portal, open the device page and go to Action center from the response actions section.
- Confirm the action shows Package collection package available.
- Download it immediately after it becomes available.
- If collecting from the portal again, use Collect investigation package on the device page, add comments, select Confirm, then return to Action center and download from there.
- If using API-based retrieval, first collect the package with:
-
POST /api/machines/{id}/collectInvestigationPackage - include the required
Commentfield
-
- After the machine action completes, request the package URI with:
-
GET /api/machineactions/{machine action id}/getPackageUri - use the returned link immediately, because it is valid for only a short time.
-
Checks that are supported for this scenario:
- The account must have at least the Alerts Investigation role permission.
- The account must have access to the device based on device group settings.
- For API use, the required permission is
Machine.CollectForensicsfor delegated access, or the documented application permission for the API being called. - If another collection is already running, starting a new collection returns 400 Bad Request.
- Package collection can fail on the device if the target device has a low battery level or is on a metered connection.
If the package is available in Action center but the blob download still returns 403, regenerate the package download path by starting a fresh collection or by requesting a fresh package URI after the machine action completes, then download it immediately.
References: