let threshold = 25;
let fl_size_threshold = 10000000;
corelight_http
| where method in~ ('POST', 'PUT')
| where isempty(referrer)
| where tolong(request_body_len) > fl_size_threshold
| summarize count() by uri, id_orig_h, bin(TimeGenerated, 15m)
| where count_ > threshold
relevantTechniques:
- T1030
name: Corelight - Multiple files sent over HTTP with abnormal requests
requiredDataConnectors:
- dataTypes:
- Corelight_v2_http
- corelight_http
connectorId: Corelight
entityMappings:
- fieldMappings:
- identifier: Address
columnName: id_orig_h
entityType: IP
triggerThreshold: 0
id: 7226d37b-50ee-4e3b-9f80-5b74080d8f2c
tactics:
- Exfiltration
version: 2.1.0
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Corelight/Analytic Rules/CorelightMultipleFilesSentOverHTTPAbnormalRequests.yaml
queryPeriod: 1h
kind: Scheduled
queryFrequency: 1h
severity: Medium
status: Available
description: |
'Detects sources sending multiple compressed files greater than 10MBs sent over HTTP in a short amount of time.'
query: |
let threshold = 25;
let fl_size_threshold = 10000000;
corelight_http
| where method in~ ('POST', 'PUT')
| where isempty(referrer)
| where tolong(request_body_len) > fl_size_threshold
| summarize count() by uri, id_orig_h, bin(TimeGenerated, 15m)
| where count_ > threshold
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/7226d37b-50ee-4e3b-9f80-5b74080d8f2c')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/7226d37b-50ee-4e3b-9f80-5b74080d8f2c')]",
"properties": {
"alertRuleTemplateName": "7226d37b-50ee-4e3b-9f80-5b74080d8f2c",
"customDetails": null,
"description": "'Detects sources sending multiple compressed files greater than 10MBs sent over HTTP in a short amount of time.'\n",
"displayName": "Corelight - Multiple files sent over HTTP with abnormal requests",
"enabled": true,
"entityMappings": [
{
"entityType": "IP",
"fieldMappings": [
{
"columnName": "id_orig_h",
"identifier": "Address"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Corelight/Analytic Rules/CorelightMultipleFilesSentOverHTTPAbnormalRequests.yaml",
"query": "let threshold = 25;\nlet fl_size_threshold = 10000000;\ncorelight_http\n| where method in~ ('POST', 'PUT')\n| where isempty(referrer)\n| where tolong(request_body_len) > fl_size_threshold\n| summarize count() by uri, id_orig_h, bin(TimeGenerated, 15m)\n| where count_ > threshold\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"severity": "Medium",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"Exfiltration"
],
"techniques": [
"T1030"
],
"templateVersion": "2.1.0",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}