Detection rules › Sigma

Startup Folder File Write

Status
test
Severity
medium
Log source
product windows, category file_event
Author
Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research)
Source
github.com/SigmaHQ/sigma

A General detection for files being created in the Windows startup directory. This could be an indicator of persistence.

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 11FileCreate

Rule body yaml

title: Startup Folder File Write
id: 2aa0a6b4-a865-495b-ab51-c28249537b75
related:
    - id: 28208707-fe31-437f-9a7f-4b1108b94d2e
      type: similar
status: test
description: A General detection for files being created in the Windows startup directory. This could be an indicator of persistence.
references:
    - https://github.com/OTRF/detection-hackathon-apt29/issues/12
    - https://github.com/OTRF/ThreatHunter-Playbook/blob/2d4257f630f4c9770f78d0c1df059f891ffc3fec/docs/evals/apt29/detections/5.B.1_611FCA99-97D0-4873-9E51-1C1BA2DBB40D.md
author: Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research)
date: 2020-05-02
modified: 2025-12-03
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.t1547.001
logsource:
    product: windows
    category: file_event
detection:
    selection:
        TargetFilename|contains: '\Microsoft\Windows\Start Menu\Programs\StartUp'
    filter_main_update:
        - Image:
              - 'C:\Windows\System32\wuauclt.exe'
              - 'C:\Windows\uus\ARM64\wuaucltcore.exe'
        - TargetFilename|startswith:
              - 'C:\$WINDOWS.~BT\NewOS\'
              - 'C:\$WinREAgent\Scratch\Mount\'
    filter_optional_onenote:
        Image|endswith: '\ONENOTE.EXE'
        TargetFilename|endswith: '\Send to OneNote.lnk'
    condition: selection and not 1 of filter_main_* and not 1 of filter_optional_*
falsepositives:
    - FP could be caused by legitimate application writing shortcuts for example. This folder should always be inspected to make sure that all the files in there are legitimate
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_* and not 1 of filter_optional_*

Stage 1: selection

selection:
    TargetFilename|contains: '\Microsoft\Windows\Start Menu\Programs\StartUp'

Stage 2: not filter_main_update

filter_main_update:
    - Image:
          - 'C:\Windows\System32\wuauclt.exe'
          - 'C:\Windows\uus\ARM64\wuaucltcore.exe'
    - TargetFilename|startswith:
          - 'C:\$WINDOWS.~BT\NewOS\'
          - 'C:\$WinREAgent\Scratch\Mount\'

Stage 3: not filter_optional_onenote

filter_optional_onenote:
    Image|endswith: '\ONENOTE.EXE'
    TargetFilename|endswith: '\Send to OneNote.lnk'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
ImageeqC:\Windows\System32\wuauclt.exe
ImageeqC:\Windows\uus\ARM64\wuaucltcore.exe
TargetFilenamestarts_withC:\$WINDOWS.~BT\NewOS\
TargetFilenamestarts_withC:\$WinREAgent\Scratch\Mount\
Imageends_with\ONENOTE.EXE
TargetFilenameends_with\Send to OneNote.lnk

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
TargetFilenamematch
  • \Microsoft\Windows\Start Menu\Programs\StartUp corpus 2 (sigma 2)