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