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

ApexOne - Suspicious commandline arguments

Back
Id4d7199b2-67b8-11ec-90d6-0242ac120003
RulenameApexOne - Suspicious commandline arguments
DescriptionDetects suspicious commandline arguments.
SeverityHigh
TacticsExecution
TechniquesT1059
Required data connectorsCefAma
TrendMicroApexOne
TrendMicroApexOneAma
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Trend Micro Apex One/Analytic Rules/TMApexOneCommandLineSuspiciousRequests.yaml
Version1.0.2
Arm template4d7199b2-67b8-11ec-90d6-0242ac120003.json
Deploy To Azure
TMApexOneEvent
| where EventMessage has "Endpoint Application"
| where Command has_any ("whoami", "dpkg", "useradd", "sudo")
| extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = DstUserName
queryPeriod: 1h
version: 1.0.2
tactics:
- Execution
queryFrequency: 1h
id: 4d7199b2-67b8-11ec-90d6-0242ac120003
triggerOperator: gt
requiredDataConnectors:
- dataTypes:
  - TMApexOneEvent
  connectorId: TrendMicroApexOne
- dataTypes:
  - TMApexOneEvent
  connectorId: TrendMicroApexOneAma
- dataTypes:
  - CommonSecurityLog
  connectorId: CefAma
severity: High
entityMappings:
- entityType: IP
  fieldMappings:
  - columnName: IPCustomEntity
    identifier: Address
- entityType: Account
  fieldMappings:
  - columnName: AccountCustomEntity
    identifier: Name
triggerThreshold: 0
relevantTechniques:
- T1059
query: |
  TMApexOneEvent
  | where EventMessage has "Endpoint Application"
  | where Command has_any ("whoami", "dpkg", "useradd", "sudo")
  | extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = DstUserName  
kind: Scheduled
name: ApexOne - Suspicious commandline arguments
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Trend Micro Apex One/Analytic Rules/TMApexOneCommandLineSuspiciousRequests.yaml
description: |
    'Detects suspicious commandline arguments.'
status: Available
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2024-01-01-preview",
      "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/4d7199b2-67b8-11ec-90d6-0242ac120003')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/4d7199b2-67b8-11ec-90d6-0242ac120003')]",
      "properties": {
        "alertRuleTemplateName": "4d7199b2-67b8-11ec-90d6-0242ac120003",
        "customDetails": null,
        "description": "'Detects suspicious commandline arguments.'\n",
        "displayName": "ApexOne - Suspicious commandline arguments",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "IP",
            "fieldMappings": [
              {
                "columnName": "IPCustomEntity",
                "identifier": "Address"
              }
            ]
          },
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "AccountCustomEntity",
                "identifier": "Name"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Trend Micro Apex One/Analytic Rules/TMApexOneCommandLineSuspiciousRequests.yaml",
        "query": "TMApexOneEvent\n| where EventMessage has \"Endpoint Application\"\n| where Command has_any (\"whoami\", \"dpkg\", \"useradd\", \"sudo\")\n| extend IPCustomEntity = SrcIpAddr, AccountCustomEntity = DstUserName\n",
        "queryFrequency": "PT1H",
        "queryPeriod": "PT1H",
        "severity": "High",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "Execution"
        ],
        "techniques": [
          "T1059"
        ],
        "templateVersion": "1.0.2",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}