Detection rules › Kusto

Corelight - Multiple Compressed Files Transferred over HTTP

Status
available
Severity
medium
Time window
15m
Group by
id_orig_h, uri
Source
github.com/Azure/Azure-Sentinel

'Detects compressed archives transferre over HTTP.'

MITRE ATT&CK coverage

TacticTechniques
Exfiltration

Rule body

id: 4e55e306-3022-43a1-870a-41c4d5116079
name: Corelight - Multiple Compressed Files Transferred over HTTP
description: |
  'Detects compressed archives transferre over HTTP.'
severity: Medium
status: Available
requiredDataConnectors:
  - connectorId: Corelight
    dataTypes:
      - Corelight_v2_http
      - corelight_http
queryFrequency: 1h
queryPeriod: 1h
triggerOperator: gt
triggerThreshold: 0
tactics:
  - Exfiltration
relevantTechniques:
  - T1567
query: |
  let threshold = 25;
  corelight_http
  | where method in~ ('POST', 'PUT')
  | where isempty(referrer)
  | where orig_mime_types has_any ('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 uri, id_orig_h, bin(TimeGenerated, 15m)
  | where count_ > threshold
entityMappings:
  - entityType: IP
    fieldMappings:
      - identifier: Address
        columnName: id_orig_h
version: 2.1.1
kind: Scheduled

Stages and Predicates

Parameters

let threshold = 25;

Stage 1: source

corelight_http

Stage 2: where

| where method in~ ('POST', 'PUT')

Stage 3: where

| where isempty(referrer)

Stage 4: where

| where orig_mime_types has_any ('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')

Stage 5: summarize

| summarize count() by uri, id_orig_h, bin(TimeGenerated, 15m)

Stage 6: where

| where count_ > threshold

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
count_gt
  • 25
field:"count_" kind:gt value:"25"
methodin
  • POST
  • PUT
field:"method" kind:in
orig_mime_typesmatch
  • application/vnd.ms-cab-compressed transforms: term
  • application/warc transforms: term
  • application/x-7z-compressed transforms: term
  • application/x-ace transforms: term
  • application/x-arc transforms: term
  • application/x-archive transforms: term
  • application/x-arj transforms: term
  • application/x-compress transforms: term
  • application/x-cpio transforms: term
  • application/x-dmg transforms: term
  • application/x-eet transforms: term
  • application/x-gzip transforms: term
  • application/x-lha transforms: term
  • application/x-lrzip transforms: term
  • application/x-lz4 transforms: term
  • application/x-lzh transforms: term
  • application/x-lzip transforms: term
  • application/x-lzma transforms: term
  • application/x-rar transforms: term
  • application/x-rpm transforms: term
  • application/x-stuffit transforms: term
  • application/x-tar transforms: term
  • application/x-xz transforms: term
  • application/x-zoo transforms: term
  • application/zip transforms: term
field:"orig_mime_types" kind:match
referreris_null
  • (no value, null check)
field:"referrer" kind:is_null

Output fields

These fields are emitted when the rule matches.

FieldSource
id_orig_hsummarize
urisummarize