Detection rules › Sigma

Wusa.EXE Executed By Parent Process Located In Suspicious Location

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

Detects execution of the "wusa.exe" (Windows Update Standalone Installer) utility by a parent process that is located in a suspicious location. Attackers could instantiate an instance of "wusa.exe" in order to bypass User Account Control (UAC). They can duplicate the access token from "wusa.exe" to gain elevated privileges.

MITRE ATT&CK coverage

TacticTechniques
ExecutionNo specific technique

Telemetry coverage

Rule body

title: Wusa.EXE Executed By Parent Process Located In Suspicious Location
id: ef64fc9c-a45e-43cc-8fd8-7d75d73b4c99
status: test
description: |
    Detects execution of the "wusa.exe" (Windows Update Standalone Installer) utility by a parent process that is located in a suspicious location.
    Attackers could instantiate an instance of "wusa.exe" in order to bypass User Account Control (UAC). They can duplicate the access token from "wusa.exe" to gain elevated privileges.
references:
    - https://www.fortinet.com/blog/threat-research/konni-campaign-distributed-via-malicious-document
author: X__Junior (Nextron Systems)
date: 2023-11-26
modified: 2024-08-15
tags:
    - attack.execution
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        Image|endswith: '\wusa.exe'
    selection_paths_1:
        ParentImage|contains:
            # Note: Add additional suspicious locations to increase coverage
            - ':\Perflogs\'
            - ':\Users\Public\'
            - ':\Windows\Temp\'
            - '\Appdata\Local\Temp\'
            - '\Temporary Internet'
    selection_paths_2:
        - ParentImage|contains|all:
              - ':\Users\'
              - '\Favorites\'
        - ParentImage|contains|all:
              - ':\Users\'
              - '\Favourites\'
        - ParentImage|contains|all:
              - ':\Users\'
              - '\Contacts\'
        - ParentImage|contains|all:
              - ':\Users\'
              - '\Pictures\'
    filter_main_msu:
        # Note: We exclude MSU extension files. A better approach is to baseline installation of updates in your env to avoid false negatives.
        CommandLine|contains: '.msu'
    condition: selection_img and 1 of selection_paths_* and not 1 of filter_main_*
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection_img and 1 of selection_paths_* and not 1 of filter_main_*

Stage 1: selection_img

selection_img:
    Image|endswith: '\wusa.exe'

Stage 2: selection_paths_1

selection_paths_1:
    ParentImage|contains:
        - ':\Perflogs\'
        - ':\Users\Public\'
        - ':\Windows\Temp\'
        - '\Appdata\Local\Temp\'
        - '\Temporary Internet'

Stage 3: selection_paths_2

selection_paths_2:
    - ParentImage|contains|all:
          - ':\Users\'
          - '\Favorites\'
    - ParentImage|contains|all:
          - ':\Users\'
          - '\Favourites\'
    - ParentImage|contains|all:
          - ':\Users\'
          - '\Contacts\'
    - ParentImage|contains|all:
          - ':\Users\'
          - '\Pictures\'

Stage 4: not filter_main_msu

filter_main_msu:
    CommandLine|contains: '.msu'

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
CommandLinematch.msuexcludes:CommandLine field:"CommandLine" value:".msu"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
Imageends_with
  • \wusa.exe corpus 4 (sigma 4)
field:"Image" kind:ends_with value:"\wusa.exe"
ParentImagematch
  • :\Perflogs\
  • :\Users\
  • :\Users\Public\ corpus 2 (sigma 2)
  • :\Windows\Temp\
  • \Appdata\Local\Temp\ corpus 2 (sigma 2)
  • \Contacts\
  • \Favorites\
  • \Favourites\
  • \Pictures\
  • \Temporary Internet corpus 2 (sigma 2)
field:"ParentImage" kind:match