NGINX - Private IP address in URL
Id | 1aa6bfed-f11b-402f-9007-0dccc1152ede |
Rulename | NGINX - Private IP address in URL |
Description | Detects requests to unusual URL |
Severity | Medium |
Tactics | InitialAccess |
Techniques | T1190 T1133 |
Required data connectors | NGINXHTTPServer |
Kind | Scheduled |
Query frequency | 1h |
Query period | 1h |
Trigger threshold | 0 |
Trigger operator | gt |
Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/NGINX HTTP Server/Analytic Rules/NGINXPrivateIPinUrl.yaml |
Version | 1.0.0 |
Arm template | 1aa6bfed-f11b-402f-9007-0dccc1152ede.json |
NGINXHTTPServer
| where UrlOriginal matches regex @'(10\.\d{1,3}\.\d{1,3}\.\d{1,3})|(172\.1[6-9]\.\d{1,3}\.\d{1,3})|(172\.2[0-9]\.\d{1,3}\.\d{1,3})|(172\.3[0-1]\.\d{1,3}\.\d{1,3})|(192\.168\.\d{1,3}\.\d{1,3})'
| extend UrlCustomEntity = UrlOriginal
version: 1.0.0
name: NGINX - Private IP address in URL
severity: Medium
queryFrequency: 1h
kind: Scheduled
queryPeriod: 1h
description: |
'Detects requests to unusual URL'
query: |
NGINXHTTPServer
| where UrlOriginal matches regex @'(10\.\d{1,3}\.\d{1,3}\.\d{1,3})|(172\.1[6-9]\.\d{1,3}\.\d{1,3})|(172\.2[0-9]\.\d{1,3}\.\d{1,3})|(172\.3[0-1]\.\d{1,3}\.\d{1,3})|(192\.168\.\d{1,3}\.\d{1,3})'
| extend UrlCustomEntity = UrlOriginal
tactics:
- InitialAccess
triggerOperator: gt
entityMappings:
- entityType: URL
fieldMappings:
- columnName: UrlCustomEntity
identifier: Url
triggerThreshold: 0
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/NGINX HTTP Server/Analytic Rules/NGINXPrivateIPinUrl.yaml
requiredDataConnectors:
- connectorId: NGINXHTTPServer
dataTypes:
- NGINXHTTPServer
status: Available
relevantTechniques:
- T1190
- T1133
id: 1aa6bfed-f11b-402f-9007-0dccc1152ede
{
"$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/1aa6bfed-f11b-402f-9007-0dccc1152ede')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/1aa6bfed-f11b-402f-9007-0dccc1152ede')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01-preview",
"properties": {
"displayName": "NGINX - Private IP address in URL",
"description": "'Detects requests to unusual URL'\n",
"severity": "Medium",
"enabled": true,
"query": "NGINXHTTPServer\n| where UrlOriginal matches regex @'(10\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})|(172\\.1[6-9]\\.\\d{1,3}\\.\\d{1,3})|(172\\.2[0-9]\\.\\d{1,3}\\.\\d{1,3})|(172\\.3[0-1]\\.\\d{1,3}\\.\\d{1,3})|(192\\.168\\.\\d{1,3}\\.\\d{1,3})'\n| extend UrlCustomEntity = UrlOriginal\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"InitialAccess"
],
"techniques": [
"T1190",
"T1133"
],
"alertRuleTemplateName": "1aa6bfed-f11b-402f-9007-0dccc1152ede",
"customDetails": null,
"entityMappings": [
{
"fieldMappings": [
{
"columnName": "UrlCustomEntity",
"identifier": "Url"
}
],
"entityType": "URL"
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/NGINX HTTP Server/Analytic Rules/NGINXPrivateIPinUrl.yaml",
"templateVersion": "1.0.0",
"status": "Available"
}
}
]
}