Analytic rule catalog
SlackAudit - Suspicious file downloaded
Back
| Id | 132b98a5-07e9-401a-9b6f-453e52a53979 |
| Rulename | SlackAudit - Suspicious file downloaded. |
| Description | Detects potentialy suspicious downloads. |
| Severity | Medium |
| Tactics | InitialAccess |
| Techniques | T1189 |
| Required data connectors | SlackAuditAPI |
| Kind | Scheduled |
| Query frequency | 1h |
| Query period | 1h |
| Trigger threshold | 0 |
| Trigger operator | gt |
| Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/SlackAudit/Analytic%20Rules/SlackAuditSuspiciousFileDownloaded.yaml |
| Version | 1.0.1 |
| Arm template | 132b98a5-07e9-401a-9b6f-453e52a53979.json |
SlackAudit
| where DvcAction =~ 'file_downloaded'
| extend FileName = tostring(EntityFileName)
| extend fe = split(FileName, '.')
| extend FileExtension = iff(array_length(fe) > 1, tostring(fe[-1]), '')
| where FileName contains '.'
| where FileExtension matches regex @"^[A-Za-z]{1,4}$"
| project EntityFileName = FileName, SrcUserName
| extend AccountCustomEntity = SrcUserName
| extend FileCustomEntity = EntityFileName
version: 1.0.1
customDetails:
UserName: SrcUserName
FileName: EntityFileName
triggerThreshold: 0
queryPeriod: 1h
triggerOperator: gt
id: 132b98a5-07e9-401a-9b6f-453e52a53979
requiredDataConnectors:
- dataTypes:
- SlackAudit_CL
connectorId: SlackAuditAPI
query: |
SlackAudit
| where DvcAction =~ 'file_downloaded'
| extend FileName = tostring(EntityFileName)
| extend fe = split(FileName, '.')
| extend FileExtension = iff(array_length(fe) > 1, tostring(fe[-1]), '')
| where FileName contains '.'
| where FileExtension matches regex @"^[A-Za-z]{1,4}$"
| project EntityFileName = FileName, SrcUserName
| extend AccountCustomEntity = SrcUserName
| extend FileCustomEntity = EntityFileName
entityMappings:
- fieldMappings:
- columnName: AccountCustomEntity
identifier: FullName
entityType: Account
- fieldMappings:
- columnName: FileCustomEntity
identifier: Name
entityType: File
severity: Medium
queryFrequency: 1h
description: |
'Detects potentialy suspicious downloads.'
alertDetailsOverride:
alertDisplayNameFormat: 'Suspicious Slack file downloaded by {{SrcUserName}}: {{EntityFileName}}'
alertDescriptionFormat: A Slack audit file_downloaded event matched the suspicious extension heuristic for {{EntityFileName}} by {{SrcUserName}}.
name: SlackAudit - Suspicious file downloaded.
kind: Scheduled
status: Available
tactics:
- InitialAccess
relevantTechniques:
- T1189
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/SlackAudit/Analytic%20Rules/SlackAuditSuspiciousFileDownloaded.yaml
{
"$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/132b98a5-07e9-401a-9b6f-453e52a53979')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/132b98a5-07e9-401a-9b6f-453e52a53979')]",
"properties": {
"alertDetailsOverride": {
"alertDescriptionFormat": "A Slack audit file_downloaded event matched the suspicious extension heuristic for {{EntityFileName}} by {{SrcUserName}}.",
"alertDisplayNameFormat": "Suspicious Slack file downloaded by {{SrcUserName}}: {{EntityFileName}}"
},
"alertRuleTemplateName": "132b98a5-07e9-401a-9b6f-453e52a53979",
"customDetails": {
"FileName": "EntityFileName",
"UserName": "SrcUserName"
},
"description": "'Detects potentialy suspicious downloads.'\n",
"displayName": "SlackAudit - Suspicious file downloaded.",
"enabled": true,
"entityMappings": [
{
"entityType": "Account",
"fieldMappings": [
{
"columnName": "AccountCustomEntity",
"identifier": "FullName"
}
]
},
{
"entityType": "File",
"fieldMappings": [
{
"columnName": "FileCustomEntity",
"identifier": "Name"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/SlackAudit/Analytic%20Rules/SlackAuditSuspiciousFileDownloaded.yaml",
"query": "SlackAudit\n| where DvcAction =~ 'file_downloaded'\n| extend FileName = tostring(EntityFileName)\n| extend fe = split(FileName, '.')\n| extend FileExtension = iff(array_length(fe) > 1, tostring(fe[-1]), '')\n| where FileName contains '.'\n| where FileExtension matches regex @\"^[A-Za-z]{1,4}$\"\n| project EntityFileName = FileName, SrcUserName\n| extend AccountCustomEntity = SrcUserName\n| extend FileCustomEntity = EntityFileName\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"severity": "Medium",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"InitialAccess"
],
"techniques": [
"T1189"
],
"templateVersion": "1.0.1",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}