Detection rules › Sigma

VBA DLL Loaded Via Office Application

Status
test
Severity
high
Log source
product windows, category image_load
Author
Antonlovesdnb
Source
github.com/SigmaHQ/sigma

Detects VB DLL's loaded by an office application. Which could indicate the presence of VBA Macros.

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 7Image loaded

Rule body yaml

title: VBA DLL Loaded Via Office Application
id: e6ce8457-68b1-485b-9bdd-3c2b5d679aa9
status: test
description: Detects VB DLL's loaded by an office application. Which could indicate the presence of VBA Macros.
references:
    - https://medium.com/threatpunter/detecting-adversary-tradecraft-with-image-load-event-logging-and-eql-8de93338c16
author: Antonlovesdnb
date: 2020-02-19
modified: 2023-02-10
tags:
    - attack.execution
    - attack.t1204.002
logsource:
    category: image_load
    product: windows
detection:
    selection:
        Image|endswith:
            - '\excel.exe'
            - '\mspub.exe'
            - '\onenote.exe'
            - '\onenoteim.exe' # Just in case
            - '\outlook.exe'
            - '\powerpnt.exe'
            - '\winword.exe'
        ImageLoaded|endswith:
            - '\VBE7.DLL'
            - '\VBEUI.DLL'
            - '\VBE7INTL.DLL'
    condition: selection
falsepositives:
    - Legitimate macro usage. Add the appropriate filter according to your environment
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Image|endswith:
        - '\excel.exe'
        - '\mspub.exe'
        - '\onenote.exe'
        - '\onenoteim.exe'
        - '\outlook.exe'
        - '\powerpnt.exe'
        - '\winword.exe'
    ImageLoaded|endswith:
        - '\VBE7.DLL'
        - '\VBEUI.DLL'
        - '\VBE7INTL.DLL'

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
Imageends_with
  • \excel.exe corpus 18 (sigma 18)
  • \mspub.exe corpus 10 (sigma 10)
  • \onenote.exe corpus 6 (sigma 6)
  • \onenoteim.exe corpus 6 (sigma 6)
  • \outlook.exe corpus 14 (sigma 14)
  • \powerpnt.exe corpus 15 (sigma 15)
  • \winword.exe corpus 20 (sigma 20)
ImageLoadedends_with
  • \VBE7.DLL
  • \VBE7INTL.DLL
  • \VBEUI.DLL