Back
Id28500be7-cfcf-40e1-bad4-bc524e9283e2
RulenameAPI - Invalid host access
Description42Crunch API protection against invalid host access
SeverityLow
TacticsReconnaissance
TechniquesT1592
Required data connectors42CrunchAPIProtection
FortyTwoCrunchAPIProtection
KindScheduled
Query frequency5m
Query period5m
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/42Crunch%20API%20Protection/Analytic%20Rules/APIInvalidHostAccess.yaml
Version3.0.1
Arm template28500be7-cfcf-40e1-bad4-bc524e9283e2.json
Deploy To Azure
FortyTwoCrunchAPIProtection
| where TimeGenerated >= ago(5m) 
| where ErrorMessage has "hostpath_mapping" 
| project-away NonBlockingMode, SourcePort, DestinationPort, Query, ApiId, ResponseHeader, RequestHeader, Errors, EventType, Uuid 
| sort by TimeGenerated desc 
entityMappings:
- entityType: IP
  fieldMappings:
  - columnName: SourceIp
    identifier: Address
- entityType: Host
  fieldMappings:
  - columnName: Hostname
    identifier: HostName
- entityType: Account
  fieldMappings:
  - columnName: InstanceName
    identifier: FullName
eventGroupingSettings:
  aggregationKind: SingleAlert
name: API - Invalid host access
severity: Low
version: 3.0.1
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/42Crunch%20API%20Protection/Analytic%20Rules/APIInvalidHostAccess.yaml
description: |
  '42Crunch API protection against invalid host access'
queryFrequency: 5m
relevantTechniques:
- T1592
kind: Scheduled
triggerOperator: gt
status: Available
tactics:
- Reconnaissance
customDetails: 
triggerThreshold: 0
requiredDataConnectors:
- dataTypes:
  - FortyTwoCrunchAPIProtection
  connectorId: 42CrunchAPIProtection
- dataTypes:
  - FortyTwoCrunchAPIProtection
  connectorId: FortyTwoCrunchAPIProtection
queryPeriod: 5m
query: |
  FortyTwoCrunchAPIProtection
  | where TimeGenerated >= ago(5m) 
  | where ErrorMessage has "hostpath_mapping" 
  | project-away NonBlockingMode, SourcePort, DestinationPort, Query, ApiId, ResponseHeader, RequestHeader, Errors, EventType, Uuid 
  | sort by TimeGenerated desc 
id: 28500be7-cfcf-40e1-bad4-bc524e9283e2
{
  "$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/28500be7-cfcf-40e1-bad4-bc524e9283e2')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/28500be7-cfcf-40e1-bad4-bc524e9283e2')]",
      "properties": {
        "alertRuleTemplateName": "28500be7-cfcf-40e1-bad4-bc524e9283e2",
        "customDetails": null,
        "description": "'42Crunch API protection against invalid host access'\n",
        "displayName": "API - Invalid host access",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "IP",
            "fieldMappings": [
              {
                "columnName": "SourceIp",
                "identifier": "Address"
              }
            ]
          },
          {
            "entityType": "Host",
            "fieldMappings": [
              {
                "columnName": "Hostname",
                "identifier": "HostName"
              }
            ]
          },
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "InstanceName",
                "identifier": "FullName"
              }
            ]
          }
        ],
        "eventGroupingSettings": {
          "aggregationKind": "SingleAlert"
        },
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/42Crunch%20API%20Protection/Analytic%20Rules/APIInvalidHostAccess.yaml",
        "query": "FortyTwoCrunchAPIProtection\n| where TimeGenerated >= ago(5m) \n| where ErrorMessage has \"hostpath_mapping\" \n| project-away NonBlockingMode, SourcePort, DestinationPort, Query, ApiId, ResponseHeader, RequestHeader, Errors, EventType, Uuid \n| sort by TimeGenerated desc \n",
        "queryFrequency": "PT5M",
        "queryPeriod": "PT5M",
        "severity": "Low",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "Reconnaissance"
        ],
        "techniques": [
          "T1592"
        ],
        "templateVersion": "3.0.1",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}