Suspicious Run Once Task Configuration in Registry (via registry_event)
This rule detects rule to detect the configuration of Run Once registry key. Configured payload can be run by runonce.exe /AlternateShellStartup
SigmamediumWindowsv1
sigma
suspicious-run-once-task-configuration-in-registry-via-registry-event
title: Suspicious Run Once Task Configuration in Registry (via registry_event)
id: 4d80e6a4-8c6e-5bd3-8eeb-20c5610bb826
status: stable
description: This rule detects rule to detect the configuration of Run Once registry key. Configured payload can be run by runonce.exe /AlternateShellStartup
references:
- https://attack.mitre.org/techniques/T1112/
- https://twitter.com/pabraeken/status/990717080805789697
- https://lolbas-project.github.io/lolbas/Binaries/Runonce/
author: 'Huntrule Team'
date: 2026-02-05
tags:
- attack.persistence
- attack.defense-impairment
- attack.t1112
logsource:
product: windows
category: registry_event
detection:
selection:
TargetObject|contains: '\Microsoft\Active Setup\Installed Components'
TargetObject|endswith: '\StubPath'
filter_optional_chrome:
Details|contains|all:
- 'C:\Program Files\Google\Chrome\Application\'
- '\Installer\chrmstp.exe" --configure-user-settings --verbose-logging --system-level'
filter_optional_edge:
Details|contains:
- 'C:\Program Files (x86)\Microsoft\Edge\Application\'
- 'C:\Program Files\Microsoft\Edge\Application\'
Details|endswith: '\Installer\setup.exe" --configure-user-settings --verbose-logging --system-level --msedge --channel=stable'
condition: selection and not 1 of filter_optional_*
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.