%3CLINGO-SUB%20id%3D%22lingo-sub-1743211%22%20slang%3D%22en-US%22%3EAggregating%20Insider%20Risk%20Management%20Information%20via%20Azure%20Sentinel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1743211%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3EOverview%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThanks%20to%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F90352%22%20target%3D%22_blank%22%3E%40Enrique%20Saggese%3C%2FA%3E%26nbsp%3B%20and%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F185177%22%20target%3D%22_blank%22%3E%40Yaniv%20Shasha%3C%2FA%3E%26nbsp%3Bfor%20the%20brainstorming%26nbsp%3Band%20proof%20reading!%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EManaging%20and%20minimizing%20risk%20in%20your%20organization%20starts%20with%20understanding%20the%20types%20of%20risks%20found%20in%20the%20modern%20workplace.%20Some%20risks%20are%20driven%20by%20external%20events%20and%20factors%20that%20are%20outside%20of%20direct%20control.%20Other%20risks%20are%20driven%20by%20internal%20events%20and%20user%20activities%20that%20can%20be%20minimized%20and%20avoided.%20Some%20examples%20are%20risks%20from%20illegal%2C%20inappropriate%2C%20unauthorized%2C%20or%20unethical%20behavior%20and%20actions%20by%20users%20in%20your%20organization.%20These%20behaviors%20include%20a%20broad%20range%20of%20internal%20risks%20from%20users%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ELeaks%20of%20sensitive%20data%20and%20data%20spillage%3C%2FLI%3E%0A%3CLI%3EConfidentiality%20violations%3C%2FLI%3E%0A%3CLI%3EIntellectual%20property%20(IP)%20theft%3C%2FLI%3E%0A%3CLI%3EFraud%3C%2FLI%3E%0A%3CLI%3EInsider%20trading%3C%2FLI%3E%0A%3CLI%3ERegulatory%20compliance%20violations%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%3EInsider%20risk%20management%20uses%20the%20full%20breadth%20of%20service%20and%203rd-party%20indicators%20to%20help%20you%20quickly%20identify%2C%20triage%2C%20and%20act%20on%20risk%20activity.%20By%20using%20logs%20from%20Microsoft%20365%20and%20Microsoft%20Graph%2C%20insider%20risk%20management%20allows%20you%20to%20define%20specific%20policies%20to%20identify%20risk%20indicators.%20These%20policies%20allow%20you%20to%20identify%20risky%20activities%20and%20to%20act%20to%20mitigate%20these%20risks%2C%20for%20more%20details%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fcompliance%2Finsider-risk-management%3Fview%3Do365-worldwide%23policies%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EInsider%20Risk%20Management%20in%20Microsoft%20365%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlerts%20in%20M365%20Compliance%20Insider%20Risk%20Management%20dashboard%20are%20automatically%20generated%20by%20risk%20indicators%20that%20match%20policy%20conditions%20.%20This%20dashboard%20enables%20a%20quick%20view%20of%20all%20alerts%20needing%20review%2C%20open%20alerts%20over%20time%2C%20and%20alert%20statistics%20for%20your%20organization.%20All%20policy%20alerts%20are%20displayed%20with%20the%20following%20information%20to%20help%20you%20quickly%20identify%20the%20status%20of%20existing%20alerts%20and%20new%20alerts%20that%20need%20action%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EStatus%3C%2FLI%3E%0A%3CLI%3ESeverity%3C%2FLI%3E%0A%3CLI%3ETime%20detected%3C%2FLI%3E%0A%3CLI%3ECase%3C%2FLI%3E%0A%3CLI%3ECase%20status%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ECase%20%26amp%3B%20Architecture%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESOC%20team%20asked%20how%20to%20export%20Insider%20Risk%20Management%20alerts%20to%20Azure%20Sentinel%20for%20enrichment%20and%20aggregate%20these%20insider%20risk%20information%20with%20other%20data%20sources%20for%20monitoring%2C%20detection%20%26amp%3B%20hunting%20%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOur%20use%20case%20for%20today%20is%20a%20corporate%20policy%20-%20standard%20communications%20to%20detect%2C%20alert%20and%20report%20on%20%22Offensive%20language%20in%20email%22%2C%20a%20built-in%20classifiers%20in%20Microsoft%20365%20scan%20sent%20email%20messages%20from%20Exchange%20Online%20mailboxes%20in%20your%20organization%20for%20different%20types%20of%20compliance%20issues.%20These%20classifiers%20use%20a%20combination%20of%20artificial%20intelligence%20and%20keywords%20to%20identify%20language%20in%20email%20likely%20to%20violate%20anti-harassment%20policies.%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%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3EStarting%20October%2016%2C%202020%2C%20you%20will%20no%20longer%20be%20able%20to%20create%20policies%20using%20%22Offensive%20Language%20in%20email%22%20template.%20Any%20active%20policies%20that%20use%20this%20template%20will%20work%20until%20they're%20permanently%20removed%20in%20January%202021.%20We%20are%20deprecating%20the%20Offensive%20Language%20built-in%20classifier%20that%20supports%20this%20template%20to%20optimize%20and%20fine%20tune%20false%20positives.%20To%20address%20risk%20issues%20for%20offensive%20language%2C%20we%20recommend%20using%20Microsoft%20365%20communication%20compliance%20policies.%3C%2FCODE%3E%3C%2FPRE%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%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22communicatonCompliance.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F225774i16439C1D92ED7A20%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22communicatonCompliance.PNG%22%20alt%3D%22communicatonCompliance.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere's%20the%20high-level%20architecture%20design%20%2F%20flow%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22IRM-Arch.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224752i44E09DB7E0564336%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22IRM-Arch.png%22%20alt%3D%22IRM-Arch.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EInsider%20risk%20management%20alert%20information%20is%20exportable%20to%20Azure%20Sentinel%20via%20the%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice%2Foffice-365-management-api%2Foffice-365-management-activity-api-schema%23security-and-compliance-alerts-schema%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22absolute-path%22%3EOffice%20365%20Management%20Activity%20API%20schema%3C%2FA%3E%3CSPAN%3E.%20You%20can%20use%20the%20Office%20365%20Management%20Activity%20APIs%20to%20export%20alert%20information%20to%20other%20applications%20your%20organization%20may%20use%20to%20manage%2C%20enrich%20or%20aggregate%20insider%20risk%20information.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EImplementation%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESign%20in%20to%20your%20%3CA%20href%3D%22http%3A%2F%2Faudit%2520logging%20has%20not%20yet%20been%20completed.%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EOffice%20365%20Security%20%26amp%3B%20Compliance%20Portal%3C%2FA%3E%20and%20ensure%20that%20Audit%20log%20feature%20is%20enabled%20and%20retrieving%20data%3C%2FLI%3E%0A%3C%2FUL%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%22auditlogsearch.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F225780i6F6EB92A8609189C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22auditlogsearch.PNG%22%20alt%3D%22auditlogsearch.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESign%20in%20to%20%3CA%20href%3D%22https%3A%2F%2Fcompliance.microsoft.com%2Fhomepage%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMicrosoft%20365%20Compliance%20Portal%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EUnder%20Solutions%20%26gt%3B%20...%20Show%20All%20%26gt%3B%20Insider%20risk%20management%3C%2FLI%3E%0A%3CLI%3EClick%20at%20Insider%20risk%20settings%3CUL%3E%0A%3CLI%3EDefine%20and%20check%20%22Policy%20indicators%22%2C%20%22Policy%20timeframes%22%3C%2FLI%3E%0A%3CLI%3EExports%20Alerts%26nbsp%3B%20%26gt%3B%20Office%20365%20Management%20Activity%20API%20(%3CSTRONG%3EOn)%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EClick%20at%20Policies%3CUL%3E%0A%3CLI%3ECreate%20Policy%20%26gt%3B%20type%20a%20Name%20and%20choose%20a%20policy%20template%2C%20our%20use%20case%20today%20to%20detect%20and%20alert%20on%20an%20%22offensive%20language%20in%20email%22%20%26gt%3B%20Next%3C%2FLI%3E%0A%3CLI%3EDefine%20target%20users%20%26amp%3B%20groups%3C%2FLI%3E%0A%3CLI%3ESpecify%20what%20content%20to%20prioritize%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3ESelect%20policy%20indicators%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3ESet%20policy%20timeframes%3C%2FLI%3E%0A%3CLI%3EReview%20and%20Submit%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%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%22IRMSentinelCompliancedemo4.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F225062i60DD8D5D405500ED%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22IRMSentinelCompliancedemo4.gif%22%20alt%3D%22IRMSentinelCompliancedemo4.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EOpen%20Outlook%20and%20send%20a%20test%20message%20with%20an%20offensive%20language%20keywords%20to%20trigger%20the%20alert%2C%20usually%20it%20might%20take%20up%20to%2024%20hrs%20to%26nbsp%3Bstart%20capturing%20communications%20and%20generate%20the%20alert%20based%20on%20the%20classifiers%20detection%3C%2FLI%3E%0A%3C%2FUL%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%22emailmessagetest.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F225775iEDE06089363C60E0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22emailmessagetest.PNG%22%20alt%3D%22emailmessagetest.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EGo%20to%20Insider%20Risk%20Management%20blade%2C%20and%20check%20the%20alerts%3A%3C%2FLI%3E%0A%3C%2FUL%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%22IRMSentinelComplianceAlert.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F225776i575EF329DB0349F8%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22IRMSentinelComplianceAlert.gif%22%20alt%3D%22IRMSentinelComplianceAlert.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESign%20in%20to%20Azure%20Portal%20and%20create%20a%20new%20App-registration%3A%3CUL%3E%0A%3CLI%3EAPI%20permissions%3A%20Office%20365%20Management%20APIs%26nbsp%3B%20%26gt%3B%20Application%20Permissions%20(ActivityFeed.Read)%3C%2FLI%3E%0A%3CLI%3EGrant%20admin%20consent%3C%2FLI%3E%0A%3CLI%3ECertificates%20%26amp%3B%20secrets%3A%20add%20new%20client%20secret%3C%2FLI%3E%0A%3CLI%3EKeep%20a%20note%20for%20client%20secret%2C%20application-client%20ID%2C%20tenant%20ID%20and%20domain%20name%20to%20register%20the%20API%20subscription%3C%2FLI%3E%0A%3CLI%3ERegister%20the%20API%20subscription%20via%20PowerShell%2C%20open%20PowerShell%20as%20admin%2C%20connect%20to%20your%20tenant%20with%20a%20privileged%20account%20to%20register%20the%20API%20subscription%20ensure%20that%20you%20add%20the%20proper%20client%20secret%2C%20application-ID%2C%20tenant%20ID%20and%20domain%20name%20%26amp%3B%20ensure%20that%20the%20content-type%20is%20Audit.General%20a%20direct%20link%20to%20download%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fhesaad%2FAzureSentinelHub%2Fblob%2Fmaster%2FIRM-RegisterAPISubscriptionScript%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eraw%20script%20at%20github%3C%2FA%3E%3A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%24ClientID%20%3D%20%22%3CAPP_ID%3E%22%E2%80%AF%20%0A%24ClientSecret%E2%80%AF%3D%20%22%3CCLIENT_SECRET%3E%22%E2%80%AF%20%0A%24loginURL%E2%80%AF%3D%20%22https%3A%2F%2Flogin.microsoftonline.com%2F%22%E2%80%AF%20%0A%24tenantdomain%E2%80%AF%3D%20%22%3CDOMAIN%3E.onmicrosoft.com%22%E2%80%AF%20%0A%24TenantGUID%E2%80%AF%3D%20%22%3CTENANT%20guid%3D%22%22%3E%22%E2%80%AF%20%0A%24resource%20%3D%20%22https%3A%2F%2Fmanage.office.com%22%E2%80%AF%20%0A%24body%20%3D%20%40%7Bgrant_type%3D%22client_credentials%22%3Bresource%3D%24resource%3Bclient_id%3D%24ClientID%3Bclient_secret%3D%24ClientSecret%7D%E2%80%AF%0A%24oauth%E2%80%AF%3D%20Invoke-RestMethod%E2%80%AF-Method%20Post%20-Uri%20%24loginURL%2F%24tenantdomain%2Foauth2%2Ftoken%3Fapi-version%3D1.0%20-Body%20%24body%E2%80%AF%20%0A%24headerParams%E2%80%AF%3D%20%40%7B'Authorization'%3D%22%24(%24oauth.token_type)%20%24(%24oauth.access_token)%22%7D%E2%80%AF%E2%80%AF%20%0A%24publisher%20%3D%20New-Guid%0AInvoke-WebRequest%E2%80%AF-Method%20Post%20-Headers%20%24headerParams%E2%80%AF-Uri%20%22https%3A%2F%2Fmanage.office.com%2Fapi%2Fv1.0%2F%24tenantGuid%2Factivity%2Ffeed%2Fsubscriptions%2Fstart%3FcontentType%3DAudit.General%26amp%3BPublisherIdentifier%3D%24Publisher%22%E2%80%AF%3C%2FTENANT%3E%3C%2FDOMAIN%3E%3C%2FCLIENT_SECRET%3E%3C%2FAPP_ID%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EDeploy%20IRM-Alerts%20Connector%3A%3CUL%3E%0A%3CLI%3ESign%20in%20to%20Azure%20Sentinel%3CUL%3E%0A%3CLI%3EPlaybooks%20%26gt%3B%20Add%20Playbook%3C%2FLI%3E%0A%3CLI%3ELogic%20app%20designer%3A%3CUL%3E%0A%3CLI%3ERecurrence%20(step)%3A%3CUL%3E%0A%3CLI%3EInterval%3A%201%3C%2FLI%3E%0A%3CLI%3EFrequency%3A%20Day%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EVariable%20(step)%3A%3CUL%3E%0A%3CLI%3EName%3A%20AuditGeneral%3C%2FLI%3E%0A%3CLI%3EType%3A%20String%3C%2FLI%3E%0A%3CLI%3EValue%3A%3CUL%3E%0A%3CLI%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3Ehttps%3A%2F%2Fmanage.office.com%2Fapi%2Fv1.0%2F2006d214-5f91-4166-8d92-95f5e3ad9ec6%2Factivity%2Ffeed%2Fsubscriptions%2Fcontent%3FcontentType%3DAudit.General%26amp%3BPublisherIdentifier%3DMicrosoft%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EHTTP%20(step)%3A%3CUL%3E%0A%3CLI%3EMethod%3A%20GET%3C%2FLI%3E%0A%3CLI%3EURI%3A%20Dynamic%20Content%20%26gt%3B%20AuditGeneral%3C%2FLI%3E%0A%3CLI%3EHeaders%3A%3C%2FLI%3E%0A%3CLI%3E(Accept)%20-%20(application%2Fjson)%3C%2FLI%3E%0A%3CLI%3E(Content-Type%20)%20-%20(application%2Fjson)%3C%2FLI%3E%0A%3CLI%3EAuthentication%3A%20Active%20Directory%20OAuth%3CUL%3E%0A%3CLI%3ETenant%20ID%20value%3C%2FLI%3E%0A%3CLI%3EAudience%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fmanage.office.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmanage.office.com%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EClient%20ID%20value%3C%2FLI%3E%0A%3CLI%3ECredential%20Type%3A%20Secret%3C%2FLI%3E%0A%3CLI%3ESecret%20value%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EParse%20JSON%20(step)%3A%3CUL%3E%0A%3CLI%3EContent%3A%20Dynamic%20Content%20%26gt%3B%20Body%3C%2FLI%3E%0A%3CLI%3EUse%20sample%20payload%20to%20generate%20schema%3A%3CUL%3E%0A%3CLI%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%7B%0A%20%20%20%20%22items%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22properties%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22contentCreated%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22type%22%3A%20%22string%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22contentExpiration%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22type%22%3A%20%22string%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22contentId%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22type%22%3A%20%22string%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22contentType%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22type%22%3A%20%22string%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22contentUri%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22type%22%3A%20%22string%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%2C%0A%20%20%20%20%20%20%20%20%22required%22%3A%20%5B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22contentUri%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22contentId%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22contentType%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22contentCreated%22%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22contentExpiration%22%0A%20%20%20%20%20%20%20%20%5D%2C%0A%20%20%20%20%20%20%20%20%22type%22%3A%20%22object%22%0A%20%20%20%20%7D%2C%0A%20%20%20%20%22type%22%3A%20%22array%22%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EFor%20each%20(step)%3A%3CUL%3E%0A%3CLI%3ESelect%20an%20output%20from%20previous%20steps%3A%20Dynamic%20Content%20%26gt%3B%20Body%3C%2FLI%3E%0A%3CLI%3EHTTP%20(step)%3A%3CUL%3E%0A%3CLI%3EMethod%3A%20GET%3C%2FLI%3E%0A%3CLI%3EURI%3A%20Dynamic%20Content%20%26gt%3B%20contentUri%3C%2FLI%3E%0A%3CLI%3EHeaders%3A%3CUL%3E%0A%3CLI%3E(Accept)%20-%20(application%2Fjson)%3C%2FLI%3E%0A%3CLI%3E(Content-Type)%20-%20(application%2Fjson)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EAuthentication%3A%20Active%20Directory%20OAuth%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ESend%20data%20(step)%3A%3CUL%3E%0A%3CLI%3EJSON%20Request%20body%3A%20Dynamic%20Content%20%26gt%3B%20Body%3C%2FLI%3E%0A%3CLI%3ECustom%20Log%20Name%3A%20Compliance_IRM_AuditGeneral%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ESave%20the%20playbook%20steps%20and%20hit%20run%20for%20triggering%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%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%22IRMSentinelComplianceLogicApp.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F225783iD1F17C348FF510FD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22IRMSentinelComplianceLogicApp.gif%22%20alt%3D%22IRMSentinelComplianceLogicApp.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20logic%20app%20code%20view%20have%20been%20uploaded%20as%20well%20to%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fhesaad%2FAzureSentinelHub%2Fblob%2Fmaster%2FIRM-Compliance-Alerts-Connector%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Egithub%3C%2FA%3E%2C%20please%20ensure%20to%20change%20the%20subscription%20ID%20and%20resource%20group%20values.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EMonitoring%2C%20Aggregating%2C%20Parsing%20and%20Enriching%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EUnder%20Azure%20Sentinel%20general%20section%20%26gt%3B%20Logs%3CUL%3E%0A%3CLI%3EA%20new%20custom%20log%20table%20been%20generated%20%22Compliance_IRM_AuditGeneral_CL%22%3C%2FLI%3E%0A%3CLI%3EHere's%20the%20Insider%20Risk%20Management%20alert(s)%20schema%20structure%20pulled%20from%20Office%20365%20Management%20API%20to%20Azure%20Sentinel%20Log%20Analytics%20workspace%3A%3CUL%3E%0A%3CLI%3EAlert%20Type%3A%20Custom%3C%2FLI%3E%0A%3CLI%3ECategory%3A%26nbsp%3BInsiderRiskManagement%3C%2FLI%3E%0A%3CLI%3EName%3A%20alert%20title%3C%2FLI%3E%0A%3CLI%3ESource%3A%26nbsp%3BOffice%20365%20Security%20%26amp%3B%20Compliance%3C%2FLI%3E%0A%3CLI%3EStatus%3A%26nbsp%3BInvestigating%3C%2FLI%3E%0A%3CLI%3ECreation%20time%3C%2FLI%3E%0A%3CLI%3EOperation%3A%26nbsp%3BAlert%20Triggered%2C%20Alert%20Updated%3C%2FLI%3E%0A%3CLI%3ERecord%20Type%3A%2040%3C%2FLI%3E%0A%3CLI%3EWorkload%3A%26nbsp%3BSecurity%20Compliance%20Center%3C%2FLI%3E%0A%3CLI%3EData%3A%3CUL%3E%0A%3CLI%3EUPN%3C%2FLI%3E%0A%3CLI%3ERisky%20User%20ID%3C%2FLI%3E%0A%3CLI%3EActivation%20DateTime%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ESeverity%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%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%22IRMSentinelLogs3.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F225791iBF3FF5348183DBF3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22IRMSentinelLogs3.gif%22%20alt%3D%22IRMSentinelLogs3.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EParsing%20the%20data%20can%20be%20done%20easily%20via%20a%20function%2C%20the%20function%20query%20have%20been%20uploaded%20to%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fhesaad%2FAzureSentinelHub%2Fblob%2Fmaster%2FIRMAlertsLogs-ParserFN%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Egithub%3C%2FA%3E%20as%20well%3A%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%22parsingIRMLogs.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F225793i34912D8BB99B934D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22parsingIRMLogs.PNG%22%20alt%3D%22parsingIRMLogs.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EA%20couple%20of%20enriching%20queries%20(for%20example)%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMonitoring%20operations%20activities%20and%20result%20status%20of%20the%20alerted%20IRM%20UPN%20user%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3Elet%20IRMAlertsLog%20%3D%20Compliance_IRM_AuditGeneral_CL%20%7C%20where%20Category%20%3D%3D%20%22InsiderRiskManagement%22%20%7C%20where%20RecordType_d%20%3D%3D%20%2240%22%20%7C%20extend%20IRM_UPN%20%3D%20tostring(parse_json(Data_s).userPrincipalName)%3B%0AIRMAlertsLog%0A%7C%20project%20AlertType_s%2C%20Category%2C%20Comments_s%2C%20IRM_UPN%2C%20Name_s%2C%20Severity_s%2C%20Source_s%2C%20Status_s%0A%7C%20join%20(AuditLogs%0A%20%20%20%20%20%20%20%20%7C%20extend%20AuditLogs_UPN%20%3D%20tostring(parse_json(tostring(InitiatedBy.user)).userPrincipalName)%0A%20%20%20%20%20%20%20%20%7C%20project%20TimeGenerated%2C%20AuditLogs_UPN%2C%20OperationName%2C%20Result)%0A%20%20%20%20%20%20%20%20on%20%24left.IRM_UPN%20%3D%3D%20%24right.AuditLogs_UPN%0A%7C%20project%20TimeGenerated%2C%20AlertType_s%2C%20Category%2C%20Comments_s%2C%20IRM_UPN%2C%20Name_s%2C%20Severity_s%2C%20Source_s%2C%20Status_s%2C%20OperationName%2C%20Result%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMonitoring%20signin%20logs%20locations%20and%20status%20of%20the%20alerted%20IRM%20UPN%20user%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3ECompliance_IRM_AuditGeneral_CL%0A%7C%20where%20Category%20%3D%3D%20%22InsiderRiskManagement%22%0A%7C%20where%20RecordType_d%20%3D%3D%20%2240%22%0A%7C%20extend%20IRM_UPN%20%3D%20tostring(parse_json(Data_s).userPrincipalName)%0A%7C%20join%20(SigninLogs%0A%20%20%20%20%20%20%20%20%7C%20project%20UserPrincipalName%2C%20IPAddress%2C%20Location)%20%0Aon%20%24left.IRM_UPN%20%3D%3D%20%24right.UserPrincipalName%0A%7C%20project%20TimeGenerated%2C%20AlertType_s%2C%20Category%2C%20Comments_s%2C%20IRM_UPN%2C%20Name_s%2C%20Severity_s%2C%20Source_s%2C%20Status_s%2C%20IPAddress%2C%20Location%2C%20CreationTime_t%2C%20Operation_s%2C%20RecordType_d%2C%20ResultStatus_s%3C%2FCODE%3E%3C%2FPRE%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%3CSTRONG%3EGet%20started%20today!%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20encourage%20you%20to%20try%20it%20now%20and%20start%20hunting%20in%20your%20environment.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EYou%20can%20also%20contribute%20new%20connectors%2C%20workbooks%2C%20analytics%20and%20more%20in%20Azure%20Sentinel.%20Get%20started%20now%20by%20joining%20the%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fthreathunters%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20Sentinel%20Threat%20Hunters%20GitHub%20community%3C%2FA%3E%3CSPAN%3E.%3C%2FSPAN%3E%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-1743211%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EInsider%20risk%20management%20is%20a%20compliance%20solution%20in%20Microsoft%20365%20that%20helps%20minimize%20internal%20risks%20by%20enabling%20you%20to%20detect%2C%20investigate%2C%20and%20act%20on%20malicious%20and%20inadvertent%20activities%20in%20your%20organization.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ERisk%20analysts%20in%20your%20organization%20can%20quickly%20take%20appropriate%20actions%20to%20make%20sure%20users%20are%20compliant%20with%20your%20organization's%20compliance%20standard%20but%20what's%20happen%20if%20SOC%20wants%20to%20aggregate%20insider%20risk%20information%26nbsp%3Band%20alerts%20with%20other%20data%20sources%20for%20monitoring%2C%20detection%20and%20hunting%20%3F%20Azure%20Sentinel%20is%20your%20key%2C%20how%20so%20let's%20get%20started!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1743211%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Sentinel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECompliance%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDetection%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EInsider%20Risk%20Management%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EInvestigation%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecurity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

