%3CLINGO-SUB%20id%3D%22lingo-sub-1326665%22%20slang%3D%22en-US%22%3ERe%3A%20Threat%20hunting%20simplified%20with%20Microsoft%20Threat%20Protection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1326665%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOur%20understanding%2C%20and%20we%20work%20closely%20with%20the%20MTP%20product%20group%2C%20is%20that%20there%20is%20no%20API%20or%20integration%20currently%20possible%20between%20MTP%20and%20Azure%20Sentinel%20and%20since%20our%20SOC%20uses%20both%20we%20are%20naturally%20very%20curious%20about%20this%20statement%20%22%3CSPAN%3EYou%20can%20integrate%20the%20data%20from%20Microsoft%20Threat%20Protection%20into%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fsentinel%2Foverview%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Sentinel%3C%2FA%3E%3CSPAN%3E%26nbsp%3Band%20then%20expand%20that%20data-set%20to%20include%20data%20from%20Azure%20Security%20Center%20and%20third-party%20security%20products%20to%20find%20threats%20that%20span%20your%20entire%20environment%3C%2FSPAN%3E%22.%20Could%20someone%20elaborate%20please%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1216909%22%20slang%3D%22en-US%22%3EThreat%20hunting%20simplified%20with%20Microsoft%20Threat%20Protection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1216909%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%22top-page.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F175897i3D9D80EF70FE3E2E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22top-page.jpg%22%20alt%3D%22top-page.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWhile%20well-funded%20and%20highly%20organized%20security%20operations%20teams%20often%20have%20the%20most%20sophisticated%20detection%20mechanisms%20in%20place%2C%20these%20teams%20still%20need%20experts%20that%20can%20run%20guided%20investigations%20to%20locate%20and%20stop%20certain%20threats.%20For%20example%2C%20sophisticated%20attackers%20often%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fsecurity%2Fblog%2F2019%2F09%2F26%2Fbring-your-own-lolbin-multi-stage-fileless-nodersok-campaign-delivers-rare-node-js-based-malware%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Elive%20off%20the%20land%3C%2FA%3E%2C%20taking%20advantage%20of%20normal%20system%20functionality%20that%20leaves%20almost%20no%20identifiable%20traces.%20While%20behavior-based%20detection%20algorithms%20powered%20by%20machine%20learning%20and%20AI%20can%20learn%20and%20respond%20quickly%2C%20human%20experts%20remain%20extremely%20valuable%2C%20especially%20if%20they%20know%20the%20network%20and%20are%20familiar%20with%20how%20attacks%20might%20play%20out.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1386697362%22%20id%3D%22toc-hId--1386697362%22%20id%3D%22toc-hId--1386697362%22%3EWhat%20is%20threat%20hunting%3F%3C%2FH2%3E%0A%3CP%3ECyberthreat%20hunting%20or%20simply%20threat%20hunting%20is%20a%20proactive%20cybersecurity%20activity%20that%20aims%20to%20find%20threats%20that%20are%20either%20buried%20under%20massive%20quantities%20of%20security%20signals%20and%20alert%20data%20or%20are%20simply%20not%20flagged%20by%20security%20products.%20It%20is%20generally%20a%20manual%20process%2C%20although%20great%20tools%20that%20we%20will%20describe%20in%20this%20article%20can%20make%20the%20process%20much%20less%20tedious%20and%20time-consuming.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDuring%20threat%20hunting%2C%20SecOps%20practitioners%20apply%20threat%20intelligence%20takeaways%2C%20whether%20from%20their%20own%20internal%20research%20or%20external%20research%2C%20and%20devise%20ingenious%20ways%20to%20determine%20the%20existence%20of%20an%20otherwise%20undetected%20threat.%20To%20do%20that%2C%20they%20need%20efficient%20access%20to%20comprehensive%20data%20about%20events%20and%20entities%20in%20their%20network%20as%20well%20as%20a%20good%2C%20quantifiable%20understanding%20of%20normal%20states%20or%20baselines.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThreat%20hunting%20lets%20analysts%20work%20with%20established%20baselines%20and%20highlight%20behavior%20that%20might%20be%20interesting.%20With%20the%20right%20tools%2C%20analysts%20can%20tailor%20their%20threat%20hunting%20activities%20to%20their%20environments%20and%20the%20threats%20that%20they%20will%20likely%20encounter.%20For%20instance%2C%20they%20can%20hunt%20for%20unusual%20behavior%E2%80%94like%20unexpected%20network%20connections%E2%80%94that%20might%20indicate%20that%20an%20in-house%20app%20or%20an%20account%20has%20been%20compromised.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20process%20of%20establishing%20the%20baselines%20themselves%20can%20also%20be%20part%20of%20threat%20hunting.%20To%20be%20able%20to%20do%20this%2C%20analysts%20need%20tools%20that%20can%20look%20backwards%20and%20forwards%20in%20time%20quickly%2C%20providing%20data%20that%20is%20sufficiently%20granular%20for%20defining%20normal%20states.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEffective%20threat%20hunting%20relies%20on%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2220%25%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cloud.png%22%20style%3D%22width%3A%2038px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F175896i1165876B78B8FA01%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22cloud.png%22%20alt%3D%22cloud.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3CTD%20width%3D%2280%25%22%3EComprehensive%2C%20well-structured%2C%20and%20retrievable%20event%20and%20system%20data%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2220%25%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ai.png%22%20style%3D%22width%3A%2038px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F175893i29543342561CF2FA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22ai.png%22%20alt%3D%22ai.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3CTD%20width%3D%2280%25%22%3EThreat%20intelligence%3A%20knowledge%20about%20threat%20actors%20or%20actor%20infrastructure%2C%20methodologies%2C%20and%20indicators%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2220%25%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22clock.png%22%20style%3D%22width%3A%2029px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F175894i07FCCB3B7202A312%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22clock.png%22%20alt%3D%22clock.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3CTD%20width%3D%2280%25%22%3EGranular%20baseline%20information%20that%20represents%20normal%20activity%20and%20states%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CH2%20id%3D%22toc-hId-1100815471%22%20id%3D%22toc-hId-1100815471%22%20id%3D%22toc-hId-1100815471%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--706638992%22%20id%3D%22toc-hId--706638992%22%20id%3D%22toc-hId--706638992%22%3EThreat%20hunting%20example%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22jessica.png%22%20style%3D%22width%3A%2036px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F175895iD7C11B0A59FF2F7D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22jessica.png%22%20alt%3D%22jessica.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3BLet%E2%80%99s%20look%20at%20what%20Jessica%2C%20our%20fictional%20but%20awesome%20SecOps%20person%2C%20might%20go%20through%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EJessica%2C%20who%20works%20for%20Contoso%20Health%20Services%2C%20finds%20out%20about%20a%20new%20vulnerability%20that%20affects%20one%20of%20the%20product%20suites%20in%20her%20environment.%20In%20this%20case%2C%20the%20attacks%20are%20against%20a%20known%20web%20content%20management%20system%20(CMS).%3C%2FLI%3E%0A%3CLI%3EAfter%20doing%20some%20more%20research%20online%2C%20she%20determines%20that%2C%20because%20the%20release%20of%20this%20vulnerability%20is%20so%20recent%2C%20it%20is%20unclear%20how%20attackers%20might%20be%20able%20to%20leverage%20it%20in%20her%20environment.%20She%20also%20knows%20that%20a%20patch%20to%20remedy%20the%20issue%20is%20not%20yet%20available.%3C%2FLI%3E%0A%3CLI%3EShe%20creates%20a%20query%20for%20behaviors%20tied%20to%20the%20processes%20involved%20in%20this%20vulnerability%20to%20determine%20existing%20baseline%20and%20normal%20behavior.%20She%20then%20modifies%20queries%20to%20return%20only%20what%20would%20not%20be%20expected.%3C%2FLI%3E%0A%3CLI%3EJessica%20also%20creates%20rules%20so%20that%20the%20queries%20run%20regularly%20and%20send%20her%20notifications%20whenever%20there%20are%20matches.%3C%2FLI%3E%0A%3CLI%3EBecause%20Jessica%20did%20her%20research%20and%20constructed%20her%20queries%20very%20well%E2%80%94carefully%20considering%20the%20possibility%20that%20some%20unaffected%20machines%20might%20exhibit%20threat-like%20behavior%E2%80%94each%20match%20to%20her%20query%20constitutes%20a%20viable%20threat-hunting%20find.%20These%20matches%20include%20unusual%20process%20activity%20that%20might%20very%20well%20be%20actual%20attempts%20to%20abuse%20the%20vulnerable%20CMS.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EClearly%2C%20Jessica%E2%80%99s%20finds%20can%20benefit%20Contoso%20Health%20Services%20by%20proactively%20locating%20exploitation%20attempts%20against%20an%20unpatched%20vulnerability.%20Likewise%2C%20her%20ability%20to%20efficiently%20design%20and%20deploy%20proactive%20defenses%20highlights%20her%20own%20capabilities%20as%20a%20defender.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1780873841%22%20id%3D%22toc-hId-1780873841%22%20id%3D%22toc-hId-1780873841%22%3EData%20is%20key%3C%2FH2%3E%0A%3CP%3EWith%20cloud-based%20storage%20and%20compute%20solutions%2C%20we%20can%20now%20easily%20collect%20massive%20quantities%20of%20data.%20But%20as%20we%20store%20larger%20data%20sets%2C%20there%20is%20a%20growing%20need%20to%20be%20able%20to%20efficiently%20manipulate%20and%20make%20sense%20of%20them.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMicrosoft%20Threat%20Protection%20itself%20is%20made%20possible%20by%20the%20power%20of%20the%20Azure%20cloud%20coupled%20with%20insights%20from%20the%20Intelligent%20Security%20Graph.%20In%20the%20background%2C%20massive%20amounts%20of%20threat%20intelligence%20and%20security%20data%20from%20across%20Microsoft%E2%80%99s%20portfolio%20are%20crunched%20and%20matched%20against%20indicators%2C%20expert%20human%20rules%2C%20and%20machine%20learning%20(ML)%20algorithms%20in%20Microsoft%20AI.%20This%20process%20generates%20meaningful%20alerts%2C%20identifying%20threat%20components%20and%20activities%20that%20automated%20investigation%20and%20response%20(AIR)%20capabilities%20remediate.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20example%2C%20Microsoft%20Threat%20Protection%20distinguishes%20between%20malicious%20and%20normal%20attempts%20to%20write%20to%20the%20registry%20by%20looking%20at%20millions%20of%20examples%20of%20registry%20writes%20and%20their%20contexts%3A%20the%20files%20or%20processes%20involved%2C%20file%20pedigrees%2C%20whatever%20was%20written%20to%20the%20registry%2C%20the%20time%20the%20writes%20were%20performed%2C%20and%20so%20on.%20With%20this%20much%20baseline%20info%2C%20the%20AI%20can%20confidently%20raise%20alerts%20and%20start%20performing%20remediation%20activities%2C%20rapidly%20placing%20harmful%20registry%20modifications%20and%20associated%20files%20in%20quarantine.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhile%20AI%20and%20other%20automated%20systems%20are%20particularly%20effective%20at%20finding%20threats%2C%20human%20intuition%20and%20flexibility%20can%20still%20beat%20them%20when%20dealing%20with%20highly%20specialized%20or%20unusual%20scenarios.%20What%20human%20analysts%20need%2C%20however%2C%20are%20tools%20that%20let%20them%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EEffectively%20access%20and%20handle%20large%20sets%20of%20data%3C%2FSTRONG%3E%20%E2%80%94%20while%20the%20interface%20is%20easy-to-use%2C%20the%20tool%20also%20needs%20to%20be%20responsive%20and%20must%20label%20and%20organize%20data%20well.%20At%20the%20same%20time%2C%20log%20storage%20must%20be%20as%20straightforward%20as%20any%20competitive%20cloud-based%20storage%20and%20compute%20solution%20that%20can%20be%20deployed%20and%20scaled%20without%20professional%20system%20integrators%20and%20other%20specialists.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EAutomate%20monitoring%20of%20interesting%20matches%20to%20new%20data%3C%2FSTRONG%3E%20%E2%80%94%20going%20back%20to%20Jessica%E2%80%99s%20fictional%20investigation%2C%20the%20tools%20should%20let%20her%20monitor%20new%20activities%20for%20matches%20to%20the%20attack%20activities%20she%20has%20modeled.%20Without%20this%20automation%2C%20Jessica%20will%20be%20tied%20to%20her%20chair%2C%20constantly%20looking%20for%20matches%20as%20new%20data%20comes%20in.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--26580622%22%20id%3D%22toc-hId--26580622%22%20id%3D%22toc-hId--26580622%22%3ECross-product%20advanced%20hunting%20with%20Microsoft%20Threat%20Protection%3C%2FH2%3E%0A%3CP%3EWith%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fmicrosoft-365%2Fsecurity%2Fmtp%2Fadvanced-hunting-overview%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eadvanced%20hunting%3C%2FA%3E%20in%20Microsoft%20Threat%20Protection%E2%80%94available%20in%20the%20Microsoft%20365%20security%20center%20with%20a%20valid%20license%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fmicrosoft-365%2Fsecurity%2Fmtp%2Fmtp-enable%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ego%20here%20to%20get%20started%3C%2FA%3E)%E2%80%94you%20can%20deep%20dive%20and%20hunt%20across%20data%20from%20various%20workspaces%20in%20your%20Microsoft%20365%20environment.%20Advanced%20hunting%20initially%20covers%20both%20your%20endpoints%20and%20your%20Office%20365%20email.%20By%20the%20end%20of%20March%202020%2C%20we%20will%20expand%20the%20schema%20to%20cover%20identity-%20and%20app-related%20signals%20from%20Azure%20ATP%20and%20Microsoft%20Cloud%20App%20Security.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20work%20with%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fkusto%2Fquery%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EKusto%20queries%3C%2FA%3E%2C%20plus%20you%20have%20the%20convenience%20of%20switching%20to%20richer%20views%20made%20possible%20by%20the%20various%20integrated%20solutions.%20For%20example%2C%20you%20can%20drilldown%20from%20a%20query%20to%20dedicated%20pages%20with%20comprehensive%20contextual%20information%20about%20specific%20alerts%2C%20devices%2C%20users%2C%20domains%2C%20IP%20addresses%2C%20and%20even%20software%20vulnerabilities.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20specialized%20data%20set%20is%20organized%20in%20a%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fmicrosoft-365%2Fsecurity%2Fmtp%2Fadvanced-hunting-schema-tables%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Emanageable%20schema%3C%2FA%3E%20covering%20security-sensitive%20event%20and%20entity%20information%2C%20such%20as%20device%20info%2C%20network%20configuration%20info%2C%20process%20events%2C%20registry%20events%2C%20logon%20events%2C%20file%20events%2C%20and%20email%20events.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMicrosoft%20will%20continually%20incorporate%20more%20information%20into%20this%20schema.%20Here%20are%20a%20few%20examples%20of%20the%20sophisticated%20threat%20hunting%20activities%20you%20can%20perform%20with%20the%20current%20coverage.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-663980852%22%20id%3D%22toc-hId-663980852%22%20id%3D%22toc-hId-663980852%22%3EIdentify%20vulnerable%20devices%3C%2FH3%3E%0A%3CP%3EWith%20advanced%20hunting%2C%20you%20can%20access%20software%20inventory%20information%20from%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fwindows%2Fsecurity%2Fthreat-protection%2Fmicrosoft-defender-atp%2Fnext-gen-threat-and-vuln-mgt%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EThreat%20%26amp%3B%20Vulnerability%20Management%3C%2FA%3E.%20Imagine%20being%20able%20to%20write%20queries%20that%20check%20for%20possible%20exploitation%20behavior%20on%20devices%20running%20vulnerable%20software.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20following%20sample%20query%20locates%20machines%20affected%20by%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fsecurity%2Fblog%2F2019%2F11%2F07%2Fthe-new-cve-2019-0708-rdp-exploit-attacks-explained%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ERDP%20vulnerability%20CVE-2019-0708%3C%2FA%3E%E2%80%94popularly%20known%20as%20%E2%80%9CBlueKeep%E2%80%9D%E2%80%94and%20checks%20for%20actual%20RDP%20connections%20initiated%20by%20unexpected%20executables%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-30px%22%3Elet%20BlueKeepVulnerableMachines%20%3D%20DeviceTvmSoftwareInventoryVulnerabilities%20%3CBR%20%2F%3E%7C%20where%20CveId%20%3D%3D%20%22CVE-2019-0708%22%3CBR%20%2F%3E%7C%20distinct%20DeviceId%3B%3CBR%20%2F%3E%2F%2F%20Find%20unusual%20processes%20on%20Windows%207%20or%20Windows%20Server%202008%20machines%20with%3CBR%20%2F%3E%2F%2F%20outbound%20connections%20to%20TCP%20port%203389%20%3CBR%20%2F%3Elet%20listMachines%20%3D%20DeviceInfo%3CBR%20%2F%3E%7C%20where%20OSVersion%20%3D%3D%20%226.1%22%20%2F%2FWin7%20and%20Srv2008%3CBR%20%2F%3E%7C%20distinct%20DeviceId%3B%3CBR%20%2F%3EDeviceNetworkEvents%3CBR%20%2F%3E%7C%20where%20DeviceId%20in(BlueKeepVulnerableMachines)%3CBR%20%2F%3E%7C%20where%20RemotePort%20%3D%3D%203389%3CBR%20%2F%3E%7C%20where%20Protocol%20%3D%3D%20%22Tcp%22%20and%20ActionType%20%3D%3D%20%22ConnectionSuccess%22%3CBR%20%2F%3E%7C%20where%20InitiatingProcessFileName%20!in~%20%2F%2FRemoving%20expected%20programs%3CBR%20%2F%3E(%22mstsc.exe%22%2C%22RTSApp.exe%22%2C%20%22RTS2App.exe%22%2C%22RDCMan.exe%22%2C%22ws_TunnelService.exe%22%2C%20%3CBR%20%2F%3E%22RSSensor.exe%22%2C%22RemoteDesktopManagerFree.exe%22%2C%22RemoteDesktopManager.exe%22%2C%20%3CBR%20%2F%3E%22RemoteDesktopManager64.exe%22%2C%22mRemoteNG.exe%22%2C%22mRemote.exe%22%2C%22Terminals.exe%22%2C%20%3CBR%20%2F%3E%22spiceworks-finder.exe%22%2C%22FSDiscovery.exe%22%2C%22FSAssessment.exe%22%2C%20%22chrome.exe%22%2C%20%3CBR%20%2F%3E%22microsodeedgecp.exe%22%2C%20%22LTSVC.exe%22%2C%20%22Hyper-RemoteDesktop.exe%22%2C%20%22%22%2C%20%22RetinaEngine.exe%22%2C%3CBR%20%2F%3E%22AuvikService.exe%22%2C%20%22AuvikAgentService.exe%22%2C%20%22CollectGuestLogs.exe%22%2C%20%3CBR%20%2F%3E%22NetworkWatcherAgent.exe%22%2C%20%22MobaRTE.exe%22%2C%20%22java.exe%22%2C%20%22mscorsvw.exe%22%2C%20%22MultiDesk.exe%22%2C%20%3CBR%20%2F%3E%22Microsoft%20Remote%20Desktop%22%2C%20%22javaw.exe%22%2C%20%22ASGRD.exe%22%2C%20%22MultiDesk64.exe%22%2C%20%22Passwordstate.exe%22)%3CBR%20%2F%3E%7C%20join%20listMachines%20on%20DeviceId%3CBR%20%2F%3E%7C%20project%20Timestamp%2C%20DeviceId%2C%20DeviceName%2C%20RemoteIP%2C%20InitiatingProcessFileName%2C%20%3CBR%20%2F%3EInitiatingProcessFolderPath%2C%20InitiatingProcessSHA1%3CBR%20%2F%3E%7C%20summarize%20conn%3Dcount()%20by%20DeviceId%2C%20InitiatingProcessFileName%2C%20bin(Timestamp%2C%201d)%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1143473611%22%20id%3D%22toc-hId--1143473611%22%20id%3D%22toc-hId--1143473611%22%3EHunt%20for%20threats%20that%20land%20by%20email%20and%20impact%20devices%3C%2FH3%3E%0A%3CP%3EYou%20can%20also%20run%20queries%20that%20track%20threats%20that%20might%20have%20arrived%20through%20email%20and%20then%20traversed%20your%20endpoints.%20For%20example%2C%20this%20simple%20query%20checks%20for%20files%20from%20a%20known%20malicious%20email%20sender%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-30px%22%3E%2F%2FGet%20prevalence%20of%20files%20sent%20by%20a%20malicious%20sender%20in%20your%20organization%3CBR%20%2F%3EEmailAttachmentInfo%3CBR%20%2F%3E%7C%20where%20SenderFromAddress%20%3D~%20%22MaliciousSender%40example.com%22%3CBR%20%2F%3E%7C%20where%20isnotempty(SHA256)%3CBR%20%2F%3E%7C%20join%20(%3CBR%20%2F%3EDeviceFileEvents%3CBR%20%2F%3E%7C%20project%20FileName%2C%20SHA256%3CBR%20%2F%3E)%20on%20SHA256%3C%2FPRE%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fmicrosoft-365%2Fsecurity%2Fmtp%2Fadvanced-hunting-query-emails-devices%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ERead%20more%20about%20hunting%20on%20devices%20and%20email%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1153976715%22%20id%3D%22toc-hId--1153976715%22%20id%3D%22toc-hId--1153976715%22%3EStart%20simple%2C%20learn%20fast%3C%2FH2%3E%0A%3CP%3EThere%E2%80%99s%20no%20need%20to%20get%20intimidated%20by%20the%20query%20interface%20as%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fkusto%2Fquery%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EKusto%20Query%20Language%3C%2FA%3E%20is%20straightforward.%20It%20has%20very%20powerful%20data%20manipulation%20capabilities%20that%20can%20be%20learned%20with%20more%20experience%2C%20but%20it%20takes%20only%20a%20few%20minutes%20to%20begin%20running%20simple%20queries%2C%20like%20locating%20a%20file%20SHA%20mentioned%20in%20the%20Twitter%20feed%20of%20your%20favorite%20security%20researcher.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20you%20are%20there%2C%20you%20can%20easily%20look%20deeper%20into%20an%20instance%20of%20the%20SHA%20on%20a%20specific%20device%20or%20grab%20a%20list%20of%20all%20the%20devices%20with%20that%20SHA%20and%20look%20for%20commonalities%20between%20those%20devices.%20Again%2C%20it%20does%20not%20hurt%20that%20you%20have%20other%20Microsoft%20Threat%20Protection%20features%2C%20such%20as%20file%20and%20machine%20profile%20pages%2C%20at%20your%20disposal.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAdvanced%20hunting%20is%20backed%20by%20a%20strong%20community%20of%20experienced%20security%20practitioners%20and%20Kusto%20Query%20Language%20users%20who%20are%20ready%20to%20share%20expertise%20so%20that%20you%20can%20easily%20learn%20a%20new%20syntax.%20You%20will%20find%20many%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FMicrosoft-Defender-ATP%2Fbg-p%2FMicrosoftDefenderATPBlog%2Flabel-name%2FAdvanced%2520hunting%22%20target%3D%22_self%22%3Eblog%20posts%20in%20the%20Microsoft%20Defender%20ATP%20Tech%20Community%3C%2FA%3E%20discussing%20various%20query%20techniques.%20You%20could%20also%20explore%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FMTP-AHQ%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMicrosoft%20Threat%20Protection%20repository%3C%2FA%3E%20or%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FWindowsDefenderATP-Hunting-Queries%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMicrosoft%20Defender%20ATP%20repository%3C%2FA%3E%20for%20queries%20covering%20various%20known%20threat%20campaigns%20and%20techniques.%3C%2FP%3E%0A%3CP%3ESoon%20enough%2C%20you%E2%80%99ll%20be%20creating%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fwindows%2Fsecurity%2Fthreat-protection%2Fmicrosoft-defender-atp%2Foverview-custom-detections%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ecustom%20detection%20rules%3C%2FA%3E%E2%80%94available%20by%20the%20end%20of%20March%202020%20with%20Microsoft%20Threat%20Protection%E2%80%94from%20your%20hunting%20queries.%20These%20detection%20rules%20automatically%20check%20for%20and%20respond%20to%20various%20events%20and%20system%20states%2C%20including%20suspected%20breach%20activity%20and%20misconfigured%20machines.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--463415241%22%20id%3D%22toc-hId--463415241%22%20id%3D%22toc-hId--463415241%22%3ETry%20it%20yourself%3C%2FH3%3E%0A%3CP%3EIt%E2%80%99s%20time%20to%20try%20advanced%20hunting%20for%20yourself!%20If%20you%20believe%20PowerShell%20download%20activity%20in%20your%20network%20is%20likely%20suspicious%2C%20give%20the%20query%20below%20a%20try.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-indent-padding-left-30px%22%3E%2F%2F%20Finds%20PowerShell%20execution%20events%20that%20could%20involve%20a%20download%3CBR%20%2F%3Eunion%20DeviceProcessEvents%2C%20DeviceNetworkEvents%3CBR%20%2F%3E%7C%20where%20Timestamp%20%26gt%3B%20ago(7d)%3CBR%20%2F%3E%2F%2F%20Pivoting%20on%20PowerShell%20processes%3CBR%20%2F%3E%7C%20where%20FileName%20in~%20(%22powershell.exe%22%2C%20%22powershell_ise.exe%22)%3CBR%20%2F%3E%2F%2F%20Suspicious%20commands%3CBR%20%2F%3E%7C%20where%20ProcessCommandLine%20has_any(%22WebClient%22%2C%3CBR%20%2F%3E%22DownloadFile%22%2C%3CBR%20%2F%3E%22DownloadData%22%2C%3CBR%20%2F%3E%22DownloadString%22%2C%3CBR%20%2F%3E%22WebRequest%22%2C%3CBR%20%2F%3E%22Shellcode%22%2C%3CBR%20%2F%3E%22http%22%2C%3CBR%20%2F%3E%22https%22)%3CBR%20%2F%3E%7C%20project%20Timestamp%2C%20DeviceName%2C%20InitiatingProcessFileName%2C%20InitiatingProcessCommandLine%2C%20%3CBR%20%2F%3EFileName%2C%20ProcessCommandLine%2C%20RemoteIP%2C%20RemoteUrl%2C%20RemotePort%2C%20RemoteIPType%3CBR%20%2F%3E%7C%20top%20100%20by%20Timestamp%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EWant%20to%20explore%20this%20query%20further%20and%20understand%20how%20it%20might%20catch%20malicious%20activity%3F%3C%2FEM%3E%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fmicrosoft-365%2Fsecurity%2Fmtp%2Fadvanced-hunting-query-language%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ELearn%20how%20this%20query%20works%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--473918345%22%20id%3D%22toc-hId--473918345%22%20id%3D%22toc-hId--473918345%22%3EHunt%20across%20your%20entire%20environment%20with%20Azure%20Sentinel%3C%2FH2%3E%0A%3CP%3EThe%20advanced%20hunting%20capabilities%20in%20Microsoft%20Threat%20Protection%20enable%20you%20to%20find%20threats%20across%20your%20users%2C%20endpoints%2C%20email%20and%20productivity%20tools%2C%20and%20apps.%20In%20the%20future%2C%20you%20will%20be%20able%20to%26nbsp%3B%20integrate%20the%20data%20from%20Microsoft%20Threat%20Protection%20into%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fsentinel%2Foverview%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Sentinel%3C%2FA%3E%20and%20then%20expand%20that%20dataset%20to%20include%20data%20from%20Azure%20Security%20Center%20and%20third-party%20security%20products%20to%20find%20threats%20that%20span%20your%20entire%20environment.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAzure%20Sentinel%20provides%20cloud-native%20SIEM%20capabilities%2C%20including%20AI%20that%20fuses%20multiple%20alerts%20to%20a%20complete%20attack%20chain.%20For%20example%2C%20it%20can%20take%20an%20alert%20from%20Microsoft%20Threat%20Protection%20and%20combine%20that%20with%20an%20alert%20from%20a%20third-party%20firewall.%20You%20can%20then%20visualize%20that%20attack%20chain%20or%20use%20Kusto%20Query%20Language%20to%20query%20across%20the%20full%20set%20of%20security%20data%20and%20then%20remediate%20the%20issue%20and%20put%20in%20place%20an%20automated%20solution%20with%20Azure%20Logic%20Apps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3ELouie%20Mayor%20%26amp%3B%20Justin%20Carroll%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3EMicrosoft%20Threat%20Protection%20team%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1216909%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%22teaser.jpg%22%20style%3D%22width%3A%20525px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F175983i6D549C21ACEA7FE2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22teaser.jpg%22%20alt%3D%22teaser.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ELearn%20how%20your%20SecOps%20team%20can%20start%20performing%20proactive%20cyberthreat%20hunting%20effectively%20with%20advanced%20hunting%20capabilities%20in%20Microsoft%20Threat%20Protection%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1216909%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdvanced%20hunting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Threat%20Protection%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1345017%22%20slang%3D%22en-US%22%3ERe%3A%20Threat%20hunting%20simplified%20with%20Microsoft%20Threat%20Protection%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1345017%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F137754%22%20target%3D%22_blank%22%3E%40Sean%20Friart%3C%2FA%3E%2C%20thank%20you%20for%20your%20comment.%20I%20understand%20you%20have%20reached%20out%20and%20discussed%20this%20with%20our%20PMs.%20I%E2%80%99ve%20corrected%20the%20statement%20to%20indicate%20that%20this%20is%20on%20the%20roadmap%20for%20Azure%20Sentinel.%20It%20is%20true%20that%20there%20is%20currently%20%3CEM%3Eno%3C%2FEM%3E%20native%20integration%20between%20Azure%20Sentinel%20and%20Microsoft%20Threat%20Protection%2C%20although%20there%20is%20the%20possibility%20of%20using%20the%20Microsoft%20Defender%20ATP%20streaming%20API.%20However%2C%20this%20solution%20is%20not%20native%20and%20can%20incur%20additional%20cost.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

