Detection rules › Sigma

Potential Arbitrary File Download Using Office Application

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Nasreddine Bencherchali (Nextron Systems), Beyu Denis, oscd.community
Source
github.com/SigmaHQ/sigma

Detects potential arbitrary file download using a Microsoft Office application

MITRE ATT&CK coverage

TacticTechniques
StealthT1202 Indirect Command Execution

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Potential Arbitrary File Download Using Office Application
id: 4ae3e30b-b03f-43aa-87e3-b622f4048eed
related:
    - id: 0c79148b-118e-472b-bdb7-9b57b444cc19
      type: obsolete
status: test
description: Detects potential arbitrary file download using a Microsoft Office application
references:
    - https://lolbas-project.github.io/lolbas/OtherMSBinaries/Winword/
    - https://lolbas-project.github.io/lolbas/OtherMSBinaries/Powerpnt/
    - https://lolbas-project.github.io/lolbas/OtherMSBinaries/Excel/
    - https://medium.com/@reegun/unsanitized-file-validation-leads-to-malicious-payload-download-via-office-binaries-202d02db7191
author: Nasreddine Bencherchali (Nextron Systems), Beyu Denis, oscd.community
date: 2022-05-17
modified: 2023-06-22
tags:
    - attack.stealth
    - attack.t1202
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\EXCEL.EXE'
              - '\POWERPNT.EXE'
              - '\WINWORD.exe'
        - OriginalFileName:
              - 'Excel.exe'
              - 'POWERPNT.EXE'
              - 'WinWord.exe'
    selection_http:
        CommandLine|contains:
            - 'http://'
            - 'https://'
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith:
          - '\EXCEL.EXE'
          - '\POWERPNT.EXE'
          - '\WINWORD.exe'
    - OriginalFileName:
          - 'Excel.exe'
          - 'POWERPNT.EXE'
          - 'WinWord.exe'

Stage 2: selection_http

selection_http:
    CommandLine|contains:
        - 'http://'
        - 'https://'

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
CommandLinematch
  • http:// corpus 21 (sigma 18, elastic 1, splunk 1, kusto 1)
  • https:// corpus 21 (sigma 18, elastic 1, splunk 1, kusto 1)
Imageends_with
  • \EXCEL.EXE corpus 18 (sigma 18)
  • \POWERPNT.EXE corpus 15 (sigma 15)
  • \WINWORD.exe corpus 20 (sigma 20)
OriginalFileNameeq
  • Excel.exe corpus 4 (sigma 3, elastic 1)
  • POWERPNT.EXE corpus 4 (sigma 3, elastic 1)
  • WinWord.exe corpus 6 (sigma 4, elastic 2)