Contrast Suspicious
Id | f713404e-805c-4e0c-91fa-2c149f76a07d |
Rulename | Contrast Suspicious |
Description | Creates Incidents for Suspicious events sourced from the Contrast Protect agent. |
Severity | Medium |
Tactics | InitialAccess Exfiltration |
Techniques | T1566 |
Required data connectors | CefAma ContrastProtect ContrastProtectAma |
Kind | Scheduled |
Query frequency | 5m |
Query period | 5m |
Trigger threshold | 0 |
Trigger operator | gt |
Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Contrast Protect/Analytic Rules/ContrastSuspicious.yaml |
Version | 1.0.2 |
Arm template | f713404e-805c-4e0c-91fa-2c149f76a07d.json |
let extract_data=(a:string, k:string) {
parse_urlquery(replace(@';', @'&', a))["Query Parameters"][k]
};
CommonSecurityLog
| where DeviceVendor == "Contrast Security"
| where AdditionalExtensions contains "SUSPICIOUS"
| extend DeviceProduct
| extend SourceIP
| extend DeviceVersion
| extend Activity
| extend ApplicationProtocol
| extend RequestURL
| extend RequestMethod
| extend Rule = extract_data(AdditionalExtensions, 'pri')
severity: Medium
id: f713404e-805c-4e0c-91fa-2c149f76a07d
customDetails:
Agent: DeviceProduct
Application: ApplicationProtocol
AgentVersion: DeviceVersion
Attack: Activity
Details: AdditionalExtensions
queryFrequency: 5m
queryPeriod: 5m
relevantTechniques:
- T1566
triggerOperator: gt
status: Available
tactics:
- InitialAccess
- Exfiltration
kind: Scheduled
description: |
'Creates Incidents for Suspicious events sourced from the Contrast Protect agent.'
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Contrast Protect/Analytic Rules/ContrastSuspicious.yaml
requiredDataConnectors:
- dataTypes:
- CommonSecurityLog
connectorId: ContrastProtect
- dataTypes:
- CommonSecurityLog
connectorId: ContrastProtectAma
- dataTypes:
- CommonSecurityLog
connectorId: CefAma
entityMappings:
- entityType: IP
fieldMappings:
- columnName: SourceIP
identifier: Address
- entityType: URL
fieldMappings:
- columnName: RequestURL
identifier: Url
- entityType: CloudApplication
fieldMappings:
- columnName: ApplicationProtocol
identifier: Name
- entityType: Malware
fieldMappings:
- columnName: Activity
identifier: Name
- columnName: Rule
identifier: Category
query: |
let extract_data=(a:string, k:string) {
parse_urlquery(replace(@';', @'&', a))["Query Parameters"][k]
};
CommonSecurityLog
| where DeviceVendor == "Contrast Security"
| where AdditionalExtensions contains "SUSPICIOUS"
| extend DeviceProduct
| extend SourceIP
| extend DeviceVersion
| extend Activity
| extend ApplicationProtocol
| extend RequestURL
| extend RequestMethod
| extend Rule = extract_data(AdditionalExtensions, 'pri')
version: 1.0.2
name: Contrast Suspicious
triggerThreshold: 0
{
"$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/f713404e-805c-4e0c-91fa-2c149f76a07d')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/f713404e-805c-4e0c-91fa-2c149f76a07d')]",
"properties": {
"alertRuleTemplateName": "f713404e-805c-4e0c-91fa-2c149f76a07d",
"customDetails": {
"Agent": "DeviceProduct",
"AgentVersion": "DeviceVersion",
"Application": "ApplicationProtocol",
"Attack": "Activity",
"Details": "AdditionalExtensions"
},
"description": "'Creates Incidents for Suspicious events sourced from the Contrast Protect agent.'\n",
"displayName": "Contrast Suspicious",
"enabled": true,
"entityMappings": [
{
"entityType": "IP",
"fieldMappings": [
{
"columnName": "SourceIP",
"identifier": "Address"
}
]
},
{
"entityType": "URL",
"fieldMappings": [
{
"columnName": "RequestURL",
"identifier": "Url"
}
]
},
{
"entityType": "CloudApplication",
"fieldMappings": [
{
"columnName": "ApplicationProtocol",
"identifier": "Name"
}
]
},
{
"entityType": "Malware",
"fieldMappings": [
{
"columnName": "Activity",
"identifier": "Name"
},
{
"columnName": "Rule",
"identifier": "Category"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Contrast Protect/Analytic Rules/ContrastSuspicious.yaml",
"query": "let extract_data=(a:string, k:string) {\n parse_urlquery(replace(@';', @'&', a))[\"Query Parameters\"][k]\n};\n\nCommonSecurityLog \n| where DeviceVendor == \"Contrast Security\"\n| where AdditionalExtensions contains \"SUSPICIOUS\"\n| extend DeviceProduct\n| extend SourceIP\n| extend DeviceVersion\n| extend Activity\n| extend ApplicationProtocol\n| extend RequestURL\n| extend RequestMethod\n| extend Rule = extract_data(AdditionalExtensions, 'pri')\n",
"queryFrequency": "PT5M",
"queryPeriod": "PT5M",
"severity": "Medium",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"Exfiltration",
"InitialAccess"
],
"techniques": [
"T1566"
],
"templateVersion": "1.0.2",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}