top-page.jpg

While well-funded and highly organized security operations teams often have the most sophisticated detection mechanisms in place, these teams still need experts that can run guided investigations to locate and stop certain threats. For example, sophisticated attackers often live off the land, taking advantage of normal system functionality that leaves almost no identifiable traces. While behavior-based detection algorithms powered by machine learning and AI can learn and respond quickly, human experts remain extremely valuable, especially if they know the network and are familiar with how attacks might play out.

 

What is threat hunting?

Cyberthreat hunting or simply threat hunting is a proactive cybersecurity activity that aims to find threats that are either buried under massive quantities of security signals and alert data or are simply not flagged by security products. It is generally a manual process, although great tools that we will describe in this article can make the process much less tedious and time-consuming.

 

During threat hunting, SecOps practitioners apply threat intelligence takeaways, whether from their own internal research or external research, and devise ingenious ways to determine the existence of an otherwise undetected threat. To do that, they need efficient access to comprehensive data about events and entities in their network as well as a good, quantifiable understanding of normal states or baselines.

 

Threat hunting lets analysts work with established baselines and highlight behavior that might be interesting. With the right tools, analysts can tailor their threat hunting activities to their environments and the threats that they will likely encounter. For instance, they can hunt for unusual behavior—like unexpected network connections—that might indicate that an in-house app or an account has been compromised.

 