Overview

 

Thanks to @Enrique Saggese  and @Yaniv Shasha for the brainstorming and proof reading!

 

Managing and minimizing risk in your organization starts with understanding the types of risks found in the modern workplace. Some risks are driven by external events and factors that are outside of direct control. Other risks are driven by internal events and user activities that can be minimized and avoided. Some examples are risks from illegal, inappropriate, unauthorized, or unethical behavior and actions by users in your organization. These behaviors include a broad range of internal risks from users:

  • Leaks of sensitive data and data spillage
  • Confidentiality violations
  • Intellectual property (IP) theft
  • Fraud
  • Insider trading
  • Regulatory compliance violations

Insider risk management uses the full breadth of service and 3rd-party indicators to help you quickly identify, triage, and act on risk activity. By using logs from Microsoft 365 and Microsoft Graph, insider risk management allows you to define specific policies to identify risk indicators. These policies allow you to identify risky activities and to act to mitigate these risks, for more details Insider Risk Management in Microsoft 365

 

Alerts in M365 Compliance Insider Risk Management dashboard are automatically generated by risk indicators that match policy conditions . This dashboard enables a quick view of all alerts needing review, open alerts over time, and alert statistics for your organization. All policy alerts are displayed with the following information to help you quickly identify the status of existing alerts and new alerts that need action:

  • Status
  • Severity
  • Time detected
  • Case
  • Case status

 

