Question
How can I block an app dependent on its parent process?
Answer
You can use the "parent process" parameter
NOTE:
THIS WILL NOT WORK IF THE PARENT PROCESS HAS A POLICY WITH THE CHILD PROCESSES OPTION ENABLED
In this example, we'll write a policy to block powershell.exe if the parent process is explorer.exe
1) EPM > Policies > Application Groups > Create Custom Application Group
2) Name it something like "PowerShell Parent Process Block"
3) In the scope section, click add definition
4) Add an entry for the parent process to use to determine if the policy is blocked. Example:
filename is exactly explorer.exe
publisher's signature is exactly Microsoft Windows
5) Click Create to create the application group
6) EPM > Policies > Set dropdown to "Application Policies"
7) Click "Create advanced policy" in upper right
😎 Name the policy. You may want to indicate the policy will be dependent on the parent process in the name. For example, "Block PowerShell dependent on parent"
9) set the platform
10) Set Action to "Block" and click Continue
11) In scope, click "Add definition"
12) Add parameters as needed to identify the file. For example
Filename is exactly PowerShell.exe
Publisher's signature is exactly Microsoft Windows
Remove the "Location" field by clicking the trash can icon to the right
13) Click "Add property" and select "Parent Process" from the drop down
14) Click "Select" and then choose the name of the application group you set up earlier (in steps 1-5)
15) Click Done
16) Set targets to the appropriate computers. We recommend targeting just a small number of computers using "Computers in set" until you know the policy works well.
17) Set Priority as needed
18) Click Create > yes