Announcing expanded support and functionality for Live Response APIs

Published Mar 09 2022 09:14 AM 2,287 Views

Live Response is a crucial tool for Incident Responders, and we are strong believers that Live Response should and could be used in ways that helps organizations to automate and orchestrate containment and response actions.

 

With that in mind, and following-up on last year's Live response public preview announcement, we are happy to share that we continue to expand support of existing APIs across all of our supported platforms in Microsoft Defender for Endpoint, alongside announcing new ones that will help simplify and augment organization's response automation and orchestration.

 

First, Live Response API is now available in Public Preview for macOS and Linux, providing a path for real-time actions against these platforms, with built-in capabilities to upload and download files and execute scripts. Customers that are already using Live Response API for Windows 10, Windows Server 2019 and other supported OS versions will see no change in the actual API schema. Just ensure that you select the correct scripts to be executed  :)

 

Here are the links for the existing Microsoft Defender for Endpoint Live Response APIs documentation, if you haven't yet had a chance to read it before:

 

To check how to use Live Response API, please refer to the initial announcement of Live Response API, referenced at the beginning of this article.

 

Last, but not least, we are now also making available in Public Preview, the new API that will allow you to manage the Live Response Library (storage within the service to host scripts and other relevant tools for Incident Responders).

 

How to use the Live Response Library API

 

In this tutorial we will show you how to use the Live Response Library API to upload a file and then list existing files available in the library.

 

Step 1 -  Upload file to Live Response Library

 

Request (HTTP POST)

 

 

 

POST https://api.securitycenter.microsoft.com/api/libraryfiles

 

 

 

 

And here is an example of a curl command, to upload a file (mdatp1.png), with a given description and finally with the option to override the file if it already exists in the library.

 

 

 

 

curl -X POST https://api.securitycenter.microsoft.com/api/libraryfiles -H 
"Authorization: Bearer \$token" -F "file=\@mdatp1.png" -F 
"ParametersDescription=test" 
-F "HasParameters=true" -F "OverrideIfExists=true" -F "Description=test 
description"

 

 

 

Step 2 - Listing existing files in the library

 

Request (HTTP GET)

 

 

 

GET https://api.securitycenter.microsoft.com/api/libraryfiles

 

 

 

Here is a response example:

 

 

 

HTTP/1.1 200 Ok
Content-type: application/json
{
"\@odata.context": "https://api.securitycenter.microsoft.com
/api/\$metadata\#LibraryFiles",
"value": [
 {
 "fileName": "script1.ps1",
 "sha256":
"6e212a0db618507c44e4ec8ee7499dfef7e5767e5f8d31144df3b96fd1145caf",
 "description": null,
 "creationTime": "2019-10-24T10:54:23.2009016Z",
 "lastUpdatedTime": "2019-10-24T10:54:23.2009016Z",
 "createdBy": "admin",
 "hasParameters": true,
 "parametersDescription": "test"
 },
 {
 "fileName": "script.sh",
 "sha256":
"d0f3e3b0641dbf88ee39c822516e81a909d1d06d22341dd9b1f12aa5e5c027a2",
"description": null, 
 "creationTime": "2018-10-24T11:15:35.3688259Z", 
 "lastUpdatedTime": "2018-10-24T11:15:35.3688259Z", 
 "createdBy": "username", 
 "hasParameters": false
 }, 
 { 
 "fileName": "memdump.exe", 
 "sha256": 
"fa70b87730290c0d30fe255d1dfb65de82f96286ebfeeb1d88ed3cc831329825", 
 "description": "Process memory dump", 
 "creationTime": "2018-10-24T10:54:23.2009016Z", 
 "lastUpdatedTime": "2018-10-24T10:54:23.2009016Z", 
 "createdBy": "admin", 
 "hasParameters": false
 } 
] 
} 

 

 

 

 

 

Summary

We're excited to hear your feedback as you explore the new APIs and their new scope, so don't hesitate in reaching out!

Documentation will continue to be updated and improved throughout the preview.

 

If you’ve enabled public preview features, you can check out the new Live Response APIs and Live Response Library API today! If not, we encourage you to turn on preview features for Microsoft Defender for Endpoint to get access to the newest capabilities.

 

From our end, we would like to extend a big Thank You to all of our customers and promise you that we will continue to bring you new and improved features and capabilities that will definitely delight you.

 

Keep safe!

The Microsoft Defender for Endpoint team

 