Case & Architecture

 

SOC team asked how to export Insider Risk Management alerts to Azure Sentinel for enrichment and aggregate these insider risk information with other data sources for monitoring, detection & hunting ?

 

Our use case for today is a corporate policy - standard communications to detect, alert and report on "Offensive language in email", a built-in classifiers in Microsoft 365 scan sent email messages from Exchange Online mailboxes in your organization for different types of compliance issues. These classifiers use a combination of artificial intelligence and keywords to identify language in email likely to violate anti-harassment policies.

 

 

 

Starting October 16, 2020, you will no longer be able to create policies using "Offensive Language in email" template. Any active policies that use this template will work until they're permanently removed in January 2021. We are deprecating the Offensive Language built-in classifier that supports this template to optimize and fine tune false positives. To address risk issues for offensive language, we recommend using Microsoft 365 communication compliance policies.

 

 

 

communicatonCompliance.PNG

 

Here's the high-level architecture design / flow:

IRM-Arch.png

 

Insider risk management alert information is exportable to Azure Sentinel via the Office 365 Management Activity API schema. You can use the Office 365 Management Activity APIs to export alert information to other applications your organization may use to manage, enrich or aggregate insider risk information.

 

Implementation

 

 

auditlogsearch.PNG

 

  • Sign in to Microsoft 365 Compliance Portal
  • Under Solutions > ... Show All > Insider risk management
  • Click at Insider risk settings
    • Define and check "Policy indicators", "Policy timeframes"
    • Exports Alerts  > Office 365 Management Activity API (On)
  • Click at Policies
    • Create Policy > type a Name and choose a policy template, our use case today to detect and alert on an "offensive language in email" > Next
    • Define target users & groups
    • Specify what content to prioritize 
    • Select policy indicators 
    • Set policy timeframes
    • Review and Submit

 

IRMSentinelCompliancedemo4.gif

 

  • Open Outlook and send a test message with an offensive language keywords to trigger the alert, usually it might take up to 24 hrs to start capturing communications and generate the alert based on the classifiers detection

 

emailmessagetest.PNG

 

  • Go to Insider Risk Management blade, and check the alerts:

 

IRMSentinelComplianceAlert.gif

 

  • Sign in to Azure Portal and create a new App-registration:
    • API permissions: Office 365 Management APIs  > Application Permissions (ActivityFeed.Read)
    • Grant admin consent
    • Certificates & secrets: add new client secret
    • Keep a note for client secret, application-client ID, tenant ID and domain name to register the API subscription
    • Register the API subscription via PowerShell, open PowerShell as admin, connect to your tenant with a privileged account to register the API subscription ensure that you add the proper client secret, application-ID, tenant ID and domain name & ensure that the content-type is Audit.General a direct link to download the raw script at github:

 

 

$ClientID = "<app_id>"  
$ClientSecret = "<client_secret>"  
$loginURL = "https://login.microsoftonline.com/"  
$tenantdomain = "<domain>.onmicrosoft.com"  
$TenantGUID = "<Tenant GUID>"  
$resource = "https://manage.office.com"  
$body = @{grant_type="client_credentials";resource=$resource;client_id=$ClientID;client_secret=$ClientSecret} 
$oauth = Invoke-RestMethod -Method Post -Uri $loginURL/$tenantdomain/oauth2/token?api-version=1.0 -Body $body  
$headerParams = @{'Authorization'="$($oauth.token_type) $($oauth.access_token)"}   
$publisher = New-Guid
Invoke-WebRequest -Method Post -Headers $headerParams -Uri "https://manage.office.com/api/v1.0/$tenantGuid/activity/feed/subscriptions/start?contentType=Audit.General&PublisherIdentifier=$Publisher" 

 

 

  • Deploy IRM-Alerts Connector:
    • Sign in to Azure Sentinel
      • Playbooks > Add Playbook
      • Logic app designer:
        • Recurrence (step):
          • Interval: 1
          • Frequency: Day
        • Variable (step):
          • Name: AuditGeneral
          • Type: String
          • Value:
            • https://manage.office.com/api/v1.0/2006d214-5f91-4166-8d92-95f5e3ad9ec6/activity/feed/subscriptions/content?contentType=Audit.General&PublisherIdentifier=Microsoft
        • HTTP (step):
          • Method: GET
          • URI: Dynamic Content > AuditGeneral
          • Headers:
          • (Accept) - (application/json)
          • (Content-Type ) - (application/json)
          • Authentication: Active Directory OAuth
        • Parse JSON (step):
          • Content: Dynamic Content > Body
          • Use sample payload to generate schema:
            • {
                  "items": {
                      "properties": {
                          "contentCreated": {
                              "type": "string"
                          },
                          "contentExpiration": {
                              "type": "string"
                          },
                          "contentId": {
                              "type": "string"
                          },
                          "contentType": {
                              "type": "string"
                          },
                          "contentUri": {
                              "type": "string"
                          }
                      },
                      "required": [
                          "contentUri",
                          "contentId",
                          "contentType",
                          "contentCreated",
                          "contentExpiration"
                      ],
                      "type": "object"
                  },
                  "type": "array"
              }
        • For each (step):
          • Select an output from previous steps: Dynamic Content > Body
          • HTTP (step):
            • Method: GET
            • URI: Dynamic Content > contentUri
            • Headers:
              • (Accept) - (application/json)
              • (Content-Type) - (application/json)
            • Authentication: Active Directory OAuth
          • Send data (step):
            • JSON Request body: Dynamic Content > Body
            • Custom Log Name: Compliance_IRM_AuditGeneral
    • Save the playbook steps and hit run for triggering

 