The process of establishing the baselines themselves can also be part of threat hunting. To be able to do this, analysts need tools that can look backwards and forwards in time quickly, providing data that is sufficiently granular for defining normal states.

 

Effective threat hunting relies on:

 

cloud.png Comprehensive, well-structured, and retrievable event and system data
ai.png Threat intelligence: knowledge about threat actors or actor infrastructure, methodologies, and indicators
clock.png Granular baseline information that represents normal activity and states

 

Threat hunting example

 

jessica.png Let’s look at what Jessica, our fictional but awesome SecOps person, might go through:

 

  1. Jessica, who works for Contoso Health Services, finds out about a new vulnerability that affects one of the product suites in her environment. In this case, the attacks are against a known web content management system (CMS).
  2. After doing some more research online, she determines that, because the release of this vulnerability is so recent, it is unclear how attackers might be able to leverage it in her environment. She also knows that a patch to remedy the issue is not yet available.
  3. She creates a query for behaviors tied to the processes involved in this vulnerability to determine existing baseline and normal behavior. She then modifies queries to return only what would not be expected.
  4. Jessica also creates rules so that the queries run regularly and send her notifications whenever there are matches.
  5. Because Jessica did her research and constructed her queries very well—carefully considering the possibility that some unaffected machines might exhibit threat-like behavior—each match to her query constitutes a viable threat-hunting find. These matches include unusual process activity that might very well be actual attempts to abuse the vulnerable CMS.

