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

Tomcat - Request from localhost IP address

Back
Ida45dd6ea-4874-11ec-81d3-0242ac130003
RulenameTomcat - Request from localhost IP address
DescriptionDetects request from localhost IP address.
SeverityMedium
TacticsInitialAccess
TechniquesT1190
T1133
Required data connectorsApacheTomcat
CustomLogsAma
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Tomcat/Analytic Rules/TomcatRequestFromLocalhostIP.yaml
Version1.0.1
Arm templatea45dd6ea-4874-11ec-81d3-0242ac130003.json
Deploy To Azure
TomcatEvent
| where SrcIpAddr == "127.0.0.1"
| extend File = extract(@'(.*\/)?(.*)', 2, tostring(UrlOriginal))
| extend IPCustomEntity = SrcIpAddr, FileCustomEntity = File
relevantTechniques:
- T1190
- T1133
name: Tomcat - Request from localhost IP address
requiredDataConnectors:
- dataTypes:
  - TomcatEvent
  connectorId: ApacheTomcat
- datatypes:
  - Tomcat_CL
  connectorId: CustomLogsAma
entityMappings:
- fieldMappings:
  - identifier: Name
    columnName: FileCustomEntity
  entityType: File
- fieldMappings:
  - identifier: Address
    columnName: IPCustomEntity
  entityType: IP
triggerThreshold: 0
id: a45dd6ea-4874-11ec-81d3-0242ac130003
tactics:
- InitialAccess
version: 1.0.1
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Tomcat/Analytic Rules/TomcatRequestFromLocalhostIP.yaml
queryPeriod: 1h
kind: Scheduled
queryFrequency: 1h
severity: Medium
status: Available
description: |
    'Detects request from localhost IP address.'
query: |
  TomcatEvent
  | where SrcIpAddr == "127.0.0.1"
  | extend File = extract(@'(.*\/)?(.*)', 2, tostring(UrlOriginal))
  | extend IPCustomEntity = SrcIpAddr, FileCustomEntity = File  
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/a45dd6ea-4874-11ec-81d3-0242ac130003')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/a45dd6ea-4874-11ec-81d3-0242ac130003')]",
      "properties": {
        "alertRuleTemplateName": "a45dd6ea-4874-11ec-81d3-0242ac130003",
        "customDetails": null,
        "description": "'Detects request from localhost IP address.'\n",
        "displayName": "Tomcat - Request from localhost IP address",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "File",
            "fieldMappings": [
              {
                "columnName": "FileCustomEntity",
                "identifier": "Name"
              }
            ]
          },
          {
            "entityType": "IP",
            "fieldMappings": [
              {
                "columnName": "IPCustomEntity",
                "identifier": "Address"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Tomcat/Analytic Rules/TomcatRequestFromLocalhostIP.yaml",
        "query": "TomcatEvent\n| where SrcIpAddr == \"127.0.0.1\"\n| extend File = extract(@'(.*\\/)?(.*)', 2, tostring(UrlOriginal))\n| extend IPCustomEntity = SrcIpAddr, FileCustomEntity = File\n",
        "queryFrequency": "PT1H",
        "queryPeriod": "PT1H",
        "severity": "Medium",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "InitialAccess"
        ],
        "techniques": [
          "T1133",
          "T1190"
        ],
        "templateVersion": "1.0.1",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}