Home

Automate Windows Defender ATP response action: Machine isolation

%3CLINGO-SUB%20id%3D%22lingo-sub-362701%22%20slang%3D%22en-US%22%3EAutomate%20Windows%20Defender%20ATP%20response%20action%3A%20Machine%20isolation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-362701%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20data-contrast%3D%22none%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%2048px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F83411i676D9EBFED18F1AA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3CSTRONG%3E5%20Minutes%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22none%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%2052px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F83412iF0578A9CAA1028F8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3CSTRONG%3ELow%20complexity%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EResponse%20teams%20rely%20on%20powerful%20actions%20that%20allow%20them%20take%20immediate%20action%20when%20a%20threat%20is%20identified.%20Being%20able%20to%20automate%20those%20response%20actions%20is%20a%20powerful%20way%20to%20enhance%20a%20SecOps%20team%E2%80%99s%20workflow.%20In%20this%20blog%2C%20we%E2%80%99re%20going%20to%20demonstrate%20how%20you%20can%20automate%20the%20machine%20isolation%20response%20action.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIn%20our%20previous%20blogs%20we%E2%80%99ve%20demonstrated%20how%20you%20can%3A%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%20data-leveltext%3D%22%251.%22%20data-font%3D%22Calibri%2C%20sans-serif%22%20data-listid%3D%226%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%221%22%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3ESetup%20an%20app%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Band%20create%20a%20script%20to%20get%20WDATP%E2%80%99s%20alerts%20(%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FWindows-Defender-ATP%2FWDATP-API-Hello-World-or-using-a-simple-PowerShell-script-to%2Fba-p%2F326813%22%20target%3D%22_blank%22%3E%3CSPAN%20data-contrast%3D%22none%22%3EHello%20World%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Bblog)%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3E%3CUL%3E%0A%3CLI%20data-leveltext%3D%22%251.%22%20data-font%3D%22Calibri%2C%20sans-serif%22%20data-listid%3D%226%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EThis%20is%20a%20good%20reference%20for%20when%20you%20need%20to%20create%20a%20new%20app.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3EGrant%20more%20permission%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%2C%20get%20and%20update%20alerts%20as%20part%20of%20a%20ticketing%2FSIEM%2FSOAR%20integration%20(%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FWindows-Defender-ATP%2FTicketing-system-integration-Alert-update-API%2Fba-p%2F352191%22%20target%3D%22_blank%22%3E%3CSPAN%20data-contrast%3D%22none%22%3ETicketing%20System%20Integration%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22none%22%3E%26nbsp%3Bblog%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E)%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CUL%3E%0A%3CLI%3E%3CSPAN%20data-contrast%3D%22auto%22%3EThis%20is%20a%20good%20source%20of%20information%20to%20learn%20how%20to%20add%20more%20permissions%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Bon%20apps%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EFor%20response%20teams%2C%20a%20typical%20use%20case%20involves%20the%20ability%20to%20enrich%20SIEM%20or%20SOAR%20playbooks%20with%20Windows%20Defender%20ATP%E2%80%99s%20powerful%20remediation%20capabilities.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3EJust%20imagine%20how%20powerful%20it%20can%20be%20to%20detect%20a%20malicious%20activity%20using%20your%20firewall%20or%20IPS%20and%20isolate%20the%20suspicious%20machine%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%3Ewherever%20it%20is%26nbsp%3B%3CSPAN%20data-contrast%3D%22auto%22%3E(even%20if%20the%20machine%20is%20off%20network%20at%20time%20of%20response).%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIn%20this%20blog%2C%20we%E2%80%99ll%20walk%20you%20through%20using%20the%20machine%20isolation%20API.%20This%20response%20action%20will%20leave%20the%20machine%20disconnected%20from%20any%20network%20connection%20other%20than%20the%20Windows%20Defender%20ATP%20channel%20(allowing%20Windows%20Defender%20ATP%20to%20undo).%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EWhat%E2%80%99s%20great%20about%20this%20demonstration%20is%20that%20it%20can%20be%20applied%20with%20the%20other%20response%20actions%20documented%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fsecurity%2Fthreat-protection%2Fwindows-defender-atp%2Fmachineaction-windows-defender-advanced-threat-protection-new%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22none%22%3Ehere%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--1487101353%22%20id%3D%22toc-hId-1875331242%22%20id%3D%22toc-hId-1899553499%22%20id%3D%22toc-hId-1899553499%22%20id%3D%22toc-hId-1899553499%22%20id%3D%22toc-hId-1899553499%22%3E%3CFONT%20color%3D%22%23666699%22%3ELet%E2%80%99s%20start%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIn%20this%20section%2C%20we%E2%80%99ll%20walk%20you%20through%20the%20following%3A%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%225%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%223%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EStep%201%3A%20Add%20the%20required%20permission%20to%20your%20application%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%225%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EStep%202%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIsolate%20a%20machine%20by%20machine%20ID%20or%20machine%20name%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-59195477%22%20id%3D%22toc-hId--873339224%22%20id%3D%22toc-hId--849116967%22%20id%3D%22toc-hId--849116967%22%20id%3D%22toc-hId--849116967%22%20id%3D%22toc-hId--849116967%22%3E%3CFONT%20color%3D%22%23666699%22%3EStep%201%20-%20Add%20the%20required%20permission%20to%20the%20application%3A%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIf%20you%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ehaven%E2%80%99t%20created%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ean%20app%3A%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559738%26quot%3B%3A40%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%228%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%222%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3ECreate%20an%20app%20using%20the%20instructions%20described%20in%20the%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FWindows-Defender-ATP%2FWDATP-API-Hello-World-or-using-a-simple-PowerShell-script-to%2Fba-p%2F326813%22%20target%3D%22_blank%22%3E%3CSPAN%20data-contrast%3D%22none%22%3EHello%20world%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eblog.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559738%26quot%3B%3A40%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%229%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%223%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EThen%20follow%20the%20instructions%20on%20how%20to%20Add%20Isolation%20Permission%20as%20described%20below%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559738%26quot%3B%3A40%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIf%20you%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%E2%80%99ve%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Balready%20created%20an%20app%20that%20you%E2%80%99re%20going%20to%20reuse%20for%20this%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Edemonstration%3A%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559738%26quot%3B%3A40%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%229%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%224%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EA%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Edd%20the%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%E2%80%9CIsolate%20Machine%E2%80%9D%20permission%20as%20described%20below%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559738%26quot%3B%3A40%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%229%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%225%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EWe%20recommend%20that%20you%20follow%20the%20detailed%20steps%20as%20described%20in%20the%20%E2%80%9C%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3EStep%201%20-%20Add%20the%20required%20permission%20to%20the%20application%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%E2%80%9D%20in%20the%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FWindows-Defender-ATP%2FTicketing-system-integration-Alert-update-API%2Fba-p%2F352191%22%20target%3D%22_blank%22%3E%3CSPAN%20data-contrast%3D%22none%22%3EAlert%20Update%20API%20blog%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559738%26quot%3B%3A40%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559738%26quot%3B%3A40%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%223%22%20color%3D%22%23666699%22%3EAdd%20Isolation%20Permission%3C%2FFONT%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%229%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EOpen%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3EAzure%20portal%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559738%26quot%3B%3A40%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%229%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%222%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3ENavigate%20to%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3EAzure%20Active%20Directory%20%26gt%3B%20App%20registrations%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559738%26quot%3B%3A40%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%229%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%223%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EUnder%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3EAll%20Apps%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%2C%20f%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eind%20and%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eselect%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Bthe%20application%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%2C%20for%20example%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3EContosoSIEMConnector%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559738%26quot%3B%3A40%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%229%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%224%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3ENavigate%20to%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3ESettings%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3B%26gt%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3ERequired%20permissions%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3B%26gt%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3EEnable%20Access%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559738%26quot%3B%3A40%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%229%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%225%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3ESelect%20the%20checkbox%20for%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIsolate%20machine%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Bapplication%20permission.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20942px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F86042i59A2254DD4978AE7%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22add%20isolation%20permission.jpg%22%20title%3D%22add%20isolation%20permission.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%2210%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%226%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EClick%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3ESave%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Band%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3EGrant%20Permissions%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3EDone!%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3BYou%20have%20successfully%20added%20the%20required%20permissions%20to%20the%20application.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1802005812%22%20id%3D%22toc-hId-869471111%22%20id%3D%22toc-hId-893693368%22%20id%3D%22toc-hId-893693368%22%20id%3D%22toc-hId-893693368%22%20id%3D%22toc-hId-893693368%22%3E%3CFONT%20color%3D%22%23666699%22%3EStep%202%20%E2%80%93%20Isolate%20a%20machine%20by%20machine%20ID%20or%20machine%20name%3A%3C%2FFONT%3E%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%2210%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22none%22%3ESave%20the%20following%20script%20file%20as%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22none%22%3EIsolateMachine.ps1%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22none%22%3Ein%20the%20same%20folder%20where%20you%20saved%20the%20Hello%20World%20example%20(where%20Get-Token.ps1%20was%20saved).%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233117%26quot%3B%3Atrue%2C%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH3%20id%3D%22toc-hId--13200945%22%20id%3D%22toc-hId--1879199355%22%20id%3D%22toc-hId--1854977098%22%20id%3D%22toc-hId--1854977098%22%20id%3D%22toc-hId--1854977098%22%20id%3D%22toc-hId--1854977098%22%3E%3CFONT%20color%3D%22%23666699%22%3EIsolateMachine.ps1%3C%2FFONT%3E%3C%2FH3%3E%0A%3CPRE%3Eparam%20(%20%20%0A%20%20%20%20%5BParameter(Mandatory%3D%24true)%5D%5Bstring%5D%24comment%2C%20%23any%20comment%20that%20help%0A%20%20%20%20%5BParameter(Mandatory%3D%24true)%5D%5Bstring%5D%24machineIdOrComputerDnsName%2C%20%23the%20machineID%20or%20ComputerDnsName%20%0A%20%20%20%20%5BParameter(Mandatory%3D%24true)%5D%20%20%0A%20%20%20%20%5BValidateSet('Full'%2C'Selective')%5D%20%20%23validate%20that%20the%20input%20contains%20valid%20isolation%20type%0A%20%20%20%20%5Bstring%5D%24isolationType%20%20%20%20%23the%20type%20of%20machine%20isolation%0A%20)%0A%0A%24token%20%3D%20.%2FGet-Token.ps1%20%20%20%20%20%20%20%20%20%20%23Execute%20Get-Token.ps1%20script%20to%20get%20the%20authorization%20token%0A%24url%20%3D%20%22https%3A%2F%2Fapi.securitycenter.windows.com%2Fapi%2Fmachines%2F%24machineIdOrComputerDnsName%2FIsolate%22%0A%0A%24body%20%3D%20%0A%40%7B%0A%20%20%22Comment%22%20%3D%20%24comment%0A%20%20%E2%80%9CIsolationType%E2%80%9D%20%3D%20%24isolationType%20%0A%7D%0A%0A%24headers%20%3D%20%40%7B%20%0A%20%20%20%20'Content-Type'%20%3D%20'application%2Fjson'%0A%20%20%20%20Accept%20%3D%20'application%2Fjson'%0A%20%20%20%20Authorization%20%3D%20%22Bearer%20%24token%22%0A%7D%0A%0A%24response%20%3D%20Invoke-WebRequest%20-Method%20Post%20-Uri%20%24url%20-Body%20(%24body%20%7C%20ConvertTo-Json)%20-Headers%20%24headers%20-ErrorAction%20Stop%0Aif(%24response.StatusCode%20-eq%20201)%20%20%20%23check%20the%20response%20status%20code%0A%7B%0A%20%20%20%20return%20%24true%20%20%20%20%20%20%20%20%23update%20ended%20successfully%0A%7D%0Aelse%0A%7B%0A%20%20%20%20return%20%24false%20%20%20%20%20%20%20%23update%20failed%0A%7D%20%20%0A%3C%2FPRE%3E%0A%3CH3%20id%3D%22toc-hId--136389020%22%20id%3D%22toc-hId--112166763%22%20id%3D%22toc-hId--112166763%22%20id%3D%22toc-hId--112166763%22%20id%3D%22toc-hId--112166763%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--1537708860%22%20id%3D%22toc-hId-1606421315%22%20id%3D%22toc-hId-1630643572%22%20id%3D%22toc-hId-1630643572%22%20id%3D%22toc-hId-1630643572%22%20id%3D%22toc-hId-1630643572%22%3E%3CFONT%20color%3D%22%23666699%22%3EExample%201%3A%20Isolate%20by%20machine%20DNS%20name%3C%2FFONT%3E%3C%2FH3%3E%0A%3CUL%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%2210%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EFind%20the%20machine%20FQDN%20in%20the%20machine%20page%20(concatenate%20the%20machine%20name%20and%20the%20domain)%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%2210%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%222%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EFor%20example%2C%20to%20isolate%20the%20machine%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3EtestMachine.contoso.com%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3Euse%20the%20following%20command%3A%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%26nbsp%3B%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CTABLE%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3E.%5CIsolateMachine.ps1%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E-%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3EmachineIdOrComputerDnsName%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3EtestMachine.contoso.com%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E-comment%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E%E2%80%9Cisolate%20because%20of%20alert%E2%80%9D%26nbsp%3B%20-%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3EisolationType%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E%26nbsp%3BFull%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CH3%20id%3D%22toc-hId--945735646%22%20id%3D%22toc-hId--921513389%22%20id%3D%22toc-hId--921513389%22%20id%3D%22toc-hId--921513389%22%20id%3D%22toc-hId--921513389%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--1537708860%22%20id%3D%22toc-hId-797074689%22%20id%3D%22toc-hId-821296946%22%20id%3D%22toc-hId-821296946%22%20id%3D%22toc-hId-821296946%22%20id%3D%22toc-hId-821296946%22%3E%3CFONT%20color%3D%22%23666699%22%3EExample%202%3A%20Isolate%20by%20using%20machine%20ID%3C%2FFONT%3E%3C%2FH3%3E%0A%3CUL%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%2210%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EFind%20the%20machine%20ID%20in%20the%20URL%20of%20the%20machine%20page%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%2210%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%222%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EFor%20example%2C%20to%20isolate%20machine%20where%20machine%20page%20URL%20is%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%3CA%20href%3D%22https%3A%2F%2Fsecuritycenter.windows.com%2F_machine%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsecuritycenter.windows.com%2F_machine%2F%3C%2FA%3E%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E1f2258dc516c7bf8ec62466e2e876774c0a984f3%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3Euse%20the%20following%20command%3A%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CTABLE%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%3E%0A%3CP%3E%3CFONT%20size%3D%222%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3E.%5CIsolateMachine.ps1%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E-%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3EmachineIdOrComputerDnsName%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E1f2258dc516c7bf8ec62466e2e876774c0a984f3%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E-comment%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E%E2%80%9Cisolate%20because%20of%20alert%E2%80%9D%26nbsp%3B%20-%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3EisolationType%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E%26nbsp%3BFull%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CH3%20id%3D%22toc-hId--1755082272%22%20id%3D%22toc-hId--1730860015%22%20id%3D%22toc-hId--1730860015%22%20id%3D%22toc-hId--1730860015%22%20id%3D%22toc-hId--1730860015%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--1537708860%22%20id%3D%22toc-hId--12271937%22%20id%3D%22toc-hId-11950320%22%20id%3D%22toc-hId-11950320%22%20id%3D%22toc-hId-11950320%22%20id%3D%22toc-hId-11950320%22%3E%3CFONT%20color%3D%22%23666699%22%3EExample%203%3A%20Isolate%20machines%20with%20severe%20alerts%3C%2FFONT%3E%3C%2FH3%3E%0A%3CUL%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%2210%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3ERead%20high%20severity%20alerts%20as%20described%20in%20the%20previous%20blogs%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%2210%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%222%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EUse%20the%20machine%20ID%20found%20in%20the%20alert%20to%20isolate%20the%20machine%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Busing%20the%20following%20script%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH3%20id%3D%22toc-hId--13200945%22%20id%3D%22toc-hId-1015377109%22%20id%3D%22toc-hId-1039599366%22%20id%3D%22toc-hId-1039599366%22%20id%3D%22toc-hId-1039599366%22%20id%3D%22toc-hId-1039599366%22%3E%3CFONT%20color%3D%22%23666699%22%3EGetSevereAlertsAndIsolate.ps1%3C%2FFONT%3E%3C%2FH3%3E%0A%3CPRE%3E%23%20Returns%20Alerts%20created%20in%20the%20past%201%20hour.%20and%20Isolate%20machines%20with%20high%20severity%20alerts%20%20%0A%24token%20%3D%20.%5Cget-token.ps1%20%0A%24dateTime%20%3D%20(Get-Date).ToUniversalTime().AddHours(-1).ToString(%22o%22)%20%0A%0A%23create%20url%20with%20filter%20for%20date%20and%20severity%20%0A%24url%20%3D%20%22https%3A%2F%2Fapi.securitycenter.windows.com%2Fapi%2Falerts%3F%60%24filter%3DalertCreationTime%20ge%20%24dateTime%20and%20severity%20eq%20'High'%22%20%0A%0A%24headers%20%3D%20%40%7B%20%20%0A%20%20%20%20'Content-Type'%20%3D%20'application%2Fjson'%20%0A%20%20%20%20Accept%20%3D%20'application%2Fjson'%20%0A%20%20%20%20Authorization%20%3D%20%22Bearer%20%24token%22%20%20%0A%7D%20%0A%0A%24response%20%3D%20Invoke-RestMethod%20-Method%20Get%20-Uri%20%24url%20-Headers%20%24headers%20-ErrorAction%20Stop%20%0A%0A%23foreach%20alert%2C%20get%20the%20machineId%20and%20alertId%20and%20isloate%20machine%20while%20writing%20the%20alert%20ID%20in%20the%20isolation%20comments.%20%0Aforeach%20(%24alert%20in%20%24response.value)%7B%20%0A%20%20%20%20%24machineId%20%3D%20%24alert.machineId%20%0A%20%20%20%20%24alertId%20%3D%20%24alert.id%20%3CBR%20%2F%3E%20%20%0A%20%20%20%20%24url%20%3D%20%22https%3A%2F%2Fapi.securitycenter.windows.com%2Fapi%2Fmachines%2F%24machineId%2FIsolate%22%20%3CBR%20%2F%3E%20%20%0A%20%20%20%20%24body%20%3D%20%20%0A%20%20%20%20%40%7B%20%0A%20%20%20%20%20%20%20%20Comment%20%3D%20%22Isolate%20machine%20because%20alert%20-%20%24alertId%22%20%0A%20%20%20%20%7D%20%0A%0A%20%20%20%20%24headers%20%3D%20%40%7B%20%20%0A%20%20%20%20%20%20%20%20'Content-Type'%20%3D%20'application%2Fjson'%20%0A%20%20%20%20%20%20%20%20Accept%20%3D%20'application%2Fjson'%20%0A%20%20%20%20%20%20%20%20Authorization%20%3D%20%22Bearer%20%24token%22%20%0A%20%20%20%20%7D%20%0A%20%20%0A%20%20%20%20%24response%20%3D%20Invoke-WebRequest%20-Method%20Post%20-Uri%20%24url%20-Body%20(%24body%20%7C%20ConvertTo-Json)%20-Headers%20%24headers%20-ErrorAction%20Stop%20%0A%20%20%0A%20%20%20%20%23check%20the%20isolatino%20request%20code%20and%20write%20to%20log%20file.%20%0A%20%20%20%20if(%24response.StatusCode%20-eq%20201)%20%20%20%20%0A%20%20%20%20%7B%20%0A%20%20%20%20%20%20%20%20Add-Content%20c%3A%5Ctemp%5Capi%5Clog.txt%20%22The%20isolation%20of%20machine%20%24machineId%20ended%20successfully%22%20%0A%20%20%20%20%7D%20%0A%20%20%20%20else%20%0A%20%20%20%20%7B%20%0A%20%20%20%20%20%20%20%20Add-Content%20c%3A%5Ctemp%5Capi%5Clog.txt%20%22Failed%20to%20isolate%20machine%20%24machineId%22%20%0A%20%20%20%20%7D%20%20%0A%7D%20%3C%2FPRE%3E%0A%3CH3%20id%3D%22toc-hId--1536779852%22%20id%3D%22toc-hId--1512557595%22%20id%3D%22toc-hId--1512557595%22%20id%3D%22toc-hId--1512557595%22%20id%3D%22toc-hId--1512557595%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId--1537708860%22%20id%3D%22toc-hId-206030483%22%20id%3D%22toc-hId-230252740%22%20id%3D%22toc-hId-230252740%22%20id%3D%22toc-hId-230252740%22%20id%3D%22toc-hId-230252740%22%3E%3CFONT%20color%3D%22%23666699%22%3EExample%204%3A%20Release%20machine%20(un-isolate)%3C%2FFONT%3E%3C%2FH3%3E%0A%3CUL%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%2213%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22none%22%3ESave%20the%20script%20below%20as%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22none%22%3EUnIsolateMachine.ps1%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22none%22%3E%26nbsp%3Bfile%20to%20the%20same%20folder%20where%20you%20save%20the%20Hello%20World%20example%20(where%20Get-Token.ps1%20was%20saved).%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B134233117%26quot%3B%3Atrue%2C%26quot%3B134233279%26quot%3B%3Atrue%2C%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH3%20id%3D%22toc-hId--13200945%22%20id%3D%22toc-hId-1948840818%22%20id%3D%22toc-hId-1973063075%22%20id%3D%22toc-hId-1973063075%22%20id%3D%22toc-hId-1973063075%22%20id%3D%22toc-hId-1973063075%22%3E%3CFONT%20color%3D%22%23666699%22%3EUnisolateMachine.ps1%3C%2FFONT%3E%3C%2FH3%3E%0A%3CPRE%3Eparam%20(%0A%20%20%20%20%5BParameter(Mandatory%3D%24true)%5D%5Bstring%5D%24comment%2C%0A%20%20%20%20%5BParameter(Mandatory%3D%24true)%5D%5Bstring%5D%24machineId%0A%20)%0A%0A%24token%20%3D%20.%2FGet-Token.ps1%0A%24url%20%3D%20%22https%3A%2F%2Fapi.securitycenter.windows.com%2Fapi%2Fmachines%2F%24machineId%2FUnIsolate%22%0A%0A%24body%20%3D%20%0A%40%7B%0A%20Comment%20%3D%20%24comment%0A%7D%0A%0A%24headers%20%3D%20%40%7B%20%0A%20%20%20%20'Content-Type'%20%3D%20'application%2Fjson'%0A%20%20%20%20Accept%20%3D%20'application%2Fjson'%0A%20%20%20%20Authorization%20%3D%20%22Bearer%20%24token%22%0A%7D%0A%0A%24response%20%3D%20Invoke-WebRequest%20-Method%20Post%20-Uri%20%24url%20-Body%20(%24body%20%7C%20ConvertTo-Json)%20-Headers%20%24headers%20-ErrorAction%20Stop%0Areturn%20(%24response.Content%20%7C%20ConvertFrom-Json)%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%2213%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%222%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EU%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ese%20the%20following%20script%20in%20the%20same%20way%20to%20release%20the%20machine%20from%20isolation%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CTABLE%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3E.%5CUnIsolateMachine.ps1%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E-%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3EmachineId%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E1f2258dc516c7bf8ec62466e2e876774c0a984f3%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E-comment%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E%E2%80%9Cun-isolate%20%E2%80%93%20machine%20was%20found%20clean%E2%80%9D%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1359450753%22%20id%3D%22toc-hId-1193635216%22%20id%3D%22toc-hId-1217857473%22%20id%3D%22toc-hId-1217857473%22%20id%3D%22toc-hId-1217857473%22%20id%3D%22toc-hId-1217857473%22%3E%3CFONT%20color%3D%22%23666699%22%3EConclusion%3A%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIn%20this%20blog%20we%20demonstrated%20how%20you%20can%20easily%20automate%20Windows%20Defender%20ATP%20response%20actions.%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3EThere%20are%20more%20actions%20you%20can%20automate%20such%20as%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3Erun%20an%20antivirus%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3Es%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ecan%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Band%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3Er%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eestrict%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ea%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3Epp%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ee%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3Execution%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E.%20For%20more%20information%2C%20see%20more%20the%20other%20actions%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fsecurity%2Fthreat-protection%2Fwindows-defender-atp%2Fmachineaction-windows-defender-advanced-threat-protection-new%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22none%22%3Ehere%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3B.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3ELet%20us%20know%20i%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3Ef%20you%20are%20interested%20in%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3Emore%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3Especific%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3Eremediation%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3Bexamples.%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22none%22%3EIn%20the%20next%20blog%20we%E2%80%99ll%20demonstrate%20the%20integration%20of%20alerts%20from%20other%20detection%20sources.%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%20data-contrast%3D%22none%22%3EThanks!%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A259%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F138020%22%20target%3D%22_blank%22%3E%3CSPAN%20data-contrast%3D%22none%22%3E%40Haim%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3EGoldshtein%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22none%22%3E%2C%20security%20software%20engineer%2C%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3EWindows%20Defender%20ATP%3C%2FSPAN%3E%26nbsp%3B%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F183190%22%20target%3D%22_blank%22%3E%3CSPAN%20data-contrast%3D%22none%22%3E%40Dan%20Michelson%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22none%22%3E%2C%20program%20manager%2C%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3EWindows%20Defender%20ATP%3C%2FSPAN%3E%26nbsp%3B%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A160%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-417609%22%20slang%3D%22en-US%22%3ERe%3A%20Automate%20Windows%20Defender%20ATP%20response%20action%3A%20Machine%20isolation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-417609%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20wrote%20a%20blog%20on%20how%20to%20do%20a%20similar%20thing%20with%20Microsoft%20Flow%20and%20the%20ATP%20connector%20with%20approval%20step%3C%2FP%3E%3CP%3E%3CA%20href%3D%22http%3A%2F%2Fblog.sec-labs.com%2F2019%2F04%2Fautomate-response-with-defender-atp-and-microsoft-flow%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fblog.sec-labs.com%2F2019%2F04%2Fautomate-response-with-defender-atp-and-microsoft-flow%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-490315%22%20slang%3D%22en-US%22%3ERe%3A%20Automate%20Windows%20Defender%20ATP%20response%20action%3A%20Machine%20isolation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-490315%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F160746%22%20target%3D%22_blank%22%3E%40Mattias%20Borg%3C%2FA%3E%26nbsp%3BThis%20is%20exactly%20what%20I%20was%20looking%20for.%20The%20approve%20and%20isolation%20proces%20works%20like%20a%20charm%20and%20it%20is%20very%20easy%20to%20set%20up.%20I%20didn't%20know%20about%20the%20integration%20between%20flow%20and%20ATP%2C%20but%20I%20will%20definitely%20start%20using%20it%20for%20incident%20response%20management.%3CBR%20%2F%3EI%20have%20been%20browsing%20your%20website%26nbsp%3B%3CA%20href%3D%22http%3A%2F%2Fblog.sec-labs.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fblog.sec-labs.com%2F%3C%2FA%3E%26nbsp%3Band%20found%20many%20valuable%20tips%2C%20like%20how%20to%20create%20custom%20IOC's%20in%20ATP.%20Thank%20you!%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-532776%22%20slang%3D%22en-US%22%3ERe%3A%20Automate%20Windows%20Defender%20ATP%20response%20action%3A%20Machine%20isolation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-532776%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F170805%22%20target%3D%22_blank%22%3E%40Andre%20Coninck%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENo%20problem%2C%20I'm%20happy%20it's%20usable%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHappy%20hunting!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Haim Goldshtein
Microsoft

