Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Corelight - Multiple Compressed Files Transferred over HTTP

Back
Id4e55e306-3022-43a1-870a-41c4d5116079
RulenameCorelight - Multiple Compressed Files Transferred over HTTP
DescriptionDetects compressed archives transferre over HTTP.
SeverityMedium
TacticsExfiltration
Required data connectorsCorelight
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Corelight/Analytic Rules/CorelightMultipleCompressedFilesTransferredOverHTTP.yaml
Version1.0.0
Arm template4e55e306-3022-43a1-870a-41c4d5116079.json
Deploy To Azure
let threshold = 25;
Corelight
| where EventType =~ 'http'
| where HttpRequestMethod in~ ('POST', 'PUT')
| where isempty(HttpReferrerOriginal)
| where SrcMimeType in~ ('application/vnd.ms-cab-compressed', 'application/warc', 'application/x-7z-compressed', 'application/x-ace', 'application/x-arc', 'application/x-archive', 'application/x-arj', 'application/x-compress', 'application/x-cpio', 'application/x-dmg', 'application/x-eet', 'application/x-gzip', 'application/x-lha', 'application/x-lrzip', 'application/x-lz4', 'application/x-lzma', 'application/x-lzh', 'application/x-lzip', 'application/x-rar', 'application/x-rpm', 'application/x-stuffit', 'application/x-tar', 'application/x-xz', 'application/x-zoo', 'application/zip')
| summarize count() by UrlOriginal, SrcIpAddr, bin(TimeGenerated, 15m)
| where count_ > threshold
| extend IPCustomEntity = SrcIpAddr
triggerOperator: gt
version: 1.0.0
query: |
  let threshold = 25;
  Corelight
  | where EventType =~ 'http'
  | where HttpRequestMethod in~ ('POST', 'PUT')
  | where isempty(HttpReferrerOriginal)
  | where SrcMimeType in~ ('application/vnd.ms-cab-compressed', 'application/warc', 'application/x-7z-compressed', 'application/x-ace', 'application/x-arc', 'application/x-archive', 'application/x-arj', 'application/x-compress', 'application/x-cpio', 'application/x-dmg', 'application/x-eet', 'application/x-gzip', 'application/x-lha', 'application/x-lrzip', 'application/x-lz4', 'application/x-lzma', 'application/x-lzh', 'application/x-lzip', 'application/x-rar', 'application/x-rpm', 'application/x-stuffit', 'application/x-tar', 'application/x-xz', 'application/x-zoo', 'application/zip')
  | summarize count() by UrlOriginal, SrcIpAddr, bin(TimeGenerated, 15m)
  | where count_ > threshold
  | extend IPCustomEntity = SrcIpAddr  
status: Available
entityMappings:
- entityType: IP
  fieldMappings:
  - columnName: IPCustomEntity
    identifier: Address
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Corelight/Analytic Rules/CorelightMultipleCompressedFilesTransferredOverHTTP.yaml
queryFrequency: 1h
requiredDataConnectors:
- connectorId: Corelight
  dataTypes:
  - Corelight
name: Corelight - Multiple Compressed Files Transferred over HTTP
queryPeriod: 1h
severity: Medium
kind: Scheduled
tactics:
- Exfiltration
id: 4e55e306-3022-43a1-870a-41c4d5116079
description: |
    'Detects compressed archives transferre over HTTP.'
triggerThreshold: 0
{
  "$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/4e55e306-3022-43a1-870a-41c4d5116079')]",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/4e55e306-3022-43a1-870a-41c4d5116079')]",
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
      "kind": "Scheduled",
      "apiVersion": "2022-11-01-preview",
      "properties": {
        "displayName": "Corelight - Multiple Compressed Files Transferred over HTTP",
        "description": "'Detects compressed archives transferre over HTTP.'\n",
        "severity": "Medium",
        "enabled": true,
        "query": "let threshold = 25;\nCorelight\n| where EventType =~ 'http'\n| where HttpRequestMethod in~ ('POST', 'PUT')\n| where isempty(HttpReferrerOriginal)\n| where SrcMimeType in~ ('application/vnd.ms-cab-compressed', 'application/warc', 'application/x-7z-compressed', 'application/x-ace', 'application/x-arc', 'application/x-archive', 'application/x-arj', 'application/x-compress', 'application/x-cpio', 'application/x-dmg', 'application/x-eet', 'application/x-gzip', 'application/x-lha', 'application/x-lrzip', 'application/x-lz4', 'application/x-lzma', 'application/x-lzh', 'application/x-lzip', 'application/x-rar', 'application/x-rpm', 'application/x-stuffit', 'application/x-tar', 'application/x-xz', 'application/x-zoo', 'application/zip')\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"
        ],
        "alertRuleTemplateName": "4e55e306-3022-43a1-870a-41c4d5116079",
        "customDetails": null,
        "entityMappings": [
          {
            "fieldMappings": [
              {
                "columnName": "IPCustomEntity",
                "identifier": "Address"
              }
            ],
            "entityType": "IP"
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Corelight/Analytic Rules/CorelightMultipleCompressedFilesTransferredOverHTTP.yaml",
        "status": "Available",
        "templateVersion": "1.0.0"
      }
    }
  ]
}