Home
%3CLINGO-SUB%20id%3D%22lingo-sub-353776%22%20slang%3D%22en-US%22%3EInside%20SecOps%3A%20Are%20we%20impacted%20by%20this%20new%20APT%20campaign%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-353776%22%20slang%3D%22en-US%22%3E%3CP%3E%3CEM%3E%3CSPAN%3EInside%20SecOps%20is%20a%20new%20series%20of%20blog%20posts%20that%20we%E2%80%99ll%20be%20publishing%20to%20showcase%20how%20security%20analysts%20inside%20Security%20Operations%20Centers%20(SOC)%20are%20leveraging%20Windows%20Defender%20ATP.%20%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EMy%20name%20is%20Milad%20Aslaner%20(%40MiladMSFT%20on%20Twitter)%20and%20I%E2%80%99m%20a%20security%20professional%20in%20the%20Windows%20Defender%20Advanced%20Threat%20Protection%20(ATP)%20product%20engineering%20team.%20In%20my%20role%2C%20I%E2%80%99ve%20had%20the%20privilege%20of%20learning%20how%20strategic%20customers%20are%20using%20our%20product%3C%2FSPAN%3E%3CSPAN%3E.%20This%20has%20proven%20to%20be%20an%20invaluable%20source%20of%20feedback%20which%20has%20helped%20us%20not%20only%20improve%20existing%20capabilities%20but%20also%20build%20new%20features%20from%20the%20ground%20up.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIn%20this%20blog%20post%2C%20we%E2%80%99ll%20focus%20on%20two%20capabilities%20that%20can%20help%20analysts%20determine%20if%20a%20newly%20disclosed%20Advanced%20Persistent%20Threat%20(APT)%20campaign%20affects%20their%20organization%3A%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3EAdvanced%20hunting%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3ECustom%20detections%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%3EConsider%20the%20following%20scenario%3A%20You%20start%20your%20day%20as%20a%20security%20analyst%20by%20catching%20up%20on%20e-mails%2C%20threat%20intelligence%20feeds%2C%20and%20cybersecurity%20related%20news.%20You%20notice%20that%20a%20newly%20disclosed%20indicator%20of%20compromise%20(IOC)%20has%20just%20been%20disclosed%20by%20a%20computer%20emergency%20response%20team%20(CERT).%20According%20to%20the%20CERT%20report%20the%20threat%20actor%20group%20specializes%20in%20the%20same%20industry%20as%20the%20company%20you%20work%20for.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1677924229%22%20id%3D%22toc-hId-1704644736%22%3E%3CSPAN%3EWhat%20do%20you%20do%3F%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%3EThe%20CERT%20provides%20a%20list%20of%20known%20IOC%E2%80%99s.%20These%20IOC%E2%80%99s%20contain%20malicious%20file%20hashes%2C%20domains%20and%20IP%20addresses.%20In%20order%20to%20assess%20if%20your%20organization%20is%20affected%20by%20the%20threat%2C%20it%E2%80%99s%20prudent%20to%20verify%20if%20those%20IOCs%20can%20be%20found%20in%20your%20environment.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EWindows%20Defender%20ATP%20is%20connected%20to%20the%20Microsoft%20Intelligent%20Security%20Graph%20(ISG).%20It%E2%80%99s%20highly%20likely%20that%20the%20IOCs%20you%E2%80%99ve%20just%20read%20about%20are%20already%20known%20and%20monitored%20by%20Microsoft%20but%20as%20any%20diligent%20security%20analyst%2C%20you%E2%80%99ll%20want%20to%20verify%20that.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EWith%20Advanced%20hunting%20and%20the%20new%20custom%20detection%20capabilities%20you%20can%20do%20just%20that!%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAdvanced%20hunting%20allows%20you%20to%20create%20queries%20using%20Kusto%20Query%20Language%3C%2FSPAN%3E%3CSPAN%3E.%20You%E2%80%99ll%20have%20access%20to%2030%20days%E2%80%99%20worth%20of%20raw%20data%20where%20you%20can%20run%20your%20queries%20on.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EWhen%20you%E2%80%99ve%20made%20your%20queries%2C%20you%20can%20save%20it%20as%20a%20detection%20logic%2C%20which%20will%20then%20raise%20custom%20alerts.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EExample%20IOCs%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThe%20following%20list%20of%20IOCs%20are%20a%20subset%20of%20a%20recently%20disclosed%20campaign%20by%20%3CA%20href%3D%22https%3A%2F%2Funit42.paloaltonetworks.com%2Fmalware-used-by-rocke-group-evolves-to-evade-detection-by-cloud-security-products%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EUnit42%3C%2FA%3E%2C%20but%20we%E2%80%99ll%20use%20them%20later%20to%20demonstrate%20how%20to%20assess%20if%20a%20threat%20actor%20group%20has%20made%20an%20impact%20in%20an%20organization%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%3EDomains%3A%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3Esydwl.cn%2C%20dwn.rundll32.ml%2C%26nbsp%3Bw3w.aybc.so%2C%20a.ssvs.space%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%3EIP%20addresses%3A%20%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E118.24.150.172%2C%20120.55.54.172%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAdvanced%20hunting%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIf%20you%20are%20not%20familiar%20with%20Advanced%20hunting%2C%20I%20recommended%20that%20you%20check%20out%20the%20official%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fsecurity%2Fthreat-protection%2Fwindows-defender-atp%2Fadvanced-hunting-windows-defender-advanced-threat-protection%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Edocumentation%3C%2FA%3Eand%20the%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FWhat-s-New%2FGetting-Started-with-Windows-Defender-ATP-Advanced-Hunting%2Fba-p%2F215835%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Eblog%20post%3C%2FA%3E%26nbsp%3B%3C%2FSPAN%3Eon%20how%20to%20get%20started.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EBased%20on%20the%20sample%20IOC%20list%20in%20the%20previous%20section%2C%20I%E2%80%99ve%20created%20the%20following%20sample%20query%20to%20determine%20if%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3Eany%20endpoint%20in%20the%20organization%20had%20connections%20to%20the%20malicious%20URLs%2C%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3Eany%20endpoint%20in%20the%20organization%20had%20connections%20to%20the%20malicious%20IP%20addresses%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20889px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F83656i4EE7522BAF81CCC4%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22AH.png%22%20title%3D%22AH.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENetworkCommunicationEvents%3C%2FP%3E%0A%3CP%3E%7C%20where%20RemoteIP%20in%20(%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%22118.24.150.172%22%2C%22120.55.54.172%22)%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FSPAN%3Eor%20RemoteUrl%20in%20(%22sydwl.cn%22%2C%22dwn.rundll32.ml%22%2C%22w3w.aybc.so%22%2C%22a.ssvs.space%22)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ECustom%20detection%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ECustom%20detections%20build%20on%20top%20of%20Advanced%20hunting.%20Essentially%20instead%20of%20running%20manual%20queries%20you%20can%20save%20them%20as%20custom%20detections.%20Once%20saved%2C%20queries%20will%20run%20automatically%20every%2024%20hours%2C%20creating%20alerts%20complete%20with%20your%20own%20description%2C%20categorization%20and%20severity.%20See%20the%20image%20below%20for%20a%20custom%20detection%20rule%20that%20raises%20a%20high%20severity%20alert%20when%20it%20detects%20any%20machine%20in%20the%20organization%20connecting%20to%20any%20of%20the%20IP%20or%20URLs%20described%20in%20the%20above%20query.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%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%20943px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F83657i4A65231D272ABA5E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22AH2.png%22%20title%3D%22AH2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ETrue%20Positive%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAfter%20learning%20about%20the%20new%20APT%20campaign%2C%20you%20have%20created%20an%20Advanced%20hunting%20query%20and%20a%20custom%20detection.%20Following%20these%20actions%2C%20you%20receive%20a%20new%20alert%20from%20your%20custom%20detection%2C%20indicating%20a%20true%20positive%20in%20your%20environment%20-%20alert%20for%20an%20endpoint%20that%20has%20executed%20one%20of%20the%20known%20bad%20files.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%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%20943px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F83658i49A2A83F10B7BC85%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22TP1.png%22%20title%3D%22TP1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSPAN%3EAlert%20raised%20based%20on%20newly%20created%20custom%20detection%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20943px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F83660iCC0CB483CF6A5AD8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22TP2.png%22%20title%3D%22TP2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSPAN%3EClicking%20on%20the%20circle%20next%20to%20the%20domain%20provides%20further%20insights%20about%20the%20domain%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20943px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F83661iB1A2230A50E5313B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22TP3.png%22%20title%3D%22TP3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSPAN%3EClicking%20on%20the%20URL%20provides%20more%20context%20about%20the%20impact%20within%20the%20organization%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFrom%20the%20alert%20you%20are%20able%20to%20go%20to%20the%20respective%20machine%20page%20to%20further%20deep%20dive%20into%20the%20machine%20timeline.%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%20943px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F83662iEE30E30ED3C13953%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22TP4.png%22%20title%3D%22TP4.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EConclusion%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAs%20a%20security%20analyst%20in%20a%20SecOps%20team%2C%20there%20are%20instances%20when%20you%20need%20to%20quickly%20determine%20if%20your%20organization%20has%20been%20impacted%20by%20a%20specific%20campaign.%20Advanced%20hunting%20is%20one%20of%20the%20most%20loved%20capabilities%20in%20Windows%20Defender%20ATP%20which%20can%20help%20meet%20that%20need.%20As%20demonstrated%20in%20the%20example%2C%20all%20you%20need%20to%20do%20is%20create%20a%20query%20to%20check%20if%20there%E2%80%99s%20been%20direct%20impact%20in%20your%20environment.%20Custom%20detections%20build%20on%20top%20of%20Advanced%20hunting%20and%20lets%20you%20quickly%20transform%20the%20queries%20into%20custom%20detections%20that%20surface%20up%20as%20alerts%20in%20Windows%20Defender%20Security%20Center.%20Now%20all%20that%20is%20needed%20is%20to%20get%20engaged%20with%20your%20network%20team%20to%20block%20the%20access%20to%20the%20malicious%20URLs.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EI%20hope%20you%20found%20this%20tutorial%20useful.%20I%20encourage%20you%20to%20take%20advantage%20of%20the%20Advanced%20hunting%20and%20custom%20detection%20capabilities%2C%20provide%20feedback%2C%20or%20ask%20questions%20about%20this%20post.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ERecommended%20Reading%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fsecurity%2Fthreat-protection%2Fwindows-defender-atp%2Fadvanced-hunting-windows-defender-advanced-threat-protection%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EQuery%20data%20using%20Advanced%20hunting%20in%20Windows%20Defender%20ATP%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fsecurity%2Fthreat-protection%2Fwindows-defender-atp%2Foverview-custom-detections%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ECustom%20detections%20overview%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FWhat-s-New%2FGetting-Started-with-Windows-Defender-ATP-Advanced-Hunting%2Fba-p%2F215835%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3EGetting%20Started%20with%20Windows%20Defender%20ATP%20Advanced%20Hunting%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-353776%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Emilad.aslaner%40microsoft.com%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

Inside SecOps is a new series of blog posts that we’ll be publishing to showcase how security analysts inside Security Operations Centers (SOC) are leveraging Windows Defender ATP.

 

My name is Milad Aslaner (@MiladMSFT on Twitter) and I’m a security professional in the Windows Defender Advanced Threat Protection (ATP) product engineering team. In my role, I’ve had the privilege of learning how strategic customers are using our product. This has proven to be an invaluable source of feedback which has helped us not only improve existing capabilities but also build new features from the ground up.

 

In this blog post, we’ll focus on two capabilities that can help analysts determine if a newly disclosed Advanced Persistent Threat (APT) campaign affects their organization:

  • Advanced hunting
  • Custom detections

Consider the following scenario: You start your day as a security analyst by catching up on e-mails, threat intelligence feeds, and cybersecurity related news. You notice that a newly disclosed indicator of compromise (IOC) has just been disclosed by a computer emergency response team (CERT). According to the CERT report the threat actor group specializes in the same industry as the company you work for.

 

What do you do?

The CERT provides a list of known IOC’s. These IOC’s contain malicious file hashes, domains and IP addresses. In order to assess if your organization is affected by the threat, it’s prudent to verify if those IOCs can be found in your environment.

 

Windows Defender ATP is connected to the Microsoft Intelligent Security Graph (ISG). It’s highly likely that the IOCs you’ve just read about are already known and monitored by Microsoft but as any diligent security analyst, you’ll want to verify that.

 