Clearly, Jessica’s finds can benefit Contoso Health Services by proactively locating exploitation attempts against an unpatched vulnerability. Likewise, her ability to efficiently design and deploy proactive defenses highlights her own capabilities as a defender.

 

Data is key

With cloud-based storage and compute solutions, we can now easily collect massive quantities of data. But as we store larger data sets, there is a growing need to be able to efficiently manipulate and make sense of them.

 

Microsoft Threat Protection itself is made possible by the power of the Azure cloud coupled with insights from the Intelligent Security Graph. In the background, massive amounts of threat intelligence and security data from across Microsoft’s portfolio are crunched and matched against indicators, expert human rules, and machine learning (ML) algorithms in Microsoft AI. This process generates meaningful alerts, identifying threat components and activities that automated investigation and response (AIR) capabilities remediate.

 

For example, Microsoft Threat Protection distinguishes between malicious and normal attempts to write to the registry by looking at millions of examples of registry writes and their contexts: the files or processes involved, file pedigrees, whatever was written to the registry, the time the writes were performed, and so on. With this much baseline info, the AI can confidently raise alerts and start performing remediation activities, rapidly placing harmful registry modifications and associated files in quarantine.

 

While AI and other automated systems are particularly effective at finding threats, human intuition and flexibility can still beat them when dealing with highly specialized or unusual scenarios. What human analysts need, however, are tools that let them:

 

  • Effectively access and handle large sets of data — while the interface is easy-to-use, the tool also needs to be responsive and must label and organize data well. At the same time, log storage must be as straightforward as any competitive cloud-based storage and compute solution that can be deployed and scaled without professional system integrators and other specialists.
  • Automate monitoring of interesting matches to new data — going back to Jessica’s fictional investigation, the tools should let her monitor new activities for matches to the attack activities she has modeled. Without this automation, Jessica will be tied to her chair, constantly looking for matches as new data comes in.

 

Cross-product advanced hunting with Microsoft Threat Protection

With advanced hunting in Microsoft Threat Protection—available in the Microsoft 365 security center with a valid license (go here to get started)—you can deep dive and hunt across data from various workspaces in your Microsoft 365 environment. Advanced hunting initially covers both your endpoints and your Office 365 email. By the end of March 2020, we will expand the schema to cover identity- and app-related signals from Azure ATP and Microsoft Cloud App Security.

 

You can work with Kusto queries, plus you have the convenience of switching to richer views made possible by the various integrated solutions. For example, you can drilldown from a query to dedicated pages with comprehensive contextual information about specific alerts, devices, users, domains, IP addresses, and even software vulnerabilities.

 

The specialized data set is organized in a manageable schema covering security-sensitive event and entity information, such as device info, network configuration info, process events, registry events, logon events, file events, and email events.

 

Microsoft will continually incorporate more information into this schema. Here are a few examples of the sophisticated threat hunting activities you can perform with the current coverage.

 

Identify vulnerable devices

With advanced hunting, you can access software inventory information from Threat & Vulnerability Management. Imagine being able to write queries that check for possible exploitation behavior on devices running vulnerable software.

 

The following sample query locates machines affected by the RDP vulnerability CVE-2019-0708—popularly known as “BlueKeep”—and checks for actual RDP connections initiated by unexpected executables:

 

let BlueKeepVulnerableMachines = DeviceTvmSoftwareInventoryVulnerabilities 
| where CveId == "CVE-2019-0708"
| distinct DeviceId;
// Find unusual processes on Windows 7 or Windows Server 2008 machines with
// outbound connections to TCP port 3389
let listMachines = DeviceInfo
| where OSVersion == "6.1" //Win7 and Srv2008
| distinct DeviceId;
DeviceNetworkEvents
| where DeviceId in(BlueKeepVulnerableMachines)
| where RemotePort == 3389
| where Protocol == "Tcp" and ActionType == "ConnectionSuccess"
| where InitiatingProcessFileName !in~ //Removing expected programs
("mstsc.exe","RTSApp.exe", "RTS2App.exe","RDCMan.exe","ws_TunnelService.exe",
"RSSensor.exe","RemoteDesktopManagerFree.exe","RemoteDesktopManager.exe",
"RemoteDesktopManager64.exe","mRemoteNG.exe","mRemote.exe","Terminals.exe",
"spiceworks-finder.exe","FSDiscovery.exe","FSAssessment.exe", "chrome.exe",
"microsodeedgecp.exe", "LTSVC.exe", "Hyper-RemoteDesktop.exe", "", "RetinaEngine.exe",
"AuvikService.exe", "AuvikAgentService.exe", "CollectGuestLogs.exe",
"NetworkWatcherAgent.exe", "MobaRTE.exe", "java.exe", "mscorsvw.exe", "MultiDesk.exe",
"Microsoft Remote Desktop", "javaw.exe", "ASGRD.exe", "MultiDesk64.exe", "Passwordstate.exe")
| join listMachines on DeviceId
| project Timestamp, DeviceId, DeviceName, RemoteIP, InitiatingProcessFileName,
InitiatingProcessFolderPath, InitiatingProcessSHA1
| summarize conn=count() by DeviceId, InitiatingProcessFileName, bin(Timestamp, 1d)

 

