Detection rules › Sigma

WinRAR Execution in Non-Standard Folder

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
Florian Roth (Nextron Systems), Tigzy
Source
github.com/SigmaHQ/sigma

Detects a suspicious WinRAR execution in a folder which is not the default installation folder

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: WinRAR Execution in Non-Standard Folder
id: 4ede543c-e098-43d9-a28f-dd784a13132f
status: test
description: Detects a suspicious WinRAR execution in a folder which is not the default installation folder
references:
    - https://twitter.com/cyb3rops/status/1460978167628406785
author: Florian Roth (Nextron Systems), Tigzy
date: 2021-11-17
modified: 2025-07-16
tags:
    - attack.collection
    - attack.t1560.001
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        - Image|endswith:
              - '\rar.exe'
              - '\winrar.exe'
        - Description:
              - 'Command line RAR'
              - 'WinRAR'
    filter_main_unrar:
        # Note: we filter unrar as it has the same description as the other utilities, and we're only interested in compression
        Image|endswith: '\UnRAR.exe'
    filter_main_path:
        Image|contains:
            - ':\Program Files (x86)\WinRAR\'
            - ':\Program Files\WinRAR\'
    filter_optional_temp:
        # Note: in some occasion installers were seen dropping "rar" in TEMP
        Image|contains: ':\Windows\Temp\'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - Legitimate use of WinRAR in a folder of a software that bundles WinRAR
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection

selection:
    - Image|endswith:
          - '\rar.exe'
          - '\winrar.exe'
    - Description:
          - 'Command line RAR'
          - 'WinRAR'

Stage 2: not filter_main_*

filter_main_unrar:
    Image|endswith: '\UnRAR.exe'
filter_main_path:
    Image|contains:
        - ':\Program Files (x86)\WinRAR\'
        - ':\Program Files\WinRAR\'

Stage 3: not filter_optional_temp

filter_optional_temp:
    Image|contains: ':\Windows\Temp\'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
Imageends_with\UnRAR.exe
Imagematch:\Program Files (x86)\WinRAR\
Imagematch:\Program Files\WinRAR\
Imagematch:\Windows\Temp\

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
Descriptioneq
  • Command line RAR corpus 3 (sigma 3)
  • WinRAR
Imageends_with
  • \rar.exe corpus 5 (sigma 5)
  • \winrar.exe corpus 6 (sigma 6)