Democratize Machine Learning with Customizable ML Anomalies

Published 05-12-2021 06:05 AM 3,175 Views
Microsoft

Introduction

Customizable machine learning (ML) based anomalies for Azure Sentinel are now available for public preview. Security analysts can use anomalies to reduce investigation and hunting time as well as improve their detections. Typically, these benefits come at the cost of a high benign positive rate, but Azure Sentinel’s customizable anomaly models are tuned by our data science team and trained with the data in your Sentinel workspace to minimize the benign positive rate, providing out-of-the box value. If security analysts need to tune them further, however, the process is simple and requires no knowledge of machine learning.

 

In this blog, we will discuss what is an anomaly rule , what the results generated by the anomaly rules look like , how to customize those anomaly rules, and the typical use cases of anomalies.  

 

A new analytics rule type: Anomaly

A new rule type called “Anomaly” has been added to Azure Sentinel’s Analytics blade. The customizable anomalies feature provides built-in anomaly templates for immediate value. Each anomaly template is backed by an ML model that can process millions of events in your Azure Sentinel workspace. You don’t need to worry about managing the ML run-time environment for anomalies because we take care of everything behind the scenes.

 

In public preview, all built-in anomaly rules are enabled by default in your workspace. Even though all anomaly rules are enabled, only those anomaly rules that have the required data in your workspace will fire anomalies. Once you onboard your data to your Sentinel workspace using data connectors, the anomaly rules monitor your environment and fire anomalies whenever they detect anomalous activities without any extra work on your side. You can disable an anomaly rule and\or delete it in the same way as you do for a Scheduled rule. If you deleted an anomaly rule and decide to enable it again, go to the “Rule templates” tab and create a new anomaly rule. Figure 1 shows the anomaly rules on the “Analytics” blade.

 

tech-blog-F1-anomaly-rules.PNG

 

Figure 1 - Anomaly rules

 

To learn the details of an anomaly rule, select the rule and you will see the following information in the details pane.

  • Description explains how the anomaly model works and the ML model training period. Our data scientists pick the most optimal training period depending on the ML algorithm and the specific scenario. The anomaly model won’t fire any anomalies during the training period. For example, if you enable an anomaly rule on June 1, and the training period is 14 days, no anomalies will be fired until June 15.  
  • Data sources indicate the type of logs that need to be ingested in order to be analyzed.
  • Tactics are the MITRE ATT&CK framework tactics covered by the anomaly.
  • Parameters are the configurable attributes for the anomaly.
  • Threshold is a configurable value that indicates the degree to which an event must be unusual before an anomaly is created.
  • Rule frequency is how often the anomaly model runs.
  • Anomaly version shows the version of the template that is used by a rule. Microsoft continuously improves the anomaly models. The version number will be updated when we release a new version of the anomaly model.
  • Template last updated is the date the anomaly version was changed.

 

View anomalies identified by the anomaly rules

Assuming the required data is available and the ML model training period has passed, anomalies will be stored in the Anomalies table in the Logs blade of your Azure Sentinel workspace. To query all the anomalies in a certain time period, select “Logs” on the left pane, choose a time range, type “Anomalies”, and click the “Run” button, as shown in Figure 2.

 

tech-blog-F2- view-all-anomalies.PNG

 

Figure 2 - View all anomalies in a time range

 

To view the anomalies generated by a specific anomaly rule in a time range, go to “Active rules” tab on the “Analytics” blade, copy the rule name excluding the pre-fix “(Preview)”, then select “Logs” on the left pane, chose a time range, and type

 

Anomalies

| where AnomalyTemplateName contains "<anomaly rule name>"

 

Paste the rule name you copied from the “Active rules” tab in place of <anomaly rule name>, and click the “Run” button, as shown in Figure 3.

 

tech-blog-F3-query-specific-anomalies.PNG

 

 Figure 3 - View anomalies generated by a specific anomaly rule

 

You can expand an anomaly by clicking > to view the detail.  A few important columns are highlighted in Figure 4

 

tech-blog-F4-anomaly-detail.PNG

Figure 4 - Anomaly detail

 

  • RuleStatus – an anomaly rule can run either in Production mode or in Flighting mode. RuleStatus tells you this anomaly is fired by the rule running in Production mode or by the rule running in Flighting mode. We will discuss the running modes in detail in the Customize anomaly rules section.  
  • Extended links – this is the query to retrieve the raw events that triggered the anomaly.
  • UserName – this is the main entity responsible for the anomalous behavior. Depending on the scenario, it can be the user who performed the anomalous activity, the IP address that is either the source or destination of an anomalous activity, the host on which the anomalous activities happened, or another entity type.
  • AnomalyReasons – this tells you why the anomaly fired. We will discuss the anomaly reasons more in the Customize anomaly rules section.
  • Entities – in includes all the entities related to this anomaly.

 

Customize anomaly rules

Azure Sentinel customizable anomalies are specifically designed for security analysts and engineers and do not require any ML skill to tune. You can tweak the individual factors and/or threshold of an anomaly model, cutting down on noise and making sure that anomalies are detecting what’s relevant to your specific organization. To customize an anomaly rule, follow the steps below:

  1. Right click an anomaly rule, then click “Duplicate”, a new anomaly rule is created. The new anomaly rule name is hardcoded with a suffix “_Customized”.
  2. Select the customized rule, click “Edit.”
  3. On the “Configuration” tab, you can change the parameters and threshold. Each anomaly model has configurable parameters based on the ML algorithm and the scenario. Figure 5 shows that you can exclude certain file types from the anomaly rule “Unusual mass downgrade AIP label.” You can also prioritize specific file types. Prioritize means the ML algorithm adds more weight when it scores anomalous activities related to that file type.

 

tech-blog-F5-configure-anomaly.PNG

 Figure 5 - Configure an anomaly rule

 

Click on an “Anomaly ID” in the “Results preview” table, you will get the anomaly details, including why the anomaly is triggered. Figure 6 shows the details of an anomaly for a suspicious high volume of failed login attempts events (event 4625) observed on a device. The anomaly value is 66 failed logins on that device in the last 24 hours, the expected value is zero because there are zero failed logins on that device in the previous 21 days. This anomaly is an indication of a potential brute-force attack. The anomaly reason helps you to understand how an anomaly is generated, so you can decide which parameters to adjust and what new value you want to set to reduce the noise in your environment.

 

tech-blog-F6-anomaly-reasons.PNG

 Figure 6 - Anomaly reasons

 

Once you have set the new value for a parameter or adjusted the threshold, you can compare the results of the customized rule with the results generated by the default rule to evaluate your change. The customized rule runs in Flighting mode by default, while the default rule runs in Production mode by default. Running a rule in Flighting mode when you want to test the rule. The Flighting feature allows you to run both the default rule and the customized rule in parallel on the same data for a time period, so you can evaluate the result of your change before committing to it.  

 

There are two ways to compare the results:

  1. Use the “Results preview” table (refer to Figure 5)

Some changes don’t require the ML model to re-run, but some do. For the changes that don’t require the ML model to re-run, you can click Refresh to see the side-by-side comparison in the table. It shows you the added anomalies, the removed anomalies, and the anomaly score changes as a result of your changes to parameters and/or the threshold compared to the default rule running on the same data in the same time range. For the changes that require the ML model to re-run, you must save the change, and come back later to see the side-by-side comparison after the ML model completes its re-run.

  1. Query the results generated by both rules in “Logs”

You can run a query to get all the anomalies generated by the default rule and the customized rule (refer to Figure 3), compare them in the view, or export them and use your favorite tool to compare the results.

 

You can change the parameters in your customized rule multiple times until you are satisfied with the result. When you decide to replace the default rule with the customized rule, you switch the customized rule to run in Production mode. To switch an anomaly rule from Flighting mode to Production mode, go to the “General” tab, click “Production.” A confirmation message pops up, click “yes” to confirm. Your customized rule will run in Production mode and the default rule will switch to run in Flighting mode automatically. Only one rule of the same anomaly scenario can run in Production mode. You can disable the default rule at this point.

 

tech-blog-F7-switch-running-modes.PNG

 

Figure 7 - Switch the running mode of an anomaly rule

 

Typical anomaly use cases

While anomalies don't necessarily indicate malicious behavior by themselves, they can be used to improve detections, investigations, and threat hunting:

  • Additional signals to improve detection: Security analysts can use anomalies to detect new threats and make existing detections more effective. A single anomaly is not a strong signal of malicious behavior, but when combined with several anomalies that occur at different points on the kill chain, their cumulative effect is much stronger. Security analysts can enhance existing detections as well by making the unusual behavior identified by anomalies a condition for alerts to be fired.
  • Evidence during investigations: Security analysts also can use anomalies during investigations to help confirm a breach, find new paths for investigating it, and assess its potential impact. For example, when investigating an incident that involves a user and an IP address, a security analyst can query the user and the IP address in the "Anomalies" table to find out other anomalous activities performed by that user and that happened on that IP address. These data help security analysts reduce the time spent on investigations.
  • The start of proactive threat hunts: Threat hunters can use anomalies as context to help determine whether their queries have uncovered suspicious behavior. When the behavior is suspicious, the anomalies also point toward potential paths for further hunting. These clues provided by anomalies reduce both the time to detect a threat and its chance to cause harm.

In the next blog, we will do a deep-dive into how anomalies can be used in detections and hunting queries, as well as how to simulate anomalies in your workspace.

 

2 Comments
New Contributor

I can see the anomaly rules in "Templates", but when I try and enable, I get the following error...

 

Failed to save analytics rule '(Preview) Anomalous Azure AD sign-in sessions'. Anomalies are not supported for workspace 'e53541ab-a737-487f-97cc-cbea3899f4e0' or region 'australiaeast' and hence anomaly analytics rules cannot be created.
 
Is this a bug? or are they really not available in Australia?
New Contributor

Will there be an improved UI down the line without needing to go to the logs section?

%3CLINGO-SUB%20id%3D%22lingo-sub-2346338%22%20slang%3D%22en-US%22%3EDemocratize%20Machine%20Learning%20with%20Customizable%20ML%20Anomalies%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2346338%22%20slang%3D%22en-US%22%3E%3CH4%20id%3D%22toc-hId-233298606%22%20id%3D%22toc-hId-233297491%22%20id%3D%22toc-hId-233297491%22%20id%3D%22toc-hId-233297491%22%20id%3D%22toc-hId-233235991%22%3EIntroduction%3C%2FH4%3E%0A%3CP%3ECustomizable%20machine%20learning%20(ML)%20based%20anomalies%20for%20Azure%20Sentinel%20are%20now%20available%20for%20public%20preview.%20Security%20analysts%20can%20use%20anomalies%20to%20reduce%20investigation%20and%20hunting%20time%20as%20well%20as%20improve%20their%20detections.%20Typically%2C%20these%20benefits%20come%20at%20the%20cost%20of%20a%20high%20benign%20positive%20rate%2C%20but%20Azure%20Sentinel%E2%80%99s%20customizable%20anomaly%20models%20are%20tuned%20by%20our%20data%20science%20team%20and%20trained%20with%20the%20data%20in%20your%20Sentinel%20workspace%20to%20minimize%20the%20benign%20positive%20rate%2C%20providing%20out-of-the%20box%20value.%20If%20security%20analysts%20need%20to%20tune%20them%20further%2C%20however%2C%20the%20process%20is%20simple%20and%20requires%20no%20knowledge%20of%20machine%20learning.%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3EIn%20this%20blog%2C%20we%20will%20discuss%20%3CFONT%20color%3D%22%233366FF%22%3Ewhat%20is%20an%20anomaly%20rule%3C%2FFONT%3E%26nbsp%3B%2C%20%3CFONT%20color%3D%22%233366FF%22%3Ewhat%20the%20results%20generated%20by%20the%20anomaly%20rules%20look%20like%3C%2FFONT%3E%26nbsp%3B%2C%20%3CFONT%20color%3D%22%233366FF%22%3Ehow%20to%20customize%20those%20anomaly%20rules%3C%2FFONT%3E%2C%20and%20%3CFONT%20color%3D%22%233366FF%22%3Ethe%20typical%20use%20cases%20of%20anomalies%3C%2FFONT%3E.%20%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId--1574155857%22%20id%3D%22toc-hId--1574156972%22%20id%3D%22toc-hId--1574156972%22%20id%3D%22toc-hId--1574156972%22%20id%3D%22toc-hId--1574218472%22%3E%26nbsp%3B%3C%2FH4%3E%0A%3CH4%20id%3D%22toc-hId-913356976%22%20id%3D%22toc-hId-913355861%22%20id%3D%22toc-hId-913355861%22%20id%3D%22toc-hId-913355861%22%20id%3D%22toc-hId-913294361%22%3EA%20new%20analytics%20rule%20type%3A%20Anomaly%3C%2FH4%3E%0A%3CP%3EA%20new%20rule%20type%20called%20%E2%80%9CAnomaly%E2%80%9D%20has%20been%20added%20to%20Azure%20Sentinel%E2%80%99s%20Analytics%20blade.%20The%20customizable%20anomalies%20feature%20provides%20built-in%20anomaly%20templates%20for%20immediate%20value.%20Each%20anomaly%20template%20is%20backed%20by%20an%20ML%20model%20that%20can%20process%20millions%20of%20events%20in%20your%20Azure%20Sentinel%20workspace.%20You%20don%E2%80%99t%20need%20to%20worry%20about%20managing%20the%20ML%20run-time%20environment%20for%20anomalies%20because%20we%20take%20care%20of%20everything%20behind%20the%20scenes.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20public%20preview%2C%20all%20built-in%20anomaly%20rules%20are%20enabled%20by%20default%20in%20your%20workspace.%20Even%20though%20all%20anomaly%20rules%20are%20enabled%2C%20only%20those%20anomaly%20rules%20that%20have%20the%20required%20data%20in%20your%20workspace%20will%20fire%20anomalies.%20Once%20you%20onboard%20your%20data%20to%20your%20Sentinel%20workspace%20using%20data%20connectors%2C%20the%20anomaly%20rules%20monitor%20your%20environment%20and%20fire%20anomalies%20whenever%20they%20detect%20anomalous%20activities%20without%20any%20extra%20work%20on%20your%20side.%20You%20can%20disable%20an%20anomaly%20rule%20and%5Cor%20delete%20it%20in%20the%20same%20way%20as%20you%20do%20for%20a%20Scheduled%20rule.%20If%20you%20deleted%20an%20anomaly%20rule%20and%20decide%20to%20enable%20it%20again%2C%20go%20to%20the%20%E2%80%9CRule%20templates%E2%80%9D%20tab%20and%20create%20a%20new%20anomaly%20rule.%20Figure%201%20shows%20the%20anomaly%20rules%20on%20the%20%E2%80%9CAnalytics%E2%80%9D%20blade.%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-center%22%20image-alt%3D%22tech-blog-F1-anomaly-rules.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F280068i15AD45B1DC708EA7%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22tech-blog-F1-anomaly-rules.PNG%22%20alt%3D%22tech-blog-F1-anomaly-rules.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CEM%3E%3CSTRONG%3EFigure%201%20-%20Anomaly%20rules%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorSharon%20Xia_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3ETo%20learn%20the%20details%20of%20an%20anomaly%20rule%2C%20select%20the%20rule%20and%20you%20will%20see%20the%20following%20information%20in%20the%20details%20pane.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EDescription%3C%2FSTRONG%3E%26nbsp%3Bexplains%20how%20the%20anomaly%20model%20works%20and%20the%20ML%20model%20training%20period.%20Our%20data%20scientists%20pick%20the%20most%20optimal%20training%20period%20depending%20on%20the%20ML%20algorithm%20and%20the%20specific%20scenario.%20The%20anomaly%20model%20won%E2%80%99t%20fire%20any%20anomalies%20during%20the%20training%20period.%20For%20example%2C%20if%20you%20enable%20an%20anomaly%20rule%20on%20June%201%2C%20and%20the%20training%20period%20is%2014%20days%2C%20no%20anomalies%20will%20be%20fired%20until%20June%2015.%20%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EData%20sources%3C%2FSTRONG%3E%26nbsp%3Bindicate%20the%20type%20of%20logs%20that%20need%20to%20be%20ingested%20in%20order%20to%20be%20analyzed.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ETactics%3C%2FSTRONG%3E%26nbsp%3Bare%20the%20MITRE%20ATT%26amp%3BCK%20framework%20tactics%20covered%20by%20the%20anomaly.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EParameters%3C%2FSTRONG%3E%26nbsp%3Bare%20the%20configurable%20attributes%20for%20the%20anomaly.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EThreshold%3C%2FSTRONG%3E%26nbsp%3Bis%20a%20configurable%20value%20that%20indicates%20the%20degree%20to%20which%20an%20event%20must%20be%20unusual%20before%20an%20anomaly%20is%20created.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ERule%20frequency%3C%2FSTRONG%3E%26nbsp%3Bis%20how%20often%20the%20anomaly%20model%20runs.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EAnomaly%20version%3C%2FSTRONG%3E%26nbsp%3Bshows%20the%20version%20of%20the%20template%20that%20is%20used%20by%20a%20rule.%20Microsoft%20continuously%20improves%20the%20anomaly%20models.%20The%20version%20number%20will%20be%20updated%20when%20we%20release%20a%20new%20version%20of%20the%20anomaly%20model.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ETemplate%20last%20updated%3C%2FSTRONG%3E%26nbsp%3Bis%20the%20date%20the%20anomaly%20version%20was%20changed.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH4%20id%3D%22toc-hId--894097487%22%20id%3D%22toc-hId--894098602%22%20id%3D%22toc-hId--894098602%22%20id%3D%22toc-hId--894098602%22%20id%3D%22toc-hId--894160102%22%3E%26nbsp%3B%3C%2FH4%3E%0A%3CH4%20id%3D%22toc-hId-1593415346%22%20id%3D%22toc-hId-1593414231%22%20id%3D%22toc-hId-1593414231%22%20id%3D%22toc-hId-1593414231%22%20id%3D%22toc-hId-1593352731%22%3EView%20anomalies%20identified%20by%20the%20anomaly%20rules%3C%2FH4%3E%0A%3CP%3EAssuming%20the%20required%20data%20is%20available%20and%20the%20ML%20model%20training%20period%20has%20passed%2C%20anomalies%20will%20be%20stored%20in%20the%26nbsp%3B%3CSTRONG%3EAnomalies%3C%2FSTRONG%3E%26nbsp%3Btable%20in%20the%26nbsp%3B%3CSTRONG%3ELogs%3C%2FSTRONG%3E%26nbsp%3Bblade%20of%20your%20Azure%20Sentinel%20workspace.%20To%20query%20all%20the%20anomalies%20in%20a%20certain%20time%20period%2C%20select%20%E2%80%9CLogs%E2%80%9D%20on%20the%20left%20pane%2C%20choose%20a%20time%20range%2C%20type%20%E2%80%9CAnomalies%E2%80%9D%2C%20and%20click%20the%20%E2%80%9CRun%E2%80%9D%20button%2C%20as%20shown%20in%20Figure%202.%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-center%22%20image-alt%3D%22tech-blog-F2-%20view-all-anomalies.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F280069iF9EDC4606A008122%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22tech-blog-F2-%20view-all-anomalies.PNG%22%20alt%3D%22tech-blog-F2-%20view-all-anomalies.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CEM%3E%3CSTRONG%3EFigure%202%20-%20View%20all%20anomalies%20in%20a%20time%20range%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorSharon%20Xia_1%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3ETo%20view%20the%20anomalies%20generated%20by%20a%20specific%20anomaly%20rule%20in%20a%20time%20range%2C%20go%20to%20%E2%80%9CActive%20rules%E2%80%9D%20tab%20on%20the%20%E2%80%9CAnalytics%E2%80%9D%20blade%2C%20copy%20the%20rule%20name%20excluding%20the%20pre-fix%20%E2%80%9C(Preview)%E2%80%9D%2C%20then%20select%20%E2%80%9CLogs%E2%80%9D%20on%20the%20left%20pane%2C%20chose%20a%20time%20range%2C%20and%20type%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%23808080%22%3EAnomalies%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20color%3D%22%23808080%22%3E%7C%20where%20AnomalyTemplateName%20contains%20%22%3CANOMALY%20rule%3D%22%22%20name%3D%22%22%3E%22%3C%2FANOMALY%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPaste%20the%20rule%20name%20you%20copied%20from%20the%20%E2%80%9CActive%20rules%E2%80%9D%20tab%20in%20place%20of%20%3CANOMALY%20rule%3D%22%22%20name%3D%22%22%3E%2C%20and%20click%20the%20%E2%80%9CRun%E2%80%9D%20button%2C%20as%20shown%20in%20Figure%203.%3C%2FANOMALY%3E%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-center%22%20image-alt%3D%22tech-blog-F3-query-specific-anomalies.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F280070iCADD5DE0C7D1F403%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22tech-blog-F3-query-specific-anomalies.PNG%22%20alt%3D%22tech-blog-F3-query-specific-anomalies.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CEM%3E%3CSTRONG%3E%26nbsp%3B%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%20text-align%3A%20center%3B%22%3EFigure%203%20-%20View%20anomalies%20generated%20by%20a%20specific%20anomaly%20rule%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20expand%20an%20anomaly%20by%20clicking%20%26gt%3B%20to%20view%20the%20detail.%20%26nbsp%3BA%20few%20important%20columns%20are%20highlighted%20in%20Figure%204%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22tech-blog-F4-anomaly-detail.PNG%22%20style%3D%22width%3A%20934px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F280071i0AA8599A10064AD9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22tech-blog-F4-anomaly-detail.PNG%22%20alt%3D%22tech-blog-F4-anomaly-detail.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CEM%3E%3CSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EFigure%204%20-%20Anomaly%20detail%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3ERuleStatus%20%3C%2FSTRONG%3E%E2%80%93%20an%20anomaly%20rule%20can%20run%20either%20in%20Production%20mode%20or%20in%20Flighting%20mode.%20RuleStatus%20tells%20you%20this%20anomaly%20is%20fired%20by%20the%20rule%20running%20in%20Production%20mode%20or%20by%20the%20rule%20running%20in%20Flighting%20mode.%20We%20will%20discuss%20the%20running%20modes%20in%20detail%20in%20the%26nbsp%3BCustomize%20anomaly%20rules%20section.%26nbsp%3B%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EExtended%20links%3C%2FSTRONG%3E%20%E2%80%93%20this%20is%20the%20query%20to%20retrieve%20the%20raw%20events%20that%20triggered%20the%20anomaly.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EUserName%3C%2FSTRONG%3E%20%E2%80%93%20this%20is%20the%20main%20entity%20responsible%20for%20the%20anomalous%20behavior.%20Depending%20on%20the%20scenario%2C%20it%20can%20be%20the%20user%20who%20performed%20the%20anomalous%20activity%2C%20the%20IP%20address%20that%20is%20either%20the%20source%20or%20destination%20of%20an%20anomalous%20activity%2C%20the%20host%20on%20which%20the%20anomalous%20activities%20happened%2C%20or%20another%20entity%20type.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EAnomalyReasons%3C%2FSTRONG%3E%20%E2%80%93%20this%20tells%20you%20why%20the%20anomaly%20fired.%20We%20will%20discuss%20the%20anomaly%20reasons%20more%20in%20the%26nbsp%3BCustomize%20anomaly%20rules%20section.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EEntities%3C%2FSTRONG%3E%20%E2%80%93%20in%20includes%20all%20the%20entities%20related%20to%20this%20anomaly.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH4%20id%3D%22toc-hId--214039117%22%20id%3D%22toc-hId--214040232%22%20id%3D%22toc-hId--214040232%22%20id%3D%22toc-hId--214040232%22%20id%3D%22toc-hId--214101732%22%3E%26nbsp%3B%3C%2FH4%3E%0A%3CH4%20id%3D%22toc-hId--2021493580%22%20id%3D%22toc-hId--2021494695%22%20id%3D%22toc-hId--2021494695%22%20id%3D%22toc-hId--2021494695%22%20id%3D%22toc-hId--2021556195%22%3ECustomize%20anomaly%20rules%3C%2FH4%3E%0A%3CP%3EAzure%20Sentinel%20customizable%20anomalies%20are%20specifically%20designed%20for%20security%20analysts%20and%20engineers%20and%20do%20not%20require%20any%20ML%20skill%20to%20tune.%20You%20can%20tweak%20the%20individual%20factors%20and%2For%20threshold%20of%20an%20anomaly%20model%2C%20cutting%20down%20on%20noise%20and%20making%20sure%20that%20anomalies%20are%20detecting%20what%E2%80%99s%20relevant%20to%20your%20specific%20organization.%20To%20customize%20an%20anomaly%20rule%2C%20follow%20the%20steps%20below%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ERight%20click%20an%20anomaly%20rule%2C%20then%20click%20%E2%80%9CDuplicate%E2%80%9D%2C%20a%20new%20anomaly%20rule%20is%20created.%20The%20new%20anomaly%20rule%20name%20is%20hardcoded%20with%20a%20suffix%20%E2%80%9C_Customized%E2%80%9D.%3C%2FLI%3E%0A%3CLI%3ESelect%20the%20customized%20rule%2C%20click%20%E2%80%9CEdit.%E2%80%9D%3C%2FLI%3E%0A%3CLI%3EOn%20the%20%E2%80%9CConfiguration%E2%80%9D%20tab%2C%20you%20can%20change%20the%20parameters%20and%20threshold.%20Each%20anomaly%20model%20has%20configurable%20parameters%20based%20on%20the%20ML%20algorithm%20and%20the%20scenario.%20Figure%205%20shows%20that%20you%20can%20exclude%20certain%20file%20types%20from%20the%20anomaly%20rule%20%E2%80%9CUnusual%20mass%20downgrade%20AIP%20label.%E2%80%9D%20You%20can%20also%20prioritize%20specific%20file%20types.%20Prioritize%20means%20the%20ML%20algorithm%20adds%20more%20weight%20when%20it%20scores%20anomalous%20activities%20related%20to%20that%20file%20type.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22tech-blog-F5-configure-anomaly.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F280072iA919F983030C12F8%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22tech-blog-F5-configure-anomaly.PNG%22%20alt%3D%22tech-blog-F5-configure-anomaly.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CEM%3E%3CSTRONG%3E%26nbsp%3B%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EFigure%205%20-%20Configure%20an%20anomaly%20rule%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EClick%20on%20an%20%E2%80%9CAnomaly%20ID%E2%80%9D%20in%20the%20%E2%80%9CResults%20preview%E2%80%9D%20table%2C%20you%20will%20get%20the%20anomaly%20details%2C%20including%20why%20the%20anomaly%20is%20triggered.%20Figure%206%20shows%20the%20details%20of%20an%20anomaly%20for%20a%20suspicious%20high%20volume%20of%20failed%20login%20attempts%20events%20(event%204625)%20observed%20on%20a%20device.%20The%20anomaly%20value%20is%2066%20failed%20logins%20on%20that%20device%20in%20the%20last%2024%20hours%2C%20the%20expected%20value%20is%20zero%20because%20there%20are%20zero%20failed%20logins%20on%20that%20device%20in%20the%20previous%2021%20days.%20This%20anomaly%20is%20an%20indication%20of%20a%20potential%20brute-force%20attack.%20The%20anomaly%20reason%20helps%20you%20to%20understand%20how%20an%20anomaly%20is%20generated%2C%20so%20you%20can%20decide%20which%20parameters%20to%20adjust%20and%20what%20new%20value%20you%20want%20to%20set%20to%20reduce%20the%20noise%20in%20your%20environment.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22tech-blog-F6-anomaly-reasons.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F280073i9760E6D889066ABD%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22tech-blog-F6-anomaly-reasons.PNG%22%20alt%3D%22tech-blog-F6-anomaly-reasons.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CEM%3E%3CSTRONG%3E%26nbsp%3B%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EFigure%206%20-%20Anomaly%20reasons%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorSharon%20Xia_5%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%20lia-align-center%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3EOnce%20you%20have%20set%20the%20new%20value%20for%20a%20parameter%20or%20adjusted%20the%20threshold%2C%20you%20can%20compare%20the%20results%20of%20the%20customized%20rule%20with%20the%20results%20generated%20by%20the%20default%20rule%20to%20evaluate%20your%20change.%20The%20customized%20rule%20runs%20in%20%3CSTRONG%3EFlighting%20mode%3C%2FSTRONG%3E%20by%20default%2C%20while%20the%20default%20rule%20runs%20in%20%3CSTRONG%3EProduction%20mode%3C%2FSTRONG%3E%20by%20default.%20Running%20a%20rule%20in%20Flighting%20mode%20when%20you%20want%20to%20test%20the%20rule.%20The%20Flighting%20feature%20allows%20you%20to%20run%20both%20the%20default%20rule%20and%20the%20customized%20rule%20in%20parallel%20on%20the%20same%20data%20for%20a%20time%20period%2C%20so%20you%20can%20evaluate%20the%20result%20of%20your%20change%20before%20committing%20to%20it.%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20two%20ways%20to%20compare%20the%20results%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EUse%20the%20%E2%80%9CResults%20preview%E2%80%9D%20table%20(refer%20to%20Figure%205)%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3ESome%20changes%20don%E2%80%99t%20require%20the%20ML%20model%20to%20re-run%2C%20but%20some%20do.%20For%20the%20changes%20that%20don%E2%80%99t%20require%20the%20ML%20model%20to%20re-run%2C%20you%20can%20click%20Refresh%20to%20see%20the%20side-by-side%20comparison%20in%20the%20table.%20It%20shows%20you%20the%20added%20anomalies%2C%20the%20removed%20anomalies%2C%20and%20the%20anomaly%20score%20changes%20as%20a%20result%20of%20your%20changes%20to%20parameters%20and%2For%20the%20threshold%20compared%20to%20the%20default%20rule%20running%20on%20the%20same%20data%20in%20the%20same%20time%20range.%20For%20the%20changes%20that%20require%20the%20ML%20model%20to%20re-run%2C%20you%20must%20save%20the%20change%2C%20and%20come%20back%20later%20to%20see%20the%20side-by-side%20comparison%20after%20the%20ML%20model%20completes%20its%20re-run.%3C%2FP%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3EQuery%20the%20results%20generated%20by%20both%20rules%20in%20%E2%80%9CLogs%E2%80%9D%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EYou%20can%20run%20a%20query%20to%20get%20all%20the%20anomalies%20generated%20by%20the%20default%20rule%20and%20the%20customized%20rule%20(refer%20to%20Figure%203)%2C%20compare%20them%20in%20the%20view%2C%20or%20export%20them%20and%20use%20your%20favorite%20tool%20to%20compare%20the%20results.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20change%20the%20parameters%20in%20your%20customized%20rule%20multiple%20times%20until%20you%20are%20satisfied%20with%20the%20result.%20When%20you%20decide%20to%20replace%20the%20default%20rule%20with%20the%20customized%20rule%2C%20you%20switch%20the%20customized%20rule%20to%20run%20in%20Production%20mode.%20To%20switch%20an%20anomaly%20rule%20from%20Flighting%20mode%20to%20Production%20mode%2C%20go%20to%20the%20%E2%80%9CGeneral%E2%80%9D%20tab%2C%20click%20%E2%80%9CProduction.%E2%80%9D%20A%20confirmation%20message%20pops%20up%2C%20click%20%E2%80%9Cyes%E2%80%9D%20to%20confirm.%20Your%20customized%20rule%20will%20run%20in%20Production%20mode%20and%20the%20default%20rule%20will%20switch%20to%20run%20in%20Flighting%20mode%20automatically.%20Only%20one%20rule%20of%20the%20same%20anomaly%20scenario%20can%20run%20in%20Production%20mode.%20You%20can%20disable%20the%20default%20rule%20at%20this%20point.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22tech-blog-F7-switch-running-modes.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F280074i9FA1E3BB82A909F8%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22tech-blog-F7-switch-running-modes.PNG%22%20alt%3D%22tech-blog-F7-switch-running-modes.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-align-center%22%3E%3CEM%3E%3CSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EFigure%207%20-%20Switch%20the%20running%20mode%20of%20an%20anomaly%20rule%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId-466019253%22%20id%3D%22toc-hId-466018138%22%20id%3D%22toc-hId-466018138%22%20id%3D%22toc-hId-466018138%22%20id%3D%22toc-hId-465956638%22%3ETypical%20anomaly%20use%20cases%3C%2FH4%3E%0A%3CP%3EWhile%20anomalies%20don't%20necessarily%20indicate%20malicious%20behavior%20by%20themselves%2C%20they%20can%20be%20used%20to%20improve%20detections%2C%20investigations%2C%20and%20threat%20hunting%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EAdditional%20signals%20to%20improve%20detection%3C%2FSTRONG%3E%3A%20Security%20analysts%20can%20use%20anomalies%20to%20detect%20new%20threats%20and%20make%20existing%20detections%20more%20effective.%20A%20single%20anomaly%20is%20not%20a%20strong%20signal%20of%20malicious%20behavior%2C%20but%20when%20combined%20with%20several%20anomalies%20that%20occur%20at%20different%20points%20on%20the%20kill%20chain%2C%20their%20cumulative%20effect%20is%20much%20stronger.%20Security%20analysts%20can%20enhance%20existing%20detections%20as%20well%20by%20making%20the%20unusual%20behavior%20identified%20by%20anomalies%20a%20condition%20for%20alerts%20to%20be%20fired.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EEvidence%20during%20investigations%3C%2FSTRONG%3E%3A%20Security%20analysts%20also%20can%20use%20anomalies%20during%20investigations%20to%20help%20confirm%20a%20breach%2C%20find%20new%20paths%20for%20investigating%20it%2C%20and%20assess%20its%20potential%20impact.%20For%20example%2C%20when%20investigating%20an%20incident%20that%20involves%20a%20user%20and%20an%20IP%20address%2C%20a%20security%20analyst%20can%20query%20the%20user%20and%20the%20IP%20address%20in%20the%20%22Anomalies%22%20table%20to%20find%20out%20other%20anomalous%20activities%20performed%20by%20that%20user%20and%20that%20happened%20on%20that%20IP%20address.%20These%20data%20help%20security%20analysts%20reduce%20the%20time%20spent%20on%20investigations.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EThe%20start%20of%20proactive%20threat%20hunts%3C%2FSTRONG%3E%3A%20Threat%20hunters%20can%20use%20anomalies%20as%20context%20to%20help%20determine%20whether%20their%20queries%20have%20uncovered%20suspicious%20behavior.%20When%20the%20behavior%20is%20suspicious%2C%20the%20anomalies%20also%20point%20toward%20potential%20paths%20for%20further%20hunting.%20These%20clues%20provided%20by%20anomalies%20reduce%20both%20the%20time%20to%20detect%20a%20threat%20and%20its%20chance%20to%20cause%20harm.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EIn%20the%20next%20blog%2C%20we%20will%20do%20a%20deep-dive%20into%20how%20anomalies%20can%20be%20used%20in%20detections%20and%20hunting%20queries%2C%20as%20well%20as%20how%20to%20simulate%20anomalies%20in%20your%20workspace.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2346338%22%20slang%3D%22en-US%22%3E%3CP%3ESecurity%20analyst%20can%20tune%20anomaly%20models%20to%20minimize%20benign%20positive%20rates%20in%20their%20environment%20with%20no%20knowledge%20of%20ML.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2346338%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Sentinel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDetection%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHunting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EInvestigation%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecurity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2389995%22%20slang%3D%22en-US%22%3ERe%3A%20Democratize%20Machine%20Learning%20with%20Customizable%20ML%20Anomalies%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2389995%22%20slang%3D%22en-US%22%3E%3CP%3EI%20can%20see%20the%20anomaly%20rules%20in%20%22Templates%22%2C%20but%20when%20I%20try%20and%20enable%2C%20I%20get%20the%20following%20error...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22fxs-notificationmenu-notification-description%20fxs-portal-title%20msportalfx-tooltip-overflow%22%3E%3CDIV%20class%3D%22fxs-notificationmenu-notification-description%20fxs-portal-title%20msportalfx-tooltip-overflow%22%3EFailed%20to%20save%20analytics%20rule%20'(Preview)%20Anomalous%20Azure%20AD%20sign-in%20sessions'.%20Anomalies%20are%20not%20supported%20for%20workspace%20'e53541ab-a737-487f-97cc-cbea3899f4e0'%20or%20region%20'australiaeast'%20and%20hence%20anomaly%20analytics%20rules%20cannot%20be%20created.%3C%2FDIV%3E%3CDIV%20class%3D%22fxs-portal-title%20fxs-notification-user-time-info%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22fxs-notificationmenu-notification-description%20fxs-portal-title%20msportalfx-tooltip-overflow%22%3EIs%20this%20a%20bug%3F%20or%20are%20they%20really%20not%20available%20in%20Australia%3F%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2390734%22%20slang%3D%22en-US%22%3ERe%3A%20Democratize%20Machine%20Learning%20with%20Customizable%20ML%20Anomalies%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2390734%22%20slang%3D%22en-US%22%3E%3CP%3EWill%20there%20be%20an%20improved%20UI%20down%20the%20line%20without%20needing%20to%20go%20to%20the%20logs%20section%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Version history
Last update:
‎May 11 2021 05:21 PM
Updated by: