Imperva - Request to unexpected destination port
Id | 0ba78922-033c-468c-82de-2974d7b1797d |
Rulename | Imperva - Request to unexpected destination port |
Description | Detects request attempts to unexpected destination ports. |
Severity | High |
Tactics | InitialAccess |
Techniques | T1190 T1133 |
Required data connectors | ImpervaWAFCloudAPI |
Kind | Scheduled |
Query frequency | 10m |
Query period | 10m |
Trigger threshold | 0 |
Trigger operator | gt |
Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/ImpervaCloudWAF/Analytic Rules/ImpervaSuspiciousDstPort.yaml |
Version | 1.0.1 |
Arm template | 0ba78922-033c-468c-82de-2974d7b1797d.json |
let bl_ports = dynamic(['22', '3389']);
ImpervaWAFCloud
| where DvcAction !startswith 'REQ_BLOCKED' or DvcAction !startswith 'REQ_BAD_'
| where DstPortNumber in (bl_ports)
| extend IPCustomEntity = SrcIpAddr
relevantTechniques:
- T1190
- T1133
name: Imperva - Request to unexpected destination port
requiredDataConnectors:
- dataTypes:
- ImpervaWAFCloud
connectorId: ImpervaWAFCloudAPI
entityMappings:
- fieldMappings:
- identifier: Address
columnName: IPCustomEntity
entityType: IP
triggerThreshold: 0
id: 0ba78922-033c-468c-82de-2974d7b1797d
tactics:
- InitialAccess
version: 1.0.1
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/ImpervaCloudWAF/Analytic Rules/ImpervaSuspiciousDstPort.yaml
queryPeriod: 10m
kind: Scheduled
queryFrequency: 10m
severity: High
status: Available
description: |
'Detects request attempts to unexpected destination ports.'
query: |
let bl_ports = dynamic(['22', '3389']);
ImpervaWAFCloud
| where DvcAction !startswith 'REQ_BLOCKED' or DvcAction !startswith 'REQ_BAD_'
| where DstPortNumber in (bl_ports)
| extend IPCustomEntity = SrcIpAddr
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/0ba78922-033c-468c-82de-2974d7b1797d')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/0ba78922-033c-468c-82de-2974d7b1797d')]",
"properties": {
"alertRuleTemplateName": "0ba78922-033c-468c-82de-2974d7b1797d",
"customDetails": null,
"description": "'Detects request attempts to unexpected destination ports.'\n",
"displayName": "Imperva - Request to unexpected destination port",
"enabled": true,
"entityMappings": [
{
"entityType": "IP",
"fieldMappings": [
{
"columnName": "IPCustomEntity",
"identifier": "Address"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/ImpervaCloudWAF/Analytic Rules/ImpervaSuspiciousDstPort.yaml",
"query": "let bl_ports = dynamic(['22', '3389']);\nImpervaWAFCloud\n| where DvcAction !startswith 'REQ_BLOCKED' or DvcAction !startswith 'REQ_BAD_'\n| where DstPortNumber in (bl_ports)\n| extend IPCustomEntity = SrcIpAddr\n",
"queryFrequency": "PT10M",
"queryPeriod": "PT10M",
"severity": "High",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"InitialAccess"
],
"techniques": [
"T1133",
"T1190"
],
"templateVersion": "1.0.1",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}