Home
%3CLINGO-SUB%20id%3D%22lingo-sub-190551%22%20slang%3D%22en-US%22%3EUsing%20the%20Office%20365%20Management%20Activity%20API%20and%20Power%20BI%20for%20security%20analysis%20(Part%202)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-190551%22%20slang%3D%22en-US%22%3E%3CP%3E%3CEM%3EPublishers%20note%3A%20I%20am%20posting%20this%20on%20behalf%20my%20colleague%20Jon%20Nordstrom%20who%20is%20part%20of%20the%20Office%20365%20customer%20experience%20team.%20Myself%20and%20few%20other%20engineers%20thought%20you%20would%20all%20benefit%20from%20his%20knowledge%20of%20the%20Office%20365%20management%20activity%20API.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20you%20have%20the%20data%20you%20need%20for%20your%20investigation%2C%20it%20can%20be%20helpful%20to%20use%20graphs%20to%20analyze%20activity%20data%20to%20identify%20relationships%20and%20outliers%20during%20an%20investigation.%20On%20TechNet%20we%20%3CA%20href%3D%22https%3A%2F%2Fblogs.technet.microsoft.com%2Foffice365security%2Fdefending-office-365-with-graph-analytics%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Eshared%3C%2FA%3E%20how%20the%20Office%20365%20team%20uses%20graphs%20to%20analyze%20incident%20data%20but%20in%20this%20last%20post%20of%20our%20two-part%20series%20we%20will%20focus%20on%20using%20Power%20BI%20to%20visualize%20the%20data%20for%20the%20following%20scenarios%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3BA.%26nbsp%3B%20What%20changes%20have%20been%20made%20to%20my%20environment%20by%20Exchange%20administrators%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20B.%26nbsp%3B%20Is%20there%20excessive%20sign%20in%20failures%20from%20specific%20IP%20addresses%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20C.%26nbsp%3B%20Who%20has%20accessed%20sensitive%20content%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20help%20you%20understand%20how%20you%20can%20get%20the%20data%20necessary%20to%20perform%20a%20security%20analysis%20of%20it%20check%20out%20the%20previous%20post%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FSecurity-Privacy-and-Compliance%2FUsing-the-Office-365-Management-Activity-API-and-Power-BI-for%2Fba-p%2F189086%22%20target%3D%22_blank%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20sample%20graphs%20generated%20in%20this%20post%20were%20created%20with%20the%20free%20version%20of%20the%20ZoomCharts%20add-in%20for%20Power%20BI%20Desktop.%20The%20data%20was%20transferred%20to%20Azure%20Cosmos%20DB%20using%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FOfficeDev%2FO365-ActivityFeed-AzureFunction%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ethese%20sample%20scripts%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1902320129%22%20id%3D%22toc-hId-1957583394%22%3EUse%20Cases%3C%2FH1%3E%0A%3CH2%20id%3D%22toc-hId--846350337%22%20id%3D%22toc-hId--791087072%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-896459998%22%20id%3D%22toc-hId-951723263%22%3EA.%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20What%20changes%20were%20made%20to%20my%20environment%20by%20Exchange%20administrators%3F%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhat%20operations%20can%20I%20expect%20of%20my%20Exchange%20Online%20administrators%20and%20what%20operations%20do%20they%20have%20in%20common%3F%20Has%20an%20account%20run%20any%20commands%20that%20allow%20for%20access%20to%20user%20data%3F%20Are%20there%20any%20connections%20between%20these%20operations%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFigure%201%20is%20a%20sample%20where%20we%20are%20only%20looking%20at%20the%20Exchange%20Operations.%20Looking%20at%20the%20pure%20count%20of%20operations%20may%20be%20good%20for%20alerts%20but%20how%20is%20it%20all%20connected%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20filter%20on%20Exchange%20Online%20events%20from%20Power%20BI%2C%20search%20the%20Fields%20pane%20for%20%E2%80%9Cworkloads%E2%80%9D%2C%20drag%20the%20workloads%20field%20to%20Page%20level%20filters%20and%20select%20the%20workload%20to%20filter%20on.%20When%20working%20with%20large%20sets%20of%20data%20either%20filter%20the%20information%20on%20import%20to%20Power%20BI%20or%20add%20a%20page%20level%20filter%20for%20Exchange%20operations.%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F33578i5161FF089F0BA2D5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2201.png%22%20title%3D%2201.png%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%201%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet%E2%80%99s%20expand%20this%20scenario%20to%20understand%20the%20actors%2C%20since%20the%20operations%20in%20isolation%20doesn%E2%80%99t%20provide%20us%20with%20the%20data%20needed%20for%20an%20investigation.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20example%2C%20we%20set%20the%20Nodes%20to%20Operations%20and%20UserId.%20The%20Measure%20is%20set%20to%20Operations%20see%20Figure%202%20for%20the%20configuration.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20a%20new%20tenant%20with%20many%20new%20accounts%2C%20so%20it%20is%20expected%20to%20see%20operations%20performed%20by%20the%20service%20itself%20as%20identified%20by%20%22NT%20AUTHORITY%5CSYSTEM%22%20within%20the%20logs.%20You%20can%20identify%20cmdlets%20that%20are%20shared%20between%20actors%20and%20cmdlets%20that%20are%20unique%20to%20specific%20actors.%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F33580iABBCB9BE4336D079%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2202.png%22%20title%3D%2202.png%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%202%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20a%20next%20step%20add%20the%20ObjectID%20to%20the%20Power%20BI%20view.%20The%20number%20of%20operations%20that%20have%20been%20carried%20out%20is%20shown%20along%20with%20any%20user%20objects%20that%20have%20been%20modified.%20We%20can%20see%20a%20cluster%20forming%20around%20one%20of%20the%20administrator%20accounts.%20As%20a%20next%20step%20we%20are%20zooming%20in%20to%20that%20cluster.%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F33581i5523416B019E5C52%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2203.png%22%20title%3D%2203.png%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%203%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CLI-WRAPPER%3E%3C%2FLI-WRAPPER%3E%3C%2FP%3E%0A%3CP%3EWhen%20zooming%20in%20on%20the%20cluster%20we%20can%20see%20Add-MailboxPermissions%20being%20run%20on%20several%20mailboxes.%20If%20this%20was%20to%20occur%20in%20a%20production%20tenant%20it%20should%20raise%20some%20flags.%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F33582iCB18DF086C3F0773%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2204.png%22%20title%3D%2204.png%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%204%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20next%20step%20is%20to%20filter%20and%20understand%20permissions%20that%20have%20been%20provisioned.%20You%20can%20add%20a%20table%20that%20is%20filtered%20based%20on%20the%20graphs.%20In%20this%20example%2C%20the%20Administrator%20has%20granted%20FullAccess%20to%20these%20mailboxes.%20Not%20a%20best%20practice%E2%80%A6%20This%20information%20can%20be%20used%20to%20reverse%20the%20change%20by%20exporting%20the%20data%20to%20a%20csv%20file%20and%20loop%20through%20the%20modified%20mailboxes%20using%20Remove-MailboxPermissions.%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%20style%3D%22width%3A%20724px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F33588iED7ED70ADFC22D0C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2205.png%22%20title%3D%2205.png%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%205%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1655696963%22%20id%3D%22toc-hId--1600433698%22%3EB.%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Is%20there%20excessive%20sign%20in%20failures%20from%20specific%20IP%20addresses%3F%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20example%20was%20derived%20from%20a%20test%20of%20the%20Password%20Spray%20attack%20simulation%20from%20the%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FSecurity-Privacy-and-Compliance%2FGA-of-Attack-Simulator-For-Office-365-Threat-Intelligence%2Fba-p%2F183954%22%20target%3D%22_blank%22%3EAttack%20Simulator%3C%2FA%3E%20feature%20in%20Office%20365%20Threat%20Intelligence.%20One%20key%20element%20of%20creating%20this%20view%20is%20to%20remember%20to%20exclude%20internal%20proxies%2C%20etc.%2C%20from%20filtering%20to%20get%20a%20representative%20view.%20IP%20addresses%20with%20a%20high%20ratio%20of%20failures%20will%20beacon%20clearly%20in%20the%20report%20even%20when%20the%20report%20contains%20a%20lot%20of%20data.%20Look%20for%20how%20data%20is%20clustered%20together.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20can%20be%20seen%20in%20Figure%206.%2C%20we%20have%20loaded%20UserId%2C%20ActorIpAddress%2C%20Operation%20as%20nodes%20and%20we%20are%20using%20the%20count%20of%20UserID%20as%20the%20measure.%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F33585i5A408EA83AD864F4%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2206.png%22%20title%3D%2206.png%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%206%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-87113372%22%20id%3D%22toc-hId-142376637%22%3EC.%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Who%20has%20accessed%20sensitive%20content%3F%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20example%20is%20based%20on%20filtering%20SharePoint%20Online%20and%20OneDrive%20for%20Business%20activity%20to%20identify%20users%20who%20have%20accessed%20information%20that%20has%20the%20%E2%80%9CAcquisition%20documentation%20policy%20enforcement%E2%80%9D%20%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2FOverview-of-labels-af398293-c69d-465e-a249-d74561552d30%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Elabel%20policy%3C%2FA%3E%20applied.%20This%20view%20can%20be%20used%20to%20understand%20if%20new%20sensitive%20content%20is%20accessed.%20The%20policy%20creates%20an%20account%20that%20is%20used%20to%20update%20the%20sensitive%20content%20and%20we%20can%20use%20the%20account%20to%20link%20to%20the%20usage.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFrom%20Figure%207.%2C%20you%20can%20see%20that%20we%20have%20been%20using%20Operation%2C%20UserID%2C%20ObjectID%20for%20the%20nodes%20and%20loaded%20count%20of%20operations%20as%20the%20measure.%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%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F33586i4ACAFB2B869ADCB2%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2207.png%22%20title%3D%2207.png%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%207%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1829923707%22%20id%3D%22toc-hId-1885186972%22%3ESummary%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20post%20hopefully%20peak%20your%20interest%20in%20Graph%20based%20security%20analysis.%20If%20you%20think%20that%20analyzing%20data%20in%20Graphs%20seems%20like%20something%20that%20your%20organization%20may%20benefit%20from%20we%20hope%20that%20we%20have%20helped%20you%20get%20started.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20have%20only%20scratched%20the%20surface%20though.%20There%20are%20many%20scenarios%20where%20this%20may%20be%20a%20useful%20approach%20to%20get%20a%20deeper%20understanding.%20Go%20ahead%20and%20use%20the%20steps%20from%20the%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FSecurity-Privacy-and-Compliance%2FUsing-the-Office-365-Management-Activity-API-and-Power-BI-for%2Fba-p%2F189086%22%20target%3D%22_blank%22%3Efirst%20post%3C%2FA%3E%20in%20the%20series%20to%20setup%20your%20own%20environment%20and%20work%20on%20your%20own%20model%20for%20Graph%20based%20analysis.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20have%20any%20feedback%20please%20provide%20it%20at%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FOfficeDev%2FO365-ActivityFeed-AzureFunction%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EGitHub%20project%3C%2FA%3E%20page%20or%20by%20emailing%20it%20to%20cxprad%40microsoft.com.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20look%20forward%20to%20hearing%20from%20you!%3C%2FP%3E%0A%3CP%3E%E2%80%94Jon%20Nordstrom%2C%20senior%20program%20manager%2C%20Office%20365%20customer%20experience%3C%2FP%3E%0A%3CP%3E%3CLI-WRAPPER%3E%3C%2FLI-WRAPPER%3E%3C%2FP%3E%0A%3CP%3E%3CLI-WRAPPER%3E%3C%2FLI-WRAPPER%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-190551%22%20slang%3D%22en-US%22%3E%3CP%3EOnce%20you%20have%20the%20data%20you%20need%20for%20your%20investigation%2C%20it%20can%20be%20helpful%20to%20use%20graphs%20to%20analyze%20activity%20data%20to%20identify%20relationships%20and%20outliers%20during%20an%20investigation.%20On%20TechNet%20we%20shared%20how%20the%20Office%20365%20team%20uses%20graphs%20to%20analyze%20incident%20data%20but%20in%20this%20last%20post%20of%20our%20two-part%20series%20we%20will%20focus%20on%20using%20Power%20BI%20to%20visualize%20the%20data.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-190551%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E