Hunt for threats that land by email and impact devices

You can also run queries that track threats that might have arrived through email and then traversed your endpoints. For example, this simple query checks for files from a known malicious email sender:

 

//Get prevalence of files sent by a malicious sender in your organization
EmailAttachmentInfo
| where SenderFromAddress =~ "MaliciousSender@example.com"
| where isnotempty(SHA256)
| join (
DeviceFileEvents
| project FileName, SHA256
) on SHA256

Read more about hunting on devices and email

 

Start simple, learn fast

There’s no need to get intimidated by the query interface as the Kusto Query Language is straightforward. It has very powerful data manipulation capabilities that can be learned with more experience, but it takes only a few minutes to begin running simple queries, like locating a file SHA mentioned in the Twitter feed of your favorite security researcher.

 

Once you are there, you can easily look deeper into an instance of the SHA on a specific device or grab a list of all the devices with that SHA and look for commonalities between those devices. Again, it does not hurt that you have other Microsoft Threat Protection features, such as file and machine profile pages, at your disposal.

 

Advanced hunting is backed by a strong community of experienced security practitioners and Kusto Query Language users who are ready to share expertise so that you can easily learn a new syntax. You will find many blog posts in the Microsoft Defender ATP Tech Community discussing various query techniques. You could also explore the Microsoft Threat Protection repository or the Microsoft Defender ATP repository for queries covering various known threat campaigns and techniques.

