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!

Carbon Black Cloud: How to work with wildcards in path based policies

Carbon Black Cloud: How to work with wildcards in path based policies

Environment

  • Carbon Black Cloud: All Versions
  • Microsoft Windows: All Supported Versions

Objective

How to better understand wildcards and case sensitivity in a policy's path-based exclusions. 

Resolution

Single asterisk ( * )
  • Matches 0 or more consecutive characters up to a single subdirectory level.
  • Basically, it's a wildcard for that directory only. NON-recursive
Example:
C:\program files*\custom application\*.exe
This example will affect any executable files in:
C:\program files\custom application\
or
C:\program files(x86)\custom application\

Double asterisks ( ** )
  • Matches a partial path across all subdirectory levels.
  • Is recursive.
Example:
C:\Python27\Lib\site-packages\**
- This example will affect any files in that directory and all subdirectories.
C:\Python27\Lib\site-packages\
or
C:\Python27\Lib\site-packages\subdirectory one\
or
C:\Python27\Lib\site-packages\subdirectory one\subdirectory two\
or
C:\Python27\Lib\site-packages\subdirectory one\subdirectory two\subdirectory three\

Leading wildcards for Windows drives
To specify an application that runs on any directory (C:\ or D:\ or F:\), use a question mark ' ?  ':
?:\My App\test.exe

 

Additional Notes

All paths for Windows directories are not case-sensitive. 

Related Content


Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎11-02-2023
Views:
217
Contributors