Detection rules › Sigma

PUA - Potential PE Metadata Tamper Using Rcedit

Status
test
Severity
medium
Log source
product windows, category process_creation
Author
Micah Babinski
Source
github.com/SigmaHQ/sigma

Detects the use of rcedit to potentially alter executable PE metadata properties, which could conceal efforts to rename system utilities for defense evasion.

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: PUA - Potential PE Metadata Tamper Using Rcedit
id: 0c92f2e6-f08f-4b73-9216-ecb0ca634689
status: test
description: Detects the use of rcedit to potentially alter executable PE metadata properties, which could conceal efforts to rename system utilities for defense evasion.
references:
    - https://security.stackexchange.com/questions/210843/is-it-possible-to-change-original-filename-of-an-exe
    - https://www.virustotal.com/gui/file/02e8e8c5d430d8b768980f517b62d7792d690982b9ba0f7e04163cbc1a6e7915
    - https://github.com/electron/rcedit
author: Micah Babinski
date: 2022-12-11
modified: 2023-03-05
tags:
    - attack.stealth
    - attack.t1036.003
    - attack.t1036
    - attack.t1027.005
    - attack.t1027
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\rcedit-x64.exe'
              - '\rcedit-x86.exe'
        - Description: 'Edit resources of exe'
        - Product: 'rcedit'
    selection_flags:
        CommandLine|contains: '--set-' # Covers multiple edit commands such as "--set-resource-string" or "--set-version-string"
    selection_attributes:
        CommandLine|contains:
            - 'OriginalFileName'
            - 'CompanyName'
            - 'FileDescription'
            - 'ProductName'
            - 'ProductVersion'
            - 'LegalCopyright'
    condition: all of selection_*
falsepositives:
    - Legitimate use of the tool by administrators or users to update metadata of a binary
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith:
          - '\rcedit-x64.exe'
          - '\rcedit-x86.exe'
    - Description: 'Edit resources of exe'
    - Product: 'rcedit'

Stage 2: selection_flags

selection_flags:
    CommandLine|contains: '--set-'

Stage 3: selection_attributes

selection_attributes:
    CommandLine|contains:
        - 'OriginalFileName'
        - 'CompanyName'
        - 'FileDescription'
        - 'ProductName'
        - 'ProductVersion'
        - 'LegalCopyright'

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
  • --set-
  • CompanyName
  • FileDescription
  • LegalCopyright
  • OriginalFileName
  • ProductName
  • ProductVersion
Descriptioneq
  • Edit resources of exe
Imageends_with
  • \rcedit-x64.exe
  • \rcedit-x86.exe
Producteq
  • rcedit