%3CLINGO-SUB%20id%3D%22lingo-sub-1750920%22%20slang%3D%22en-US%22%3EBuild-Your-Own%20Machine%20Learning%20detections%20in%20the%20AI%20immersed%20Azure%20Sentinel%20SIEM%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1750920%22%20slang%3D%22en-US%22%3E%3CP%3EAzure%20Sentinel%2C%20among%20the%20most%20advanced%20SIEM%20solutions%2C%20is%20deeply%20infused%20with%20Machine%20Learning%20(ML)%2C%20providing%20unparalleled%20richness%20of%20built-in%2C%20advanced%20ML%20analytics%2C%20covering%20the%20prevalent%20threats%20and%20data%20types%20connected%20to%20the%20SIEM.%20Now%2C%20the%20same%20richness%20of%20capabilities%20is%20made%20available%20to%20the%20data%20scientists%20in%20organizations%2C%20extending%20the%20reach%20to%20unique%20customer%20threats%2C%20providing%20Azure%20Sentinel%20customers%20the%20ability%20to%20build%20their%20own%20ML%20models.%3C%2FP%3E%0A%3CP%3EBuilt-in%20analysis%20using%20machine%20learning%2C%20like%20%E2%80%98Fusion%E2%80%99%20ML%20detections%20and%20entity%20enrichment%2C%20is%20already%20available%20in%20Azure%20Sentinel%2C%20identifying%20advanced%20threats%20on%20well-known%20data%20feeds%2C%20while%20maintaining%20a%20low%20level%20of%20alert%20fatigue.%20See%20this%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fsecurity%2Fblog%2F2020%2F02%2F20%2Fazure-sentinel-uncovers-real-threats-hidden-billions-low-fidelity-signals%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Eblog%3C%2FA%3E%20to%20learn%20more%20about%20Fusion.%3C%2FP%3E%0A%3CP%3EMany%20organizations%20need%20to%20extend%20the%20advanced%20analysis%20capability%20to%20the%20myriad%20of%20threats%20applicable%20to%20their%20organization%20or%20industry%20vertical.%20Azure%20Sentinel%20makes%20it%20easier%20for%20data%20scientists%20in%20these%20organizations%20to%20unlock%20these%20insights%20with%20a%20BYO-ML%20framework.%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%22image.png%22%20style%3D%22width%3A%20534px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224562i898C0CDC7445B2BC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAzure%20Sentinel%20provides%20a%20threat%20detection%20framework%20for%20custom%20ML%2C%20including%20platform%2C%20tools%2C%20and%20templates%2C%20to%20accelerate%20development%20of%20models%20for%20custom%20business%20analysis%2C%20leveraging%20Microsoft%E2%80%99s%20shared%20algorithms%20and%20best%20practices.%3C%2FP%3E%0A%3CP%3EAzure%20Sentinel%20integrates%20its%20bring-your-own-ML%20feature%20with%20familiar%20development%20environments%2C%20tools%2C%20and%20programming%20languages%2C%20like%20Azure%20Databricks%2C%20Spark%2C%20Jupyter%20Notebooks%20and%20Python%2C%20to%20reduce%20the%20learning%20curve%20and%20development%20time%20to%20the%20minimum.%20The%20framework%20comes%20with%20cloud%20scale%20data%20pipelines%2C%20seamlessly%20integrating%20the%20ML%20development%20and%20runtime%20environment%20with%20Azure%20Sentinel%20service%20and%20user%20experience%2C%20significantly%20reducing%20the%20time%20to%20value%20from%20custom%20ML%20analysis.%3C%2FP%3E%0A%3CP%3EUsing%20the%20BYO-ML%20framework%2C%20customers%20can%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ETrain%20an%20ML%20algorithm%20shared%20by%20MS%20or%20community%20with%20your%20own%20data%3CSTRONG%3E%2C%20%3C%2FSTRONG%3Eto%20customize%20the%20ML%20model%20to%20your%20environment%3C%2FLI%3E%0A%3CLI%3EModify%20an%20ML%20algorithm%20and%2F%20or%20features%20to%20customize%20the%20model%2C%20adapting%20it%20to%20your%20organization%3C%2FLI%3E%0A%3CLI%3ECreate%20new%20model%20from%20scratch%2C%20or%20import%20existing%20models%2C%20leveraging%20Azure%20Sentinel%E2%80%99s%20BYO%20ML%20framework%20and%20tools%3C%2FLI%3E%0A%3CLI%3EOperationalize%20the%20model%20in%20Databricks%2F%20Spark%20environment%2C%20leveraging%20the%20framework%20to%20seamlessly%20integrate%20your%20ML%20environment%20with%20Azure%20Sentinel%20user%20experience%20and%20operational%20flow%20(detections%2C%20investigation%2C%20hunting%20and%20response)%3C%2FLI%3E%0A%3CLI%3EShare%20the%20ML%20algorithm%20for%20the%20community%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThis%20article%20provides%20an%20overview%20of%20BYO%20ML%20framework%20and%20recommended%20usage%20of%20its%20components.%20For%20detailed%20documentation%20please%20refer%20to%20Azure%20Sentinel%20feature%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsentinel%2Fbring-your-own-ml%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Edocumentation%3C%2FA%3E.%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-556938130%22%20id%3D%22toc-hId-556938130%22%3E%26nbsp%3B%3C%2FH1%3E%0A%3CH1%20id%3D%22toc-hId--1250516333%22%20id%3D%22toc-hId--1250516333%22%3EAzure%20Sentinel%20features%20of%20the%20BYO-ML%20framework%3C%2FH1%3E%0A%3CP%3EThe%20BYO-ML%20framework%20includes%20the%20following%20features%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EAnomaly%20detection%20model%20template%3A%20an%20example%20of%20an%20end%20to%20end%20template%20for%20a%20generic%20algorithm%20for%20%E2%80%98access%20to%20a%20network%20share%E2%80%99%20anomaly.%20The%20example%20is%20provided%20with%20pre-trained%20data%20on%20Windows%20file%20share%20access%20log%2C%20that%20a%20customer%20is%20encouraged%20to%20retrain%20on%20their%20custom%20data.%3C%2FLI%3E%0A%3CLI%3ETemplate%20for%20Model%20Training%3A%20an%20example%20of%20notebook%20to%20train%20the%20algorithm%2C%20build%20and%20save%20the%20model%3C%2FLI%3E%0A%3CLI%3ETemplate%20for%20Model%20Scoring%3A%20an%20example%20of%20notebook%20to%20run%20the%20model%20on%20schedule%2C%20scoring%20new%20data%3C%2FLI%3E%0A%3CLI%3EData%20pipelines%20between%20Sentinel%26nbsp%3Band%20ML%26nbsp%3Benvironments%3A%20used%20for%20exporting%20Azure%20Sentinel%20data%20to%20the%20Spark%20execution%20environment%20for%20model%20training%20and%20scoring%20and%20importing%20the%20scored%20results%20back%20into%20Azure%20Sentinel%20tables%3C%2FLI%3E%0A%3CLI%3EUtilities%20for%20integration%20with%20Sentinel%3A%20support%20for%20enabling%20the%20integration%20between%20the%20environments%3C%2FLI%3E%0A%3CLI%3EEnrichments%3A%20making%20entity%20enrichment%20information%20like%20peer%20metadata%20and%20blast%20radius%20available%20to%20the%20custom%20ML%20models%20for%20refinement%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThe%20BYO%20ML%20package%20shared%20in%20%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Fsentinel-byoml%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EGithub%3C%2FA%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%20includes%20utilities%20and%20a%20model%20example%20showcasing%20the%20best%20Microsoft%20ML%20practices%20and%20research%20for%20security.%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1236996500%22%20id%3D%22toc-hId-1236996500%22%3E%26nbsp%3B%3C%2FH1%3E%0A%3CH1%20id%3D%22toc-hId--570457963%22%20id%3D%22toc-hId--570457963%22%3EBYO-ML%20environment%20for%20Azure%20Sentinel%3C%2FH1%3E%0A%3CP%3ETo%20build%20custom%20ML%20models%20on%20your%20data%2C%20you%20have%202%20options.%3C%2FP%3E%0A%3CP%3EFor%20smaller%20amounts%20of%20data%2C%20like%20alerts%20and%20anomalies%2C%20you%20can%20use%20Azure%20ML%20to%20run%20models%20hosted%20in%20the%20Azure%20Sentinel%20Notebooks%20(new%20menu%20option%20currently%20in%20Preview).%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture1.png%22%20style%3D%22width%3A%20613px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224585i3ACFACF3C008E90C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Picture1.png%22%20alt%3D%22Picture1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20Azure%20ML%20experience%20is%20launched%20from%20this%20Azure%20Sentinel%20experience%2C%20with%20the%20selected%20Notebook%20loaded%20in%20the%20ML%20environment%2C%20operating%20to%20the%20data%20in%20the%20Azure%20Sentinel%20tables.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture2.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224592i0E4FCACC279A45EB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Picture2.png%22%20alt%3D%22Picture2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EYou%20can%20use%20this%20option%20on%20a%20small%20sample%20of%20large%20data%20as%20well%2C%20to%20ease%20the%20initial%20steps%20of%20development.%3C%2FP%3E%0A%3CP%3EFor%20development%20and%20operationalization%20of%20models%20built%20on%20larger%20data%2C%20like%20analyzing%20feeds%20of%20raw%20data%2C%20you%20will%20need%20to%20make%20this%20data%20accessible%20to%20the%20ML%20model%20in%20Azure%20Databricks.%3C%2FP%3E%0A%3CP%3EApache%20Spark%E2%84%A2%20provides%20a%20unified%20environment%20for%20building%20big%20data%20pipelines.%20Azure%20Databricks%20builds%20on%20this%20environment%2C%20providing%20a%20zero-management%20cloud%20platform%2C%20holistically%20addressing%20the%20platform%20needed%20for%20data%20analysts%20to%20develop%20their%20custom%20ML%20based%20security%20analysis.%3C%2FP%3E%0A%3CP%3EYou%20can%20either%20bring%20your%20raw%20data%20directly%20to%20the%20Azure%20Databricks%20ML%20environment%2C%20via%20EventHub%20or%20Azure%20Blobs%20or%20you%20can%20use%20the%20capabilities%20provided%20with%20Azure%20Sentinel%2C%20to%20export%20the%20data%20from%20Azure%20Sentinel%20Log%20Analytics%20tables.%20Regardless%20of%20the%20export%20methods%20used%20for%20raw%20data%2C%20you%20can%20use%20the%20libraries%20provided%20by%20BYO-ML%20framework%20to%20import%20the%20scoring%20of%20the%20ML%20model%20back%20into%20Sentinel%20Log%20Analytics%20tables%20for%20further%20processing%20and%20creating%20incidents.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture3.png%22%20style%3D%22width%3A%20833px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224724i22F08D2D697AE764%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Picture3.png%22%20alt%3D%22Picture3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EOn%20Azure%20Sentinel%20roadmap%2C%20we%20plan%20to%20support%20Azure%20Synapse%20in%20addition%20to%20Azure%20Databricks%20as%20the%20BYO-ML%20development%20environment.%3C%2FP%3E%0A%3CP%3EYou%20can%20either%20set%20up%20a%20new%20Azure%20Databricks%20environment%20or%20use%20one%20already%20set%20up%20for%20other%20use.%20To%20set%20up%20a%20new%20Databricks%20environment%2C%20please%20reference%20to%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-databricks%2Fquickstart-create-databricks-workspace-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Equickstarts%3C%2FA%3E%20document%20(note%20that%20MMLSpark%20used%20by%20our%20algorithm%20requires%20Spark%202.4.5).%3C%2FP%3E%0A%3CP%3EOnce%20the%20environment%20is%20set%2C%20export%20your%20data%20from%20Azure%20Sentinel%20into%20the%20BYO-ML%20environment%2C%20using%20the%20Azure%20Command%20Line%20Interface%20(CLI).%20See%20Azure%20Sentinel%20BYO-ML%20feature%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsentinel%2Fbring-your-own-ml%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Edocumentation%3C%2FA%3E%20for%20details.%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1917054870%22%20id%3D%22toc-hId-1917054870%22%3E%26nbsp%3B%3C%2FH1%3E%0A%3CH1%20id%3D%22toc-hId-109600407%22%20id%3D%22toc-hId-109600407%22%3EBYO-ML%20Example%20Walkthrough%3A%20Anomalous%20File%20Share%20Access%20Detection%3C%2FH1%3E%0A%3CP%3EThe%20BYO%20ML%20package%20includes%20an%20example%20of%20an%20ML%20model%2C%20leveraging%20the%20framework%20to%20deliver%20a%20customized%20ML%20detection.%3C%2FP%3E%0A%3CP%3EThe%20example%20is%20an%20ML%20algorithm%20template%20for%20%E2%80%9Canomalous%20resource%20access%E2%80%9D%20detection.%20It%20is%20based%20on%20collaborative%20filtering%20algorithm%2C%20trained%20and%20tested%20on%20Windows%20file%20share%20access%20logs%2C%20containing%20security%20events%20of%20users%20and%20resources%20accessed%20by%20them%20(Event%20ID%205140).%3C%2FP%3E%0A%3CP%3EThe%20example%20includes%20a%20notebook%20used%20to%20train%20the%20model%20(AnomalousRATraining.ipynb)%20on%20your%20specific%20organization%20data.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture4.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224725iAB3A1CDED3E97E3B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Picture4.png%22%20alt%3D%22Picture4.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAn%20additional%20notebook%2C%20AnomalousRAScoring.ipynb%2C%20allows%20you%20to%20adjust%20the%20model%20features%20to%20the%20anomalous%20behavior%20and%20accepted%20level%20of%20noise%20in%20your%20organization.%20You%20can%20use%20it%20to%20evaluate%20the%20scoring%20results%2C%20adjusting%20model%20thresholds%2C%20filtering%20out%20known%20benign%20users%20and%20ranking%20the%20anomalous%20ones.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture5.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224726i8B5A9E9FF5C8D393%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Picture5.png%22%20alt%3D%22Picture5.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EOptionally%20use%20visualization%20capabilities%20in%20the%20Notebook%2C%20to%20check%20the%20results%20of%20the%20iterations%20and%20adjust%20to%20an%20acceptable%20noise%20level.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture6.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224727iE62FD53B4B539D3F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Picture6.png%22%20alt%3D%22Picture6.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EOnce%20you%20are%20satisfied%20with%20the%20scoring%20results%2C%20use%20the%20same%20Notebook%20to%20write%20the%20results%20back%20to%20the%20Log%20Analytics%20workspace%20associated%20with%20your%20Azure%20Sentinel%20instance.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture7.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224728iB91F48919B2D8162%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Picture7.png%22%20alt%3D%22Picture7.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWith%20the%20scored%20data%20in%20the%20Azure%20Sentinel%20tables%2C%20you%20can%20use%20the%20standard%20analytics%20development%20experience%20to%20create%20your%20custom%20rule(s)%2C%20as%20you%20would%20do%20for%20the%20rest%20of%20your%20custom%20KQL%20queries.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBYO-ML%20is%20currently%20in%20Public%20Preview.%20If%20you%20have%20any%20questions%20or%20feedbacks%2C%20please%20reach%20out%20to%20%3CA%20href%3D%22mailto%3Aaskepd%40microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Easkepd%40microsoft.com%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1750920%22%20slang%3D%22en-US%22%3E%3CP%3EAzure%20Sentinel%20customers%20have%20now%20a%20solid%20framework%20to%20add%20their%20own%20ML%20models%2C%20for%20differentiating%2C%20custom%20detections.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1750920%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWhat's%20New%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E

