Skip to main content

CVE-2021-40444 Office 365 Vulnerability 09-2021 - UNDO

Summary

This script removes the mitigation on the agent by deleting the imported registry entries. Refer to the article below:

Microsoft Shares Temp Fix for Ongoing Office 365 Zero-Day Attacks

Note: Please use this script only when the official Microsoft patches are installed.

Time Saved by Automation: 10 Minutes

Sample Run

Sample Run

Dependencies

CVE-2021-40444 Office 365 Vulnerability Report

Variables

VariableDescription
scriptcountTracks the record of how many attempts the script has made to reboot the agent.
MitigationStatusShows the status of the mitigation steps.
ScriptRanDateThe last time the script ran.
ApprovedStatusStores the reboot approved status.

Script States

NameExampleDescription
CVE-2021-40444_Office3650 -- 12/09/2021 -- No User -- Mitigation AppliedTracks information needed by data views and monitors about the script execution and results.

Process

  • This script will download and execute the enable-activex.reg registry file from: http://download.bleepingcomputer.com/reg/enable-activex.reg
    • The registry file deletes the previously entered registry entries from the endpoint.
  • The script validates if the registry execution completed successfully.
  • Data is written to the script state.

Output

  • Script log
  • Script state
  • Data view