← Back to SOC feed Coverage →

Potential Regsvr32 Commandline Flag Anomaly

sigma MEDIUM SigmaHQ
T1218.010
imProcessCreate
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at SigmaHQ →
Retrieved: 2026-05-18T11:00:00Z · Confidence: medium

Hunt Hypothesis

Detects a potential command line flag anomaly related to “regsvr32” in which the “/i” flag is used without the “/n” which should be uncommon.

Detection Rule

Sigma (Original)

title: Potential Regsvr32 Commandline Flag Anomaly
id: b236190c-1c61-41e9-84b3-3fe03f6d76b0
status: test
description: Detects a potential command line flag anomaly related to "regsvr32" in which the "/i" flag is used without the "/n" which should be uncommon.
references:
    - https://twitter.com/sbousseaden/status/1282441816986484737?s=12
author: Florian Roth (Nextron Systems)
date: 2019-07-13
modified: 2024-03-13
tags:
    - attack.stealth
    - attack.t1218.010
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        Image|endswith: '\regsvr32.exe'
        CommandLine|contains|windash: ' -i:'
    filter_main_flag:
        CommandLine|contains|windash: ' -n '
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Administrator typo might cause some false positives
level: medium

KQL (Azure Sentinel)

imProcessCreate
| where (TargetProcessName endswith "\\regsvr32.exe" and (TargetProcessCommandLine contains " -i:" or TargetProcessCommandLine contains " /i:" or TargetProcessCommandLine contains " –i:" or TargetProcessCommandLine contains " —i:" or TargetProcessCommandLine contains " ―i:")) and (not(TargetProcessCommandLine contains " -n " or TargetProcessCommandLine contains " /n " or TargetProcessCommandLine contains " –n " or TargetProcessCommandLine contains " —n " or TargetProcessCommandLine contains " ―n "))

Required Data Sources

Sentinel TableNotes
imProcessCreateEnsure this data connector is enabled

False Positive Guidance

MITRE ATT&CK Context

References

Original source: https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_regsvr32_flags_anomaly.yml