Azure Sentinel, among the most advanced SIEM solutions, is deeply infused with Machine Learning (ML), providing unparalleled richness of built-in, advanced ML analytics, covering the prevalent threats and data types connected to the SIEM. Now, the same richness of capabilities is made available to the data scientists in organizations, extending the reach to unique customer threats, providing Azure Sentinel customers the ability to build their own ML models.

Built-in analysis using machine learning, like ‘Fusion’ ML detections and entity enrichment, is already available in Azure Sentinel, identifying advanced threats on well-known data feeds, while maintaining a low level of alert fatigue. See this blog to learn more about Fusion.

Many organizations need to extend the advanced analysis capability to the myriad of threats applicable to their organization or industry vertical. Azure Sentinel makes it easier for data scientists in these organizations to unlock these insights with a BYO-ML framework.

 

image.png

Azure Sentinel provides a threat detection framework for custom ML, including platform, tools, and templates, to accelerate development of models for custom business analysis, leveraging Microsoft’s shared algorithms and best practices.

Azure Sentinel integrates its bring-your-own-ML feature with familiar development environments, tools, and programming languages, like Azure Databricks, Spark, Jupyter Notebooks and Python, to reduce the learning curve and development time to the minimum. The framework comes with cloud scale data pipelines, seamlessly integrating the ML development and runtime environment with Azure Sentinel service and user experience, significantly reducing the time to value from custom ML analysis.

