%3CLINGO-SUB%20id%3D%22lingo-sub-1578320%22%20slang%3D%22en-US%22%3EPull%20in%20more%20intelligence%20and%20act%20fast%20while%20you%20hunt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1578320%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20the%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-threat-protection%2Fpivot-fast-and-investigate-freely-with-go-hunt-amp-other%2Fba-p%2F1535768%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Eprevious%20chapter%20of%20this%20series%3C%2FA%3E%2C%20we%20started%20our%20investigation%20from%20an%20incident%20involving%20a%20particular%20mailbox%20that%20received%20phishing%20email.%20We%20saw%20how%20we%20can%20use%20%3CSTRONG%3E%3CEM%3Ego%20hunt%3C%2FEM%3E%3C%2FSTRONG%3E%20and%20the%20%3CSTRONG%3Ein-portal%20schema%20reference%20%3C%2FSTRONG%3Eto%20quickly%20pivot%20and%20deepen%20our%20investigation%2C%20utilizing%20query-based%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fsecurity%2Fmtp%2Fadvanced-hunting-overview%3Fview%3Do365-worldwide%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eadvanced%20hunting%3C%2FA%3E%26nbsp%3Bcapabilities.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHowever%2C%20phishing%20isn%E2%80%99t%20the%20only%20threat%20impacting%20email%E2%80%94let's%20look%20into%20how%20emails%20with%20malware%20are%20affecting%20our%20environment.%20Our%20initial%20mailbox%20asset%2C%20bamorel%40mtpdemos.net%2C%20did%20not%20receive%20malware%2C%20but%20maybe%20other%20mailboxes%20in%20the%20organization%20did%3F%20Let%E2%80%99s%20check%20by%20modifying%20our%20first%20%3CEM%3Ego%20hunt%20%3C%2FEM%3Equery%20to%20extend%20our%20search%20beyond%20the%20original%20mailbox.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3Elet%20selectedTimestamp%20%3D%20datetime(2020-07-18T08%3A02%3A04.0000000Z)%3B%3CBR%20%2F%3EEmailEvents%3CBR%20%2F%3E%7C%20where%20Timestamp%20between%20((selectedTimestamp%20-%2024h)%20..%20(selectedTimestamp%20%2B%2024h))%3CBR%20%2F%3E%2F%2Fmalware%20emails%3CBR%20%2F%3Eand%20MalwareFilterVerdict%20%3D%3D%20%22Malware%22%3C%2FPRE%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%22senderdomain.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211408iD0E2569EF5768F55%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22senderdomain.png%22%20alt%3D%22senderdomain.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20find%20a%20bunch%20of%20malware%20emails%2C%20all%20of%20them%20from%20the%20same%20sender%20%3CA%20href%3D%22mailto%3Amtpdemos%40juno.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Emtpdemos%40juno.com%3C%2FA%3E.%20Let%E2%80%99s%20hunt%20for%20all%20the%20attachments%20coming%20from%20this%20sender%2C%20and%20see%20if%20someone%20downloaded%20them%20to%20their%20devices.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CSPAN%20class%3D%22csl-comment1%22%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3E%2F%2F%20Find%20the%20first%20appearance%20of%20files%20sent%20by%20a%20malicious%20sender%20in%20your%20organization%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22csl-command1%22%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3Elet%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3E%20%3CSPAN%20class%3D%22csl-let-variable1%22%3EMaliciousSender%3C%2FSPAN%3E%20%3D%20%3CSPAN%20class%3D%22csl-string-literal1%22%3E%22mtpdemos%40juno.com%22%3C%2FSPAN%3E%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22csl-column1%22%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3EEmailAttachmentInfo%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3E%7C%20%3CSPAN%20class%3D%22csl-operator1%22%3Ewhere%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22csl-column1%22%3ETimestamp%3C%2FSPAN%3E%20%26gt%3B%20%3CSPAN%20class%3D%22csl-function1%22%3Eago%3C%2FSPAN%3E(30d)%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3E%7C%20%3CSPAN%20class%3D%22csl-operator1%22%3Ewhere%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22csl-column1%22%3ESenderFromAddress%3C%2FSPAN%3E%20%3D~%20%3CSPAN%20class%3D%22csl-let-variable1%22%3EMaliciousSender%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3E%7C%20%3CSPAN%20class%3D%22csl-operator1%22%3Ejoin%3C%2FSPAN%3E%20(%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22csl-column1%22%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3EDeviceFileEvents%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3E%7C%20%3CSPAN%20class%3D%22csl-operator1%22%3Ewhere%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22csl-column1%22%3ETimestamp%3C%2FSPAN%3E%20%26gt%3B%20%3CSPAN%20class%3D%22csl-function1%22%3Eago%3C%2FSPAN%3E(30d)%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3E)%20%3CSPAN%20class%3D%22csl-command1%22%3Eon%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22csl-column1%22%3ESHA256%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3E%7C%20%3CSPAN%20class%3D%22csl-operator1%22%3Esummarize%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22csl-column1%22%3EFirstAppearance%3C%2FSPAN%3E%20%3D%20%3CSPAN%20class%3D%22csl-function1%22%3Emin%3C%2FSPAN%3E(%3CSPAN%20class%3D%22csl-column1%22%3ETimestamp%3C%2FSPAN%3E)%20%3CSPAN%20class%3D%22csl-command1%22%3Eby%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22csl-column1%22%3EDeviceName%3C%2FSPAN%3E%2C%20%3CSPAN%20class%3D%22csl-column1%22%3ESHA256%3C%2FSPAN%3E%2C%20%3CSPAN%20class%3D%22csl-column1%22%3EFileName%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FPRE%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%22FileOnDevices.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211409iF7E1DDA7E3EBBE19%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22FileOnDevices.png%22%20alt%3D%22FileOnDevices.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1202772143%22%20id%3D%22toc-hId-1202772143%22%3E%3CFONT%20color%3D%22%23000000%22%3EGet%20enriched%20file%20intel%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EUnfortunately%2C%20there%20were%20users%20that%20downloaded%20the%20malicious%20files.%20To%20quickly%20learn%20more%20about%20the%20files%2C%20we%20can%20use%20the%20%3CSTRONG%3EFileProfile()%3C%2FSTRONG%3E%20function%20to%20pull%20in%20meta%20data%20from%20the%20Microsoft%20file%20reputation%20database%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CSPAN%3E%2F%2F%20Get%20more%20details%20about%20the%20malicious%20files%20using%20the%20FileProfile()%20enrichment%20function%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3Elet%3C%2FSPAN%3E%20%3CSPAN%3EMaliciousSender%3C%2FSPAN%3E%20%3D%20%3CSPAN%3E%22mtpdemos%40juno.com%22%3C%2FSPAN%3E%3B%3CBR%20%2F%3E%3CSPAN%3EEmailAttachmentInfo%3CBR%20%2F%3E%3C%2FSPAN%3E%7C%20%3CSPAN%3Ewhere%3C%2FSPAN%3E%20%3CSPAN%3ETimestamp%3C%2FSPAN%3E%20%26gt%3B%20%3CSPAN%3Eago%3C%2FSPAN%3E(30d)%3CBR%20%2F%3E%7C%20%3CSPAN%3Ewhere%3C%2FSPAN%3E%20%3CSPAN%3ESenderFromAddress%3C%2FSPAN%3E%20%3D~%20%3CSPAN%3EMaliciousSender%3CBR%20%2F%3E%3C%2FSPAN%3E%7C%20%3CSPAN%3Ejoin%3C%2FSPAN%3E%20(%3CSPAN%3EDeviceFileEvents%3CBR%20%2F%3E%3C%2FSPAN%3E%7C%20%3CSPAN%3Ewhere%3C%2FSPAN%3E%20%3CSPAN%3ETimestamp%3C%2FSPAN%3E%20%26gt%3B%20%3CSPAN%3Eago%3C%2FSPAN%3E(30d))%20%3CSPAN%3Eon%3C%2FSPAN%3E%20%3CSPAN%3ESHA256%3CBR%20%2F%3E%3C%2FSPAN%3E%7C%20%3CSPAN%3Edistinct%3C%2FSPAN%3E%20%3CSPAN%3ESHA1%3C%2FSPAN%3E%7C%20%3CSPAN%3Einvoke%3C%2FSPAN%3E%20%3CSPAN%3EFileProfile%3C%2FSPAN%3E()%3CBR%20%2F%3E%7C%20%3CSPAN%3Eproject%3C%2FSPAN%3E%20%3CSPAN%3ESHA1%3C%2FSPAN%3E%2C%20%3CSPAN%3ESHA256%3C%2FSPAN%3E%20%2C%20%3CSPAN%3EFileSize%3C%2FSPAN%3E%20%2C%20%3CSPAN%3EGlobalFirstSeen%3C%2FSPAN%3E%20%2C%20%3CSPAN%3EGlobalLastSeen%3C%2FSPAN%3E%20%2C%20%3CSPAN%3EGlobalPrevalence%3C%2FSPAN%3E%20%2C%20%3CSPAN%3EIsExecutable%3C%2FSPAN%3E%3C%2FPRE%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%22fileProfile.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211410i6ACE859E9D5F9D07%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22fileProfile.png%22%20alt%3D%22fileProfile.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBy%20invoking%20the%20FileProfile()%20function%2C%20we%20can%20derive%20additional%20insights%20from%20enriched%20information%20in%20the%20form%20of%20additional%20file%20hashes%2C%20size%2C%20prevalence%2C%20first%20and%20last%20seen%2C%20signer%20info%2C%20and%20various%20other%20attributes.%20For%20example%2C%20we%20can%20identify%20files%20that%20are%20rare%20or%20files%20that%20are%20very%20new%2C%20potentially%20requiring%20closer%20inspection.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fmicrosoft-365%2Fsecurity%2Fmtp%2Fadvanced-hunting-fileprofile-function%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ELearn%20more%20about%20the%20FileProfile()%20function%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--604682320%22%20id%3D%22toc-hId--604682320%22%3E%3CFONT%20color%3D%22%23000000%22%3ETake%20action%20as%20part%20of%20the%20hunt%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EOnce%20we%E2%80%99ve%20done%20sufficient%20investigation%20to%20verify%20that%20the%20files%20are%20malicious%20and%20the%20devices%20that%20contain%20them%20have%20been%20adversely%20impacted%2C%20our%20next%20step%20would%20be%20to%20ensure%20we%20respond%20quickly%20enough%20to%20minimize%20the%20impact%20of%20the%20malicious%20files.%20We%20can%20actually%20do%20this%20from%20the%20query%20results%20by%20selecting%20the%20records%20and%20then%20selecting%20%3CSTRONG%3ETake%20actions%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CSPAN%20class%3D%22csl-comment1%22%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3E%2F%2F%20Find%20the%20first%20appearance%20of%20files%20sent%20by%20a%20malicious%20sender%20in%20your%20organization%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22csl-command1%22%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3Elet%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3E%20%3CSPAN%20class%3D%22csl-let-variable1%22%3EMaliciousSender%3C%2FSPAN%3E%20%3D%20%3CSPAN%20class%3D%22csl-string-literal1%22%3E%22mtpdemos%40juno.com%22%3C%2FSPAN%3E%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22csl-column1%22%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3EEmailAttachmentInfo%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3E%7C%20%3CSPAN%20class%3D%22csl-operator1%22%3Ewhere%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22csl-column1%22%3ETimestamp%3C%2FSPAN%3E%20%26gt%3B%20%3CSPAN%20class%3D%22csl-function1%22%3Eago%3C%2FSPAN%3E(30d)%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3E%7C%20%3CSPAN%20class%3D%22csl-operator1%22%3Ewhere%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22csl-column1%22%3ESenderFromAddress%3C%2FSPAN%3E%20%3D~%20%3CSPAN%20class%3D%22csl-let-variable1%22%3EMaliciousSender%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3E%7C%20%3CSPAN%20class%3D%22csl-operator1%22%3Ejoin%3C%2FSPAN%3E%20(%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22csl-column1%22%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3EDeviceFileEvents%3CBR%20%2F%3E%7C%20%3CSPAN%20class%3D%22csl-operator1%22%20style%3D%22white-space%3A%20normal%3B%22%3Ewhere%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22csl-column1%22%20style%3D%22white-space%3A%20normal%3B%22%3ETimestamp%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20white-space%3A%20normal%3B%22%3E%20%26gt%3B%20%3C%2FSPAN%3E%3CSPAN%20class%3D%22csl-function1%22%20style%3D%22white-space%3A%20normal%3B%22%3Eago%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%20white-space%3A%20normal%3B%22%3E(30d)%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3E)%20%3CSPAN%20class%3D%22csl-command1%22%3Eon%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22csl-column1%22%3ESHA256%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20Consolas%3B%22%3E%7C%20%3CSPAN%20class%3D%22csl-operator1%22%3Esummarize%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22csl-column1%22%3EFirstAppearance%3C%2FSPAN%3E%20%3D%20%3CSPAN%20class%3D%22csl-function1%22%3Emin%3C%2FSPAN%3E(%3CSPAN%20class%3D%22csl-column1%22%3ETimestamp%3C%2FSPAN%3E)%20%3CSPAN%20class%3D%22csl-command1%22%3Eby%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22csl-column1%22%3EDeviceName%3C%2FSPAN%3E%2C%20DeviceId%2C%20%3CSPAN%20class%3D%22csl-column1%22%3ESHA256%3C%2FSPAN%3E%2C%20%3CSPAN%20class%3D%22csl-column1%22%3EFileName%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FPRE%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%22takeActions.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211411iD83E3C832D34FFC3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22takeActions.png%22%20alt%3D%22takeActions.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20feature%20lets%20you%20select%20particular%20entities%20to%20address%20in%20the%20selected%20records%20as%20well%20as%20the%20type%20of%20actions%20to%20take.%20When%20you%20proceed%2C%20the%20necessary%20actions%20are%20taken%20automatically%20and%20swiftly%20on%20available%20devices.%3C%2FP%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%22takeActions2.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211412i29F7B96F39035B1D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22takeActions2.png%22%20alt%3D%22takeActions2.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22takeActions3.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F211413i9731C2CED2260AFB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22takeActions3.png%22%20alt%3D%22takeActions3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1882830513%22%20id%3D%22toc-hId-1882830513%22%3E%3CFONT%20color%3D%22%23000000%22%3EKey%20takeaways%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EWe%20started%20our%20investigation%20from%20a%20single%20mailbox%20that%20was%20connected%20to%20an%20incident.%20Using%20advanced%20hunting%2C%20we%20gathered%20more%20data%20about%20the%20affected%20asset%2C%20explored%20other%20activities%20that%20might%20be%20related%20to%20asset%2C%20expand%20our%20investigation%20to%20cover%20other%20threat%20types%2C%20pulled%20in%20more%20threat%20intel%2C%20and%20took%20actions%20quickly.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDuring%20this%20investigation%2C%20we%20learned%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EHow%20easy%20it%20is%20to%20pivot%20from%20an%20incident%20investigation%20into%20advanced%20hunting%20using%20%3CSTRONG%3E%3CEM%3Ego%20hunt%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3EHow%20we%20can%20conveniently%20find%20what%20we%20need%20in%20the%20schema%20using%20the%20%3CSTRONG%3Ein-portal%20reference%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3EHow%20quickly%20we%20can%20enrich%20an%20investigation%20using%20functions%20like%20%3CSTRONG%3EFileProfile()%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3EHow%20we%20can%20remediate%20threats%20directly%20from%20our%20hunting%20results%20by%20selecting%20%3CSTRONG%3ETake%20actions%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20learn%20more%20about%20advanced%20hunting%20in%20Microsoft%20Threat%20Protection%20and%20these%20new%20enhancements%2C%20go%20to%20the%20following%20links%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E-ERR%3AREF-NOT-FOUND-Advanced%20hunting%20overview%3C%2FLI%3E%0A%3CLI%3E-ERR%3AREF-NOT-FOUND-FileProfile%3C%2FLI%3E%0A%3CLI%3E-ERR%3AREF-NOT-FOUND-Take%20actions%3C%2FLI%3E%0A%3CLI%3E-ERR%3AREF-NOT-FOUND-Go%20hunt%3C%2FLI%3E%0A%3CLI%3E-ERR%3AREF-NOT-FOUND-In-portal%20reference%3C%2FLI%3E%0A%3CLI%3E-ERR%3AREF-NOT-FOUND-Preview%20features%3C%2FLI%3E%0A%3CLI%3E-ERR%3AREF-NOT-FOUND-MTP%20Git%20community%3C%2FLI%3E%0A%3C%2FUL%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-TEASER%20id%3D%22lingo-teaser-1578320%22%20slang%3D%22en-US%22%3E%3CP%3ELearn%20how%20quickly%20we%20can%20enrich%20an%20investigation%20using%20functions%20like%20%3CSTRONG%3EFileProfile()%3C%2FSTRONG%3E%2C%20and%20how%20we%20can%20remediate%20threats%20directly%20from%20our%20hunting%20results%20by%20selecting%20%3CSTRONG%3ETake%20actions%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Microsoft

