Windows msdt.exe Creating Files in Common Startup and Public Directories

Alerts when msdt.exe writes files to high-suspicion directories that may indicate persistence after exploitation.

FreeReviewedSigma · High · v2
Product
windows
Category
file_event
Author
Vadim Varganov, Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-08-24
Updated
2026-07-31
title: Windows msdt.exe Creating Files in Common Startup and Public Directories
id: 98fad3f4-b5e2-44a5-b690-b98b9ef3fe6a
status: test
description: This rule flags file creation events where msdt.exe (msdt.exe) writes to directories commonly used for persistence or where attackers may stage payloads, including the Desktop, Startup folders, C:\PerfLogs, C:\ProgramData, and C:\Users\Public. Such activity can indicate exploitation that leverages msdt.exe to place files for follow-on execution. It relies on Windows file event telemetry capturing both the process image path and the target filename of created files.
references:
  - https://irsl.medium.com/the-trouble-with-microsofts-troubleshooters-6e32fc80b8bd
  - https://msrc-blog.microsoft.com/2022/05/30/guidance-for-cve-2022-30190-microsoft-support-diagnostic-tool-vulnerability/
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/file/file_event/file_event_win_msdt_susp_directories.yml
author: Vadim Varganov, Florian Roth (Nextron Systems), Huntrule Team
date: 2022-08-24
modified: 2023-02-23
tags:
  - attack.privilege-escalation
  - attack.persistence
  - attack.t1547.001
  - cve.2022-30190
logsource:
  category: file_event
  product: windows
detection:
  selection:
    Image|endswith: \msdt.exe
    TargetFilename|contains:
      - \Desktop\
      - \Start Menu\Programs\Startup\
      - C:\PerfLogs\
      - C:\ProgramData\
      - C:\Users\Public\
  condition: selection
falsepositives:
  - Unknown
level: high
license: DRL-1.1
related:
  - id: 318557a5-150c-4c8d-b70e-a9910e199857
    type: derived