image.png5 Minutes 

image.pngLow complexity 

 

Response teams rely on powerful actions that allow them take immediate action when a threat is identified. Being able to automate those response actions is a powerful way to enhance a SecOps team’s workflow. In this blog, we’re going to demonstrate how you can automate the machine isolation response action. 

In our previous blogs we’ve demonstrated how you can: 

  1. Setup an app and create a script to get WDATP’s alerts (Hello World blog)    
    • This is a good reference for when you need to create a new app. 
  2.  Grant more permission, get and update alerts as part of a ticketing/SIEM/SOAR integration (Ticketing System Integration blog) 
    • This is a good source of information to learn how to add more permissions on apps. 

For response teams, a typical use case involves the ability to enrich SIEM or SOAR playbooks with Windows Defender ATP’s powerful remediation capabilities. Just imagine how powerful it can be to detect a malicious activity using your firewall or IPS and isolate the suspicious machine 

wherever it is (even if the machine is off network at time of response).  

In this blog, we’ll walk you through using the machine isolation API. This response action will leave the machine disconnected from any network connection other than the Windows Defender ATP channel (allowing Windows Defender ATP to undo). 

What’s great about this demonstration is that it can be applied with the other response actions documented here. 

 

Let’s start

In this section, we’ll walk you through the following: 

  • Step 1: Add the required permission to your application 
  • Step 2: Isolate a machine by machine ID or machine name 

Step 1 - Add the required permission to the application:

If you haven’t created an app: 

  • Create an app using the instructions described in the Hello world blog. 
  • Then follow the instructions on how to Add Isolation Permission as described below 

If you’ve already created an app that you’re going to reuse for this demonstration: 

  • Add the “Isolate Machine” permission as described below 
  • We recommend that you follow the detailed steps as described in the “Step 1 - Add the required permission to the application” in the Alert Update API blog  

 

Add Isolation Permission

  • Open Azure portal 
  • Navigate to Azure Active Directory > App registrations 
  • Under All Apps, find and select the application, for example ContosoSIEMConnector 
  • Navigate to Settings > Required permissions > Enable Access 
  • Select the checkbox for Isolate machine application permission. 

add isolation permission.jpg

  • Click Save and Grant Permissions. 

Done! You have successfully added the required permissions to the application. 

 

Step 2 – Isolate a machine by machine ID or machine name:

  • Save the following script file as IsolateMachine.ps1 in the same folder where you saved the Hello World example (where Get-Token.ps1 was saved).  

IsolateMachine.ps1

param (  
    [Parameter(Mandatory=$true)][string]$comment, #any comment that help
    [Parameter(Mandatory=$true)][string]$machineIdOrComputerDnsName, #the machineID or ComputerDnsName 
    [Parameter(Mandatory=$true)]  
    [ValidateSet('Full','Selective')]  #validate that the input contains valid isolation type
    [string]$isolationType    #the type of machine isolation
 )

$token = ./Get-Token.ps1          #Execute Get-Token.ps1 script to get the authorization token
$url = "https://api.securitycenter.windows.com/api/machines/$machineIdOrComputerDnsName/Isolate"

$body = 
@{
  "Comment" = $comment
  “IsolationType” = $isolationType 
}

$headers = @{ 
    'Content-Type' = 'application/json'
    Accept = 'application/json'
    Authorization = "Bearer $token"
}

$response = Invoke-WebRequest -Method Post -Uri $url -Body ($body | ConvertTo-Json) -Headers $headers -ErrorAction Stop
if($response.StatusCode -eq 201)   #check the response status code
{
    return $true        #update ended successfully
}
else
{
    return $false       #update failed
}  

 

Example 1: Isolate by machine DNS name

  • Find the machine FQDN in the machine page (concatenate the machine name and the domain) 
  • For example, to isolate the machine testMachine.contoso.com use the following command:  

.\IsolateMachine.ps1 -machineIdOrComputerDnsName testMachine.contoso.com -comment “isolate because of alert”  -isolationType Full 

 

Example 2: Isolate by using machine ID

  • Find the machine ID in the URL of the machine page 
  • For example, to isolate machine where machine page URL is https://securitycenter.windows.com/_machine/1f2258dc516c7bf8ec62466e2e876774c0a984f3 use the following command: 

.\IsolateMachine.ps1 -machineIdOrComputerDnsName 1f2258dc516c7bf8ec62466e2e876774c0a984f3 -comment “isolate because of alert”  -isolationType Full 

 

Example 3: Isolate machines with severe alerts

  • Read high severity alerts as described in the previous blogs 
  • Use the machine ID found in the alert to isolate the machine using the following script 

GetSevereAlertsAndIsolate.ps1

# Returns Alerts created in the past 1 hour. and Isolate machines with high severity alerts  
$token = .\get-token.ps1 
$dateTime = (Get-Date).ToUniversalTime().AddHours(-1).ToString("o") 

#create url with filter for date and severity 
$url = "https://api.securitycenter.windows.com/api/alerts?`$filter=alertCreationTime ge $dateTime and severity eq 'High'" 

$headers = @{  
    'Content-Type' = 'application/json' 
    Accept = 'application/json' 
    Authorization = "Bearer $token"  
} 

$response = Invoke-RestMethod -Method Get -Uri $url -Headers $headers -ErrorAction Stop 

#foreach alert, get the machineId and alertId and isloate machine while writing the alert ID in the isolation comments. 
foreach ($alert in $response.value){ 
    $machineId = $alert.machineId 
    $alertId = $alert.id 
$url = "https://api.securitycenter.windows.com/api/machines/$machineId/Isolate"
$body = @{ Comment = "Isolate machine because alert - $alertId" } $headers = @{ 'Content-Type' = 'application/json' Accept = 'application/json' Authorization = "Bearer $token" } $response = Invoke-WebRequest -Method Post -Uri $url -Body ($body | ConvertTo-Json) -Headers $headers -ErrorAction Stop #check the isolatino request code and write to log file. if($response.StatusCode -eq 201) { Add-Content c:\temp\api\log.txt "The isolation of machine $machineId ended successfully" } else { Add-Content c:\temp\api\log.txt "Failed to isolate machine $machineId" } }

 

Example 4: Release machine (un-isolate)

  • Save the script below as UnIsolateMachine.ps1 file to the same folder where you save the Hello World example (where Get-Token.ps1 was saved). 

UnisolateMachine.ps1

param (
    [Parameter(Mandatory=$true)][string]$comment,
    [Parameter(Mandatory=$true)][string]$machineId
 )

$token = ./Get-Token.ps1
$url = "https://api.securitycenter.windows.com/api/machines/$machineId/UnIsolate"

$body = 
@{
	Comment = $comment
}

$headers = @{ 
    'Content-Type' = 'application/json'
    Accept = 'application/json'
    Authorization = "Bearer $token"
}

$response = Invoke-WebRequest -Method Post -Uri $url -Body ($body | ConvertTo-Json) -Headers $headers -ErrorAction Stop
return ($response.Content | ConvertFrom-Json)

 

  • Use the following script in the same way to release the machine from isolation 

.\UnIsolateMachine.ps1 -machineId 1f2258dc516c7bf8ec62466e2e876774c0a984f3 -comment “un-isolate – machine was found clean” 

 

Conclusion:

In this blog we demonstrated how you can easily automate Windows Defender ATP response actions. There are more actions you can automate such as run an antivirus scan and restrict app execution. For more information, see more the other actions here . 

 

Let us know if you are interested in more specific remediation examples. 

In the next blog we’ll demonstrate the integration of alerts from other detection sources. 

 

Thanks! 

@Haim Goldshtein, security software engineer, Windows Defender ATP  

@Dan Michelson, program manager, Windows Defender ATP  

 

3 Replies

We wrote a blog on how to do a similar thing with Microsoft Flow and the ATP connector with approval step

http://blog.sec-labs.com/2019/04/automate-response-with-defender-atp-and-microsoft-flow/

@Mattias Borg This is exactly what I was looking for. The approve and isolation proces works like a charm and it is very easy to set up. I didn't know about the integration between flow and ATP, but I will definitely start using it for incident response management.
I have been browsing your website http://blog.sec-labs.com/ and found many valuable tips, like how to create custom IOC's in ATP. Thank you!   

@Andre Coninck 

No problem, I'm happy it's usable :)

 

Happy hunting!

Related Conversations
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
Early preview of Microsoft Edge group policies
Sean Lyndersay in Discussions on
65 Replies