OCILogs
| where EventType contains 'vcn.flowlogs'
| where data_action_s =~ 'ACCEPT'
| where ipv4_is_private(DstIpAddr)
| where ipv4_is_private(SrcIpAddr) == False
| where DstPortNumber == 22
| extend IPCustomEntity = DstIpAddr
description: |
'Detects inbound SSH connection.'
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Oracle Cloud Infrastructure/Analytic Rules/OCIInboundSSHConnection.yaml
requiredDataConnectors:
- dataTypes:
- OCILogs
connectorId: OracleCloudInfrastructureLogsConnector
query: |
OCILogs
| where EventType contains 'vcn.flowlogs'
| where data_action_s =~ 'ACCEPT'
| where ipv4_is_private(DstIpAddr)
| where ipv4_is_private(SrcIpAddr) == False
| where DstPortNumber == 22
| extend IPCustomEntity = DstIpAddr
triggerThreshold: 0
name: OCI - Inbound SSH connection
relevantTechniques:
- T1190
entityMappings:
- entityType: IP
fieldMappings:
- columnName: IPCustomEntity
identifier: Address
tactics:
- InitialAccess
queryPeriod: 1h
severity: Medium
status: Available
queryFrequency: 1h
id: eb6e07a1-2895-4c55-9c27-ac84294f0e46
kind: Scheduled
version: 1.0.0
triggerOperator: gt