Soon enough, you’ll be creating custom detection rules—available by the end of March 2020 with Microsoft Threat Protection—from your hunting queries. These detection rules automatically check for and respond to various events and system states, including suspected breach activity and misconfigured machines.

 

Try it yourself

It’s time to try advanced hunting for yourself! If you believe PowerShell download activity in your network is likely suspicious, give the query below a try.

 

// Finds PowerShell execution events that could involve a download
union DeviceProcessEvents, DeviceNetworkEvents
| where Timestamp > ago(7d)
// Pivoting on PowerShell processes
| where FileName in~ ("powershell.exe", "powershell_ise.exe")
// Suspicious commands
| where ProcessCommandLine has_any("WebClient",
"DownloadFile",
"DownloadData",
"DownloadString",
"WebRequest",
"Shellcode",
"http",
"https")
| project Timestamp, DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine,
FileName, ProcessCommandLine, RemoteIP, RemoteUrl, RemotePort, RemoteIPType
| top 100 by Timestamp

 

Want to explore this query further and understand how it might catch malicious activity? Learn how this query works

 

Hunt across your entire environment with Azure Sentinel

The advanced hunting capabilities in Microsoft Threat Protection enable you to find threats across your users, endpoints, email and productivity tools, and apps. In the future, you will be able to  integrate the data from Microsoft Threat Protection into Azure Sentinel and then expand that dataset to include data from Azure Security Center and third-party security products to find threats that span your entire environment.

 

Azure Sentinel provides cloud-native SIEM capabilities, including AI that fuses multiple alerts to a complete attack chain. For example, it can take an alert from Microsoft Threat Protection and combine that with an alert from a third-party firewall. You can then visualize that attack chain or use Kusto Query Language to query across the full set of security data and then remediate the issue and put in place an automated solution with Azure Logic Apps.

 

Louie Mayor & Justin Carroll

Microsoft Threat Protection team

2 Comments
Senior Member

Hi,

 

Our understanding, and we work closely with the MTP product group, is that there is no API or integration currently possible between MTP and Azure Sentinel and since our SOC uses both we are naturally very curious about this statement "You can integrate the data from Microsoft Threat Protection into Azure Sentinel and then expand that data-set to include data from Azure Security Center and third-party security products to find threats that span your entire environment". Could someone elaborate please?

 

Microsoft

@Sean Friart, thank you for your comment. I understand you have reached out and discussed this with our PMs. I’ve corrected the statement to indicate that this is on the roadmap for Azure Sentinel. It is true that there is currently no native integration between Azure Sentinel and Microsoft Threat Protection, although there is the possibility of using the Microsoft Defender ATP streaming API. However, this solution is not native and can incur additional cost.