Detection rules › Kusto

OCI - Insecure metadata endpoint

Status
available
Severity
high
Time window
1h
Source
github.com/Azure/Azure-Sentinel

'Detects insecure metadata endpoint.'

MITRE ATT&CK coverage

TacticTechniques
Discovery

Rule body

id: 9c4b1b9c-6462-41ce-8f2e-ce8c104331fc
name: OCI - Insecure metadata endpoint
description: |
  'Detects insecure metadata endpoint.'
severity: High
status: Available
requiredDataConnectors:
  - connectorId: OracleCloudInfrastructureLogsConnector
    dataTypes:
      - OCILogs
  - connectorId: OracleCloudInfraConnector
    dataTypes:
      - OCI_LogsV2_CL
queryFrequency: 1h
queryPeriod: 1h
triggerOperator: gt
triggerThreshold: 0
tactics:
  - Discovery
relevantTechniques:
  - T1069
query: |
  OCILogs
  | where data_request_headers_oci_original_url_s contains '/opc/v1' or data_request_headers_oci_original_url_s contains '/openstack'
  | where HttpStatusCode == 200
  | extend IPCustomEntity = DstIpAddr
entityMappings:
  - entityType: IP
    fieldMappings:
      - identifier: Address
        columnName: IPCustomEntity
version: 1.0.2
kind: Scheduled

Stages and Predicates

Stage 1: source

OCILogs

Stage 2: where

| where data_request_headers_oci_original_url_s contains '/opc/v1' or data_request_headers_oci_original_url_s contains '/openstack'

Stage 3: where

| where HttpStatusCode == 200

Stage 4: extend

| extend IPCustomEntity = DstIpAddr

Indicators

These rows show field, operator, and value matches.

Output fields

These fields are emitted when the rule matches.

FieldSource
IPCustomEntityextend