In the previous chapter of this series, we started our investigation from an incident involving a particular mailbox that received phishing email. We saw how we can use go hunt and the in-portal schema reference to quickly pivot and deepen our investigation, utilizing query-based advanced hunting capabilities.

 

However, phishing isn’t the only threat impacting email—let's look into how emails with malware are affecting our environment. Our initial mailbox asset, bamorel@mtpdemos.net, did not receive malware, but maybe other mailboxes in the organization did? Let’s check by modifying our first go hunt query to extend our search beyond the original mailbox.

 

let selectedTimestamp = datetime(2020-07-18T08:02:04.0000000Z);
EmailEvents
| where Timestamp between ((selectedTimestamp - 24h) .. (selectedTimestamp + 24h))
//malware emails
and MalwareFilterVerdict == "Malware"

 

senderdomain.png

 

We find a bunch of malware emails, all of them from the same sender mtpdemos@juno.com. Let’s hunt for all the attachments coming from this sender, and see if someone downloaded them to their devices.

 

// Find the first appearance of files sent by a malicious sender in your organization
let MaliciousSender = "mtpdemos@juno.com";
EmailAttachmentInfo
| where Timestamp > ago(30d)
| where SenderFromAddress =~ MaliciousSender
| join (
DeviceFileEvents
| where Timestamp > ago(30d)
) on SHA256
| summarize FirstAppearance = min(Timestamp) by DeviceName, SHA256, FileName

 

