Detection rules › Kusto

McAfee ePO - Unable to clean or delete infected file

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

'Detects when McAfee failed to clean or delete infected file.'

MITRE ATT&CK coverage

Rule body kusto

id: 9860e89f-72c8-425e-bac9-4a170798d3ea
name: McAfee ePO - Unable to clean or delete infected file
description: |
  'Detects when McAfee failed to clean or delete infected file.'
severity: High
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 ('1026', '1028', '1298', '1310', '1055', '2002', '2004', '2009')
  | extend EventMessage = case(EventId == '1026', 'Unable to clean infected file',
                                EventId == '1028', 'Unable to delete infected file',
                                EventId == '1298', 'File infected. Delete failed, quarantine failed',
                                EventId == '1310', 'Multiple extension heuristic detection - delete failed, quarantine failed',
                                EventId == '1055', 'Unable to delete infected file',
                                EventId == '2002', 'Unable to clean infected file',
                                EventId == '2004', 'Unable to delete infected file',
                                'Unable to move infected file to quarantine')
  | project DvcIpAddr, EventId, EventMessage, DstFileName
  | 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 ('1026', '1028', '1298', '1310', '1055', '2002', '2004', '2009')

Stage 3: extend

| extend EventMessage = case(EventId == '1026', 'Unable to clean infected file',
                              EventId == '1028', 'Unable to delete infected file',
                              EventId == '1298', 'File infected. Delete failed, quarantine failed',
                              EventId == '1310', 'Multiple extension heuristic detection - delete failed, quarantine failed',
                              EventId == '1055', 'Unable to delete infected file',
                              EventId == '2002', 'Unable to clean infected file',
                              EventId == '2004', 'Unable to delete infected file',
                              'Unable to move infected file to quarantine')
EventMessage =
ifEventId == 1026'Unable to clean infected file'
elifEventId == 1028'Unable to delete infected file'
elifEventId == 1298'File infected. Delete failed, quarantine failed'
elifEventId == 1310'Multiple extension heuristic detection - delete failed, quarantine failed'
elifEventId == 1055'Unable to delete infected file'
elifEventId == 2002'Unable to clean infected file'
elifEventId == 2004'Unable to delete infected file'
else'Unable to move infected file to quarantine'

Stage 4: project

| project DvcIpAddr, EventId, EventMessage, DstFileName

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
  • 1026 transforms: cased
  • 1028 transforms: cased
  • 1055 transforms: cased
  • 1298 transforms: cased
  • 1310 transforms: cased
  • 2002 transforms: cased
  • 2004 transforms: cased
  • 2009 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
DstFileNameproject
DvcIpAddrproject
EventIdproject
EventMessageproject
IPCustomEntityextend