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

TacticTechniques
Stealth
Defense Impairment

Telemetry coverage

Rule body

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

These rows show field, operator, and value matches.

FieldKindValuesSearch
EventIdin
  • 1040
  • 1076
  • 3032
  • 3033
  • 3034
  • 3036
  • 3038
field:"EventId" kind:in

Output fields

These fields are emitted when the rule matches.

FieldSource
DvcIpAddrproject
EventIdproject
EventMessageproject
IPCustomEntityextend