CiscoWSAEvent
| where isnotempty(AmpFileName)
| where isempty(AmpThreatName)
| where ResponseBodyMimeType =~ 'application/octet-stream'
| where AmpFileName !endswith '.exe'
| extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = SrcUserName
name: Cisco WSA - Unexpected file type
query: |
CiscoWSAEvent
| where isnotempty(AmpFileName)
| where isempty(AmpThreatName)
| where ResponseBodyMimeType =~ 'application/octet-stream'
| where AmpFileName !endswith '.exe'
| extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = SrcUserName
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CiscoWSA/Analytic Rules/CiscoWSAUnexpectedFileType.yaml
queryFrequency: 1h
triggerThreshold: 0
requiredDataConnectors:
- dataTypes:
- CiscoWSAEvent
connectorId: CiscoWSA
version: 1.0.0
status: Available
queryPeriod: 1h
id: 8e9d1f70-d529-4598-9d3e-5dd5164d1d02
triggerOperator: gt
entityMappings:
- fieldMappings:
- identifier: Address
columnName: IPCustomEntity
entityType: IP
- fieldMappings:
- identifier: Name
columnName: AccountCustomEntity
entityType: Account
relevantTechniques:
- T1189
severity: Medium
description: |
'Detects unexpected file type.'
kind: Scheduled
tactics:
- InitialAccess
{
"$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/8e9d1f70-d529-4598-9d3e-5dd5164d1d02')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/8e9d1f70-d529-4598-9d3e-5dd5164d1d02')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01",
"properties": {
"displayName": "Cisco WSA - Unexpected file type",
"description": "'Detects unexpected file type.'\n",
"severity": "Medium",
"enabled": true,
"query": "CiscoWSAEvent\n| where isnotempty(AmpFileName)\n| where isempty(AmpThreatName)\n| where ResponseBodyMimeType =~ 'application/octet-stream'\n| where AmpFileName !endswith '.exe'\n| extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = SrcUserName\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"InitialAccess"
],
"techniques": [
"T1189"
],
"alertRuleTemplateName": "8e9d1f70-d529-4598-9d3e-5dd5164d1d02",
"customDetails": null,
"entityMappings": [
{
"fieldMappings": [
{
"identifier": "Address",
"columnName": "IPCustomEntity"
}
],
"entityType": "IP"
},
{
"fieldMappings": [
{
"identifier": "Name",
"columnName": "AccountCustomEntity"
}
],
"entityType": "Account"
}
],
"status": "Available",
"templateVersion": "1.0.0",
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CiscoWSA/Analytic Rules/CiscoWSAUnexpectedFileType.yaml"
}
}
]
}