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

SlackAudit - Multiple archived files uploaded in short period of time

Back
Id3db0cb83-5fa4-4310-a8a0-d8d66183f0bd
RulenameSlackAudit - Multiple archived files uploaded in short period of time
DescriptionThis query helps to detect when a user uploads multiple archived files in short period of time.
SeverityLow
TacticsExfiltration
TechniquesT1567
Required data connectorsSlackAuditAPI
KindScheduled
Query frequency1d
Query period1d
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/SlackAudit/Analytic Rules/SlackAuditMultipleArchivedFilesUploadedInShortTimePeriod.yaml
Version1.0.0
Arm template3db0cb83-5fa4-4310-a8a0-d8d66183f0bd.json
Deploy To Azure
let threshold = 10;
SlackAudit
| where DvcAction =~ 'file_uploaded'
| extend FE = extract(@'.*\.(.*)$', 1, EntityFileName)
| where FE in~ ('tar', 'bz2', 'gz', 'tgz', 'Z', 'tbz2', 'zst', 'zip', 'zipx', '7z', 'rar', 'sfx')
| summarize count() by SrcUserName, bucket = bin(TimeGenerated, 15m)
| where count_ > threshold
| extend AccountCustomEntity = SrcUserName
kind: Scheduled
relevantTechniques:
- T1567
description: |
    'This query helps to detect when a user uploads multiple archived files in short period of time.'
queryPeriod: 1d
queryFrequency: 1d
tactics:
- Exfiltration
name: SlackAudit - Multiple archived files uploaded in short period of time
requiredDataConnectors:
- connectorId: SlackAuditAPI
  dataTypes:
  - SlackAudit_CL
entityMappings:
- entityType: Account
  fieldMappings:
  - identifier: FullName
    columnName: AccountCustomEntity
triggerThreshold: 0
version: 1.0.0
id: 3db0cb83-5fa4-4310-a8a0-d8d66183f0bd
query: |
  let threshold = 10;
  SlackAudit
  | where DvcAction =~ 'file_uploaded'
  | extend FE = extract(@'.*\.(.*)$', 1, EntityFileName)
  | where FE in~ ('tar', 'bz2', 'gz', 'tgz', 'Z', 'tbz2', 'zst', 'zip', 'zipx', '7z', 'rar', 'sfx')
  | summarize count() by SrcUserName, bucket = bin(TimeGenerated, 15m)
  | where count_ > threshold
  | extend AccountCustomEntity = SrcUserName  
status: Available
triggerOperator: gt
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/SlackAudit/Analytic Rules/SlackAuditMultipleArchivedFilesUploadedInShortTimePeriod.yaml
severity: Low
{
  "$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/3db0cb83-5fa4-4310-a8a0-d8d66183f0bd')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/3db0cb83-5fa4-4310-a8a0-d8d66183f0bd')]",
      "properties": {
        "alertRuleTemplateName": "3db0cb83-5fa4-4310-a8a0-d8d66183f0bd",
        "customDetails": null,
        "description": "'This query helps to detect when a user uploads multiple archived files in short period of time.'\n",
        "displayName": "SlackAudit - Multiple archived files uploaded in short period of time",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "AccountCustomEntity",
                "identifier": "FullName"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/SlackAudit/Analytic Rules/SlackAuditMultipleArchivedFilesUploadedInShortTimePeriod.yaml",
        "query": "let threshold = 10;\nSlackAudit\n| where DvcAction =~ 'file_uploaded'\n| extend FE = extract(@'.*\\.(.*)$', 1, EntityFileName)\n| where FE in~ ('tar', 'bz2', 'gz', 'tgz', 'Z', 'tbz2', 'zst', 'zip', 'zipx', '7z', 'rar', 'sfx')\n| summarize count() by SrcUserName, bucket = bin(TimeGenerated, 15m)\n| where count_ > threshold\n| extend AccountCustomEntity = SrcUserName\n",
        "queryFrequency": "P1D",
        "queryPeriod": "P1D",
        "severity": "Low",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "Exfiltration"
        ],
        "techniques": [
          "T1567"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}