Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows » Microsoft Support Diagnostic Tool Vulnerability Fix
  • office configuration analyzer tool offcat
    Office Configuration Analyser Tool (OFFCAT): Now Microsoft Support and Recovery Wizard Microsoft Exchange/Office/365
  • How To Put Multiple OS ISO Files In One Bootable USB Disk
    USB Drive: Create a Multiboot with Multiple OS ISOs Windows
  • banner
    What is Phishing Resistant Multi-Factor Authentication? Security | Vulnerability Scans and Assessment
  • Authentication failed   invalid credential Veeam VSA
    Fix Authentication failed: Invalid credential after installing VSA Backup
  • banner 1
    How to Create Shared Folder in Windows Sandbox Virtualization
  • LOGIN EE Modal View 1 12
    Pleasant User Group Permission and User Access Password Manager
  • Veeam upgrade11 11a
    How to upgrade Veeam Backup and Replication from version 11 to 11a Backup
  • update device drivers windows 10 thumbnail
    How to install SCConfigMgr Driver Automation Tool on Windows Windows Server

Microsoft Support Diagnostic Tool Vulnerability Fix

Posted on 01/06/202211/12/2023 Christian By Christian 4 Comments on Microsoft Support Diagnostic Tool Vulnerability Fix
Microsoft

On May 30, 2022, Microsoft released a statement about a zero-day remote code execution flaw, designated CVE-2022-30190. This flaw pertains to the Windows vulnerability in the Microsoft Support Diagnostic Tool (MSDT). Furthermore, The Microsoft Security Response Center team has outlined this security flaw and its impact on specific Windows and Windows Server versions. Please see how to Delete Diagnostic Data in Windows 10 and Windows 11.

Tracked as CVE-2022-30190, security researcher Kevin Beaumont first discovered and reported the vulnerability dubbed “Follina” to Microsoft on April 12. Here are some related guides: How to deploy a function app from Visual Studio to Azure Platform, and how to Install Packages to Amazon Virtual Machine using Terraform.

The flaw exploits an Office feature, retrieving an HTML file, and then utilizing MSDT for executing PowerShell code. Beaumont and fellow researchers confirmed exploiting the vulnerability in Office 2021, 2019, 2016, and 2013.

Microsoft Support Diagnostic Tool (MSDT) is a service in Windows 11/10/8 and 7 and also on Windows Server. The tool allows Microsoft support representatives to analyze diagnostic data and find a resolution to issues.

MSDT called via URL protocol from an app like Word creates remote code execution vulnerability. However, An attacker who successfully exploits this vulnerability can run arbitrary code with the privileges of the calling application. Nonetheless, The attacker can install programs, view, change, delete data, or create new accounts within the user’s rights.

The system includes the tool, accessible by pressing Windows key + R and typing MSDT in the run dialogue window. Additionally, I’ll offer a guide for using the Microsoft Support Diagnostic Tool & System Diagnostic Report.

Support
Diagnostic Tool

Workaround for Microsoft Support Diagnostic Tool Vulnerability Fix

I will be showing you how to resolve this issue via the Command Prompt, Registry Settings, and GPO.

Via the Command Prompt

Pending when the updates will be released, Microsoft has provided a workaround to fix the remote code execution vulnerability in MSDT. Below are the steps to mitigate this flaw.

First of all, run Command Prompt with Administrator privileges.

Vulnerability Fix

2: Run the following command to back up the registry key: “reg export HKEY_CLASSES_ROOT\ms-msdt filename“

Note: The filename is the name you can give.
Microsoft

3: Execute the command “reg delete HKEY_CLASSES_ROOT\ms-msdt /f”.

Support

Microsoft Support Diagnostic: Undo this Workaround

If for some reason you wish to undo this workaround due to Microsoft providing a permanent fix such as a Windows update etc., the following steps below will help in undoing the changes applied.

Run Command Prompt as Administrator.
Diagnostic Tool

To restore the registry key, execute the command “reg import filename” 

Screenshot-2022-06-01-at-17.07.38

Alternative Workaround

Also, see Microsoft Support: Limit Extra Diagnostic Downloads on Windows, how to enable and use Diagnostic Data Viewer on Windows, and how to run Windows Memory Diagnostics Tool on Windows.

Registry Settings to Disable MSDT URL Protocol

To fix this issue via the Registry Settings, you will need to create the DWORD value 32-bit named EnableDiagnostics and enter the value at 0.

HKLM\SOFTWARE\Policies\Microsoft\Windows\ScriptedDiagnostics

Or use the command below

reg add “HKLM\SOFTWARE\Policies\Microsoft\Windows\ScriptedDiagnostics” /t REG_DWORD /v EnableDiagnostics /d 0

Disable Diagnostic “Troubleshooting wizards” by GPO

