Jump to content

Word Macro Blocked

Recommended Posts

I'm trying to create a VB based word macro. Something I have not done in about 15+ years. Using a macro in word is about the simplest way to get this going. Malwarebytes seems to be blocking the macro/code. I've tested on a few different systems not all protected by the same software, to varying degrees of results. However, where I intend to use this code is on a system normally using Malwarebytes so I'd like to seek a resolution with that software first.

Here is the my message from Malwarebytes:


-Log Details-
Protection Event Date: 12/9/20
Protection Event Time: 12:04 PM
Log File: 97b96690-3a40-11eb-a7c6-001583f9e730.json

-Software Information-
Components Version: 1.0.1122
Update Package Version: 1.0.34125
License: Premium

-System Information-
OS: Windows 10 (Build 19041.685)
CPU: x64
File System: NTFS
User: System

-Exploit Details-
File: 0
(No malicious items detected)

Exploit: 1
Malware.Exploit.Agent.Generic, C:\Windows\SysWOW64\vbscript.dll, Blocked, 0, 392684, 0.0.0, A1E065682934982360869E862DF860BB, F04FD84E9B5170EB40068825F272A1225D71B70FC337B99226F538A006D51F33

-Exploit Data-
Affected Application: Microsoft Office Word
Protection Layer: Application Hardening
Protection Technique: Attempt to execute VBScript blocked
File Name: C:\Windows\SysWOW64\vbscript.dll



Word Macro debugging indicates Run-time error '70': Permission Denied
Line being blocked is: Set RE = New RegExp

Link to post
Share on other sites

  • Staff

***This is an automated reply***


Thanks for posting in the Malwarebytes for Windows Help forum.

If you are having technical issues with our Windows product, please do the following:

Malwarebytes Support Tool - Advanced Options

This feature is designed for the following reasons:

  • For use when you are on the forums and need to provide logs for assistance
  • For use when you don't need or want to create a ticket with Malwarebytes
  • For use when you want to perform local troubleshooting on your own

How to use the Advanced Options:

  1. Download Malwarebytes Support Tool
  2. Double-click mb-support-X.X.X.XXXX.exe to run the program
    • You may be prompted by User Account Control (UAC) to allow changes to be made to your computer. Click Yes to consent.
  3. Place a checkmark next to Accept License Agreement and click Next
  4. Navigate to the Advanced tab
  5. The Advanced menu page contains four categories:
    • Gather Logs: Collects troubleshooting information from the computer. As part of this process, Farbar Recovery Scan Tool (FRST) is run to perform a complete diagnosis. The information is saved to a file on the Desktop named mbst-grab-results.zip and can be added as an email attachment or uploaded to a forum post to assist with troubleshooting the issue at hand.
    • Clean: Performs an automated uninstallation of all Malwarebytes products installed to the computer and prompts to install the latest version of Malwarebytes for Windows afterwards. The Premium license key is backed up and reinstated. All user configurations and other data are removed. This process requires a reboot.
    •  Repair System: Includes various system-related repairs in case a Windows service is not functioning correctly that Malwarebytes for Windows is dependent on. It is not recommended to use any Repair System options unless instructed by a Malwarebytes Support agent.
    • Anonymously help the community by providing usage and threat statistics: Unchecking this option will prevent Malwarebytes Support Tool from sending anonymous telemetry data on usage of the program.
  6. To provide logs for review click the Gather Logs button
  7. Upon completion, click OK
  8. A file named mbst-grab-results.zip will be saved to your Desktop
  9. Please attach the file in your next reply.
  10. To uninstall all Malwarebytes Products, click the Clean button.
  11. Click the Yes button to proceed. 
  12. Save all your work and click OK when you are ready to reboot.
  13. After the reboot, you will have the option to re-install the latest version of Malwarebytes for Windows.
  14. Select Yes to install Malwarebytes.
  15. Malwarebytes for Windows will open once the installation completes successfully.













If you are having licensing issues, please do the following: 


For any of these issues:

  • Renewals
  • Refunds (including double billing)
  • Cancellations
  • Update Billing Info
  • Multiple Transactions
  • Consumer Purchases
  • Transaction Receipt

Please contact our support team at https://support.malwarebytes.com/hc/en-us/requests/new to get help

If you need help looking up your license details, please head here: Find my premium license key



Thanks in advance for your patience.

-The Malwarebytes Forum Team

Link to post
Share on other sites

44 minutes ago, Centauri22 said:

Logs and such.

Open Malwarebytes and access settings by clicking the small gear icon in the upper right, then select the Security tab and scroll down to the Exploit Protection section then click the Advanced settings button and click the Restore Defaults button on the lower left, then click Apply and wait around 20 seconds for the protection to refresh, then test to see if  Office works.

After that I suggest updating to the new version.


Link to post
Share on other sites

Exploit Protection is pretty aggressive against scripting in office applications and browsers since those are by far some of the most common methods used for executing exploit attacks.  I'm no expert in Office macros so I can't offer much in the way of alternatives for accomplishing what you're seeking to do with VB, but I do know that Office is pretty powerful and flexible when it comes to macros and scripting so I'm sure there is likely some alternative out there that won't trigger a block in Malwarebytes.

You might check Microsoft's forums to see what others have done and perhaps post to seek out advice from others who are familiar with it unless you just want to dig in on your own to see what you can come up with.

Link to post
Share on other sites

Thanks, I think that is the exact path I'm going to take, I just wanted to stop by here and see if I could get it going without significant levels of effort. :D  I figured I'd end up turning some functionality of MBAM off, and well there are many reasons I have not tried to use programmatic macros in 15+ years. Sure it will work, and it is quicker to get going, but at what potential cost if I have to reduce saftey levels? Also, desired result could be achieved manually, it is just a bother to do so, which is why there were macros in the first place.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
Back to top
  • Create New...

Important Information

This site uses cookies - We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.