Detection rules › Sigma

Suspicious Windows Strings In URI

Status
test
Severity
high
Log source
category webserver
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects suspicious Windows strings in URI which could indicate possible exfiltration or webshell communication

Known false positives

  • Legitimate application and websites that use windows paths in their URL

MITRE ATT&CK coverage

Rule body

title: Suspicious Windows Strings In URI
id: 9f6a34b4-2688-4eb7-a7f5-e39fef573d0e
status: test
description: Detects suspicious Windows strings in URI which could indicate possible exfiltration or webshell communication
references:
    - https://thedfirreport.com/2022/06/06/will-the-real-msiexec-please-stand-up-exploit-leads-to-data-exfiltration/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-06-06
modified: 2023-01-02
tags:
    - attack.persistence
    - attack.exfiltration
    - attack.t1505.003
logsource:
    category: webserver
detection:
    selection:
        cs-uri-query|contains:
            - '=C:/Users'
            - '=C:/Program%20Files'
            - '=C:/Windows'
            - '=C%3A%5CUsers'
            - '=C%3A%5CProgram%20Files'
            - '=C%3A%5CWindows'
    condition: selection
falsepositives:
    - Legitimate application and websites that use windows paths in their URL
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    cs-uri-query|contains:
        - '=C:/Users'
        - '=C:/Program%20Files'
        - '=C:/Windows'
        - '=C%3A%5CUsers'
        - '=C%3A%5CProgram%20Files'
        - '=C%3A%5CWindows'

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
cs-uri-querymatch
  • =C%3A%5CProgram%20Files
  • =C%3A%5CUsers
  • =C%3A%5CWindows
  • =C:/Program%20Files
  • =C:/Users
  • =C:/Windows
field:"cs-uri-query" kind:match