Zero Networks Segment - New API Token created
| Id | 603a6b18-b54a-43b7-bb61-d2b0b47d224a | 
| Rulename | Zero Networks Segment - New API Token created | 
| Description | Detects when a api token has been created. | 
| Severity | Low | 
| Tactics | CredentialAccess | 
| Techniques | T1528 | 
| Required data connectors | ZeroNetworksSegmentAuditFunction ZeroNetworksSegmentAuditNativePoller  | 
| Kind | Scheduled | 
| Query frequency | 5m | 
| Query period | 5m | 
| Trigger threshold | 0 | 
| Trigger operator | gt | 
| Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/ZeroNetworks/Analytic Rules/ZNSegmentNewAPIToken.yaml | 
| Version | 1.0.1 | 
| Arm template | 603a6b18-b54a-43b7-bb61-d2b0b47d224a.json | 
ZNSegmentAudit
| where AuditTypeId == 25
kind: Scheduled
entityMappings:
- entityType: Account
  fieldMappings:
  - columnName: PerformedByName
    identifier: Name
description: |
    'Detects when a api token has been created.'
severity: Low
queryFrequency: 5m
triggerThreshold: 0
relevantTechniques:
- T1528
status: Available
tactics:
- CredentialAccess
name: Zero Networks Segment - New API Token created
id: 603a6b18-b54a-43b7-bb61-d2b0b47d224a
query: |
  ZNSegmentAudit
  | where AuditTypeId == 25  
requiredDataConnectors:
- dataTypes:
  - ZNSegmentAudit_CL
  connectorId: ZeroNetworksSegmentAuditFunction
- dataTypes:
  - ZNSegmentAuditNativePoller_CL
  connectorId: ZeroNetworksSegmentAuditNativePoller
version: 1.0.1
triggerOperator: gt
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/ZeroNetworks/Analytic Rules/ZNSegmentNewAPIToken.yaml
queryPeriod: 5m
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2024-01-01-preview",
      "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/603a6b18-b54a-43b7-bb61-d2b0b47d224a')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/603a6b18-b54a-43b7-bb61-d2b0b47d224a')]",
      "properties": {
        "alertRuleTemplateName": "603a6b18-b54a-43b7-bb61-d2b0b47d224a",
        "customDetails": null,
        "description": "'Detects when a api token has been created.'\n",
        "displayName": "Zero Networks Segment - New API Token created",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "PerformedByName",
                "identifier": "Name"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/ZeroNetworks/Analytic Rules/ZNSegmentNewAPIToken.yaml",
        "query": "ZNSegmentAudit\n| where AuditTypeId == 25\n",
        "queryFrequency": "PT5M",
        "queryPeriod": "PT5M",
        "severity": "Low",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "CredentialAccess"
        ],
        "techniques": [
          "T1528"
        ],
        "templateVersion": "1.0.1",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}