FileOnDevices.png

 

 

Get enriched file intel

Unfortunately, there were users that downloaded the malicious files. To quickly learn more about the files, we can use the FileProfile() function to pull in meta data from the Microsoft file reputation database:

 

// Get more details about the malicious files using the FileProfile() enrichment function
let MaliciousSender = "mtpdemos@juno.com";
EmailAttachmentInfo
| where Timestamp > ago(30d)
| where SenderFromAddress =~ MaliciousSender
| join (DeviceFileEvents
| where Timestamp > ago(30d)) on SHA256
| distinct SHA1| invoke FileProfile()
| project SHA1, SHA256 , FileSize , GlobalFirstSeen , GlobalLastSeen , GlobalPrevalence , IsExecutable

 

fileProfile.png 

By invoking the FileProfile() function, we can derive additional insights from enriched information in the form of additional file hashes, size, prevalence, first and last seen, signer info, and various other attributes. For example, we can identify files that are rare or files that are very new, potentially requiring closer inspection.

 

Learn more about the FileProfile() function

 

Take action as part of the hunt

Once we’ve done sufficient investigation to verify that the files are malicious and the devices that contain them have been adversely impacted, our next step would be to ensure we respond quickly enough to minimize the impact of the malicious files. We can actually do this from the query results by selecting the records and then selecting Take actions.

 

