Uncommon Windows Processes Writing .txt/.xml in AppData\Roaming\Microsoft

Flags creation of .txt/.xml files in AppData\Roaming\Microsoft by schtasks.exe, wscript.exe, or mshta.exe.

FreeReviewedSigma · High · v5
Product
windows
Category
file_event
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2023-05-15
Updated
2026-07-31

What it detects

This rule flags file creation where the target path is within \AppData\Roaming\Microsoft\ and the created filename ends with .txt or .xml. It specifically matches creations initiated by schtasks.exe, wscript.exe, or mshta.exe, which are often used to execute or stage content from user-writable locations. The detection relies on Windows file event telemetry capturing the creating process path and the target filename/path. Such activity can indicate stealthy staging of additional payloads or configuration data in a commonly abused directory.

Changelog

v5
  1. v5
    Candidate ingested via manual entry.2026-07-31
  2. v4
    Candidate ingested via manual entry.2026-07-31
  3. v3
    Candidate ingested via manual entry.2026-07-31
  4. v2
    Candidate ingested via manual entry.2026-07-31
  5. 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.