Detection rules › Sigma

New Outlook Macro Created

Status
test
Severity
medium
Log source
category file_event, product windows
Author
@ScoubiMtl
Source
github.com/SigmaHQ/sigma

Detects the creation of a macro file for Outlook.

Known false positives

  • User genuinely creates a VB Macro for their email

MITRE ATT&CK coverage

Telemetry coverage

ProviderRecord / event type
SysmonEvent ID 11: FileCreate

Rule body

title: New Outlook Macro Created
id: 8c31f563-f9a7-450c-bfa8-35f8f32f1f61
related:
    - id: 117d3d3a-755c-4a61-b23e-9171146d094c
      type: derived
status: test
description: Detects the creation of a macro file for Outlook.
references:
    - https://www.mdsec.co.uk/2020/11/a-fresh-outlook-on-mail-based-persistence/
author: '@ScoubiMtl'
date: 2021-04-05
modified: 2023-02-08
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.command-and-control
    - attack.t1137
    - attack.t1008
    - attack.t1546
logsource:
    category: file_event
    product: windows
detection:
    selection:
        Image|endswith: '\outlook.exe'
        TargetFilename|endswith: '\Microsoft\Outlook\VbaProject.OTM'
    condition: selection
falsepositives:
    - User genuinely creates a VB Macro for their email
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith: '\outlook.exe'
    TargetFilename|endswith: '\Microsoft\Outlook\VbaProject.OTM'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \outlook.exe corpus 13 (sigma 13)
field:"Image" kind:ends_with value:"\outlook.exe"
TargetFilenameends_with
  • \Microsoft\Outlook\VbaProject.OTM corpus 2 (sigma 2)
field:"TargetFilename" kind:ends_with value:"\Microsoft\Outlook\VbaProject.OTM"