Endpoint Response & Live Response
Device timeline · response actions · isolation and containment · live response · investigation package · file actions · automatic attack disruption
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Device investigation and timeline
- Open the device page from Device inventory, an alert, an incident or search, then use the Timeline tab. It shows events for the past 30 days by default; export covers the current date or a range up to seven days.
- Select an event, then Hunt for related events to run an advanced hunting query. Flag events with the flag icon and filter with Flagged events.
- MITRE ATT&CK techniques appear in bold with a blue icon. Firewall events appear only after the Audit Filtering Platform connection policy is enabled.
- Device timeline data follows the retention policy; by default 90 days. If the EDR client runs low on resources it enters critical mode and the timeline shows an event.
- The Internet-facing tag is removed when no new events occur for 48 hours.
Response actions on a device
| Action | What it does | Remember |
|---|---|---|
| Isolate device | Disconnects the device from the network but keeps the Defender for Endpoint service connection | Needs at least Active remediation actions; selective isolation can allow Outlook and Teams; lifted automatically after seven days; offline devices retried up to three days |
| Contain device | All onboarded devices block traffic to and from the contained device | For unmanaged devices; recommended maximum 100 at a time |
| Contain user | Onboarded devices block attack-related traffic from the user; account is not disabled in the identity provider | Applied automatically by attack disruption; undoing needs Global Administrator |
| Restrict app execution | Code integrity policy allows only Microsoft-signed files | Reversible with Remove app restrictions |
| Run antivirus scan | Quick or full scan | Result appears in the Action center and device timeline |
| Collect investigation package | Zip of the device state | Download from the Action center if needed |
| Stop and quarantine file | Stops processes, quarantines the file, removes persistent data | Maximum 1000 devices; use an indicator to block on more |
Defender for Endpoint Plan 1 includes only: Run antivirus scan, Isolate device, Stop and quarantine a file, and Add an indicator to block or allow a file. Plan 2 is needed for all other response actions.
Live response
- Enable live response in Advanced features; only admins and users with Manage Portal Settings can do it. Unsigned PowerShell scripts need a separate setting in Advanced features. Signature verification applies only to PowerShell scripts.
- Start from Device inventory with Initiate live response session. Basic commands are read-only; advanced commands allow file copy and script execution, and need the advanced live response permission.
- Scripts must be uploaded to the library first, then run with
run.getfilelimit 3 GB,fileinfo30 GB, library 250 MB,putfile300 MB on Windows and 10 MB elsewhere. - Run
getfile <path> &to download in the background; bring it back withfg <command ID>. Ctrl + C cancels only in the portal, not on the agent.
| Command | Level | Platforms |
|---|---|---|
| getfile, fileinfo, findfile, dir, processes | Basic | Windows, macOS and Linux |
| services, registry, persistence, scheduledtasks, drivers, connections | Basic | Windows only |
| remediate, putfile, run, library | Advanced | Windows, macOS and Linux |
| analyze, undo | Advanced | Windows only |
| collect, scan | Advanced | macOS and Linux, not Windows |
| isolate, release | Advanced | macOS only |
Investigation package and file actions
| Windows package folder | Use |
|---|---|
| Autoruns | Registry auto-start entry points: attacker persistence |
| Installed programs | What is installed |
| Network connections | C2 and lateral movement clues |
| Prefetch files | Traces of recently run or deleted applications |
| SMB sessions | Data exfiltration or lateral movement |
| Temp directories | Files an attacker dropped |
| CollectionSummaryReport.xls | Which data points were collected and any errors |
- Package collection can fail on low battery or a metered connection.
- Download file uses the cloud-backed copy made at quarantine; Collect file reads the file from its path on the device, and is disabled if the file has not been seen in the organization in the past 30 days.
- Deep analysis runs a PE file in a cloud sandbox. A block indicator supports PE files; automatically blocked files do not show in the file's Action center but alerts show in the Alerts queue.
Automatic attack disruption and the Action center
Attack disruption works at the incident level with high-confidence signals; containment actions keep a confidence level of 99% or higher. All actions can be undone. Release only after investigation.
| Action | Product |
|---|---|
| Contain device, Contain IP, Isolate device, Contain user | Defender for Endpoint |
| Disable user | Defender for Identity |
| Revoke user session, Suspend user in Entra | Microsoft Entra ID |
| OAuth app compromise | Defender for Cloud Apps |
- Where to see it: incidents get an Attack Disruption tag and yellow banner; the Action center and the Activities tab (Policy status, Preview) show actions. The Action center History logs past actions but does not show current policy status.
- Advanced hunting:
DisruptionAndResponseEventslists all disruption actions;DeviceEventslogs blocks that result from containment, not the containment itself. - Exclude a device from automatic isolation by tagging it and excluding the Isolate device action in a policy application (Preview); the action shows as Skipped. A device group set to no automated response is excluded from automated containment. Contain user needs Sense agent v10.8470 or later.
- Defender for Endpoint AIR: remediation depends on the device group automation level; semi-automation actions wait in Pending (time out after seven days); expansion to 10 or more devices needs approval. Microsoft's pages differ on manual AIR: the automated investigations page says that as of September 1, 2026 AIR will no longer run as a separate investigation experience or be available for manual triggering, while the device response actions page still lists Initiate automated investigation.
CLI and PowerShell
| Task | Azure CLI | PowerShell |
|---|---|---|
| Find devices where containment blocked user activity | DeviceEvents
| where ActionType contains "ContainedUser" | - |
| Find devices where containment blocked device activity | DeviceEvents
| where ActionType contains "ContainedDevice" | - |
| List attack disruption actions (30 days) | DisruptionAndResponseEvents
| where Timestamp > ago(30d)
| project Timestamp, ActionType, AttackDisruptionCategory, DeviceName, AccountUpn, RemoteIP
| order by Timestamp desc | - |
| Download a file in the background (live response) | getfile "C:\windows\some_file.exe" & | - |
| Remediate a file automatically (live response) | remediate file <file path> -auto | - |
| Check the Sense agent version (Contain user needs v10.8470) | - | Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Advanced Threat Protection\Status' -Name "MsSenseDllVersion" |
Exam Tips
Tick each tip once you can answer it without looking.
“Live response session cannot start” → Enable live response in Advanced features (Manage Portal Settings). Trap: Unsigned script setting is separate and optional.
“Run an unsigned PowerShell script” → Upload to library, enable unsigned script execution, then run. Trap: Bash scripts are not subject to signature verification; library upload is still required.
“Analyst can start a session but cannot run library scripts” → Needs advanced live response commands. Trap: Basic is read-only and excludes file copy and execution.
“Linux device, need a forensics package or quick scan from live response” → collect and scan. Trap: They are not available on Windows; analyze and undo are Windows only.
“Large file download blocks the console” → getfile path &, then fg command ID. Trap: Ctrl + C cancels only in the portal.
“Where to download a collected investigation package” → Action center: Package collection package available. Trap: The zip can also download right after you confirm the action.
“Find attacker persistence in the package” → Autoruns folder. Trap: Prefetch shows traces of run apps; Temp lists dropped files.
“Isolate but keep Outlook and Teams” → Selective isolation. Trap: Full isolation still keeps the Defender for Endpoint service connection.
“Compromised unmanaged device” → Contain device (all onboarded devices block it); keep to about 100 devices. Trap: 1000 is the stop-and-quarantine limit; 10 is the AIR expansion approval threshold.
“Contain a user manually from the portal” → Not offered: Contain user comes automatically from attack disruption. Trap: Contain user does not disable the account in the identity provider.
“Which attack disruption actions are Entra ID actions” → Revoke user session and Suspend user in Entra. Trap: Disable user is listed under Defender for Identity.
“Org-wide list of disruption actions in hunting” → DisruptionAndResponseEvents. Trap: DeviceEvents shows only blocks caused by containment.
“Keep a lab device from being isolated automatically” → Tag it and exclude Isolate device in a policy application (Preview). Trap: The action then shows Skipped in the Action center.
“Current status of a disruption policy” → Activities tab Policy status (Preview). Trap: Action center History logs past actions only.
“Download file versus Collect file” → Download uses the cloud-backed quarantine copy; Collect reads the device path. Trap: Collect is disabled if the file has not been seen in the organization in the past 30 days.
“Block a PE file across many devices” → Add a block indicator. Trap: Stop and quarantine is limited to 1000 devices and 3 days offline.
“Pending AIR actions waiting for approval” → Approve or reject in the Action center Pending tab; they time out after seven days. Trap: A timeout acts like a rejection.
Sources
- Investigate devices in Defender for Endpoint
- Take response actions on a device
- Take response actions on a file
- Investigate entities on devices using live response
- Create and manage roles for RBAC
- Investigate files
- Investigate a user account
- Automated investigations
- Automation levels
- Action center in Defender for Endpoint
- Automatic attack disruption
- Configure automatic attack disruption
- Details and results of an automatic attack disruption action
- Investigate incidents in the Defender portal (legacy)
Checked against Microsoft Learn on November 13, 2026.