%3CLINGO-SUB%20id%3D%22lingo-sub-3178432%22%20slang%3D%22en-US%22%3EAnnouncing%20expanded%20support%20and%20functionality%20for%20Live%20Response%20APIs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3178432%22%20slang%3D%22en-US%22%3E%3CP%3ELive%20Response%20is%20a%20crucial%20tool%20for%20Incident%20Responders%2C%20and%20we%20are%20strong%20believers%20that%20Live%20Response%20should%20and%20could%20be%20used%20in%20ways%20that%20helps%20organizations%20to%20automate%20and%20orchestrate%20containment%20and%20response%20actions.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20that%20in%20mind%2C%20and%20following-up%20on%20last%20year's%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-defender-for-endpoint%2Fannouncing-live-response-api-public-preview%2Fba-p%2F2537833%22%20target%3D%22_blank%22%3ELive%20response%20public%20preview%3C%2FA%3E%20announcement%2C%20we%20are%20happy%20to%20share%20that%20we%20continue%20to%20expand%20support%20of%20existing%20APIs%20across%20all%20of%20our%20supported%20platforms%20in%20Microsoft%20Defender%20for%20Endpoint%2C%20alongside%20announcing%20new%20ones%20that%20will%20help%20simplify%20and%20augment%20organization's%20response%20automation%20and%20orchestration.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFirst%2C%20%3CU%3ELive%20Response%20API%20is%20now%20available%20in%20Public%20Preview%20for%20macOS%20and%20Linux%3C%2FU%3E%2C%20providing%20a%20path%20for%20real-time%20actions%20against%20these%20platforms%2C%20with%20built-in%20capabilities%20to%20%3CSTRONG%3Eupload%3C%2FSTRONG%3E%20and%20%3CSTRONG%3Edownload%3C%2FSTRONG%3E%20files%20and%20%3CSTRONG%3Eexecute%3C%2FSTRONG%3E%20%3CSTRONG%3Escripts%3C%2FSTRONG%3E.%20Customers%20that%20are%20already%20using%20Live%20Response%20API%20for%20Windows%2010%2C%20Windows%20Server%202019%20and%20other%20supported%20OS%20versions%20will%20see%20no%20change%20in%20the%20actual%20API%20schema.%20Just%20ensure%20that%20you%20select%20the%20correct%20scripts%20to%20be%20executed%26nbsp%3B%26nbsp%3B%3A)%3C%2Fimg%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20are%20the%20links%20for%20the%20existing%20Microsoft%20Defender%20for%20Endpoint%20Live%20Response%20APIs%20documentation%2C%20if%20you%20haven't%20yet%20had%20a%20chance%20to%20read%20it%20before%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fsecurity%2Fdefender-endpoint%2Frun-live-response%3Fview%3Do365-worldwide%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ERun%20live%20response%20commands%20on%20a%20device%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fsecurity%2Fdefender-endpoint%2Fget-live-response-result%3Fview%3Do365-worldwide%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EGet%20live%20response%20results%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fsecurity%2Fdefender-endpoint%2Fcancel-machine-action%3Fview%3Do365-worldwide%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ECancel%20machine%20action%20API%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20check%20how%20to%20use%20Live%20Response%20API%2C%20please%20refer%20to%20the%20initial%20announcement%20of%20Live%20Response%20API%2C%20referenced%20at%20the%20beginning%20of%20this%20article.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELast%2C%20but%20not%20least%2C%20%3CU%3Ewe%20are%20now%20also%20making%20available%20in%20Public%20Preview%2C%20the%20new%20API%20that%20will%20allow%20you%20to%20manage%20the%20Live%20Response%20Library%3C%2FU%3E%20(storage%20within%20the%20service%20to%20host%20scripts%20and%20other%20relevant%20tools%20for%20Incident%20Responders).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%20color%3D%22%23000000%22%3E%3CSTRONG%3EHow%20to%20use%20the%20Live%20Response%20Library%20API%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20tutorial%20we%20will%20show%20you%20how%20to%20use%20the%20Live%20Response%20Library%20API%20to%20upload%20a%20file%20and%20then%20list%20existing%20files%20available%20in%20the%20library.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%201%20-%26nbsp%3B%20Upload%20file%20to%20Live%20Response%20Library%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERequest%20(HTTP%20POST)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3EPOST%20https%3A%2F%2Fapi.securitycenter.microsoft.com%2Fapi%2Flibraryfiles%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnd%20here%20is%20an%20example%20of%20a%20curl%20command%2C%20to%20upload%20a%20file%20(mdatp1.png)%2C%20with%20a%20given%20description%20and%20finally%20with%20the%20option%20to%20override%20the%20file%20if%20it%20already%20exists%20in%20the%20library.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-bash%22%3E%3CCODE%3Ecurl%20-X%20POST%20https%3A%2F%2Fapi.securitycenter.microsoft.com%2Fapi%2Flibraryfiles%20-H%20%0A%22Authorization%3A%20Bearer%20%5C%24token%22%20-F%20%22file%3D%5C%40mdatp1.png%22%20-F%20%0A%22ParametersDescription%3Dtest%22%20%0A-F%20%22HasParameters%3Dtrue%22%20-F%20%22OverrideIfExists%3Dtrue%22%20-F%20%22Description%3Dtest%20%0Adescription%22%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EStep%202%20-%20Listing%20existing%20files%20in%20the%20library%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERequest%20(HTTP%20GET)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3EGET%20https%3A%2F%2Fapi.securitycenter.microsoft.com%2Fapi%2Flibraryfiles%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20is%20a%20response%20example%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3EHTTP%2F1.1%20200%20Ok%0AContent-type%3A%20application%2Fjson%0A%7B%0A%22%5C%40odata.context%22%3A%20%22https%3A%2F%2Fapi.securitycenter.microsoft.com%0A%2Fapi%2F%5C%24metadata%5C%23LibraryFiles%22%2C%0A%22value%22%3A%20%5B%0A%20%7B%0A%20%22fileName%22%3A%20%22script1.ps1%22%2C%0A%20%22sha256%22%3A%0A%226e212a0db618507c44e4ec8ee7499dfef7e5767e5f8d31144df3b96fd1145caf%22%2C%0A%20%22description%22%3A%20null%2C%0A%20%22creationTime%22%3A%20%222019-10-24T10%3A54%3A23.2009016Z%22%2C%0A%20%22lastUpdatedTime%22%3A%20%222019-10-24T10%3A54%3A23.2009016Z%22%2C%0A%20%22createdBy%22%3A%20%22admin%22%2C%0A%20%22hasParameters%22%3A%20true%2C%0A%20%22parametersDescription%22%3A%20%22test%22%0A%20%7D%2C%0A%20%7B%0A%20%22fileName%22%3A%20%22script.sh%22%2C%0A%20%22sha256%22%3A%0A%22d0f3e3b0641dbf88ee39c822516e81a909d1d06d22341dd9b1f12aa5e5c027a2%22%2C%0A%22description%22%3A%20null%2C%20%0A%20%22creationTime%22%3A%20%222018-10-24T11%3A15%3A35.3688259Z%22%2C%20%0A%20%22lastUpdatedTime%22%3A%20%222018-10-24T11%3A15%3A35.3688259Z%22%2C%20%0A%20%22createdBy%22%3A%20%22username%22%2C%20%0A%20%22hasParameters%22%3A%20false%0A%20%7D%2C%20%0A%20%7B%20%0A%20%22fileName%22%3A%20%22memdump.exe%22%2C%20%0A%20%22sha256%22%3A%20%0A%22fa70b87730290c0d30fe255d1dfb65de82f96286ebfeeb1d88ed3cc831329825%22%2C%20%0A%20%22description%22%3A%20%22Process%20memory%20dump%22%2C%20%0A%20%22creationTime%22%3A%20%222018-10-24T10%3A54%3A23.2009016Z%22%2C%20%0A%20%22lastUpdatedTime%22%3A%20%222018-10-24T10%3A54%3A23.2009016Z%22%2C%20%0A%20%22createdBy%22%3A%20%22admin%22%2C%20%0A%20%22hasParameters%22%3A%20false%0A%20%7D%20%0A%5D%20%0A%7D%20%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ESummary%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EWe're%20excited%20to%20hear%20your%20feedback%20as%20you%20explore%20the%20new%20APIs%20and%20their%20new%20scope%2C%20so%20don't%20hesitate%20in%20reaching%20out!%3C%2FP%3E%0A%3CP%3EDocumentation%20will%20continue%20to%20be%20updated%20and%20improved%20throughout%20the%20preview.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIf%20you%E2%80%99ve%20enabled%20public%20preview%20features%2C%20you%20can%20check%20out%20the%20new%20Live%20Response%20APIs%20and%20Live%20Response%20Library%20API%20today!%20If%20not%2C%20we%20encourage%20you%20to%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fmicrosoft-365%2Fsecurity%2Fdefender-endpoint%2Fpreview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eturn%20on%20preview%20features%20for%20Microsoft%20Defender%20for%20Endpoint%3C%2FA%3E%3CSPAN%3E%26nbsp%3Bto%20get%20access%20to%20the%20newest%20capabilities.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFrom%20our%20end%2C%20we%20would%20like%20to%20extend%20a%20big%20Thank%20You%20to%20all%20of%20our%20customers%20and%20promise%20you%20that%20we%20will%20continue%20to%20bring%20you%20new%20and%20improved%20features%20and%20capabilities%20that%20will%20definitely%20delight%20you.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EKeep%20safe!%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThe%20Microsoft%20Defender%20for%20Endpoint%20team%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3178432%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MSC16_slalom_016.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354502i28253218BAAA8562%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22MSC16_slalom_016.jpg%22%20alt%3D%22MSC16_slalom_016.jpg%22%20%2F%3E%3C%2FSPAN%3EWe%20are%20pleased%20to%20announce%20the%20continued%20expansion%20of%20the%20Live%20Response%20API%20across%20supported%20platforms%2C%20along%20with%20a%20new%20one%20to%20manage%20Live%20Response%20Library!%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3178432%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDefender%20for%20Endpoint%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Elive%20response%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Elive%20response%20API%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Mar 09 2022 09:14 AM
Updated by: