Home

Microsoft Defender ATP and Malware Information Sharing Platform integration

%3CLINGO-SUB%20id%3D%22lingo-sub-576648%22%20slang%3D%22en-US%22%3EMicrosoft%20Defender%20ATP%20and%20Malware%20Information%20Sharing%20Platform%20integration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-576648%22%20slang%3D%22en-US%22%3E%3CP%20style%3D%22text-align%3A%20center%3B%22%3EPull%20file%20hashes%20(SHA1)%20from%20Malware%20Information%20Sharing%20Platform%20(MISP)%20and%20push%20them%20to%20Microsoft%20Defender%20ATP%3C%2FP%3E%0A%3CP%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%3CSPAN%3E5%20Minutes%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%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%3C%2FSPAN%3E%3CSPAN%3ELow%20complexity%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEnterprises%20use%20threat%20intelligence%20to%20enrich%20their%20cyber%20security%20telemetry%20as%20well%20as%20to%20detect%20and%20block%20attacks.%20Microsoft%20Defender%20ATP%20supports%20blocking%20capabilities%20through%20the%20portal%20using%20the%20%3CEM%3Eindicators%3C%2FEM%3E%20page%20and%20the%20%3CEM%3Eindicators%20API%3C%2FEM%3E.%20In%20a%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FWindows-Defender-ATP%2FPushing-custom-Indicator-of-Compromise-IoCs-to-Microsoft%2Fm-p%2F532203%23M81%22%20target%3D%22_blank%22%3Eprevious%20blog%3C%2FA%3E%2C%20we%20explained%20how%20to%20generally%20use%20the%20%3CEM%3Eindicators%20API%3C%2FEM%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20our%20commitment%20to%20listen%20to%20customer%20feedback%2C%20we%E2%80%99re%20going%20to%20demonstrate%20how%20to%20leverage%20the%20power%20of%20%3CA%20href%3D%22https%3A%2F%2Fwww.misp-project.org%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMalware%20Information%20Sharing%20Platform%3C%2FA%3E%26nbsp%3B(MISP)%20to%20further%20augment%20the%20protection%20offering%20of%20Microsoft%20Defender%20ATP.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMISP%20is%20a%20free%20and%20open%20source%20threat%20sharing%20platform.%20It%20is%20designed%20to%20help%20share%20threat%20intelligence%20information%20such%20as%20cyber%20security%20indicators%2C%20vulnerability%20information%2C%20and%20others.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20blog%2C%20we%20will%20demonstrate%20an%20easy%20way%20to%20automatically%20pull%20the%20indicators%20from%20the%20%3CSTRONG%3EMISP%3C%2FSTRONG%3E%20platform%20and%20push%20them%20into%20the%20custom%20IoC%20list%20of%20Microsoft%20Defender%20ATP.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%E2%80%99ll%20guide%20you%20on%20how%20to%20pull%20SHA1%20hashes%20from%20the%20past%20four%20days%20from%20MISP%2C%20and%20push%20them%20as%20indicators%20for%20Microsoft%20Defender%20ATP%20to%20detect.%20We%E2%80%99ll%20push%20the%20indicators%20with%20an%20expiration%20date%20set%20to%20seven%20days%20from%20the%20time%20the%20script%20is%20run%20to%20ensure%20the%20freshness%20of%20indicators.%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1933631399%22%20id%3D%22toc-hId-1933631422%22%20id%3D%22toc-hId-1933631422%22%20id%3D%22toc-hId-1933631422%22%3E%3CFONT%20size%3D%225%22%20color%3D%22%23666699%22%3E%3CSTRONG%3ELet%E2%80%99s%20start%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH1%3E%0A%3COL%3E%0A%3CLI%3EAdd%20the%20required%20permission%20to%20write%20indicators%20to%20Microsoft%20Defender%20ATP%3C%2FLI%3E%0A%3CLI%3EGet%20your%20MISP%20URL%20and%20Authorization%20key%3C%2FLI%3E%0A%3CLI%3EDownload%20and%20use%20the%20script%20to%20use%20MISP%20API%20to%20pull%20SHA1*%20hashes%20from%20your%20MISP%20platform%20and%20push%20them%20into%20Microsoft%20Defender%20ATP%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH2%20id%3D%22toc-hId--815039067%22%20id%3D%22toc-hId--815039044%22%20id%3D%22toc-hId--815039044%22%20id%3D%22toc-hId--815039044%22%3E%3CSTRONG%3E%3CFONT%20size%3D%224%22%20color%3D%22%23666699%22%3EStep%201%3A%20Add%20permission%20to%20write%20indicators%20to%20Microsoft%20Defender%20ATP%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CP%3E%3CSTRONG%3ENOTE%3A%20This%20step%20is%20identical%20to%20the%20process%20detailed%20in%20our%20%3C%2FSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FWindows-Defender-ATP%2FPushing-custom-Indicator-of-Compromise-IoCs-to-Microsoft%2Fm-p%2F532203%23M81%22%20target%3D%22_blank%22%3E%3CSTRONG%3Eprevious%20blog%3C%2FSTRONG%3E%3C%2FA%3E%3CSTRONG%3E.%20If%20you%E2%80%99ve%20already%20done%20it%2C%20skip%20this%20step.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EIf%20you%26nbsp%3Bhaven%E2%80%99t%20created%26nbsp%3Ban%20app%3A%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ECreate%20an%20app%20using%20the%20instructions%20described%20in%20the%26nbsp%3B%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%3EHello%20world%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EThen%20follow%20the%20instructions%20on%20how%20to%20Add%20Isolation%20Permission%20as%20described%20below.%26nbsp%3B%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EIf%20you%E2%80%99ve%26nbsp%3Balready%20created%20an%20app%20that%20you%E2%80%99re%20going%20to%20reuse%20for%20this%26nbsp%3Bdemonstration%3A%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EAdd%20the%26nbsp%3B%E2%80%9CTI.ReadWrite.All%E2%80%9D%20permission%20as%20described%20below.%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3EWe%20recommend%20that%20you%20follow%20the%20detailed%20steps%20as%20described%20in%20the%20%E2%80%9CStep%201%20-%20Add%20the%20required%20permission%20to%20the%20application%E2%80%9D%20in%20the%26nbsp%3B%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%3EAlert%20Update%20API%20blog%3C%2FA%3E.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CU%3E%26nbsp%3B%3C%2FU%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%23666699%22%3EAdd%20TI%20write%20permissions%3C%2FFONT%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EOpen%26nbsp%3BAzure%20portal.%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3ENavigate%20to%26nbsp%3BAzure%20Active%20Directory%20%26gt%3B%20App%20registrations.%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3EUnder%26nbsp%3B%3CSTRONG%3EAll%20Applications%3C%2FSTRONG%3E%2C%20find%20and%26nbsp%3Bselect%26nbsp%3Bthe%20application%2C%20for%20example%2C%20%3CSTRONG%3EContosoSIEMConnector%3C%2FSTRONG%3E.%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3EClick%26nbsp%3B%3CSTRONG%3E%20API%20permissions%26nbsp%3B%26gt%3B%26nbsp%3BAdd%20a%20permission%3C%2FSTRONG%3E.%26nbsp%3B%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20917px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F113783i4BB59086138755B6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22permission.png%22%20title%3D%22permission.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EClick%20on%20%E2%80%9CAPIs%20my%20organization%20uses%E2%80%9D%20and%20type%20WindowDefenderATP%20in%20the%20search%20box.%20Then%20chose%20the%20%E2%80%9CWindowsDefenderATP%E2%80%9D%20API%20from%20the%20list.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20891px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F113784i2006CB5264E9A5AB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22permission2.png%22%20title%3D%22permission2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EClick%20on%20%E2%80%9CApplication%20permission%E2%80%9D%20button%20and%20check%20the%20%E2%80%9CTI.ReadWrite.All%E2%80%9D%20checkbox.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20818px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F113785i9CDF9305D6BC9C7A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22permission3.png%22%20title%3D%22permission3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EClick%20%3CSTRONG%3EAdd%20Permission%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EOn%20the%20%E2%80%9CAPI%20Permission%E2%80%9D%20screen%2C%20click%20on%20%E2%80%9C%3CSTRONG%3EGrant%20admin%20consent%20for%E2%80%A6%3C%2FSTRONG%3E%E2%80%9D%20button.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20791px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F113787iD81C77F820A64BC8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22permission4.png%22%20title%3D%22permission4.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EDone!%3C%2FSTRONG%3E%26nbsp%3BYou%20have%20successfully%20added%20the%20required%20permissions%20to%20the%20application.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CFONT%20size%3D%224%22%20color%3D%22%23666699%22%3EStep%202%3A%20Get%20your%20MISP%20URL%20and%20Authorization%20key%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ETo%20use%20MISP%20API%2C%20you%20will%20your%20MISP%20URL%20and%20authorization%20key.%20You%20can%20get%20the%20URL%20from%20MISP%20web%20interface%20and%20the%20API%20key%20from%20the%20Automation%20section%20of%20the%20MISP%20web%20interface.%20See%20below%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F113789iF0462458F3148347%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Misp-Key1.png%22%20title%3D%22Misp-Key1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-927771268%22%20id%3D%22toc-hId-927771291%22%20id%3D%22toc-hId-927771291%22%20id%3D%22toc-hId-927771291%22%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3E%3CFONT%20color%3D%22%23666699%22%3EStep%203%3A%20Run%20the%20script%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3EDownload%20the%20zip%20file%20at%20the%20bottom%20of%20this%20blog%20and%20extract%20the%20%E2%80%9CGet-MISP-Hash.ps1%E2%80%9D%20script.%3C%2FP%3E%0A%3CP%3EMake%20sure%20the%20script%20in%20the%20same%20directory%20(folder)%20as%20your%20%E2%80%9CGet-Token.ps1%E2%80%9D%20script.%3C%2FP%3E%0A%3CP%3ENow%20lets%20%3CSTRONG%3Erun%20the%20script!%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ELet%E2%80%99s%20say%20your%20MISP%20URL%20is%2010.0.0.1%20and%20the%20key%20is%20Yn81mP1ck13Ric4.%3C%2FP%3E%0A%3CP%3EOpen%20PowerShell%20and%20run%20the%20following%20command%3A%3C%2FP%3E%0A%3CPRE%3E.%5CGet-Misp-Hash.ps1%20-title%20%E2%80%9CSha1%20from%20MISP%E2%80%9D%20-mispUrl%20%E2%80%9C10.0.0.1%E2%80%9D%20-authKey%20%E2%80%9CYn81mP1ck13Ric4%E2%80%9D%3C%2FPRE%3E%0A%3CP%3E%3CSTRONG%3EAnd%20that%E2%80%99s%20it%2C%20you%20are%20done!%3C%2FSTRONG%3E%20You%20can%20see%20the%20new%20hashes%20on%20your%20Microsoft%20Defender%20Security%20Portal%20by%20clicking%20on%20Settings%2C%20then%20look%20for%20%E2%80%9CIndicators%E2%80%9D%20on%20the%20menu%20on%20the%20left%20of%20the%20screen.%3C%2FP%3E%0A%3CP%3EThe%20script%20also%20offers%20%3CU%3Eadditional%20(optional)%20fields%3C%2FU%3E%20you%20may%20want%20to%20use%20to%20control%20the%20indicators%20and%20how%20the%20MDATP%20handles%20them%3A%3C%2FP%3E%0A%3CTABLE%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22188%22%3E%0A%3CP%3E%3CSTRONG%3EParameter%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22329%22%3E%0A%3CP%3E%3CSTRONG%3EDescription%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22107%22%3E%0A%3CP%3E%3CSTRONG%3EDefault%20value%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22188%22%3E%0A%3CP%3E-title%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22329%22%3E%0A%3CP%3EThe%20alert%E2%80%99s%20title%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22107%22%3E%0A%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22188%22%3E%0A%3CP%3E-mispUrl%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22329%22%3E%0A%3CP%3EYour%20MISP%20URL%20from%20the%20MISP%20platform%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22107%22%3E%0A%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22188%22%3E%0A%3CP%3E-authKey%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22329%22%3E%0A%3CP%3EYour%20MISP%20authorization%20key%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22107%22%3E%0A%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22188%22%3E%0A%3CP%3E-action%20%3CSTRONG%3E(optional)%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22329%22%3E%0A%3CP%3EChoose%20one%3A%20Alert%2FAlertAndBlock%2FAllowed%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22107%22%3E%0A%3CP%3EAlert%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22188%22%3E%0A%3CP%3E-severity%3CSTRONG%3E%20(optional)%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22329%22%3E%0A%3CP%3EChoose%20one%3A%20Informational%2FLow%2FMedium%2FHigh%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22107%22%3E%0A%3CP%3EInformational%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22188%22%3E%0A%3CP%3E-description%20%3CSTRONG%3E(optional)%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22329%22%3E%0A%3CP%3Ethe%20alert%E2%80%99s%20description%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22107%22%3E%0A%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22188%22%3E%0A%3CP%3E-recommendedAction%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E(optional)%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22329%22%3E%0A%3CP%3Ethe%20recommended%20action%20to%20remediate%20the%20alert%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22107%22%3E%0A%3CP%3E-%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22188%22%3E%0A%3CP%3E-expiration%20%3CSTRONG%3E(optional)%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22329%22%3E%0A%3CP%3Enumber%20of%20%3CU%3Edays%3C%2FU%3E%20the%20hashes%20will%20expire%20and%20deleted%20from%20the%20MDATP%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22107%22%3E%0A%3CP%3E7%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnother%20example%20that%20utilizes%20all%20of%20the%20options%20is%20shown%20below%20%3CU%3Eall%20in%20the%20same%20line%3A%3C%2FU%3E%3C%2FP%3E%0A%3CPRE%3E.%5CGet-MISP-Hash.ps1%20-title%20%22Sha1%20from%20MISP%22%20-mispUrl%20%E2%80%9C10.0.0.1%20%20%E2%80%9D%20-authKey%20%E2%80%9CYn81mP1ck13Ric4%E2%80%9D%20-action%20AlertAndBlock%20-severity%20High%20-description%20%22Sha1%20from%20the%20MISP%20platform%20loaded%20by%20automated%20script%22%20-recommendedActions%20%22Add%20your%20own%20recommended%20actions%22%20-expiration%2014%3C%2FPRE%3E%0A%3CH2%20id%3D%22toc-hId--1624385693%22%20id%3D%22toc-hId--1624385670%22%20id%3D%22toc-hId--1624385670%22%20id%3D%22toc-hId--1624385670%22%3E%3CFONT%20size%3D%225%22%20color%3D%22%23666699%22%3EConclusion%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3EIn%20this%20blog%2C%20we%20demonstrated%20how%20you%20can%20%26nbsp%3Bpull%20SHA1%20hashes%20from%20MISP%20to%20augment%20the%20Microsoft%20Defender%20ATP%20protection%20capabilities%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%23666699%22%3E%3CSTRONG%3E%3CU%3EFAQs%3A%3C%2FU%3E%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EWhich%20file%20hashes%20are%20supported%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThis%20integration%20supports%20SHA1.%20MISP%E2%80%99s%20API%20only%20supports%20SHA1%20and%20MD5%20(which%20is%20relatively%20weak)%2C%20while%20Microsoft%20Defender%20ATP%20supports%20SHA1%20and%20SHA256.%3C%2FP%3E%0A%3CP%3EAlso%20note%20that%20%E2%80%9COnly%20published%20events%20and%20attributes%20marked%20as%20IDS%20Signature%20are%20exported%E2%80%9D%20(%3CA%20href%3D%22https%3A%2F%2Fwww.circl.lu%2Fdoc%2Fmisp%2Fautomation%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMISP%20API%20documentation%3C%2FA%3E).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EHow%20do%20I%20modify%20the%20MISP%20filter%3F%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThe%20MISP%20API%20we%20used%20to%20get%20the%20hashes%20has%20some%20filtering%20options.%3C%2FP%3E%0A%3CP%3EWe%20set%20the%20script%20to%20get%20hashes%20from%20the%20past%204%20days%3A%3C%2FP%3E%0A%3CP%3Ehttps%3A%2F%2F%3CYOUR_MISP_URL%3E%2Fevents%2Fhids%2Fsha1%2Fdownload%2Ffalse%2Ffalse%2Ffalse%2F%3CSTRONG%3E4d%3C%2FSTRONG%3E%3C%2FYOUR_MISP_URL%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20change%20it%20to%20any%20other%20number%20of%20days%20or%20hours%2C%20also%20you%20can%20filter%20by%20start%20and%20end%20date%20or%20by%20MISP%20tags%20you%E2%80%99ve%20set%20up.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20the%20full%20details%2C%20see%20MISP%E2%80%99s%20API%20DOC%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.circl.lu%2Fdoc%2Fmisp%2Fautomation%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.circl.lu%2Fdoc%2Fmisp%2Fautomation%2F%3C%2FA%3E%20and%20look%20for%20the%20%E2%80%9CGET%20%2Fevents%2Fhids%20Hash%E2%80%9D%20section.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CU%3EImportant%20note%3C%2FU%3E%3C%2FSTRONG%3E%3A%3C%2FP%3E%0A%3CP%3EIf%20the%20hash%20you%20are%20submitting%20already%20exists%20in%20Microsoft%20Defender%20ATP%20with%20a%20different%20expiration%20date%20or%20severity%20etc.%2C%20it%E2%80%99s%20OK%20%E2%80%93%20it%20will%20be%20updated%20with%20the%20new%20value.%20However%2C%20if%20it%20already%20exists%20with%20a%20different%20%E2%80%9Caction%E2%80%9D%20field%20value%20(Alert%2C%20AlertAndBlock%20or%20Allow)%2C%20it%20will%20not%20be%20updated%20(or%20submitted)%2C%20and%20the%20script%20will%20print%20the%20hash%20with%20the%20corresponding%20message%20%E2%80%93%20this%20is%20by%20design.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20share%20your%20thoughts%20and%20feedback%20here.%3C%2FP%3E%0A%3CP%3EThanks%2C%3C%2FP%3E%0A%3CP%3E%40%3CU%3EItai%20Zur%3C%2FU%3E%2C%20program%20manager%2C%20Windows%20Defender%20ATP%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%40Thorsten%20H%3C%2FA%3E%3CU%3Eenking%3C%2FU%3E%2C%20senior%20program%20manager%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%40Dan%20Michelson%3C%2FA%3E%2C%20program%20manager%2C%20Windows%20Defender%20ATP%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%40Haim%20Goldshtein%3C%2FA%3E%2C%20security%20software%20engineer%2C%20Windows%20Defender%20ATP%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%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-673748%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Defender%20ATP%20and%20Malware%20Information%20Sharing%20Platform%20integration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-673748%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F138020%22%20target%3D%22_blank%22%3E%40Haim%20Goldshtein%3C%2FA%3E%26nbsp%3B-%20Thank%20you%20for%20the%20guide%2C%20just%20some%20clarifications%20from%20MISP's%20side%3A%20MISP%20supports%20a%20long%20list%20of%20hashing%20algorithms%2C%20I%20think%20you%20may%20have%20ended%20up%20on%20an%20old%20API%20documentation%2C%20the%20%2Fhids%20endpoints%20are%20deprecated.%20Instead%20we%20have%20transitioned%20to%20the%20restSearch%20APIs%20(%2Fevents%2FrestSearch%20and%20%2Fattributes%2FrestSearch)%20that%20allow%20you%20to%20search%20and%20export%20any%20of%20the%20supported%20types%20(which%20for%20hashes%20includes%20sha256%2C%20various%20fuzzy%20hashing%20algorithms%20like%20ssdeep%2C%20import%20hashes%2C%20etc).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAn%20example%20of%20using%20the%20modern%20APIs%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Ehttps%3A%2F%2F%3CYOUR_MISP_URL%3E%2Fevents%2Fhids%2Fsha1%2Fdownload%2Ffalse%2Ffalse%2Ffalse%2F%3C%2FYOUR_MISP_URL%3E%3C%2FSPAN%3E%3CSTRONG%3E4d%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewould%20be%3C%2FP%3E%3CP%3EPOST%20to%20https%3A%2F%2F%3CYOUR_MISP_URL%3E%2Fattributes%2FrestSearch%3C%2FYOUR_MISP_URL%3E%3C%2FP%3E%3CP%3Epayload%3A%3CBR%20%2F%3E%7B%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%22returnFormat%22%3A%20%22text%22%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%22publish_timestamp%22%3A%20%224d%22%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%22type%22%3A%20%22sha1%22%3C%2FP%3E%3CP%3E%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EType%20of%20course%20could%20be%20sha256%20or%20ssdeep%20for%20example.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20prefer%20URL%20parameters%20and%20GET%20requests%20it%20would%20look%20like%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGET%20to%20https%3A%2F%2F%3CYOUR_MISP_URL%3E%2Fattributes%2FrestSearch%2FreturnFormat%3Atext%2Ftype%3Asha1%2Fpublish_timestamp%3A4d%3C%2FYOUR_MISP_URL%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20best%20resource%20for%20the%20API%20is%20the%20built%20in%20documentation%20under%20event%20actions%20-%26gt%3B%20automation%20or%20alternatively%20the%20REST%20client%20with%20the%20query%20builder%20(Event%20actions%20-%26gt%3B%20REST%20client).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps%20and%20thanks%20for%20the%20integration%20and%20associated%20guide!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-797328%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20Defender%20ATP%20and%20Malware%20Information%20Sharing%20Platform%20integration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-797328%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F138020%22%20target%3D%22_blank%22%3E%40Haim%20Goldshtein%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3EThanks%20for%20the%20example%20code.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20tweaked%20it%20a%20little%2C%20as%20we%20found%20the%20indicator%20upload%20API%20is%20rate-limited%2C%20and%20with%20more%20than%20about%20150%20indicators%20returned%20from%20MISP%20the%20script%20would%20run%20into%20this%20and%20start%20to%20receive%20429%20error%20responses.%20In%20that%20case%2C%20ours%20will%20wait%2015s%20and%20retry%20the%20indicator%20a%20few%20times%20before%20giving%20up.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere's%20also%20a%20new%20batch%20upload%20mechanism%20and%20we%20added%20a%20parameter%20(and%20code)%20to%20use%20that%20instead%20-%20with%20%22-batchUpload%201%22.%20This%20can%20feed%20500%20at%20a%20time%20and%20is%20much%20faster.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20also%20added%20the%20%22Get-Token.ps1%22%20code%20to%20the%20main%20script%20to%20remove%20the%20dependency%20(oh%2C%20and%20changed%20to%20the%20MISP%20REST%20GET%20format%20URL%20per%20the%20previous%20Reply.)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20attached%20the%20result%20with%20any%20company%20specifics%20stripped%20out%20in%20case%20it's%20useful.%20Note%20that%20some%20parameters%20are%20renamed%3A%26nbsp%3B%3CFONT%3EatpAction%2C%20atpTitle%2C%20atpSeverity%2C%20atpDescription%2C%20and%20%3C%2FFONT%3E%3CFONT%3EatpRecommendedActions%20.%3C%2FFONT%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Haim Goldshtein
Microsoft

Pull file hashes (SHA1) from Malware Information Sharing Platform (MISP) and push them to Microsoft Defender ATP

image.png5 Minutes 

image.pngLow complexity 

 

Enterprises use threat intelligence to enrich their cyber security telemetry as well as to detect and block attacks. Microsoft Defender ATP supports blocking capabilities through the portal using the indicators page and the indicators API. In a previous blog, we explained how to generally use the indicators API.

 

In our commitment to listen to customer feedback, we’re going to demonstrate how to leverage the power of Malware Information Sharing Platform (MISP) to further augment the protection offering of Microsoft Defender ATP.

 

MISP is a free and open source threat sharing platform. It is designed to help share threat intelligence information such as cyber security indicators, vulnerability information, and others.

 

In this blog, we will demonstrate an easy way to automatically pull the indicators from the MISP platform and push them into the custom IoC list of Microsoft Defender ATP.

 

We’ll guide you on how to pull SHA1 hashes from the past four days from MISP, and push them as indicators for Microsoft Defender ATP to detect. We’ll push the indicators with an expiration date set to seven days from the time the script is run to ensure the freshness of indicators.  

 

Let’s start

  1. Add the required permission to write indicators to Microsoft Defender ATP
  2. Get your MISP URL and Authorization key
  3. Download and use the script to use MISP API to pull SHA1* hashes from your MISP platform and push them into Microsoft Defender ATP

