defender_get_incident_evidence
Retrieve the full evidence inventory of a Defender incident, with each item joined to its device and citing alerts. Review processes, files, IPs, registry keys, and more in one table.
Instructions
The full evidence inventory of an incident: the portal's evidence view as one table. Pages
through every alert and flattens the evidence into one row per evidence item, each joined to
its device (by device ID, else through the alert) and listing the alerts that cite it. A row
is the source's own unit: entityCount equals the portal's count of evidence items and is the
number to reconcile; rowCount is the number of per-alert evidence rows. The source lists one
process more than once when alerts describe it differently (no image file, another path, a
different verdict): those rows share instance (device, PID, creation time), sameProcess
groups them with their verdicts, and processInstanceCount is the number of real processes.
Rows carry type, name, PID and parent PID, full command line and its decoded
-EncodedCommand payload, creation times in UTC, SHA1/SHA256, path, user SID and UPN, device
ID, IP, registry key and value, detailed roles, verdict and remediation status. Follows a
merged incident to its master. These are the entities the alerts cite, not raw telemetry:
processes the detection did not flag are not here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum number of entities to return (default 200, max 1000). | |
| skip | No | Number of entries to skip (paging). | |
| types | No | Only these entity types, e.g. ['process', 'file']. Types: device, user, process, file, ip, url, registry_key, registry_value, mailbox, and any other evidence type the source reports. entityCount always covers the whole incident. | |
| incident_id | Yes | The incident ID, as shown in the Defender portal and the Graph API. |