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.
- Product
- windows
- Category
- file_event
- Author
- Vadim Varganov, Florian Roth (Nextron Systems) (SigmaHQ), DRL 1.1
- Published
- 2022-08-24
- Updated
- 2026-07-31
ATT&CK techniques
Persistence → Priv EscRecon
Resource Dev
Initial Access
Execution
Persistence
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
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.
Reporting behind it
- irsl.medium.comhttps://irsl.medium.com/the-trouble-with-microsofts-troubleshooters-6e32fc80b8bd
- msrc-blog.microsoft.comhttps://msrc-blog.microsoft.com/2022/05/30/guidance-for-cve-2022-30190-microsoft-support-diagnostic-tool-vulnerability/
- github.comhttps://github.com/SigmaHQ/sigma/blob/master/rules/windows/file/file_event/file_event_win_msdt_susp_directories.yml
Changelog
v2- v2Candidate ingested via manual entry.2026-07-31
- v1No 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.
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