Microsoft Defender for Endpoint Log Fields: Alerts and Hunting
Published
Two kinds of record. An alert from the Alerts API is Defender's verdict — title, severity, category, ATT&CK techniques, the device, the user and the evidence. An Advanced Hunting row is one raw event on a device: a process started, a connection made, an antivirus detection.
Official documentation: Microsoft: Alert resource type (Defender for Endpoint API) · Microsoft: DeviceProcessEvents table · Microsoft: DeviceNetworkEvents table
Sample record
Numbered lines are the fields in the table.
From the LogTriage parser test corpus — synthetic data, no real hosts or users.
Field reference
| Field | Type | Meaning | Why it matters for security |
|---|---|---|---|
| titlee.g. Credential dumping via LSASS memory access | string | Microsoft: "Alert title." | Readable, but the same detection can carry different titles over time; group alerts by category and techniques too. |
| severitye.g. High | string | Microsoft: "Severity of the alert. Possible values are: UnSpecified, Informational, Low, Medium, and High." | There is no Critical on endpoint alerts; High is the top, and a Low alert on a server that also has High alerts belongs to the same story. |
| categorye.g. CredentialAccess | string | Microsoft: "Category of the alert." Values follow the attack stage, such as Malware, CredentialAccess, Execution or SuspiciousActivity. | CredentialAccess and LateralMovement alerts mean the attacker is already working inside; prioritize them over Malware blocks. |
| alertCreationTimee.g. 2024-01-15T14:32:00Z | date-time (UTC) | Microsoft: "The date and time (in UTC) the alert was created." | Created after the activity; use firstEventTime for the timeline. |
| firstEventTimee.g. 2024-01-15T14:28:00Z | date-time (UTC) | Microsoft: "The first occurrence of the event that triggered the alert on that device." | The time to start searching raw events from — the beacon alert in the sample was created two minutes after its first event. |
| machineIde.g. abc123def456789 | string | Microsoft: "ID of a machine entity that is associated with the alert." | The same value as DeviceId in Advanced Hunting; join alerts to raw events on it. |
| computerDnsNamee.g. DESKTOP-VICTIM.corp.local | string | Microsoft: "machine fully qualified name." | Readable device name for reports; the ID is the reliable join key. |
| mitreTechniquese.g. T1003.001 | list of strings | Microsoft: "Mitre Enterprise technique ID." | T1003.001 (LSASS memory) means credentials on that device should be treated as stolen. |
| relatedUser. | string | Part of relatedUser, which Microsoft describes as "Details of user related to a specific alert": the user name, with domainName beside it. | The account to reset and investigate when the alert is about credentials or execution. |
| evidence. | string | Kind of evidence attached to the alert — File, Process, User, Ip, Url and others — each entry carrying the matching fields (fileName and filePath, processCommandLine, ipAddress…). | The evidence list is where the indicators are; an Ip entry gives the remote address to check and block. |
| classificatione.g. InformationalExpectedActivity | string | Microsoft: "Possible values are: TruePositive, Informational, expected activity, and FalsePositive." Set when an analyst resolves the alert; determination gives the reason (SecurityTesting, Malware…). | Resolved alerts marked as expected activity are worth a second look when the same pattern recurs outside a test window. |
| 12Timestampe.g. 2024-01-15T14:35:00Z | date-time (UTC) | Microsoft (Advanced Hunting): "Date and time when the event was recorded." | Raw event time; build timelines from this, not from alert creation time. |
| 13DeviceIde.g. xyz789def123456 | string | Microsoft: "Unique identifier for the device in the service." | Join key with the alert's machineId. |
| 14DeviceNamee.g. SERVER-DC01 | string | Microsoft: "Fully qualified domain name (FQDN) of the device." | Activity on a domain controller, as in the sample's blocked SMB connection, raises the stakes of everything around it. |
| 15ActionTypee.g. AntivirusDetection | string | Microsoft: "Type of activity that triggered the event." ProcessCreated in DeviceProcessEvents, NetworkConnectionInspected in DeviceNetworkEvents, AntivirusDetection and FirewallInboundConnectionBlocked in DeviceEvents. | Filter on it first; each table mixes many action types. |
| 16FileNamee.g. ransomware.exe | string | Microsoft: "Name of the file that the recorded action was applied to." | For process events it is the program that ran; rename-proof matching needs the hash. |
| 17FolderPath | string | Microsoft: "Folder containing the file that the recorded action was applied to." | Executables in Downloads, Temp or AppData are worth checking; Program Files usually is not. |
| 18ProcessCommandLinee.g. ransomware.exe --encrypt-all | string | Microsoft: "Command line used to create the new process." | Encoded PowerShell, download cradles and credential tools show up here; decode -EncodedCommand values before judging. |
| SHA256e.g. c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3 | string | Microsoft: "SHA-256 of the file that the recorded action was applied to. This field is usually not populated — use the SHA1 column when available." | Look the hash up in threat intelligence; when it is empty, use SHA1. |
| 20AccountNamee.g. jsmith | string | Microsoft: "User name of the account." | SYSTEM running a user's tools, or a user running admin tools, is the mismatch to look for. |
| RemoteIPe.g. 185.220.101.42 | IP address | Microsoft (DeviceNetworkEvents): "IP address that was being connected to." | The same address in an alert's evidence and in network events on other devices shows how far the attacker reached. |
| RemotePorte.g. 445 | number | Microsoft: "TCP port on the remote device that was being connected to." | 445 and 3389 between workstations are lateral movement candidates. |
| 23ReportIde.g. 123456 | number | Microsoft: "Event identifier based on a repeating counter. To identify unique events, this column must be used in conjunction with the DeviceName and Timestamp columns." | Not unique on its own; deduplicate on DeviceName, Timestamp and ReportId together. |
Have one of your own records? Paste it into the log line explainer and each field is explained from this table, with times, codes and addresses decoded — in your browser.
What it records
Defender for Endpoint gives two views of the same activity. The Alerts API returns alerts as JSON objects with the properties Microsoft lists in the alert resource type: id, incidentId, title, severity, status, category, detectionSource, mitreTechniques, the times (alertCreationTime, firstEventTime, lastEventTime), the device (machineId, computerDnsName), the user (relatedUser) and a list of evidence entries — files, processes, users, IP addresses. Advanced Hunting returns raw device events as table rows, one per event: Timestamp, DeviceId, DeviceName, ActionType and the columns of its table, such as FileName, FolderPath, ProcessCommandLine, SHA256 and AccountName for processes, or RemoteIP and RemotePort for connections.
The malicious sample mixes both, as an export often does: a Cobalt Strike alert and an LSASS credential-dumping alert on one workstation, both pointing at the same remote address, then an AntivirusDetection event for a ransomware binary in the user’s Downloads and a FirewallInboundConnectionBlocked event on a domain controller, from the same address, on port 445.
Where to get it
- Microsoft Defender portal. Alerts and incidents in the queue; Advanced Hunting runs KQL over the device tables and exports results as CSV.
- Alerts API.
GET https://api.security.microsoft.com/api/alerts, with$expand=evidencefor the evidence list, needs an app registration with alert read permission. - Microsoft Sentinel and other SIEMs. The Defender XDR connector streams alerts and the Advanced Hunting tables under the same column names, so the KQL below works in both places.
// Processes on the alerted device in the 30 minutes before the first alert event
DeviceProcessEvents
| where DeviceId == "abc123def456789"
| where Timestamp between (datetime(2024-01-15T14:00:00Z) .. datetime(2024-01-15T14:40:00Z))
| project Timestamp, DeviceName, AccountName, FileName, FolderPath, ProcessCommandLine, SHA256
| order by Timestamp asc
Parsing pitfalls
- Two naming styles. The Alerts API uses camelCase (
machineId,alertCreationTime); Advanced Hunting uses PascalCase (DeviceId,Timestamp). Older exports and some connectors use PascalCase for alerts too. Normalize before joining. - Nested evidence. Indicators sit inside
evidence[], each with only the fields itsentityTypeuses; the rest are null. - One table per event kind. A row’s columns depend on its table;
RemoteIPexists in DeviceNetworkEvents rows, not in DeviceProcessEvents. - Deduplication.
ReportIdrepeats; Microsoft says to combine it withDeviceNameandTimestamp. - Empty hashes.
SHA256is usually empty; useSHA1.
Detection ideas
- Credential theft: alerts in category CredentialAccess or with technique T1003.001, and process events for tools that read LSASS memory.
- Implants and command and control: Malware alerts naming Cobalt Strike, Sliver or similar families, then DeviceNetworkEvents from the device to the evidence
ipAddress. - Ransomware precursors:
AntivirusDetectionfor executables in Downloads or Temp, command lines with encryption or shadow-copy deletion arguments. - Lateral movement: connections or blocked inbound connections on 445 and 3389 between internal devices, especially toward domain controllers.
- Encoded commands:
ProcessCommandLinewith-EncodedCommand— decode it with the PowerShell decoder.
The free browser analyzer reads Defender alert exports and Advanced Hunting results and runs these checks locally.
Sending Microsoft Defender for Endpoint to an LLM
One megabyte of this format is about 395,413 tokens on current Claude models and 260,893 on GPT models, measured with the models' own tokenizers — so a gigabyte sent raw to Claude Sonnet 5.5 costs about $791 in input tokens alone (prices of 2026-10-24). Estimate your own volume →
Frequently Asked Questions
- What is the difference between an alert and an Advanced Hunting event?
- An alert is Defender's conclusion: a title, a severity, a category, ATT&CK techniques and the evidence it rests on, with machineId and relatedUser. An Advanced Hunting row is one raw event on a device — a process started, a network connection, an antivirus detection — in tables such as DeviceProcessEvents. Start from the alert, then query the raw events around firstEventTime on the same device.
- Why is there no Critical severity?
- Microsoft documents the alert severities as UnSpecified, Informational, Low, Medium and High. High is the top. Incidents and other Microsoft products have their own scales, so do not map a SIEM's Critical one-to-one onto these values when correlating.
- How do I join an alert to the raw events?
- The alert's machineId is the device's DeviceId in Advanced Hunting. Query the device's DeviceProcessEvents, DeviceNetworkEvents and DeviceEvents from a little before firstEventTime to lastEventTime, and search for the file names, command lines and addresses listed in the alert's evidence.
- Why is SHA256 often empty?
- Microsoft notes that the SHA256 column is usually not populated and recommends SHA1 when it is available. Hash-based hunts that only use SHA256 will miss most events; check both columns, and the hashes in the alert's evidence entries.
Analyze a Microsoft Defender for Endpoint file in your browser
The free analyzer detects this format, parses every field above and flags attack patterns — the file never leaves your machine. For threat-intel enrichment and an AI-written incident report, run it through LogTriage.
Investigating something right now? LogTriage checks every address in the file against threat intelligence and writes the incident report: 10 analyses a month free. The incident pack adds the in-depth AI analysis and files up to 100 MB: 25 analyses for $19, one payment, no subscription. Pricing
How this page was made. The official definitions, field names and examples on it are copied by script from the sources it links and re-checked against them on every build. The investigation advice was drafted with AI from those sources and passed a separate review before publishing. What is checked, and how · found a mistake? [email protected]