This policy setting allows users to access and run the troubleshooting tools that are available in the Troubleshooting Control Panel and to run the troubleshooting wizard to troubleshoot problems on their computers.

If you enable or do not configure this policy setting, users can access and run the troubleshooting tools from the Troubleshooting Control Panel.

Computer Configuration/Policies/Administrative Templates/System/Troubleshooting and Diagnostics/Scripted Diagnostics
Capture1gpo68uh3

On the Troubleshooting: Allow users to access and run Troubleshooting Wizards policy, click on disabled

Capture2GPO56z-1

Note that this setting also controls a user’s ability to launch standalone troubleshooting packs such as those found in .diagcab files.

Microsoft Support Diagnostic: Microsoft Defender Detections & Protections

Some customers sometimes use the built-in Microsoft Defender Antivirus or another Anti-virus solution. If you use the Microsoft Defender Antivirus, you should enable cloud-delivered protection and automatic sample submission. 

Microsoft reiterated that Customers of Microsoft Defender for Endpoint can enable the attack surface reduction rule “BlockOfficeCreateProcessRule” that blocks Office apps from creating child processes. Creating malicious child processes is a common malware strategy.

Microsoft Defender Antivirus provides detections and protections for possible vulnerability exploitation under the following signatures using detection build 1.367.719.0 or newer:

  • Trojan:Win32/Mesdetty.A  (blocks msdt command line)
  • Trojan:Win32/Mesdetty.B  (blocks msdt command line)
  • Behavior:Win32/MesdettyLaunch.A!blk (terminates the process that launched msdt command line).

Microsoft Defender for Endpoint provides customers with detections and alerts. The following alert title in the Microsoft 365 Defender portal can indicate threat activity on your network:

  • Suspicious behavior by an Office application
  • Suspicious behavior by Msdt.exe

I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows Tags:vulnerability, Windows 10, Windows 11, Windows Server 2016

Post navigation

Previous Post: Deploy a function app from Visual Studio to Azure Platform
Next Post: Install SysInternals from the Microsoft Store

Related Posts

  • screenshot 2020 02 08 at 15.53.31
    Enable Automatic Logon via Windows Registry Windows
  • How to Disable Integrated Graphics
    How to Disable Integrated Graphics on Windows Windows
  • images 2
    How to disable power plan in Windows via GPO and Windows Settings Windows
  • MBAM
    The web application “Administration Portal” cannot be enabled because one or more software dependencies are not met Windows
  • wds
    What are the differences between Lite-Touch and Zero-Touch installation? Windows
  • Error 1069 Windows could not start
    Fix Error 1069: Windows could not start the Veeam backup service on local computer Backup

More Related Articles

screenshot 2020 02 08 at 15.53.31 Enable Automatic Logon via Windows Registry Windows
How to Disable Integrated Graphics How to Disable Integrated Graphics on Windows Windows
images 2 How to disable power plan in Windows via GPO and Windows Settings Windows
MBAM The web application “Administration Portal” cannot be enabled because one or more software dependencies are not met Windows
wds What are the differences between Lite-Touch and Zero-Touch installation? Windows
Error 1069 Windows could not start Fix Error 1069: Windows could not start the Veeam backup service on local computer Backup

Comments (4) on “Microsoft Support Diagnostic Tool Vulnerability Fix”

  1. Avatar photo Daniel says:
    03/06/2022 at 1:58 PM

    Thank you! Enabled on our system now 🙂

    Log in to Reply
    1. chris Christian says:
      14/06/2022 at 10:10 PM

      Awesome! I am glad you found this piece useful…

      Log in to Reply
  2. Avatar photo Chris says:
    05/06/2022 at 3:22 PM

    Very helpful. Will try it asap. Thanks

    Log in to Reply
    1. chris Christian says:
      14/06/2022 at 10:10 PM

      You are welcome!

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a
 
  • office configuration analyzer tool offcat
    Office Configuration Analyser Tool (OFFCAT): Now Microsoft Support and Recovery Wizard Microsoft Exchange/Office/365
  • How To Put Multiple OS ISO Files In One Bootable USB Disk
    USB Drive: Create a Multiboot with Multiple OS ISOs Windows
  • banner
    What is Phishing Resistant Multi-Factor Authentication? Security | Vulnerability Scans and Assessment
  • Authentication failed   invalid credential Veeam VSA
    Fix Authentication failed: Invalid credential after installing VSA Backup
  • banner 1
    How to Create Shared Folder in Windows Sandbox Virtualization
  • LOGIN EE Modal View 1 12
    Pleasant User Group Permission and User Access Password Manager
  • Veeam upgrade11 11a
    How to upgrade Veeam Backup and Replication from version 11 to 11a Backup
  • update device drivers windows 10 thumbnail
    How to install SCConfigMgr Driver Automation Tool on Windows Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,841 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.