Using the BYO-ML framework, customers can:

  • Train an ML algorithm shared by MS or community with your own data, to customize the ML model to your environment
  • Modify an ML algorithm and/ or features to customize the model, adapting it to your organization
  • Create new model from scratch, or import existing models, leveraging Azure Sentinel’s BYO ML framework and tools
  • Operationalize the model in Databricks/ Spark environment, leveraging the framework to seamlessly integrate your ML environment with Azure Sentinel user experience and operational flow (detections, investigation, hunting and response)
  • Share the ML algorithm for the community

This article provides an overview of BYO ML framework and recommended usage of its components. For detailed documentation please refer to Azure Sentinel feature documentation.

 

Azure Sentinel features of the BYO-ML framework

The BYO-ML framework includes the following features:

  • Anomaly detection model template: an example of an end to end template for a generic algorithm for ‘access to a network share’ anomaly. The example is provided with pre-trained data on Windows file share access log, that a customer is encouraged to retrain on their custom data.
  • Template for Model Training: an example of notebook to train the algorithm, build and save the model
  • Template for Model Scoring: an example of notebook to run the model on schedule, scoring new data
  • Data pipelines between Sentinel and ML environments: used for exporting Azure Sentinel data to the Spark execution environment for model training and scoring and importing the scored results back into Azure Sentinel tables
  • Utilities for integration with Sentinel: support for enabling the integration between the environments
  • Enrichments: making entity enrichment information like peer metadata and blast radius available to the custom ML models for refinement

