BoxEvents
| where SourceFileName hassuffix '.exe' or SourceItemName hassuffix '.exe'
| extend IPCustomEntity = SrcIpAddr
triggerOperator: gt
id: b91ec98d-5747-45c8-b2f6-a07bf47068f0
queryFrequency: 1h
entityMappings:
- entityType: IP
fieldMappings:
- columnName: IPCustomEntity
identifier: Address
requiredDataConnectors:
- dataTypes:
- BoxEvents_CL
connectorId: BoxDataConnector
severity: Medium
triggerThreshold: 0
kind: Scheduled
status: Available
queryPeriod: 1h
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Box/Analytic Rules/BoxBinaryFile.yaml
query: |
BoxEvents
| where SourceFileName hassuffix '.exe' or SourceItemName hassuffix '.exe'
| extend IPCustomEntity = SrcIpAddr
description: |
'Detects executable files in folders.'
name: Box - Executable file in folder
relevantTechniques:
- T1189
tactics:
- InitialAccess
version: 1.0.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/b91ec98d-5747-45c8-b2f6-a07bf47068f0')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/b91ec98d-5747-45c8-b2f6-a07bf47068f0')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01",
"properties": {
"displayName": "Box - Executable file in folder",
"description": "'Detects executable files in folders.'\n",
"severity": "Medium",
"enabled": true,
"query": "BoxEvents\n| where SourceFileName hassuffix '.exe' or SourceItemName hassuffix '.exe'\n| extend IPCustomEntity = SrcIpAddr\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"InitialAccess"
],
"techniques": [
"T1189"
],
"alertRuleTemplateName": "b91ec98d-5747-45c8-b2f6-a07bf47068f0",
"customDetails": null,
"entityMappings": [
{
"fieldMappings": [
{
"identifier": "Address",
"columnName": "IPCustomEntity"
}
],
"entityType": "IP"
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Box/Analytic Rules/BoxBinaryFile.yaml",
"templateVersion": "1.0.0",
"status": "Available"
}
}
]
}