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

OracleDBAudit - Connection to database from unknown IP

Back
Id80b1dd6d-1aea-471e-be7a-a4a0afdeec80
RulenameOracleDBAudit - Connection to database from unknown IP
DescriptionDetects when user connects to a database from IP address which is not present in AllowList.
SeverityMedium
TacticsInitialAccess
TechniquesT1078
Required data connectorsSyslogAma
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/OracleDatabaseAudit/Analytic Rules/OracleDBAuditForbiddenSrcIpAddr.yaml
Version1.0.2
Arm template80b1dd6d-1aea-471e-be7a-a4a0afdeec80.json
Deploy To Azure
let ip_allowlist = dynamic(['127.0.0.2']);
OracleDatabaseAuditEvent
| where isnotempty(SrcIpAddr)
| where DbAction =~ 'CONNECT'
| where SrcIpAddr !in (ip_allowlist)
| project SrcIpAddr, DstUserName
| extend AccountCustomEntity = DstUserName
| extend IPCustomEntity = SrcIpAddr
requiredDataConnectors:
- connectorId: SyslogAma
  datatypes:
  - Syslog
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/OracleDatabaseAudit/Analytic Rules/OracleDBAuditForbiddenSrcIpAddr.yaml
triggerThreshold: 0
status: Available
relevantTechniques:
- T1078
queryPeriod: 1h
name: OracleDBAudit - Connection to database from unknown IP
entityMappings:
- entityType: Account
  fieldMappings:
  - columnName: AccountCustomEntity
    identifier: FullName
- entityType: IP
  fieldMappings:
  - columnName: IPCustomEntity
    identifier: Address
queryFrequency: 1h
triggerOperator: gt
kind: Scheduled
description: |
    'Detects when user connects to a database from IP address which is not present in AllowList.'
tactics:
- InitialAccess
severity: Medium
version: 1.0.2
query: |
  let ip_allowlist = dynamic(['127.0.0.2']);
  OracleDatabaseAuditEvent
  | where isnotempty(SrcIpAddr)
  | where DbAction =~ 'CONNECT'
  | where SrcIpAddr !in (ip_allowlist)
  | project SrcIpAddr, DstUserName
  | extend AccountCustomEntity = DstUserName
  | extend IPCustomEntity = SrcIpAddr  
id: 80b1dd6d-1aea-471e-be7a-a4a0afdeec80