Publishers note: I am posting this on behalf my colleague Jon Nordstrom who is part of the Office 365 customer experience team. Myself and few other engineers thought you would all benefit from his knowledge of the Office 365 management activity API.

 

Once you have the data you need for your investigation, it can be helpful to use graphs to analyze activity data to identify relationships and outliers during an investigation. On TechNet we shared how the Office 365 team uses graphs to analyze incident data but in this last post of our two-part series we will focus on using Power BI to visualize the data for the following scenarios:

 

    A.  What changes have been made to my environment by Exchange administrators?

    B.  Is there excessive sign in failures from specific IP addresses?

    C.  Who has accessed sensitive content?

 

To help you understand how you can get the data necessary to perform a security analysis of it check out the previous post here.

 

The sample graphs generated in this post were created with the free version of the ZoomCharts add-in for Power BI Desktop. The data was transferred to Azure Cosmos DB using these sample scripts.

 

Use Cases

 

A.     What changes were made to my environment by Exchange administrators?

 

What operations can I expect of my Exchange Online administrators and what operations do they have in common? Has an account run any commands that allow for access to user data? Are there any connections between these operations?

 

Figure 1 is a sample where we are only looking at the Exchange Operations. Looking at the pure count of operations may be good for alerts but how is it all connected?

 

