Apache - Command in URI
Id | 54da6a42-3b00-11ec-8d3d-0242ac130003 |
Rulename | Apache - Command in URI |
Description | Detects command in URI |
Severity | High |
Tactics | InitialAccess |
Techniques | T1190 T1133 |
Required data connectors | ApacheHTTPServer CustomLogsAma |
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/ApacheHTTPServer/Analytic Rules/ApacheCommandInURI.yaml |
Version | 1.0.2 |
Arm template | 54da6a42-3b00-11ec-8d3d-0242ac130003.json |
let cmd_list = dynamic(['whoami', 'dpkg', 'useradd', 'sudo', 'cat']);
ApacheHTTPServer
| where UrlOriginal has_any (cmd_list)
| extend UrlCustomEntity = UrlOriginal
relevantTechniques:
- T1190
- T1133
name: Apache - Command in URI
requiredDataConnectors:
- dataTypes:
- ApacheHTTPServer
connectorId: ApacheHTTPServer
- datatypes:
- ApacheHTTPServer_CL
connectorId: CustomLogsAma
entityMappings:
- fieldMappings:
- identifier: Url
columnName: UrlCustomEntity
entityType: URL
triggerThreshold: 0
id: 54da6a42-3b00-11ec-8d3d-0242ac130003
tactics:
- InitialAccess
version: 1.0.2
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/ApacheHTTPServer/Analytic Rules/ApacheCommandInURI.yaml
queryPeriod: 15m
kind: Scheduled
queryFrequency: 15m
severity: High
status: Available
description: |
'Detects command in URI'
query: |
let cmd_list = dynamic(['whoami', 'dpkg', 'useradd', 'sudo', 'cat']);
ApacheHTTPServer
| where UrlOriginal has_any (cmd_list)
| extend UrlCustomEntity = UrlOriginal
triggerOperator: gt
{
"$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/54da6a42-3b00-11ec-8d3d-0242ac130003')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/54da6a42-3b00-11ec-8d3d-0242ac130003')]",
"properties": {
"alertRuleTemplateName": "54da6a42-3b00-11ec-8d3d-0242ac130003",
"customDetails": null,
"description": "'Detects command in URI'\n",
"displayName": "Apache - Command in URI",
"enabled": true,
"entityMappings": [
{
"entityType": "URL",
"fieldMappings": [
{
"columnName": "UrlCustomEntity",
"identifier": "Url"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/ApacheHTTPServer/Analytic Rules/ApacheCommandInURI.yaml",
"query": "let cmd_list = dynamic(['whoami', 'dpkg', 'useradd', 'sudo', 'cat']);\nApacheHTTPServer\n| where UrlOriginal has_any (cmd_list)\n| extend UrlCustomEntity = UrlOriginal\n",
"queryFrequency": "PT15M",
"queryPeriod": "PT15M",
"severity": "High",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"InitialAccess"
],
"techniques": [
"T1133",
"T1190"
],
"templateVersion": "1.0.2",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}