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
status: Available
triggerThreshold: 0
relevantTechniques:
- T1567
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/SlackAudit/Analytic Rules/SlackAuditMultipleArchivedFilesUploadedInShortTimePeriod.yaml
requiredDataConnectors:
- dataTypes:
  - SlackAudit_CL
  connectorId: SlackAuditAPI
queryPeriod: 1d
tactics:
- Exfiltration
severity: Low
triggerOperator: gt
description: |
    'This query helps to detect when a user uploads multiple archived files in short period of time.'
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  
name: SlackAudit - Multiple archived files uploaded in short period of time
version: 1.0.0
id: 3db0cb83-5fa4-4310-a8a0-d8d66183f0bd
queryFrequency: 1d
entityMappings:
- entityType: Account
  fieldMappings:
  - columnName: AccountCustomEntity
    identifier: FullName
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2023-02-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",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "Exfiltration"
        ],
        "techniques": [
          "T1567"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}