Background
Arellia Application Control Solution is a powerful solution that was designed to control any application on a machine. When Arellia is configured correctly, targetted applications can be elevated, whitelisted, and/or blacklisted. When new policies are created without carefully considering what the policy is doing, or if a policy is not tested on a limited number of machines before it is rolled out to the entire environment, customers can potentially roll-out a policy that blocks core system processes from running.
When Arellia is installed, one of the policies that is enabled by default is the "Deny Manual Security Rated Blacklist Execution" this policy is a blacklist that uses the "All Blacklist Security Rated Applications" filter. That filter is empty by default, which means that the built-in deny policy is targeting 0 applications and can be left enabled without any effect on the environment. This policy is different then new application control policies that are created manually. New policies start with the applications to control being undefined, which means that they will target all applications until application filters are used to narrow the scope of the new policy.
As a safety precaution, any newly created application control policy is turned off until they are enabled manually. Policies should not be enabled until after they have been configured.
...
Issue
This document tells you how to recover computers that have been locked out due to an improper manually created deny execute policy.
Solution
1. Disable the policy
Disable the manually created deny execute policy that has resulted in locking out computers.
2. Update affected computers
You can update affected computers by running a task via the Thycotic Security Manager, or by manually restarting the affected computer(s).
Run a task
If you're still able to log into the affected computer, then you can run a task from the Thycotic Security Manager to update the computer by doing the following steps:
- Click the Tasks tab.
- In the file library in the left pane, navigate to Jobs and Tasks > Client Tasks.
- Click Update Applicable Policies.
- In the right pane under Task Status, click Run Now.
- In the Run Task Now dialog box under Input Parameters, next to ResourceIds target all computers or only the affected computers.
- Click Run Task.
Perform a configuration update on each of the affected endpoints by creating a new Update Client Configuration Task and schedule it to run immediately on all computers, or on the computers that are known to have been affected by the deny execute policy.
Manual Update
If you cannot log into the affected computer, then you have to update the computer manually by doing the following steps:
- Restart the affected computer(s) in safe mode. (For details about starting in safe mode, go to Start your computer in safe mode.)
- In the Control Panel open Administrator Tools > Services.
- Right-click Thycotic Application Control and click Properties.
- Change the Startup Type to Disabled
- Click OK
Restart the computer.
- Go to the Control Panel again and open Administrator Tools > Services.
- Change the Thycotic Application Control Startup Type to Automatic.
More information on how to configure blacklisting policies
Additional info
A manually created blacklisting or deny execute policy that has no application targets will apply to all programs and services and prevent them from running on an end-user's machine. If a new deny execute policy is created and enabled with out limiting the application target scope of the policy or is not being used with a proper whitelist, the bad blacklist policy will get rolled out and begin denying execution of all applications. This include includes userinit.exe which will prevent users from logging in after a reboot. Those computers will act as if they are frozen because no new processes can get created.
Solution
- First login to the Arellia Management Console on the Server and disable the bad Blacklisting Policy.
- Restart the computer that has been effected by the Blacklisting Policy in Safe mode.
- Open the Administrator Tools in the Control Panel and then Services.
- Find Arellia Application Control, right click and select Properties.
- Change the Startup Type to Disabled, Click OK and restart the computer.
- After restarting the computer right click on the Symantec Management Agent icon in the taskbar and select Symantec Management Agent Settings and then click Update to update your policy.
- You should now be able to open all the programs and services that were previously blacklisted.
- Open Services again from the Control Panel and change the Arellia Application Control Startup Type to Automatic.
- Restart your computer and everything should work as normal.
How to Avoid this Problem
Short-answer:
Test policies on a limited number of machines before rolling them out to the entire environment.
Long-answer:
New Policies:
- Right-click the Policies folder and select New > Deny Application Execution Policy. This will create an empty deny policy that is disabled.
- If you are creating a deny policy for a specific application, or a specific group of applications. Change the Applications: line to one or more specific application filter(s)
- Deny Execute (Blacklist) policies should target specific applications unless being used in conjunction with whitelist policies and have been tested before rolling out to the entire environment.
- If being used in conjunction with whitelist policies, verify that the whitelist is catching all system applications and that the new blacklist is the last policy executed. For additional safety you can define the exclude any parameter to exclude system and service applications.
- By leaving the application target undefined, the policy will target all applications. This is a desired effect for a catch-all blacklist policy.
- After the policy has been configured, test it on a few machines, and then roll it out to everyone.
Existing Policies:
- To ensure blacklist policies do not affect system or service applications: from the Arellia Management Console click on Policies, open Policies->Arellia->Application Control->Policies and select your Blacklisting Policy.
- Select they hyperlink next to Exclude Any:
- Then select Arellia->Application Control->Filters->Dynamic Filters->Application Context-> "Local System and Service application" and move that to the right side. Doing so should prevent the blacklist policy from stopping any Windows Services and Programs from running. This will allow you to update a policy and recover from a bad Deny Execute (blacklist) condition.
...