Identity Audit - How To configure Idira Identity SIEM Integration with Microsoft Sentinel
Objective
In thig guide we will go through the process of the configuration of SIEM integration with Microsoft Sentinel to get data from Idira Audit service
Environment
Identity Other (Technical)
Procedure
Identity Side configuration:
First, we will need to configure few steps in Identity:
1.Go to audit service and create a new SIEM integration
2.Give it a name and click apply:
3.Go to Identity administration and deploy new web app and service user acording the below instructions in sections A,B,C
Azure Side configuration:
create a resource group and workspace in Azur (if you don’t have yet):
1.First you will need to create a resource group and workspace in Azure:
2.Create a resource group
3.Inside your resource group - create a group by searching "Sentinel" and then "create"
4.During the creation you will need now to assosiate the sentinel with a "log Analytic workspace" so if you dont have workspace - create one and finish the deployment of Sentinel
5.Now, after the Sentinel Deployment done - go to settings
6.Go to "PlayBook Permission":
7.Click "configure permission" and add your resource group you have just created
Now that we have resource group configure we can start connect "CyberArk Identity" to inject audit data to sentinel:
1.In Azure marketplace search for "CyberArk" and Select "CyberArk Audit for Microsoft sentinel"
2.To Deploy the integration, click "Create"
3.Select the subscription, Resource group and the Workspaces:
4.Click Review and create:
5.Wait few second to the process to end
6.Now we will navigate to Microsoft Sentinel to configure the integration
7.In Azure go "Home"
8.Find “Microsoft Sentinel and open it :"
9.Open Data Connectors:
10.Select the newly installed CyberArk Audit Connector.
11.Click "Open Connector page"
12.Click “Deploy to Azure”
-
- Configure the connector deployment with the following parameters:
- First, Give your "FunctionName" (any name you want)
13.Complete all the other details acording to the following table explanation:
14.After you finish to configure the parameters for Sentinel integration click "Review and Create" and wait for the deployment to complete:
15.Navigate to "Data collection rules" and select the rule (the rule name will be generated and combined with the function name you gave before when you create the deployment - in this example it was "auditdemo" )
16.Now we are going to provide to the Azure function a permission to publish events to the Data collection rule:
17.Go to "Access Control (IAM)"
18.Click "Add role Assignment"
19.Select "Monitor Metric Publisher"
20.Click next and now select "Managed Identity" and select the Azure function we have just created
21.Click "select" and then "Review and assign"
22.It may take up to 30 minutes for this setting to take effect.
Testing:
1.We will now run a query to test the integration. The query will be sent in “Kusto Query Language (KQL). This is a very easy Microsoft powerful tool for exploring your data (to see the tutorial for this language and learn some common commands see here ):
2.In Azure, go to Microsoft Sentinel
3.Press "Logs"
4.Create the following query:
CyberArk_AuditEvents_CL
summarize ActionCount = count() by username
5.This query will show the actions done by users. If data shows up it means that the integration works.
6.Note that in the left pane of Azure sentinel you have all the build in queries you can use:
Appendix A – Explanation for the 3 main filters we can send in KQL queries
In the KQL query which you send from Sentinel, among many parameters you can send, there are 3 main filters which you can use to narrow down your result and get only relevant data. These filters are optional, and we can used them (if we want…) in the query:
The filters are:
- FilterModel.auditType
This filter can be sent with one of the following values:
- System Error
- Failure
- Info
- FilterModel applicationCode
This filter will determine which service data we want to get from CyberArk Audit service (Pcloud, SCA , SIA etc..)
- FilterModel actionType
This filter will determine the spesific action type done – for example when a user add owner to a safe in Privilege Cloud, this action type will be “Edit”
Appendix B – Audit codes for Privilege Cloud:
You can see in the following documentation link to see all the audit codes we can get from Audit service for Privilege Cloud activities
Appendix C – Example for KQL query to get audit data from Privilege cloud:
1.The following example will trigger event in Microsoft Sentinel when a spesific account (“BreakGlass”) has been used in Privileged Cloud
CyberArk_AuditEvente_CL
| where applicationCode == "PAM"
| where auditType == "Info"
| where actionType == "Password"
| where target contains "BreakGlass"
| where Event == "Use Password"
| where auditCode == "PAM00308"
| sort by TimeGenerated desc
2.The following example will trigger event in Microsoft Sentinel when a safe added in Privileged Cloud
CyberArk_AuditEvente_CL
| where applicationCode == "PAM"
| where auditType == "Info"
| where actionType == "Execute"
| where Event == "Add Safe"
| where auditCode == "PAM00185"
| sort by TimeGenerated desc
Appendix D – Useful Links:
1.YouTube video
2.SIEM integration API documentation
3.CyberArk Audit Documentation
4.PCLOUD SIEM codes