Detection rules › Sigma

Run Once Task Execution as Configured in Registry

Status
test
Severity
low
Log source
product windows, category process_creation
Author
Avneet Singh @v3t0_, oscd.community, Christopher Peacock @SecurePeacock (updated)
Source
github.com/SigmaHQ/sigma

This rule detects the execution of Run Once task as configured in the registry

MITRE ATT&CK coverage

TacticTechniques
PersistenceT1112 Modify Registry
Defense ImpairmentT1112 Modify Registry

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Run Once Task Execution as Configured in Registry
id: 198effb6-6c98-4d0c-9ea3-451fa143c45c
status: test
description: This rule detects the execution of Run Once task as configured in the registry
references:
    - https://twitter.com/pabraeken/status/990717080805789697
    - https://lolbas-project.github.io/lolbas/Binaries/Runonce/
    - https://twitter.com/0gtweet/status/1602644163824156672?s=20&t=kuxbUnZPltpvFPZdCrqPXA
author: 'Avneet Singh @v3t0_, oscd.community, Christopher Peacock @SecurePeacock (updated)'
date: 2020-10-18
modified: 2022-12-13
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1112
logsource:
    product: windows
    category: process_creation
detection:
    selection_img:
        - Image|endswith: '\runonce.exe'
        - Description: 'Run Once Wrapper'
    selection_cli:
        - CommandLine|contains: '/AlternateShellStartup'
        - CommandLine|endswith: '/r'
    condition: all of selection_*
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

all of selection_*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\runonce.exe'
    - Description: 'Run Once Wrapper'

Stage 2: selection_cli

selection_cli:
    - CommandLine|contains: '/AlternateShellStartup'
    - CommandLine|endswith: '/r'

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
CommandLineends_with
  • /r
CommandLinematch
  • /AlternateShellStartup
Descriptioneq
  • Run Once Wrapper
Imageends_with
  • \runonce.exe corpus 4 (sigma 4)