I recently tried customizing Word's Ribbon UI:
My procedure:
- Created a .dotm file
- Added custom XML for Ribbon modifications using Office RibbonX Editor
- Placed file in Word's STARTUP folder:
C:\Users[USER]\AppData\Roaming\Microsoft\Word\STARTUP
🚨 RED FLAG:
My antivirus immediately flagged the .dotm file as potentially harmful. It detected security vulnerabilities that could be exploited by malicious code. The warning suggested immediate removal of the file.
It is worth noting that my .dotm file contains only one simple module, which displays a message box.
My Questions:
- What's the current best practice for safe Ribbon customization?
- Are there modern alternatives to RibbonX Editor?
- Is there any way to edit the XML other than using RibbonX Editor? For example, can I change the .dotm file to a .zip, edit its XML code, repackage it as a .zip, and then change it back to a .dotm file? I tried this, but it didn’t work.
- How can we verify template security?
For now, I've removed the custom template for safety. I would love to hear from security experts on how to achieve this safely in 2025. The old methods seem too risky in today's threat landscape.