To filter on Exchange Online events from Power BI, search the Fields pane for “workloads”, drag the workloads field to Page level filters and select the workload to filter on. When working with large sets of data either filter the information on import to Power BI or add a page level filter for Exchange operations.

 

01.pngFigure 1

 

Let’s expand this scenario to understand the actors, since the operations in isolation doesn’t provide us with the data needed for an investigation.

 

In this example, we set the Nodes to Operations and UserId. The Measure is set to Operations see Figure 2 for the configuration.

 

This is a new tenant with many new accounts, so it is expected to see operations performed by the service itself as identified by "NT AUTHORITY\SYSTEM" within the logs. You can identify cmdlets that are shared between actors and cmdlets that are unique to specific actors.

 

02.pngFigure 2

 

As a next step add the ObjectID to the Power BI view. The number of operations that have been carried out is shown along with any user objects that have been modified. We can see a cluster forming around one of the administrator accounts. As a next step we are zooming in to that cluster.

 

03.pngFigure 3

 

When zooming in on the cluster we can see Add-MailboxPermissions being run on several mailboxes. If this was to occur in a production tenant it should raise some flags.

 

04.pngFigure 4

The next step is to filter and understand permissions that have been provisioned. You can add a table that is filtered based on the graphs. In this example, the Administrator has granted FullAccess to these mailboxes. Not a best practice… This information can be used to reverse the change by exporting the data to a csv file and loop through the modified mailboxes using Remove-MailboxPermissions.

 

05.pngFigure 5

 

 

B.     Is there excessive sign in failures from specific IP addresses?

 

This example was derived from a test of the Password Spray attack simulation from the Attack Simulator feature in Office 365 Threat Intelligence. One key element of creating this view is to remember to exclude internal proxies, etc., from filtering to get a representative view. IP addresses with a high ratio of failures will beacon clearly in the report even when the report contains a lot of data. Look for how data is clustered together.

 

As can be seen in Figure 6., we have loaded UserId, ActorIpAddress, Operation as nodes and we are using the count of UserID as the measure.

 

06.pngFigure 6

 

C.     Who has accessed sensitive content?

 

This example is based on filtering SharePoint Online and OneDrive for Business activity to identify users who have accessed information that has the “Acquisition documentation policy enforcement” label policy applied. This view can be used to understand if new sensitive content is accessed. The policy creates an account that is used to update the sensitive content and we can use the account to link to the usage.

 

From Figure 7., you can see that we have been using Operation, UserID, ObjectID for the nodes and loaded count of operations as the measure.

 

07.pngFigure 7

 

Summary

 

This post hopefully peak your interest in Graph based security analysis. If you think that analyzing data in Graphs seems like something that your organization may benefit from we hope that we have helped you get started.

 

We have only scratched the surface though. There are many scenarios where this may be a useful approach to get a deeper understanding. Go ahead and use the steps from the first post in the series to setup your own environment and work on your own model for Graph based analysis.

 

If you have any feedback please provide it at the GitHub project page or by emailing it to cxprad@microsoft.com.

 

We look forward to hearing from you!

—Jon Nordstrom, senior program manager, Office 365 customer experience