IRMSentinelComplianceLogicApp.gif

 

The logic app code view have been uploaded as well to github, please ensure to change the subscription ID and resource group values.

 

Monitoring, Aggregating, Parsing and Enriching

 

  • Under Azure Sentinel general section > Logs
    • A new custom log table been generated "Compliance_IRM_AuditGeneral_CL"
    • Here's the Insider Risk Management alert(s) schema structure pulled from Office 365 Management API to Azure Sentinel Log Analytics workspace:
      • Alert Type: Custom
      • Category: InsiderRiskManagement
      • Name: alert title
      • Source: Office 365 Security & Compliance
      • Status: Investigating
      • Creation time
      • Operation: Alert Triggered, Alert Updated
      • Record Type: 40
      • Workload: Security Compliance Center
      • Data:
        • UPN
        • Risky User ID
        • Activation DateTime
      • Severity

 

IRMSentinelLogs3.gif

 

Parsing the data can be done easily via a function, the function query have been uploaded to github as well:

 

parsingIRMLogs.PNG

 

A couple of enriching queries (for example):

 

Monitoring operations activities and result status of the alerted IRM UPN user

 

 

let IRMAlertsLog = Compliance_IRM_AuditGeneral_CL | where Category == "InsiderRiskManagement" | where RecordType_d == "40" | extend IRM_UPN = tostring(parse_json(Data_s).userPrincipalName);
IRMAlertsLog
| project AlertType_s, Category, Comments_s, IRM_UPN, Name_s, Severity_s, Source_s, Status_s
| join (AuditLogs
        | extend AuditLogs_UPN = tostring(parse_json(tostring(InitiatedBy.user)).userPrincipalName)
        | project TimeGenerated, AuditLogs_UPN, OperationName, Result)
        on $left.IRM_UPN == $right.AuditLogs_UPN
| project TimeGenerated, AlertType_s, Category, Comments_s, IRM_UPN, Name_s, Severity_s, Source_s, Status_s, OperationName, Result

 

 

Monitoring signin logs locations and status of the alerted IRM UPN user

 

 

Compliance_IRM_AuditGeneral_CL
| where Category == "InsiderRiskManagement"
| where RecordType_d == "40"
| extend IRM_UPN = tostring(parse_json(Data_s).userPrincipalName)
| join (SigninLogs
        | project UserPrincipalName, IPAddress, Location) 
on $left.IRM_UPN == $right.UserPrincipalName
| project TimeGenerated, AlertType_s, Category, Comments_s, IRM_UPN, Name_s, Severity_s, Source_s, Status_s, IPAddress, Location, CreationTime_t, Operation_s, RecordType_d, ResultStatus_s

 

 

 

Get started today!

 

We encourage you to try it now and start hunting in your environment. 

You can also contribute new connectors, workbooks, analytics and more in Azure Sentinel. Get started now by joining the Azure Sentinel Threat Hunters GitHub community.