Windows Persistence Attempt via ErrorHandler.cmd in C:\WINDOWS\Setup\Scripts\

Alerts on writing ErrorHandler.cmd to C:\WINDOWS\Setup\Scripts\, a persistence-relevant location on Windows.

FreeReviewedSigma · Medium · v2
Product
windows
Category
file_event
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-08-09
Updated
2026-07-31

What it detects

This rule flags creation or presence of a file named ErrorHandler.cmd under C:\WINDOWS\Setup\Scripts\ on Windows. Attackers may use this location to influence execution behavior when setup or related tools under C:\WINDOWS\System32\oobe\ encounter failures. It relies on file system event telemetry capturing the target filename and its full path.

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.