The BYO ML package shared in Github, includes utilities and a model example showcasing the best Microsoft ML practices and research for security.

 

BYO-ML environment for Azure Sentinel

To build custom ML models on your data, you have 2 options.

For smaller amounts of data, like alerts and anomalies, you can use Azure ML to run models hosted in the Azure Sentinel Notebooks (new menu option currently in Preview).

Picture1.png

The Azure ML experience is launched from this Azure Sentinel experience, with the selected Notebook loaded in the ML environment, operating to the data in the Azure Sentinel tables.

Picture2.png

You can use this option on a small sample of large data as well, to ease the initial steps of development.

For development and operationalization of models built on larger data, like analyzing feeds of raw data, you will need to make this data accessible to the ML model in Azure Databricks.

Apache Spark™ provides a unified environment for building big data pipelines. Azure Databricks builds on this environment, providing a zero-management cloud platform, holistically addressing the platform needed for data analysts to develop their custom ML based security analysis.

You can either bring your raw data directly to the Azure Databricks ML environment, via EventHub or Azure Blobs or you can use the capabilities provided with Azure Sentinel, to export the data from Azure Sentinel Log Analytics tables. Regardless of the export methods used for raw data, you can use the libraries provided by BYO-ML framework to import the scoring of the ML model back into Sentinel Log Analytics tables for further processing and creating incidents.

