let threshold = 25;
Corelight
| where EventType =~ 'conn'
| where ZeekConnLocalSrc == 'True'
| where ZeekConnLocalDst == 'True'
| where NetworkConnectionState in~ ('S0', 'REJ')
| where NetworkConnectionHistory !contains 'D'
| summarize count() by SrcIpAddr, DstPort, bin(TimeGenerated, 1m)
| where count_ > threshold
| extend IPCustomEntity = SrcIpAddr
name: Corelight - Network Service Scanning Multiple IP Addresses
query: |
let threshold = 25;
Corelight
| where EventType =~ 'conn'
| where ZeekConnLocalSrc == 'True'
| where ZeekConnLocalDst == 'True'
| where NetworkConnectionState in~ ('S0', 'REJ')
| where NetworkConnectionHistory !contains 'D'
| summarize count() by SrcIpAddr, DstPort, bin(TimeGenerated, 1m)
| where count_ > threshold
| extend IPCustomEntity = SrcIpAddr
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Corelight/Analytic Rules/CorelightNetworkServiceScanning.yaml
queryFrequency: 1h
triggerThreshold: 0
requiredDataConnectors:
- dataTypes:
- Corelight
connectorId: Corelight
version: 1.0.0
status: Available
queryPeriod: 1h
id: 599570d4-06f8-4939-8e29-95cd003f1abd
triggerOperator: gt
entityMappings:
- fieldMappings:
- identifier: Address
columnName: IPCustomEntity
entityType: IP
relevantTechniques:
- T1566
severity: Medium
description: |
'Identify scanning of services that may be available on the internal network.'
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/599570d4-06f8-4939-8e29-95cd003f1abd')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/599570d4-06f8-4939-8e29-95cd003f1abd')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01",
"properties": {
"displayName": "Corelight - Network Service Scanning Multiple IP Addresses",
"description": "'Identify scanning of services that may be available on the internal network.'\n",
"severity": "Medium",
"enabled": true,
"query": "let threshold = 25;\nCorelight\n| where EventType =~ 'conn'\n| where ZeekConnLocalSrc == 'True'\n| where ZeekConnLocalDst == 'True'\n| where NetworkConnectionState in~ ('S0', 'REJ')\n| where NetworkConnectionHistory !contains 'D'\n| summarize count() by SrcIpAddr, DstPort, bin(TimeGenerated, 1m)\n| where count_ > threshold\n| extend IPCustomEntity = SrcIpAddr\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"InitialAccess"
],
"techniques": [
"T1566"
],
"alertRuleTemplateName": "599570d4-06f8-4939-8e29-95cd003f1abd",
"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/Corelight/Analytic Rules/CorelightNetworkServiceScanning.yaml"
}
}
]
}