let timeframe = 24h;
BitSightGraphData
| where ingestion_time() > ago(timeframe)and toint(RatingDifferance) < 0
| extend percentage = -(toreal(RatingDifferance)/toreal(Rating))*100
| where percentage >= 10
| project RatingDate, Rating, CompanyName, percentage
severity: High
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/BitSight/Analytic Rules/BitSightDropInCompanyRatings.yaml
incidentConfiguration:
createIncident: false
requiredDataConnectors:
- dataTypes:
- BitSightGraphData
connectorId: BitSight
alertDetailsOverride:
alertDescriptionFormat: 'Alert is generated for {{CompanyName}}.\n\nRating Date: {{RatingDate}}\nPercentage Drop: {{percentage}}%'
alertDisplayNameFormat: 'BitSight : Alert for >10% drop in ratings of {{CompanyName}}.'
id: d8844f11-3a36-4b97-9062-1e6d57c00e37
tactics:
- CommandAndControl
queryFrequency: 1d
eventGroupingSettings:
aggregationKind: AlertPerResult
triggerOperator: GreaterThan
customDetails:
CompanyName: CompanyName
CompanyRating: Rating
description: |
'Rule helps to detect when there is a drop of 10% or more in BitSight company ratings.'
triggerThreshold: 0
kind: Scheduled
name: BitSight - drop in company ratings
query: |
let timeframe = 24h;
BitSightGraphData
| where ingestion_time() > ago(timeframe)and toint(RatingDifferance) < 0
| extend percentage = -(toreal(RatingDifferance)/toreal(Rating))*100
| where percentage >= 10
| project RatingDate, Rating, CompanyName, percentage
status: Available
version: 1.0.0
queryPeriod: 24h
{
"$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/d8844f11-3a36-4b97-9062-1e6d57c00e37')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/d8844f11-3a36-4b97-9062-1e6d57c00e37')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01-preview",
"properties": {
"displayName": "BitSight - drop in company ratings",
"description": "'Rule helps to detect when there is a drop of 10% or more in BitSight company ratings.'\n",
"severity": "High",
"enabled": true,
"query": "let timeframe = 24h;\nBitSightGraphData\n| where ingestion_time() > ago(timeframe)and toint(RatingDifferance) < 0\n| extend percentage = -(toreal(RatingDifferance)/toreal(Rating))*100\n| where percentage >= 10\n| project RatingDate, Rating, CompanyName, percentage\n",
"queryFrequency": "P1D",
"queryPeriod": "PT24H",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"CommandAndControl"
],
"alertRuleTemplateName": "d8844f11-3a36-4b97-9062-1e6d57c00e37",
"incidentConfiguration": {
"createIncident": false
},
"eventGroupingSettings": {
"aggregationKind": "AlertPerResult"
},
"alertDetailsOverride": {
"alertDisplayNameFormat": "BitSight : Alert for >10% drop in ratings of {{CompanyName}}.",
"alertDescriptionFormat": "Alert is generated for {{CompanyName}}.\\n\\nRating Date: {{RatingDate}}\\nPercentage Drop: {{percentage}}%"
},
"customDetails": {
"CompanyRating": "Rating",
"CompanyName": "CompanyName"
},
"entityMappings": null,
"status": "Available",
"templateVersion": "1.0.0",
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/BitSight/Analytic Rules/BitSightDropInCompanyRatings.yaml"
}
}
]
}