IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

CB Defense: Script files being blocked despite permission rules for script host

CB Defense: Script files being blocked despite permission rules for script host

Environment

CB Defense Web Console: All Versions
CB Defense Sensor: All Versions

Symptoms

Script files are blocked, despite the script host being whitelisted and/or policy bypassed already

Cause

Affected scripts need to be bypassed in order to run

Resolution

Create an API Bypass Permission rule for the impacted script files, based on their path and name. 

Additional Notes

  • For the purposes of execution, scripts are text files that are accessed in a read only manner that results in the execution of their contents by a separate program, the script host. Script hosts, such as python.exe, excel.exe, etc, often execute in a standalone mode without processing a script. When a script host accesses a script file, the CB sensor applies special handling to treat this as invocation of an executable file, despite the script being opened with read only permissions.
    • Using cscript as an example, when a .vbs script is run though cscript, cscript is executed and name/path rules are evaluated against cscript. When cscript loads the script, that 'execution' is tested against the rules applied to cscript, such as 'Deny Invokes Untrusted Process'. This results in deny events seen in the console. As part of evaluating the script, name replacement occurs and from then on, the path rules that apply will be based on the script name.
  • To see improvements made to the console details around the scripts and script hosts, please upvote the following feature request: CB Defense: Script Host Event Details

Related Content


Was this article helpful? Yes No
0% helpful (0/1)
Article Information
Author:
Creation Date:
‎09-09-2020
Views:
4120
Contributors