Detection rules › Kusto

OracleDBAudit - Shutdown Server

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

'Detects when "SHUTDOWN" command was sent to server.'

MITRE ATT&CK coverage

TacticTechniques
Impact

Rule body

id: 27cc2cdc-ba67-4906-a6ef-ecbc9c284f4e
name: OracleDBAudit - Shutdown Server
description: |
  'Detects when "SHUTDOWN" command was sent to server.'
severity: Medium
status: Available
requiredDataConnectors:
  - connectorId: SyslogAma
    datatypes:
      - Syslog
queryFrequency: 1h
queryPeriod: 1h
triggerOperator: gt
triggerThreshold: 0
tactics:
  - Impact
relevantTechniques:
  - T1529
query: |
  OracleDatabaseAuditEvent
  | where isnotempty(SrcIpAddr)
  | where DbAction =~ 'SHUTDOWN'
  | project SrcIpAddr, DstUserName
  | extend AccountCustomEntity = DstUserName
  | extend IPCustomEntity = SrcIpAddr
entityMappings:
  - entityType: Account
    fieldMappings:
      - identifier: FullName
        columnName: AccountCustomEntity
  - entityType: IP
    fieldMappings:
      - identifier: Address
        columnName: IPCustomEntity
version: 1.0.2
kind: Scheduled

Stages and Predicates

Stage 1: source

OracleDatabaseAuditEvent

Stage 2: where

| where isnotempty(SrcIpAddr)

Stage 3: where

| where DbAction =~ 'SHUTDOWN'

Stage 4: project

| project SrcIpAddr, DstUserName

Stage 5: extend

| extend AccountCustomEntity = DstUserName

Stage 6: extend

| extend IPCustomEntity = SrcIpAddr

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
DbActioneq
  • SHUTDOWN
field:"DbAction" kind:eq value:"SHUTDOWN"
SrcIpAddris_not_null
  • (no value, null check)
field:"src_ip" kind:is_not_null

Output fields

These fields are emitted when the rule matches.

FieldSource
DstUserNameproject
SrcIpAddrproject
AccountCustomEntityextend
IPCustomEntityextend