Jump to content

[ RESOLVED ] Application Hardening blocks access to vbscript.dll


Recommended Posts

I make heavy use of Excel macros - like all the time. Malwarebytes is blocking access to C:\Windows\SysWOW64\vbscript.dll from VBA which means the macros stop running. This is the specific bit of code which is pretty innocuous:

Dim RegEx As New VBScript_RegExp_55.RegExp
RegEx.IgnoreCase = True

No problem I thought, I'll add an exception for this file but this doesn't allow the script to run: https://i.imgur.com/hZ0gmfl.png

Any ideas? Can't even work out how to turn off application hardening?

Link to post
Share on other sites

  • Staff

***This is an automated reply***

Hi,

Thanks for posting in the Malwarebytes for Windows Help forum.

 

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

Spoiler

If you haven’t already done so, please run the Malwarebytes Support Tool and then attach the logs in your next reply:

NOTE: The tools and the information obtained is safe and not harmful to your privacy or your computer, please allow the programs to run if blocked by your system.

  1. Download Malwarebytes Support Tool
  2. Once the file is downloaded, open your Downloads folder/location of the downloaded file
  3. 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.
  4. Place a checkmark next to Accept License Agreement and click Next
  5. You will be presented with a page stating, "Get Started!"
  6. Click the Advanced tab on the left column

    mbst_get_started.jpg
     
  7. Click the Gather Logs button

    mbst_advanced_gather_logs.jpg
     
  8. A progress bar will appear and the program will proceed with getting logs from your computer

    mbst_getting_logs.jpg
     
  9. Upon completion, a file named mbst-grab-results.zip will be found on your Desktop. Click OK

    mbst_log_saved_desktop.jpg
     
  10. Please attach the file in your next reply. Before submitting your reply, be sure to enable "Notify me of replies" like so:

     notify me.jpeg  

Click "Reveal Hidden Contents" below for details on how to attach a file:
 

Spoiler

To save attachments, please click the link as shown below. You can click and drag the files to this bar or you can click the choose files, then browse to where your files are located, select them and click the Open button.

mb_attach.jpg.220985d559e943927cbe3c078b
 

One of our experts will be able to assist you shortly.

 

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

Spoiler

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/community/consumer/pages/contact-us to get help

If you need help looking up your license details, please head here: https://support.malwarebytes.com/docs/DOC-1264 

 

Thanks in advance for your patience.

-The Malwarebytes Forum Team

 

Link to post
Share on other sites

Hello.

Lets give this a try.    Have Excel closed before starting this adjustment.  The adjustment is to change from the default setting of not allowing loading of VBscript on MS Office apps.

Start Malwarebytes.  Click Settings icon at top bar.

Click the Security tab.   scroll down to Exploit protection.  then click on Advanced Settings.

On the tab "Application hardening"  un-tick the box under MS Office    for "Disable loading of VBscript libraries".

Just that one box.   Then click the Apply button.

 

Then test that out.

 

  • Thanks 1
Link to post
Share on other sites

FYI, you can find info specific to MS Office and the use of VBScript here.  Given the frequency of use of VBScript for malware execution (particularly exploits), I would definitely recommend blocking VBScript and switching over to PowerShell if possible, but of course it is your system and if you have functions that rely on it without a PowerShell alternative or any other means outside of using VBScript then that is something you will have to weigh and decide on.  I'm just providing this information in case you were not aware and for the benefit of anyone else who might come across this thread.

Link to post
Share on other sites

  • 2 weeks later...

>I would definitely recommend blocking VBScript and switching over to PowerShell if possible

This is Excel application written in VBA, not a script so switching to PowerShell isn't an option. I've never been a big fan of VBScript anyway - adopted PowerShell years ago.

The problem here appears to be the use of the Microsoft VBScript Regular Expressions DLL from within VBA, not VBscript as such. Stored in C:\Windows\SysWOW64\vbscript.dll\3

It's this DLL that's being blocked, not VBScript itself. But maybe that's the only way Malwarebytes can block VBScript and has this as a side effect.

We're only using this DLL in VBA for regular expressions. There might be another DLL/library for regular expressions that we could switch to with little effort.

Link to post
Share on other sites

  • 4 weeks later...
On 1/7/2020 at 3:08 PM, Maurice Naggar said:

Hello.

Lets give this a try.    Have Excel closed before starting this adjustment.  The adjustment is to change from the default setting of not allowing loading of VBscript on MS Office apps.

Start Malwarebytes.  Click Settings icon at top bar.

Click the Security tab.   scroll down to Exploit protection.  then click on Advanced Settings.

On the tab "Application hardening"  un-tick the box under MS Office    for "Disable loading of VBscript libraries".

Just that one box.   Then click the Apply button.

 

Then test that out.

 

Thanks, this setting change works for me. I had the exact same problem with Malwarebytes Premium blocking vbscript.dll when my Excel VBA code attempts to use regexp. I've been a long time user of Malwarebytes and Excel VBA, and this has only started happening recently.

Link to post
Share on other sites

  • 5 months later...
Guest
This topic is now closed to further replies.
  • 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.