Oracle suspicious command execution
Id | e6c5ff42-0f42-4cec-994a-dabb92fe36e1 |
Rulename | Oracle suspicious command execution |
Description | The query searches process creation events that are indicative of an attacker spawning OS commands from an Oracle database. |
Severity | Medium |
Tactics | LateralMovement PrivilegeEscalation |
Techniques | T1210 T1611 |
Required data connectors | MicrosoftThreatProtection |
Kind | Scheduled |
Query frequency | 1h |
Query period | 1h |
Trigger threshold | 0 |
Trigger operator | gt |
Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/FalconFriday/Analytic Rules/OracleSuspiciousCommandExecution.yaml |
Version | 1.0.0 |
Arm template | e6c5ff42-0f42-4cec-994a-dabb92fe36e1.json |
let timeframe= 1h;
DeviceProcessEvents
| where Timestamp >= ago(timeframe)
| where InitiatingProcessFileName =~ "oracle.exe"
| where not(FileName in~ ("conhost.exe", "oradim.exe"))
// Begin allow-list.
// End allow-list.
kind: Scheduled
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/FalconFriday/Analytic Rules/OracleSuspiciousCommandExecution.yaml
severity: Medium
name: Oracle suspicious command execution
entityMappings:
- entityType: Host
fieldMappings:
- columnName: DeviceName
identifier: FullName
- entityType: Account
fieldMappings:
- columnName: AccountSid
identifier: Sid
- columnName: AccountName
identifier: Name
- columnName: AccountDomain
identifier: NTDomain
- entityType: Process
fieldMappings:
- columnName: ProcessCommandLine
identifier: CommandLine
relevantTechniques:
- T1210
- T1611
queryFrequency: 1h
triggerThreshold: 0
queryPeriod: 1h
description: |
The query searches process creation events that are indicative of an attacker spawning OS commands from an Oracle database.
id: e6c5ff42-0f42-4cec-994a-dabb92fe36e1
version: 1.0.0
tactics:
- LateralMovement
- PrivilegeEscalation
query: |
let timeframe= 1h;
DeviceProcessEvents
| where Timestamp >= ago(timeframe)
| where InitiatingProcessFileName =~ "oracle.exe"
| where not(FileName in~ ("conhost.exe", "oradim.exe"))
// Begin allow-list.
// End allow-list.
status: Available
requiredDataConnectors:
- dataTypes:
- DeviceProcessEvents
connectorId: MicrosoftThreatProtection
triggerOperator: gt
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspace": {
"type": "String"
}
},
"resources": [
{
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/e6c5ff42-0f42-4cec-994a-dabb92fe36e1')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/e6c5ff42-0f42-4cec-994a-dabb92fe36e1')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01-preview",
"properties": {
"displayName": "Oracle suspicious command execution",
"description": "The query searches process creation events that are indicative of an attacker spawning OS commands from an Oracle database.\n",
"severity": "Medium",
"enabled": true,
"query": "let timeframe= 1h;\nDeviceProcessEvents\n| where Timestamp >= ago(timeframe)\n| where InitiatingProcessFileName =~ \"oracle.exe\"\n| where not(FileName in~ (\"conhost.exe\", \"oradim.exe\"))\n// Begin allow-list.\n// End allow-list.\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"LateralMovement",
"PrivilegeEscalation"
],
"techniques": [
"T1210",
"T1611"
],
"alertRuleTemplateName": "e6c5ff42-0f42-4cec-994a-dabb92fe36e1",
"customDetails": null,
"entityMappings": [
{
"entityType": "Host",
"fieldMappings": [
{
"identifier": "FullName",
"columnName": "DeviceName"
}
]
},
{
"entityType": "Account",
"fieldMappings": [
{
"identifier": "Sid",
"columnName": "AccountSid"
},
{
"identifier": "Name",
"columnName": "AccountName"
},
{
"identifier": "NTDomain",
"columnName": "AccountDomain"
}
]
},
{
"entityType": "Process",
"fieldMappings": [
{
"identifier": "CommandLine",
"columnName": "ProcessCommandLine"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/FalconFriday/Analytic Rules/OracleSuspiciousCommandExecution.yaml",
"status": "Available",
"templateVersion": "1.0.0"
}
}
]
}