M7: Threat Intelligence
Last updated
Last updated
This module will demonstrate how to use Microsoft Sentinel Threat Intelligence (TI) features and product integration points. During this module we rely on TI data that we ingested in Module 2, so please make sure you have completed that module. In this module we will also discover how to visualize and use this data as part of investigation and detection.
This module assumes that you completed Module 1, and Module 2 which enables the Threat Intelligence TAXII connector.
For detailed prerequisites and instructions for this connector, you can visit official doc on this matter Connect your threat intelligence platform to Microsoft Sentinel.
This connector is currently in public preview and is based on Third-party Threat Intelligence platform (TIP) solutions like PaloAlto MineMeld, ThreatConnect or others.
On the left navigation open the connector page and search Threat Intelligence Platforms (Preview)
On the bottom right pane press Open connector page
Review the connector Prerequisites and notice that to enable this connector, the user needs to be Global Admin or Security Administrator in the current Azure AD tenant
Read the configuration section and notice that as part of this connector onboarding, the user needs to create an Azure AD app registration and grant one of the permissions above
For detailed prerequisites and instructions for this connector, you can visit official doc on this matter Connect Microsoft Sentinel to STIX/TAXII threat intelligence feeds
In Module 2 we already enabled the TAXII connector in our lab environment, please refer to this module for more information.
As we discussed in the previous exercise, we have several ways to ingest TI data into Microsoft Sentinel. You can use one of the many available integrated Threat Intelligence Platform (TIP) products or you can connect to TAXII servers to take advantage of any STIX-compatible threat intelligence feed.
The ingested Indicators of Compromise (IOC) coming from any of these TI feeds, is stored in a dedicated table called ThreatIntelligenceIndicator, and visible on the Threat Intelligence menu on the left navigation menu.
On the left navigation click on Logs, this will redirect you to the Log Analytics query interface. On the query interface we can see on the left side the tables with the relevant fields.
Microsoft Sentinel built-in tables have a predefined schema, to be able to see the ThreatIntelligenceIndicator schema, run the following query:
Let's explore and delve into the TI table. Run the following query which takes 10 records from the table:
To understand if a specific IOC is active, we need to have a closer look at the following columns:
ExpirationDateTime [UTC]
Acitve
On our example, we can see that the IOC is an IP that is active with future Expiration date. This means that our matching detection rules (which we will review in the next exercise) will take this IOC into consideration when correlating with data sources.
After we ingested our TI data into the ThreatIntelligenceIndicator table, our mission is to review how our SOC can leverage and manage the TI menu to allow us to search, tag and manage the lifecycle of IOCs.
On the Microsoft Sentinel left menu press on the Threat intelligence (Preview) This menu is a visual representation of the ThreatIntelligenceIndicator table.
Select one IOC from the main pane and notice that the right pane changed accordingly and present the metadata of the selected IOC.
On the top area of the main blade, we can filter the list of the IOC's based on a specific parameters. In our case, we only ingested one type of IOC (IP), but the Type filter allow us to filter based on different types. If we ingested IOC's from multiple TI data sources, the source filter allows us to slice it.
Part of the SOC analyst's job is to manually add an IOC into the TI index from time to time. This allows other data sources and detections to correlate and detect interaction with this IOC.
On the Threat intelligence (Preview) top menu, click on Add new, this will open the New indicator dialog:
In the drop down, select url and add this url: http://phishing.com.
Add tags that will help us to add metadata on this IOC. In our example, we want to tag this IOC with its associated incident ID. On the add tag pop-up write Incident 4326 and press OK.
On the Thread types select malicious-activity
Add a Description and set the Confidence level to 80, set up the Valid from date to today and the Valid until to two weeks from now.
Press Apply
Notice to the newly created IOC on the TI menu.
Be aware that every new IOC added in the TI menu, will be automatically added to the ThreatIntelligenceIndicator table. You can validate it by opening the Logs menu and run the query below.
As we want to view the description column, we need to modify the column order for the menu by select the column button on the top bar.
Once the Choose columns opened in the right side, select Description and click Apply.
After couple of days we got a new information from our internal TI team that this new IOC is not relevant anymore and we need to delete it.
Select the newly created manual IOC and press delete
One of the main values of the TI data is on Analytics rules. In this exercise we will review the analytics rules types we have in Microsoft Sentinel that correlate with our ingested TI.
From the Microsoft Sentinel portal, click on Analytics and then switch to Rule Templates tab.
Click on the Data Sources filter and select Threat Intelligence Platforms (Preview) and Threat Intelligence - TAXII (Preview). Click OK to apply the filter.
As you can see, there is a long list of resulting alert templates. These all will correlate your different data sources with the IOCs present in your TI table (ThreatIntelligenceIndicator), to detect any trace of malicious indicators of compromise in your organization's logs. You can see more information about these rules here.
As you may know, it is free to enable analytics rules in Microsoft Sentinel, so the best practice is to enable all the ones that apply to data sources that you are ingesting.
From the Microsoft Sentinel portal, click on Analytics and then switch to Rule Templates tab.
Click on the Rule Type filter and select Threat Intelligence. The resulting rule template matches Microsoft-generated threat intelligence data with the logs you have ingested into Microsoft Sentinel. The alerts are very high fidelity and are turned ON by default. Visit this link for more information about this type of rule.
Select the rule template and notice the different data sources that are supported (at the time of writing, these are CEF, Syslog and DNS). Click on Create rule.
In the wizard, click on Review and Create.
Workbooks provide powerful interactive dashboards that give you insights into all aspects of Microsoft Sentinel, and threat intelligence is no exception. In this exercise you will explore a purpose-built workbook to visualize key information about your threat intelligence in Microsoft Sentinel.
Select Workbooks from the Threat management section of the Microsoft Sentinel menu.
Find the workbook titled Threat Intelligence and verify there's a green check mark next to the ThreatIntelligenceIndicator table as shown below.
Select the Save button and choose an Azure location to store the workbook. This step is required if you are going to modify the workbook in any way and save your changes.
Now select the View saved workbook button to open the workbook for viewing and editing.
You will find some pre-built visualizations that show you the indicators imported into Sentinel over time, by type and provider. To modify or add a new chart, select the Edit button at the top of the page to enter editing mode for the workbook.
Let's now add a new chart of threat indicators by threat type. To do this, scroll to the very bottom of the page and select Add Query.
Add the following text to the Log Analytics workspace Log Query text box:
In the Visualization drop-down, select Bar chart.
Select the Done editing button. You’ve created a new chart for your workbook 😀.
You can now continue to Module 8 - Microsoft Sentinel Solutions