Detection rules › Sigma

WebDAV Temporary Local File Creation

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

Detects the creation of WebDAV temporary files with potentially suspicious extensions

MITRE ATT&CK coverage

TacticTechniques
Resource DevelopmentT1584 Compromise Infrastructure
Initial AccessT1566 Phishing

Event coverage

ProviderEventTitle
SysmonEvent ID 11FileCreate

Rule body yaml

title: WebDAV Temporary Local File Creation
id: 4c55738d-72d8-490e-a2db-7969654e375f
related:
    - id: 1ae64f96-72b6-48b3-ad3d-e71dff6c6398
      type: similar
status: test
description: Detects the creation of WebDAV temporary files with potentially suspicious extensions
references:
    - https://www.trellix.com/en-us/about/newsroom/stories/research/beyond-file-search-a-novel-method.html
    - https://micahbabinski.medium.com/search-ms-webdav-and-chill-99c5b23ac462
    - https://dear-territory-023.notion.site/WebDav-Share-Testing-e4950fa0c00149c3aa430d779b9b1d0f?pvs=4
author: Micah Babinski
date: 2023-08-21
tags:
    - attack.initial-access
    - attack.resource-development
    - attack.t1584
    - attack.t1566
    - detection.threat-hunting
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|contains: '\AppData\Local\Temp\TfsStore\Tfs_DAV\'
        TargetFilename|endswith:
            - '.7z'
            - '.bat'
            - '.dat'
            - '.ico'
            - '.js'
            - '.lnk'
            - '.ps1'
            - '.rar'
            - '.vbe'
            - '.vbs'
            - '.zip'
    condition: selection
falsepositives:
    - Legitimate use of WebDAV in an environment
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    TargetFilename|contains: '\AppData\Local\Temp\TfsStore\Tfs_DAV\'
    TargetFilename|endswith:
        - '.7z'
        - '.bat'
        - '.dat'
        - '.ico'
        - '.js'
        - '.lnk'
        - '.ps1'
        - '.rar'
        - '.vbe'
        - '.vbs'
        - '.zip'

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
TargetFilenameends_with
  • .7z corpus 5 (sigma 5)
  • .bat corpus 17 (sigma 17)
  • .dat corpus 4 (sigma 3, splunk 1)
  • .ico
  • .js corpus 9 (sigma 9)
  • .lnk corpus 6 (sigma 6)
  • .ps1 corpus 17 (sigma 17)
  • .rar corpus 5 (sigma 5)
  • .vbe corpus 15 (sigma 15)
  • .vbs corpus 18 (sigma 18)
  • .zip corpus 7 (sigma 6, splunk 1)
TargetFilenamematch
  • \AppData\Local\Temp\TfsStore\Tfs_DAV\