Back
Id6b052c8d-5de8-eab0-1956-69a297765a32
RulenameTailscale: Auth key created
DescriptionIdentifies when a new Tailscale auth key is generated. Auth keys allow unattended device enrollment into the tailnet - confirm it was expected and revoke if not.
SeverityLow
TacticsPersistence
TechniquesT1098
Required data connectorsTailscaleCCF
KindScheduled
Query frequency15m
Query period15m
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Tailscale%20%28CCF%29/Analytic%20Rules/TailscaleAuthkeycreated.yaml
Version1.0.0
Arm template6b052c8d-5de8-eab0-1956-69a297765a32.json
Deploy To Azure
Tailscale_Audit_CL
      | where Action == "CREATE"
      | where tostring(Target.type) == "AUTH_KEY"
      | extend ActorLogin = tostring(Actor.loginName)
      | extend KeyDescription = tostring(New.description)
      | extend Reusable = tostring(New.reusable)
      | extend Ephemeral = tostring(New.ephemeral)
      | project TimeGenerated, ActorLogin, KeyDescription, Reusable, Ephemeral, Origin, New
incidentConfiguration:
  createIncident: true
  groupingConfiguration:
    lookbackDuration: PT5H
    reopenClosedIncident: false
    enabled: true
    matchingMethod: AllEntities
entityMappings:
- entityType: Account
  fieldMappings:
  - columnName: ActorLogin
    identifier: FullName
query: |
  Tailscale_Audit_CL
        | where Action == "CREATE"
        | where tostring(Target.type) == "AUTH_KEY"
        | extend ActorLogin = tostring(Actor.loginName)
        | extend KeyDescription = tostring(New.description)
        | extend Reusable = tostring(New.reusable)
        | extend Ephemeral = tostring(New.ephemeral)
        | project TimeGenerated, ActorLogin, KeyDescription, Reusable, Ephemeral, Origin, New
id: 6b052c8d-5de8-eab0-1956-69a297765a32
queryFrequency: 15m
status: Available
version: 1.0.0
severity: Low
relevantTechniques:
- T1098
name: 'Tailscale: Auth key created'
kind: Scheduled
tactics:
- Persistence
requiredDataConnectors:
- dataTypes:
  - Tailscale_Audit_CL
  connectorId: TailscaleCCF
description: |
  Identifies when a new Tailscale auth key is generated. Auth keys allow unattended device enrollment into the tailnet - confirm it was expected and revoke if not.
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Tailscale%20%28CCF%29/Analytic%20Rules/TailscaleAuthkeycreated.yaml
triggerOperator: gt
triggerThreshold: 0
queryPeriod: 15m
{
  "$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/6b052c8d-5de8-eab0-1956-69a297765a32')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/6b052c8d-5de8-eab0-1956-69a297765a32')]",
      "properties": {
        "alertRuleTemplateName": "6b052c8d-5de8-eab0-1956-69a297765a32",
        "customDetails": null,
        "description": "Identifies when a new Tailscale auth key is generated. Auth keys allow unattended device enrollment into the tailnet - confirm it was expected and revoke if not.\n",
        "displayName": "Tailscale: Auth key created",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "ActorLogin",
                "identifier": "FullName"
              }
            ]
          }
        ],
        "incidentConfiguration": {
          "createIncident": true,
          "groupingConfiguration": {
            "enabled": true,
            "lookbackDuration": "PT5H",
            "matchingMethod": "AllEntities",
            "reopenClosedIncident": false
          }
        },
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Tailscale%20%28CCF%29/Analytic%20Rules/TailscaleAuthkeycreated.yaml",
        "query": "Tailscale_Audit_CL\n      | where Action == \"CREATE\"\n      | where tostring(Target.type) == \"AUTH_KEY\"\n      | extend ActorLogin = tostring(Actor.loginName)\n      | extend KeyDescription = tostring(New.description)\n      | extend Reusable = tostring(New.reusable)\n      | extend Ephemeral = tostring(New.ephemeral)\n      | project TimeGenerated, ActorLogin, KeyDescription, Reusable, Ephemeral, Origin, New\n",
        "queryFrequency": "PT15M",
        "queryPeriod": "PT15M",
        "severity": "Low",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "Persistence"
        ],
        "techniques": [
          "T1098"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}