Detection rules › Sigma

Suspicious Download from Office Domain

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

Detects suspicious ways to download files from Microsoft domains that are used to store attachments in Emails or OneNote documents

MITRE ATT&CK coverage

TacticTechniques
Resource DevelopmentT1608 Stage Capabilities
Command & ControlT1105 Ingress Tool Transfer

Event coverage

Rule body yaml

title: Suspicious Download from Office Domain
id: 00d49ed5-4491-4271-a8db-650a4ef6f8c1
status: test
description: Detects suspicious ways to download files from Microsoft domains that are used to store attachments in Emails or OneNote documents
references:
    - https://twitter.com/an0n_r0/status/1474698356635193346?s=12
    - https://twitter.com/mrd0x/status/1475085452784844803?s=12
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2021-12-27
modified: 2022-08-02
tags:
    - attack.command-and-control
    - attack.resource-development
    - attack.t1105
    - attack.t1608
logsource:
    product: windows
    category: process_creation
detection:
    selection_download:
        - Image|endswith:
              - '\curl.exe'
              - '\wget.exe'
        - CommandLine|contains:
              - 'Invoke-WebRequest'
              - 'iwr '
              - 'curl '
              - 'wget '
              - 'Start-BitsTransfer'
              - '.DownloadFile('
              - '.DownloadString('
    selection_domains:
        CommandLine|contains:
            - 'https://attachment.outlook.live.net/owa/'
            - 'https://onenoteonlinesync.onenote.com/onenoteonlinesync/'
    condition: all of selection_*
falsepositives:
    - Scripts or tools that download attachments from these domains (OneNote, Outlook 365)
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_download

selection_download:
    - Image|endswith:
          - '\curl.exe'
          - '\wget.exe'
    - CommandLine|contains:
          - 'Invoke-WebRequest'
          - 'iwr '
          - 'curl '
          - 'wget '
          - 'Start-BitsTransfer'
          - '.DownloadFile('
          - '.DownloadString('

Stage 2: selection_domains

selection_domains:
    CommandLine|contains:
        - 'https://attachment.outlook.live.net/owa/'
        - 'https://onenoteonlinesync.onenote.com/onenoteonlinesync/'

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
  • .DownloadFile( corpus 8 (sigma 7, chronicle 1)
  • .DownloadString( corpus 8 (sigma 7, chronicle 1)
  • Invoke-WebRequest corpus 13 (sigma 10, elastic 1, chronicle 1, kusto 1)
  • Start-BitsTransfer corpus 4 (sigma 3, splunk 1)
  • curl corpus 12 (sigma 11, chronicle 1)
  • https://attachment.outlook.live.net/owa/
  • https://onenoteonlinesync.onenote.com/onenoteonlinesync/
  • iwr corpus 13 (sigma 11, chronicle 2)
  • wget corpus 8 (sigma 7, chronicle 1)
Imageends_with
  • \curl.exe corpus 30 (sigma 30)
  • \wget.exe corpus 9 (sigma 9)