Detection rules › Sigma

Suspicious ASPX File Drop by Exchange

Status
test
Severity
high
Log source
product windows, category file_event
Author
Florian Roth (Nextron Systems), MSTI (query, idea)
Source
github.com/SigmaHQ/sigma

Detects suspicious file type dropped by an Exchange component in IIS into a suspicious folder

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 11FileCreate

Rule body yaml

title: Suspicious ASPX File Drop by Exchange
id: bd1212e5-78da-431e-95fa-c58e3237a8e6
related:
    - id: 6b269392-9eba-40b5-acb6-55c882b20ba6
      type: similar
status: test
description: Detects suspicious file type dropped by an Exchange component in IIS into a suspicious folder
references:
    - https://www.microsoft.com/security/blog/2022/09/30/analyzing-attacks-using-the-exchange-vulnerabilities-cve-2022-41040-and-cve-2022-41082/
    - https://www.gteltsc.vn/blog/canh-bao-chien-dich-tan-cong-su-dung-lo-hong-zero-day-tren-microsoft-exchange-server-12714.html
    - https://en.gteltsc.vn/blog/cap-nhat-nhe-ve-lo-hong-bao-mat-0day-microsoft-exchange-dang-duoc-su-dung-de-tan-cong-cac-to-chuc-tai-viet-nam-9685.html
author: Florian Roth (Nextron Systems), MSTI (query, idea)
date: 2022-10-01
tags:
    - attack.persistence
    - attack.t1505.003
logsource:
    product: windows
    category: file_event
detection:
    selection:
        Image|endswith: '\w3wp.exe'
        CommandLine|contains: 'MSExchange'
        TargetFilename|contains:
            - 'FrontEnd\HttpProxy\'           # from GTSC and MSTI reports
            - '\inetpub\wwwroot\aspnet_client\' # from GTSC report
    selection_types:
        TargetFilename|endswith:
            - '.aspx'
            - '.asp'
            - '.ashx'
    condition: all of selection*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

all of selection*

Stage 1: selection

selection:
    Image|endswith: '\w3wp.exe'
    CommandLine|contains: 'MSExchange'
    TargetFilename|contains:
        - 'FrontEnd\HttpProxy\'
        - '\inetpub\wwwroot\aspnet_client\'

Stage 2: selection_types

selection_types:
    TargetFilename|endswith:
        - '.aspx'
        - '.asp'
        - '.ashx'

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
  • MSExchange corpus 4 (sigma 3, kusto 1)
Imageends_with
  • \w3wp.exe corpus 6 (sigma 6)
TargetFilenameends_with
  • .ashx corpus 3 (sigma 3)
  • .asp corpus 4 (sigma 4)
  • .aspx corpus 5 (sigma 5)
TargetFilenamematch
  • FrontEnd\HttpProxy\
  • \inetpub\wwwroot\aspnet_client\