Picture3.png

On Azure Sentinel roadmap, we plan to support Azure Synapse in addition to Azure Databricks as the BYO-ML development environment.

You can either set up a new Azure Databricks environment or use one already set up for other use. To set up a new Databricks environment, please reference to the quickstarts document (note that MMLSpark used by our algorithm requires Spark 2.4.5).

Once the environment is set, export your data from Azure Sentinel into the BYO-ML environment, using the Azure Command Line Interface (CLI). See Azure Sentinel BYO-ML feature documentation for details.

 

BYO-ML Example Walkthrough: Anomalous File Share Access Detection

The BYO ML package includes an example of an ML model, leveraging the framework to deliver a customized ML detection.

The example is an ML algorithm template for “anomalous resource access” detection. It is based on collaborative filtering algorithm, trained and tested on Windows file share access logs, containing security events of users and resources accessed by them (Event ID 5140).

The example includes a notebook used to train the model (AnomalousRATraining.ipynb) on your specific organization data.

Picture4.png

An additional notebook, AnomalousRAScoring.ipynb, allows you to adjust the model features to the anomalous behavior and accepted level of noise in your organization. You can use it to evaluate the scoring results, adjusting model thresholds, filtering out known benign users and ranking the anomalous ones.

Picture5.png

Optionally use visualization capabilities in the Notebook, to check the results of the iterations and adjust to an acceptable noise level.

Picture6.png

Once you are satisfied with the scoring results, use the same Notebook to write the results back to the Log Analytics workspace associated with your Azure Sentinel instance.

Picture7.png

With the scored data in the Azure Sentinel tables, you can use the standard analytics development experience to create your custom rule(s), as you would do for the rest of your custom KQL queries.

 

BYO-ML is currently in Public Preview. If you have any questions or feedbacks, please reach out to askepd@microsoft.com.