// Find the first appearance of files sent by a malicious sender in your organization
let MaliciousSender = "mtpdemos@juno.com";
EmailAttachmentInfo
| where Timestamp > ago(30d)
| where SenderFromAddress =~ MaliciousSender
| join (
DeviceFileEvents
| where Timestamp > ago(30d)
) on SHA256
| summarize FirstAppearance = min(Timestamp) by DeviceName, DeviceId, SHA256, FileName

 

takeActions.png 

 

This feature lets you select particular entities to address in the selected records as well as the type of actions to take. When you proceed, the necessary actions are taken automatically and swiftly on available devices.

 

takeActions2.pngtakeActions3.png

 

Key takeaways

We started our investigation from a single mailbox that was connected to an incident. Using advanced hunting, we gathered more data about the affected asset, explored other activities that might be related to asset, expand our investigation to cover other threat types, pulled in more threat intel, and took actions quickly.

 

During this investigation, we learned:

  • How easy it is to pivot from an incident investigation into advanced hunting using go hunt
  • How we can conveniently find what we need in the schema using the in-portal reference
  • How quickly we can enrich an investigation using functions like FileProfile()
  • How we can remediate threats directly from our hunting results by selecting Take actions

 

To learn more about advanced hunting in Microsoft Threat Protection and these new enhancements, go to the following links: