Analytic rule catalog
Tailscale New API access token or OAuth client created
Back
| Id | 668b43fd-cf28-961a-85af-957850df5027 |
| Rulename | Tailscale: New API access token or OAuth client created |
| Description | Identifies when a new API access token or OAuth client is created in the tailnet. These grant programmatic access - verify the actor and intent. |
| Severity | Medium |
| Tactics | Persistence CredentialAccess |
| Techniques | T1098 T1136 |
| Required data connectors | TailscaleCCF |
| Kind | Scheduled |
| Query frequency | 15m |
| Query period | 15m |
| Trigger threshold | 0 |
| Trigger operator | gt |
| Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Tailscale%20%28CCF%29/Analytic%20Rules/TailscaleNewAPIaccesstokenorOAuthclientcreated.yaml |
| Version | 1.0.0 |
| Arm template | 668b43fd-cf28-961a-85af-957850df5027.json |
Tailscale_Audit_CL
| where Action == "CREATE"
| where tostring(Target.type) in ("API_KEY", "OAUTH_CLIENT")
| extend ActorLogin = tostring(Actor.loginName)
| extend TargetName = tostring(Target.name)
| extend TargetId = tostring(Target.id)
| project TimeGenerated, ActorLogin, Action, TargetName, TargetId, 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) in ("API_KEY", "OAUTH_CLIENT")
| extend ActorLogin = tostring(Actor.loginName)
| extend TargetName = tostring(Target.name)
| extend TargetId = tostring(Target.id)
| project TimeGenerated, ActorLogin, Action, TargetName, TargetId, Origin, New
id: 668b43fd-cf28-961a-85af-957850df5027
queryFrequency: 15m
status: Available
version: 1.0.0
severity: Medium
relevantTechniques:
- T1098
- T1136
name: 'Tailscale: New API access token or OAuth client created'
kind: Scheduled
tactics:
- Persistence
- CredentialAccess
requiredDataConnectors:
- dataTypes:
- Tailscale_Audit_CL
connectorId: TailscaleCCF
description: |
Identifies when a new API access token or OAuth client is created in the tailnet. These grant programmatic access - verify the actor and intent.
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Tailscale%20%28CCF%29/Analytic%20Rules/TailscaleNewAPIaccesstokenorOAuthclientcreated.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/668b43fd-cf28-961a-85af-957850df5027')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/668b43fd-cf28-961a-85af-957850df5027')]",
"properties": {
"alertRuleTemplateName": "668b43fd-cf28-961a-85af-957850df5027",
"customDetails": null,
"description": "Identifies when a new API access token or OAuth client is created in the tailnet. These grant programmatic access - verify the actor and intent.\n",
"displayName": "Tailscale: New API access token or OAuth client 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/TailscaleNewAPIaccesstokenorOAuthclientcreated.yaml",
"query": "Tailscale_Audit_CL\n | where Action == \"CREATE\"\n | where tostring(Target.type) in (\"API_KEY\", \"OAUTH_CLIENT\")\n | extend ActorLogin = tostring(Actor.loginName)\n | extend TargetName = tostring(Target.name)\n | extend TargetId = tostring(Target.id)\n | project TimeGenerated, ActorLogin, Action, TargetName, TargetId, Origin, New\n",
"queryFrequency": "PT15M",
"queryPeriod": "PT15M",
"severity": "Medium",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"CredentialAccess",
"Persistence"
],
"techniques": [
"T1098",
"T1136"
],
"templateVersion": "1.0.0",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}