Detection rules › Sigma

Potentially Suspicious Execution Of Regasm/Regsvcs From Uncommon Location

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

Detects potentially suspicious execution of the Regasm/Regsvcs utilities from a potentially suspicious location

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Potentially Suspicious Execution Of Regasm/Regsvcs From Uncommon Location
id: cc368ed0-2411-45dc-a222-510ace303cb2
related:
    - id: e9f8f8cc-07cc-4e81-b724-f387db9175e4
      type: derived
status: test
description: Detects potentially suspicious execution of the Regasm/Regsvcs utilities from a potentially suspicious location
references:
    - https://www.fortiguard.com/threat-signal-report/4718?s=09
    - https://lolbas-project.github.io/lolbas/Binaries/Regasm/
    - https://lolbas-project.github.io/lolbas/Binaries/Regsvcs/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2022-08-25
modified: 2023-02-13
tags:
    - attack.stealth
    - attack.t1218.009
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith:
              - '\Regsvcs.exe'
              - '\Regasm.exe'
        - OriginalFileName:
              - 'RegSvcs.exe'
              - 'RegAsm.exe'
    selection_dir:
        CommandLine|contains:
            # Note: Add more potentially suspicious directories
            - '\AppData\Local\Temp\'
            - '\Microsoft\Windows\Start Menu\Programs\Startup\'
            - '\PerfLogs\'
            - '\Users\Public\'
            - '\Windows\Temp\'
            # - '\Desktop\'
            # - '\Downloads\'
    condition: all of selection_*
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith:
          - '\Regsvcs.exe'
          - '\Regasm.exe'
    - OriginalFileName:
          - 'RegSvcs.exe'
          - 'RegAsm.exe'

Stage 2: selection_dir

selection_dir:
    CommandLine|contains:
        - '\AppData\Local\Temp\'
        - '\Microsoft\Windows\Start Menu\Programs\Startup\'
        - '\PerfLogs\'
        - '\Users\Public\'
        - '\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
CommandLinematch
  • \AppData\Local\Temp\ corpus 26 (sigma 26)
  • \Microsoft\Windows\Start Menu\Programs\Startup\ corpus 3 (sigma 3)
  • \PerfLogs\ corpus 3 (sigma 3)
  • \Users\Public\ corpus 17 (sigma 17)
  • \Windows\Temp\ corpus 12 (sigma 12)
Imageends_with
  • \Regasm.exe corpus 9 (sigma 9)
  • \Regsvcs.exe corpus 8 (sigma 8)
OriginalFileNameeq
  • RegAsm.exe corpus 8 (sigma 6, elastic 1, splunk 1)
  • RegSvcs.exe corpus 7 (sigma 5, elastic 1, splunk 1)