Detection rules › Sigma

Unusual File Download from Direct IP Address

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

Detects the download of suspicious file type from URLs with IP

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 15FileCreateStreamHash

Rule body yaml

title: Unusual File Download from Direct IP Address
id: 025bd229-fd1f-4fdb-97ab-20006e1a5368
status: test
description: Detects the download of suspicious file type from URLs with IP
references:
    - https://github.com/trustedsec/SysmonCommunityGuide/blob/adcdfee20999f422b974c8d4149bf4c361237db7/chapters/file-stream-creation-hash.md
    - https://labs.withsecure.com/publications/detecting-onenote-abuse
author: Nasreddine Bencherchali (Nextron Systems), Florian Roth (Nextron Systems)
date: 2022-09-07
modified: 2023-02-10
tags:
    - attack.stealth
    - attack.t1564.004
logsource:
    product: windows
    category: create_stream_hash
detection:
    selection:
        Contents|re: 'http[s]?://[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'
        TargetFilename|contains:
            - '.ps1:Zone'
            - '.bat:Zone'
            - '.exe:Zone'
            - '.vbe:Zone'
            - '.vbs:Zone'
            - '.dll:Zone'
            - '.one:Zone'
            - '.cmd:Zone'
            - '.hta:Zone'
            - '.xll:Zone'
            - '.lnk:Zone'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    Contents|re: 'http[s]?://[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'
    TargetFilename|contains:
        - '.ps1:Zone'
        - '.bat:Zone'
        - '.exe:Zone'
        - '.vbe:Zone'
        - '.vbs:Zone'
        - '.dll:Zone'
        - '.one:Zone'
        - '.cmd:Zone'
        - '.hta:Zone'
        - '.xll:Zone'
        - '.lnk:Zone'

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
Contentsregex_match
  • http[s]?://[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}
TargetFilenamematch
  • .bat:Zone corpus 3 (sigma 3)
  • .cmd:Zone corpus 2 (sigma 2)
  • .dll:Zone corpus 3 (sigma 3)
  • .exe:Zone corpus 3 (sigma 3)
  • .hta:Zone corpus 3 (sigma 3)
  • .lnk:Zone corpus 2 (sigma 2)
  • .one:Zone corpus 2 (sigma 2)
  • .ps1:Zone corpus 3 (sigma 3)
  • .vbe:Zone corpus 3 (sigma 3)
  • .vbs:Zone corpus 3 (sigma 3)
  • .xll:Zone corpus 3 (sigma 3)