How to Export Keytos Shield Audit Logs to Microsoft Sentinel

Learn how to send Keytos Shield identity, certificate, and network audit logs to Microsoft Sentinel and Azure Log Analytics, including the three Entra ID apps that need RBAC roles.

Overview - How to Send Keytos Shield Logs to Microsoft Sentinel

Keytos Shield can stream its audit logs straight into a Log Analytics workspace, so your security team can query, alert on, and retain them in Microsoft Sentinel alongside the rest of your security data.

Prerequisites

  • An active Keytos Shield subscription.
  • A Log Analytics workspace (with or without Microsoft Sentinel) in an Azure subscription in your tenant.
  • Permission to assign Azure roles on the Resource Group that contains the workspace, such as Owner or User Access Administrator.

How to Grant Keytos Shield Access to Your Log Analytics Workspace

Keytos Shield doesn’t send all of its logs as one application. Each type of log comes from the Keytos Entra ID application that produces it, so all three of the following Enterprise Applications need the same roles on your workspace. If you skip one, the logs from that application never reach Sentinel.

Enterprise application Application (client) ID Logs it sends
Keytos Shield 04ba5b42-89b9-441e-b6d6-4d04a4638418
e18252d1-c212-4da2-a659-977161df66e5 (Azure Gov)
Control plane and identity logs
Keytos 68554b48-233f-42b4-9aa7-2eadca4d7727
672a56cc-ebe0-4faa-b7be-401b6d894414 (Azure Gov)
Certificate logs
EZRADIUS 5c0e7b30-d0aa-456a-befb-df8c75e8467b
377a449a-da81-49a0-9490-152a7dcea8e5 (Azure Gov)
Network (RADIUS) logs

If your tenant is in Azure Government, use the (Azure Gov) IDs. In the Azure CLI script below, replace the IDs in $appIds with the three Azure Gov IDs.

To allow Keytos Shield to send logs to your Log Analytics and Azure Sentinel workspace, you need to grant every application in the table above the following roles on the Resource Group containing your Log Analytics workspace:

  1. Monitoring Contributor
  2. Monitoring Metrics Publisher
  3. Log Analytics Contributor

This can be done manually in the Azure Portal or using the Azure CLI.

How to Grant Permissions using the Azure Portal

It’s easy to enable the required permissions using the Azure Portal:

  1. Navigate to the Azure Portal.

  2. Open the Log Analytics Workspace you want to connect to Keytos Shield. If you are using Azure Sentinel, open the Log Analytics workspace connected to your Sentinel instance.

  3. Click on Resource group to open the Resource Group containing your Log Analytics workspace.

    Select Resource Group of Log Analytics Workspace
  4. Click Access control (IAM) in the left menu.

    Select Access Control (IAM) in Resource Group
  5. Click + Add and Add role assignment.

    Select Add Role Assignment in Resource Group
  6. Search for Monitoring Contributor in the list of Azure roles. Select the role and click Next.

    Search for Monitoring Contributor in List of Azure Roles
  7. Click + Select members and search for the first application in the table above (for example, Keytos Shield). Select the application.

    Select the application

  8. Click Review + assign twice to grant the role to the application.

    Click Review + Assign

  9. Repeat steps 1-8 for the Monitoring Metrics Publisher and Log Analytics Contributor roles.

  10. Repeat steps 1-9 for each of the remaining applications in the table above, until every application has all three roles.

How to Grant Permissions using the Azure CLI

The Azure CLI can also be used to enable the required permissions. Follow these steps:

  1. Open a PowerShell window on your device with the Azure CLI installed, or navigate to the Azure Portal and open Azure Cloud Shell in PowerShell mode.

    Open Azure Cloud Shell
  2. Copy the Resource ID of the Resource Group containing your Log Analytics workspace. This can be found by going to the Resource Group in Azure, selecting Properties, and copying the Resource ID.

    Copy Resource Group ID
  3. Replace the Resource ID placeholder below with your own, then run the script. It looks up each application from the table above in your tenant and grants it all three roles:

    $resourceGroupId = "/subscriptions/<YOUR-SUBSCRIPTION-ID>/resourceGroups/<YOUR-RESOURCE-GROUP-NAME>"
    $appIds = @('04ba5b42-89b9-441e-b6d6-4d04a4638418', '68554b48-233f-42b4-9aa7-2eadca4d7727', '5c0e7b30-d0aa-456a-befb-df8c75e8467b')
    $roles = @("Monitoring Contributor", "Monitoring Metrics Publisher", "Log Analytics Contributor")
    
    foreach ($appId in $appIds) {
        $objectId = az ad sp list --filter "appId eq '$appId'" --query "[].id" --output tsv
        foreach ($role in $roles) {
            az role assignment create --scope "$resourceGroupId" --role "$role" --assignee $objectId
        }
    }
    

How to Export Keytos Shield Audit Logs to Microsoft Sentinel

Once all three applications have their roles, turn on log export in Keytos Shield and connect it to your Log Analytics workspace.

How to Enable Log Export in Keytos Shield

  1. Open the Keytos Shield global portal in your browser (US Government Portal) and sign in.

  2. Click Settings in the left menu.

    Keytos Shield RADIUS Authentication dashboard with Settings option highlighted in the left menu
  3. Scroll down to SIEM Settings and enable Send Audit Logs to SIEM.

    Keytos Shield SIEM Settings section with Send Audit Logs to SIEM checkbox highlighted

How to Configure the Microsoft Sentinel Exporter in Keytos Shield

  1. Under SIEM Provider, select Sentinel.

  2. In another tab, navigate to the Azure Portal.

  3. Select the Log Analytics workspace connected to your Sentinel instance (or any Log Analytics workspace you want to use if you are not using Sentinel).

  4. Click on Properties.

    Azure Log Analytics for Sentinel Select Properties
  5. Copy the Resource ID.

    Azure Log Analytics for Sentinel Copy Resource ID
  6. Go back to the Keytos Shield tab and paste the Resource ID into the Workspace Resource ID field.

    SIEM Settings Workspace Resource ID
  7. Back in the Azure tab, note the Location of the Log Analytics workspace.

    Azure Log Analytics for Sentinel Copy Location
  8. In Keytos Shield, select the same location in the Location dropdown.

    SIEM Settings Enter Location
  9. Click the Create Connection button. This will create the necessary connection in your Resource Group to communicate with Log Analytics, and send a test message to ensure proper connection.

  10. Once the test succeeds, make sure to click Save Changes to save your SIEM settings.

  11. Done! Keytos Shield will now send your security logs to your SIEM.

Other Supported SIEM Platforms

Using a different SIEM? See all SIEM platforms supported by Keytos Shield.