With Advanced hunting and the new custom detection capabilities you can do just that!

 

Advanced hunting allows you to create queries using Kusto Query Language. You’ll have access to 30 days’ worth of raw data where you can run your queries on.

 

When you’ve made your queries, you can save it as a detection logic, which will then raise custom alerts.

 

Example IOCs

The following list of IOCs are a subset of a recently disclosed campaign by Unit42, but we’ll use them later to demonstrate how to assess if a threat actor group has made an impact in an organization:

 

Domains:sydwl.cn, dwn.rundll32.ml, w3w.aybc.so, a.ssvs.space

IP addresses: 118.24.150.172, 120.55.54.172

 

Advanced hunting

If you are not familiar with Advanced hunting, I recommended that you check out the official documentationand the blog post on how to get started.

 

Based on the sample IOC list in the previous section, I’ve created the following sample query to determine if:

 

  • any endpoint in the organization had connections to the malicious URLs,
  • any endpoint in the organization had connections to the malicious IP addresses

AH.png

 

NetworkCommunicationEvents

| where RemoteIP in (

   "118.24.150.172","120.55.54.172")

    or RemoteUrl in ("sydwl.cn","dwn.rundll32.ml","w3w.aybc.so","a.ssvs.space")

 

Custom detection

Custom detections build on top of Advanced hunting. Essentially instead of running manual queries you can save them as custom detections. Once saved, queries will run automatically every 24 hours, creating alerts complete with your own description, categorization and severity. See the image below for a custom detection rule that raises a high severity alert when it detects any machine in the organization connecting to any of the IP or URLs described in the above query.

 

AH2.png

 

True Positive

After learning about the new APT campaign, you have created an Advanced hunting query and a custom detection. Following these actions, you receive a new alert from your custom detection, indicating a true positive in your environment - alert for an endpoint that has executed one of the known bad files.

 

TP1.png

Alert raised based on newly created custom detection

 

TP2.png

Clicking on the circle next to the domain provides further insights about the domain

 

TP3.png

Clicking on the URL provides more context about the impact within the organization

 

From the alert you are able to go to the respective machine page to further deep dive into the machine timeline.

TP4.png

 

Conclusion

As a security analyst in a SecOps team, there are instances when you need to quickly determine if your organization has been impacted by a specific campaign. Advanced hunting is one of the most loved capabilities in Windows Defender ATP which can help meet that need. As demonstrated in the example, all you need to do is create a query to check if there’s been direct impact in your environment. Custom detections build on top of Advanced hunting and lets you quickly transform the queries into custom detections that surface up as alerts in Windows Defender Security Center. Now all that is needed is to get engaged with your network team to block the access to the malicious URLs.

 

I hope you found this tutorial useful. I encourage you to take advantage of the Advanced hunting and custom detection capabilities, provide feedback, or ask questions about this post.

 

Recommended Reading