Detection rules › Sigma

Suspicious File Execution From Internet Hosted WebDav Share

Status
test
Severity
high
Log source
product windows, category process_creation
Author
pH-T (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the execution of the "net use" command to mount a WebDAV server and then immediately execute some content in it. As seen being used in malicious LNK files

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Suspicious File Execution From Internet Hosted WebDav Share
id: f0507c0f-a3a2-40f5-acc6-7f543c334993
status: test
description: Detects the execution of the "net use" command to mount a WebDAV server and then immediately execute some content in it. As seen being used in malicious LNK files
references:
    - https://twitter.com/ShadowChasing1/status/1552595370961944576
    - https://www.virustotal.com/gui/file/a63376ee1dba76361df73338928e528ca5b20171ea74c24581605366dcaa0104/behavior
author: pH-T (Nextron Systems)
date: 2022-09-01
modified: 2023-02-21
tags:
    - attack.execution
    - attack.t1059.001
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|contains: '\cmd.exe'
        - OriginalFileName: 'Cmd.EXE'
    selection_base:
        CommandLine|contains|all:
            - ' net use http'
            - '& start /b '
            - '\DavWWWRoot\'
    selection_ext:
        CommandLine|contains:
            - '.exe '
            - '.dll '
            - '.bat '
            - '.vbs '
            - '.ps1 '
    condition: all of selection_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|contains: '\cmd.exe'
    - OriginalFileName: 'Cmd.EXE'

Stage 2: selection_base

selection_base:
    CommandLine|contains|all:
        - ' net use http'
        - '& start /b '
        - '\DavWWWRoot\'

Stage 3: selection_ext

selection_ext:
    CommandLine|contains:
        - '.exe '
        - '.dll '
        - '.bat '
        - '.vbs '
        - '.ps1 '

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
  • net use http
  • & start /b
  • .bat
  • .dll
  • .exe corpus 2 (sigma 2)
  • .ps1
  • .vbs corpus 2 (sigma 2)
  • \DavWWWRoot\ corpus 2 (sigma 2)
Imagematch
  • \cmd.exe
OriginalFileNameeq
  • Cmd.EXE corpus 65 (sigma 43, splunk 17, elastic 5)