Sigma rule: Run Once Task Configuration in Registry

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-ed45b7ec69e6, updated 2024-03-25T00:00:00.000Z.

Rule

Title
Run Once Task Configuration in Registry
Status
test
Level
medium
Author
Avneet Singh @v3t0_, oscd.community
Date
2020-11-15
Modified
2024-03-25
File
rules/windows/registry/registry_event/registry_event_runonce_persistence.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Rule to detect the configuration of Run Once registry key. Configured payload can be run by runonce.exe /AlternateShellStartup

Log source

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' # In some cases the Details will contain an additional flag called "--channel=stable" at the end
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_*

False positives (as the rule lists them)

  • Legitimate modification of the registry key by legitimate program

Tags

  • attack.persistence
  • attack.defense-impairment
  • attack.t1112

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/registry/registry_event/registry_event_runonce_persistence.yml

Sources and licences

  • SigmaHQ

    "Run Once Task Configuration in Registry" by Avneet Singh @v3t0_, oscd.community (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/registry/registry_event/registry_event_runonce_persistence.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Run Once Task Configuration in Registry",
entity page, dataset version ref-ed45b7ec69e6, updated 2024-03-25T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/c74d7efc-8826-45d9-b8bb-f04fac9e4eff (accessed 2026-11-03).
Underlying source: SigmaHQ rule c74d7efc-8826-45d9-b8bb-f04fac9e4eff, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.