Suspicious Imports Registry Key From a File (via process_creation)

This rule detects the import of the specified file to the registry with regedit.exe.

SigmamediumWindowsv1
sigma
title: Suspicious Imports Registry Key From a File (via process_creation)
id: a308045c-4703-5c86-b302-63924c642be8
status: stable
description: This rule detects the import of the specified file to the registry with regedit.exe.
references:
    - https://attack.mitre.org/techniques/T1112/
    - https://lolbas-project.github.io/lolbas/Binaries/Regedit/
    - https://gist.github.com/api0cradle/cdd2d0d0ec9abb686f0e89306e277b8f
author: Huntrule Team
date: 2026-04-25
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1112
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\regedit.exe'
        - OriginalFileName: 'REGEDIT.EXE'
    selection_cli:
        CommandLine|contains:
            - ' /i '
            - ' /s '
            - '.reg'
    filter_1:
        CommandLine|contains|windash:
            - ' -e '
            - ' -a '
            - ' -c '
    filter_2:
        CommandLine|re: ':[^ \\]'
    condition: all of selection_* and not all of filter_*
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.