Step 1: Add permission to write indicators to Microsoft Defender ATP

NOTE: This step is identical to the process detailed in our previous blog. If you’ve already done it, skip this step.

If you haven’t created an app: 

  • Create an app using the instructions described in the Hello world
  • 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 “TI.ReadWrite.All” 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 TI write permissions

  • Open Azure portal. 
  • Navigate to Azure Active Directory > App registrations
  • Under All Applications, find and select the application, for example, ContosoSIEMConnector
  • Click  API permissions > Add a permission

permission.png

  • Click on “APIs my organization uses” and type WindowDefenderATP in the search box. Then chose the “WindowsDefenderATP” API from the list.

permission2.png

  • Click on “Application permission” button and check the “TI.ReadWrite.All” checkbox.

permission3.png

  • Click Add Permission.
  • On the “API Permission” screen, click on “Grant admin consent for…” button.

permission4.png

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

 

Step 2: Get your MISP URL and Authorization key

To use MISP API, you will your MISP URL and authorization key. You can get the URL from MISP web interface and the API key from the Automation section of the MISP web interface. See below:

Misp-Key1.png

Step 3: Run the script

Download the zip file at the bottom of this blog and extract the “Get-MISP-Hash.ps1” script.

Make sure the script in the same directory (folder) as your “Get-Token.ps1” script.

Now lets run the script!

Let’s say your MISP URL is 10.0.0.1 and the key is Yn81mP1ck13Ric4.

Open PowerShell and run the following command:

.\Get-Misp-Hash.ps1 -title “Sha1 from MISP” -mispUrl “10.0.0.1” -authKey “Yn81mP1ck13Ric4”

And that’s it, you are done! You can see the new hashes on your Microsoft Defender Security Portal by clicking on Settings, then look for “Indicators” on the menu on the left of the screen.

The script also offers additional (optional) fields you may want to use to control the indicators and how the MDATP handles them:

Parameter

Description

Default value

-title

The alert’s title

-

-mispUrl

Your MISP URL from the MISP platform

-

-authKey

Your MISP authorization key

-

-action (optional)

Choose one: Alert/AlertAndBlock/Allowed

Alert

-severity (optional)

Choose one: Informational/Low/Medium/High

Informational

-description (optional)

the alert’s description

-

-recommendedAction

(optional)

the recommended action to remediate the alert

-

-expiration (optional)

number of days the hashes will expire and deleted from the MDATP

7

 

Another example that utilizes all of the options is shown below all in the same line:

.\Get-MISP-Hash.ps1 -title "Sha1 from MISP" -mispUrl “10.0.0.1  ” -authKey “Yn81mP1ck13Ric4” -action AlertAndBlock -severity High -description "Sha1 from the MISP platform loaded by automated script" -recommendedActions "Add your own recommended actions" -expiration 14

Conclusion

In this blog, we demonstrated how you can  pull SHA1 hashes from MISP to augment the Microsoft Defender ATP protection capabilities

 

FAQs:

Which file hashes are supported?

This integration supports SHA1. MISP’s API only supports SHA1 and MD5 (which is relatively weak), while Microsoft Defender ATP supports SHA1 and SHA256.

Also note that “Only published events and attributes marked as IDS Signature are exported” (MISP API documentation).

 

How do I modify the MISP filter?

The MISP API we used to get the hashes has some filtering options.

We set the script to get hashes from the past 4 days:

https://<your_MISP_URL>/events/hids/sha1/download/false/false/false/4d

 

You can change it to any other number of days or hours, also you can filter by start and end date or by MISP tags you’ve set up.

 

For the full details, see MISP’s API DOC here: https://www.circl.lu/doc/misp/automation/ and look for the “GET /events/hids Hash” section.

 

Important note:

If the hash you are submitting already exists in Microsoft Defender ATP with a different expiration date or severity etc., it’s OK – it will be updated with the new value. However, if it already exists with a different “action” field value (Alert, AlertAndBlock or Allow), it will not be updated (or submitted), and the script will print the hash with the corresponding message – this is by design.

 

Please share your thoughts and feedback here.

Thanks,

@Itai Zur, program manager, Windows Defender ATP

@Thorsten Henking, senior program manager

@Dan Michelson, program manager, Windows Defender ATP

@Haim Goldshtein, security software engineer, Windows Defender ATP

 

 

 

 

 

 

2 Replies

@Haim Goldshtein - Thank you for the guide, just some clarifications from MISP's side: MISP supports a long list of hashing algorithms, I think you may have ended up on an old API documentation, the /hids endpoints are deprecated. Instead we have transitioned to the restSearch APIs (/events/restSearch and /attributes/restSearch) that allow you to search and export any of the supported types (which for hashes includes sha256, various fuzzy hashing algorithms like ssdeep, import hashes, etc). 

 

An example of using the modern APIs:

 

https://<your_MISP_URL>/events/hids/sha1/download/false/false/false/4d

 

would be

POST to https://<your_MISP_URL>/attributes/restSearch

payload:
{

    "returnFormat": "text",

    "publish_timestamp": "4d",

    "type": "sha1"

}

 

Type of course could be sha256 or ssdeep for example. 

 

If you prefer URL parameters and GET requests it would look like this:

 

GET to https://<your_MISP_URL>/attributes/restSearch/returnFormat:text/type:sha1/publish_timestamp:4d

 

The best resource for the API is the built in documentation under event actions -> automation or alternatively the REST client with the query builder (Event actions -> REST client).

 

Hope this helps and thanks for the integration and associated guide!

@Haim Goldshtein 
Thanks for the example code.

 

We tweaked it a little, as we found the indicator upload API is rate-limited, and with more than about 150 indicators returned from MISP the script would run into this and start to receive 429 error responses. In that case, ours will wait 15s and retry the indicator a few times before giving up.

 

There's also a new batch upload mechanism and we added a parameter (and code) to use that instead - with "-batchUpload 1". This can feed 500 at a time and is much faster.

 

We also added the "Get-Token.ps1" code to the main script to remove the dependency (oh, and changed to the MISP REST GET format URL per the previous Reply.)

 

I've attached the result with any company specifics stripped out in case it's useful. Note that some parameters are renamed: atpAction, atpTitle, atpSeverity, atpDescription, and atpRecommendedActions .