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
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.0
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
kind: Scheduled
status: Available
triggerThreshold: 0
relevantTechniques:
- T1190
- T1133
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Tomcat/Analytic Rules/TomcatRequestFromLocalhostIP.yaml
requiredDataConnectors:
- dataTypes:
  - TomcatEvent
  connectorId: ApacheTomcat
queryPeriod: 1h
tactics:
- InitialAccess
severity: Medium
triggerOperator: gt
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  
name: Tomcat - Request from localhost IP address
version: 1.0.0
id: a45dd6ea-4874-11ec-81d3-0242ac130003
queryFrequency: 1h
entityMappings:
- entityType: File
  fieldMappings:
  - columnName: FileCustomEntity
    identifier: Name
- entityType: IP
  fieldMappings:
  - columnName: IPCustomEntity
    identifier: Address
{
  "$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/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",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "InitialAccess"
        ],
        "techniques": [
          "T1133",
          "T1190"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}