OCILogs
| where isnotempty(HttpUserAgentOriginal)
| where strlen(HttpUserAgentOriginal) <= 10
| extend IPCustomEntity = SrcIpAddr
name: OCI - Unexpected user agent
query: |
OCILogs
| where isnotempty(HttpUserAgentOriginal)
| where strlen(HttpUserAgentOriginal) <= 10
| extend IPCustomEntity = SrcIpAddr
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Oracle Cloud Infrastructure/Analytic Rules/OCIUnexpectedUserAgent.yaml
queryFrequency: 1h
triggerThreshold: 0
requiredDataConnectors:
- dataTypes:
- OCILogs
connectorId: OracleCloudInfrastructureLogsConnector
version: 1.0.0
status: Available
queryPeriod: 1h
id: a0b9a7ca-3e6d-4996-ae35-759df1d67a54
triggerOperator: gt
entityMappings:
- fieldMappings:
- identifier: Address
columnName: IPCustomEntity
entityType: IP
relevantTechniques:
- T1190
severity: Medium
description: |
'Detects unexpected user agent strings.'
kind: Scheduled
tactics:
- InitialAccess
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspace": {
"type": "String"
}
},
"resources": [
{
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/a0b9a7ca-3e6d-4996-ae35-759df1d67a54')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/a0b9a7ca-3e6d-4996-ae35-759df1d67a54')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01",
"properties": {
"displayName": "OCI - Unexpected user agent",
"description": "'Detects unexpected user agent strings.'\n",
"severity": "Medium",
"enabled": true,
"query": "OCILogs\n| where isnotempty(HttpUserAgentOriginal)\n| where strlen(HttpUserAgentOriginal) <= 10\n| extend IPCustomEntity = SrcIpAddr\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"InitialAccess"
],
"techniques": [
"T1190"
],
"alertRuleTemplateName": "a0b9a7ca-3e6d-4996-ae35-759df1d67a54",
"customDetails": null,
"entityMappings": [
{
"fieldMappings": [
{
"identifier": "Address",
"columnName": "IPCustomEntity"
}
],
"entityType": "IP"
}
],
"status": "Available",
"templateVersion": "1.0.0",
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Oracle Cloud Infrastructure/Analytic Rules/OCIUnexpectedUserAgent.yaml"
}
}
]
}