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

Corelight - Forced External Outbound SMB

Back
Id73f23aa2-5cc4-4507-940b-75c9092e9e01
RulenameCorelight - Forced External Outbound SMB
DescriptionDetects SMB requests that originate internally and communicate with an external IP address.
SeverityMedium
TacticsCredentialAccess
TechniquesT1187
Required data connectorsCorelight
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Corelight/Analytic Rules/CorelightForcedExternalOutboundSMB.yaml
Version2.1.0
Arm template73f23aa2-5cc4-4507-940b-75c9092e9e01.json
Deploy To Azure
union corelight_conn, corelight_conn_red
| where local_orig == true
| where local_resp == false
| where history hasprefix 'Sh' and service hasprefix 'smb'
relevantTechniques:
- T1187
name: Corelight - Forced External Outbound SMB
requiredDataConnectors:
- dataTypes:
  - Corelight_v2_conn
  - Corelight_v2_conn_red
  - corelight_conn
  - corelight_conn_red
  connectorId: Corelight
entityMappings:
- fieldMappings:
  - identifier: Address
    columnName: id_orig_h
  entityType: IP
triggerThreshold: 0
id: 73f23aa2-5cc4-4507-940b-75c9092e9e01
tactics:
- CredentialAccess
version: 2.1.0
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Corelight/Analytic Rules/CorelightForcedExternalOutboundSMB.yaml
queryPeriod: 1h
kind: Scheduled
queryFrequency: 1h
severity: Medium
status: Available
description: |
    'Detects SMB requests that originate internally and communicate with an external IP address.'
query: |
  union corelight_conn, corelight_conn_red
  | where local_orig == true
  | where local_resp == false
  | where history hasprefix 'Sh' and service hasprefix 'smb'  
triggerOperator: gt
{
  "$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/73f23aa2-5cc4-4507-940b-75c9092e9e01')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/73f23aa2-5cc4-4507-940b-75c9092e9e01')]",
      "properties": {
        "alertRuleTemplateName": "73f23aa2-5cc4-4507-940b-75c9092e9e01",
        "customDetails": null,
        "description": "'Detects SMB requests that originate internally and communicate with an external IP address.'\n",
        "displayName": "Corelight - Forced External Outbound SMB",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "IP",
            "fieldMappings": [
              {
                "columnName": "id_orig_h",
                "identifier": "Address"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Corelight/Analytic Rules/CorelightForcedExternalOutboundSMB.yaml",
        "query": "union corelight_conn, corelight_conn_red\n| where local_orig == true\n| where local_resp == false\n| where history hasprefix 'Sh' and service hasprefix 'smb'\n",
        "queryFrequency": "PT1H",
        "queryPeriod": "PT1H",
        "severity": "Medium",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "CredentialAccess"
        ],
        "techniques": [
          "T1187"
        ],
        "templateVersion": "2.1.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}