Detection rules › Kusto

McAfee ePO - Logging error occurred

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

'Detects when logging errors on agent.'

MITRE ATT&CK coverage

Rule body kusto

id: 0c9243d6-d2ec-48e1-8593-e713859c8f3c
name: McAfee ePO - Logging error occurred
description: |
  'Detects when logging errors on agent.'
severity: Medium
requiredDataConnectors:
  - connectorId: SyslogAma
    datatypes:
      - Syslog
queryFrequency: 1h
queryPeriod: 1h
triggerOperator: gt
triggerThreshold: 0
status: Available
tactics:
  - DefenseEvasion
relevantTechniques:
  - T1562
  - T1070
query: |
  McAfeeEPOEvent
  | where EventId in ('1040', '1076', '3032', '3033', '3034', '3036', '3038')
  | extend EventMessage = case(EventId == '1040', 'Activity Log error',
                                EventId == '1076', 'Error logging information',
                                EventId == '3032', 'Error while trying to open/create activity log file',
                                EventId == '3033', 'Activity log file maximum size reached',
                                EventId == '3034', 'Unable to write the activity log file',
                                EventId == '3036', 'Error during initialization of the activity log file',
                                'Error writing to log')
  | project DvcIpAddr, EventId, EventMessage
  | extend IPCustomEntity = DvcIpAddr
entityMappings:
  - entityType: IP
    fieldMappings:
      - identifier: Address
        columnName: IPCustomEntity
version: 1.0.2
kind: Scheduled

Stages and Predicates

Stage 1: source

McAfeeEPOEvent

Stage 2: where

| where EventId in ('1040', '1076', '3032', '3033', '3034', '3036', '3038')

Stage 3: extend

| extend EventMessage = case(EventId == '1040', 'Activity Log error',
                              EventId == '1076', 'Error logging information',
                              EventId == '3032', 'Error while trying to open/create activity log file',
                              EventId == '3033', 'Activity log file maximum size reached',
                              EventId == '3034', 'Unable to write the activity log file',
                              EventId == '3036', 'Error during initialization of the activity log file',
                              'Error writing to log')
EventMessage =
ifEventId == 1040'Activity Log error'
elifEventId == 1076'Error logging information'
elifEventId == 3032'Error while trying to open/create activity log file'
elifEventId == 3033'Activity log file maximum size reached'
elifEventId == 3034'Unable to write the activity log file'
elifEventId == 3036'Error during initialization of the activity log file'
else'Error writing to log'

Stage 4: project

| project DvcIpAddr, EventId, EventMessage

Stage 5: extend

| extend IPCustomEntity = DvcIpAddr

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
EventIdin
  • 1040 transforms: cased
  • 1076 transforms: cased
  • 3032 transforms: cased
  • 3033 transforms: cased
  • 3034 transforms: cased
  • 3036 transforms: cased
  • 3038 transforms: cased

Output fields

Fields the rule emits when it matches. Chronicle authors list these in the outcome block; they appear on the detection and $risk_score drives alerting. Sentinel / Defender XDR rules build them up through project / summarize / extend stages. Sentinel maps these into alert fields via entityMappings and customDetails; Defender XDR custom detections surface them as alert fields directly.

FieldSource
DvcIpAddrproject
EventIdproject
EventMessageproject
IPCustomEntityextend