Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Ransomware Attack Detected

Back
Id6c8770fb-c854-403e-a64d-0293ba344d5f
RulenameRansomware Attack Detected
DescriptionIdentifies ransomware attacks detected by the Ransomware Protection service running on a Nasuni Edge Appliance.
SeverityHigh
TacticsImpact
TechniquesT1486
Required data connectorsNasuniEdgeAppliance
KindScheduled
Query frequency5m
Query period5m
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Nasuni/Analytic Rules/RansomwareAttackDetected.yaml
Version1.0.1
Arm template6c8770fb-c854-403e-a64d-0293ba344d5f.json
Deploy To Azure
Syslog
| project TimeGenerated, Computer, SyslogMessage
| where SyslogMessage has "The Filer has detected a new ransomware attack"
| extend pattern = substring(SyslogMessage, indexof(SyslogMessage, "(")+1, indexof(SyslogMessage, ")") - indexof(SyslogMessage,"(")-1)
| extend volume_name = substring(SyslogMessage, indexof(SyslogMessage, "volume")+7, indexof(SyslogMessage,". Visit") - (indexof(SyslogMessage, "volume")+7))
| sort by TimeGenerated desc
incidentConfiguration:
  createIncident: true
  groupingConfiguration:
    matchingMethod: AllEntities
    reopenClosedIncident: false
    lookbackDuration: PT5H
    enabled: false
name: Ransomware Attack Detected
status: Available
triggerThreshold: 0
severity: High
tactics:
- Impact
suppressionEnabled: false
customDetails:
  VolumeName: volume_name
entityMappings:
- entityType: Malware
  fieldMappings:
  - columnName: pattern
    identifier: Name
kind: Scheduled
queryFrequency: 5m
version: 1.0.1
triggerOperator: gt
description: Identifies ransomware attacks detected by the Ransomware Protection service running on a Nasuni Edge Appliance.
query: |-
  Syslog
  | project TimeGenerated, Computer, SyslogMessage
  | where SyslogMessage has "The Filer has detected a new ransomware attack"
  | extend pattern = substring(SyslogMessage, indexof(SyslogMessage, "(")+1, indexof(SyslogMessage, ")") - indexof(SyslogMessage,"(")-1)
  | extend volume_name = substring(SyslogMessage, indexof(SyslogMessage, "volume")+7, indexof(SyslogMessage,". Visit") - (indexof(SyslogMessage, "volume")+7))
  | sort by TimeGenerated desc  
suppressionDuration: 5h
relevantTechniques:
- T1486
id: 6c8770fb-c854-403e-a64d-0293ba344d5f
requiredDataConnectors:
- datatypes:
  - Syslog
  connectorId: NasuniEdgeAppliance
queryPeriod: 5m
eventGroupingSettings:
  aggregationKind: AlertPerResult
alertDetailsOverride:
  alertDynamicProperties:
  - value: SyslogMessage
    alertProperty: RemediationSteps
  alertnameFormat: 'Nasuni: Ransomware Attack Detected'
  alertDescriptionFormat: Ransomware attack detected by Nasuni at {{TimeGenerated}}.
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Nasuni/Analytic Rules/RansomwareAttackDetected.yaml
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2023-02-01-preview",
      "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/6c8770fb-c854-403e-a64d-0293ba344d5f')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/6c8770fb-c854-403e-a64d-0293ba344d5f')]",
      "properties": {
        "alertDetailsOverride": {
          "alertDescriptionFormat": "Ransomware attack detected by Nasuni at {{TimeGenerated}}.",
          "alertDynamicProperties": [
            {
              "alertProperty": "RemediationSteps",
              "value": "SyslogMessage"
            }
          ],
          "alertnameFormat": "Nasuni: Ransomware Attack Detected"
        },
        "alertRuleTemplateName": "6c8770fb-c854-403e-a64d-0293ba344d5f",
        "customDetails": {
          "VolumeName": "volume_name"
        },
        "description": "Identifies ransomware attacks detected by the Ransomware Protection service running on a Nasuni Edge Appliance.",
        "displayName": "Ransomware Attack Detected",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Malware",
            "fieldMappings": [
              {
                "columnName": "pattern",
                "identifier": "Name"
              }
            ]
          }
        ],
        "eventGroupingSettings": {
          "aggregationKind": "AlertPerResult"
        },
        "incidentConfiguration": {
          "createIncident": true,
          "groupingConfiguration": {
            "enabled": false,
            "lookbackDuration": "PT5H",
            "matchingMethod": "AllEntities",
            "reopenClosedIncident": false
          }
        },
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Nasuni/Analytic Rules/RansomwareAttackDetected.yaml",
        "query": "Syslog\n| project TimeGenerated, Computer, SyslogMessage\n| where SyslogMessage has \"The Filer has detected a new ransomware attack\"\n| extend pattern = substring(SyslogMessage, indexof(SyslogMessage, \"(\")+1, indexof(SyslogMessage, \")\") - indexof(SyslogMessage,\"(\")-1)\n| extend volume_name = substring(SyslogMessage, indexof(SyslogMessage, \"volume\")+7, indexof(SyslogMessage,\". Visit\") - (indexof(SyslogMessage, \"volume\")+7))\n| sort by TimeGenerated desc",
        "queryFrequency": "PT5M",
        "queryPeriod": "PT5M",
        "severity": "High",
        "status": "Available",
        "suppressionDuration": "PT5H",
        "suppressionEnabled": false,
        "tactics": [
          "Impact"
        ],
        "techniques": [
          "T1486"
        ],
        "templateVersion": "1.0.1",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}