EPM QuickStart Policy Handling for Mac Best Practices
Objective
Implementing Least Privilege on macOS with Idira EPM QuickStart Policies
CyberArk’s macOS EPM QuickStart policies offer a pre-configured framework to enhance security and simplify administration. Designed to enforce least-privilege principles, these policies help reduce risk from common threats and streamline policy deployment.
To understand QuickStart fundamentals, watch the EPM Video Nuggets on QuickStart and macOS definitions.
What to Expect When Enabling QuickStart Policies
Once QuickStart policies are enabled on macOS, you may see frequent EPM application block dialogs. While it’s meant to protect against malicious code, the block policies can also block legitimate applications that invoke OS-level binaries. These binaries, which are frequently weaponized by malware, are also known as Loobins (Living Off the Orchard Binaries) and are well known in the security community. As a result, even trusted applications may trigger blocks under this policy, making it a critical area for review and refinement.
To minimize disruptions, you'll need to evaluate blocked events and create exceptions for trusted apps.
Understanding the 2.1 Block Policy
Among the various policies included in QuickStart, the 2.1 block policy quickly becomes the most visible and impactful due to its restrictive nature. This policy must be tuned so that approved applications are exempted.
OS binaries like ditto, system_profiler, or ioreg are commonly used by the operating system but can also be abused by attackers to perform malicious actions without triggering traditional security alerts. A key concept to understand here is context-aware application control. What this means is we want to prevent the weaponization of OS-level functions by considering what is launched from parent processes to child processes when it comes to allowlisting practices.
The 2.1 block policy targets binaries signed with Apple’s Developer ID that invoke OS-level functions (e.g., ditto, system_profiler, ioreg). These can be misused by attackers, but are also used by legitimate apps like Slack or JAMF. For these cases, we use context-aware application control—evaluating both parent and child processes to determine legitimacy.
Environment
25.5 EPM EPM Console;Mac Agent;EPM Agent
Procedure
Exception Handling Workflow
The following decision-making workflow can be used to guide you with your evaluation of the parent and child relationship to determine which policy and/or application groups to update.
Identify the Blocked Event
1. This is an example of an application blocked by policy. Notice that the Publisher is Software Signing. Provide a justification so this event can be tracked down more easily in Policy Audit.
Review Policy Audit
2. In the EPM console, go to Policy Audit and use the filter to track down the blocked event. Once found, we want to look under Parent process to confirm if there is a parent process present.
Determine the Parent-Child Relationship
3. In this case, JAMF is the parent process and the OS-level binary is system_profiler. We can follow the workflow diagram and review the next decision point to check if the parent process is in the approved Invokers of Loobins application group. If, however, we see that there is no associated parent process, we would just add an exception directly to the QuickStart - Exceptions to Blocked/Restricted application group (follow No path at first decision point in the workflow diagram). Note that there are two “Exceptions to Blocked/Restricted” application groups, Global and Developers. These were created to provide more granular control for different roles/personas in your organization.
a. Again, MacOS QuickStart takes into account context-aware application control meaning we're observing when OS-level binaries are called by 3rd party applications and we can control which parent applications can launch which child processes.
Check the Approved Invokers Group
4. From the EPM Console > Under Policies > Application Groups > click on QuickStart – macOS Global Approved Invokers of Loobins apps to check if there is a definition that matches the parent process identified in step 2.
- In this example, it doesn’t exist so we will capture the details from step 2 so we can add a new definition to allow JAMF (the parent process) to launch system_profiler (the child process).
- In order to capture the entire parent process path, you can triple-click the path itself shown below by the red arrow.
- This will allow you to copy/paste the full details to parse out the data so you can build the following definition:
Once saved, double-check and make sure your newly added definition is added to the Approved Invokers of Loobins apps Application Group:
Create Exception for the Child Binary
5. Next we need to add an exception for the child process. In this case, we are adding system_profiler to the 1.0 – QuickStart – Global Exceptions to Blocked/Restricted policy since the child process doesn’t already exist. Note that there is a 1.0 and a 1.1 policy for QuickStart. The distinction is that the 1.0 policy is for any global applications while the 1.1 can be tailored for specific roles. In this example, JAMF is our MDM for the entire organization so we’ll be targeting the 1.0 global policy.
a. We’ll go ahead and create the following definition and pay special attention to the Parent process property highlighted in red in the following screenshot. We are choosing the specific application group where JAMF was added in step 4 above.
Rinse and Repeat Process
6. At this point, we’ve completed the steps to allow JAMF to access system_profiler using EPM controls. Note that it’s very possible this exception handling process needs to be followed multiple times per application, since if the one we just excluded above has a series of binaries being called, then we'll need to rinse and repeat using the steps above.
Handle Other Blocking Policies
7. Once you’ve completed handling the 2.1 blocking for software signing applications, you can then proceed to addressing the 2.0 blocks (common attack vectors) which most likely won't have parent processes to consider and should just be added to its relevant app group.
Manage Elevation Requests
8. You may also encounter elevation attempts that populate in EPM Events Management. For these events, you should review and add ones that are allowed to be elevated into the relevant 3.0 Elevate policy for the current role/persona group you are working with. If it is an auto-updater/helper function that needs to elevate, then you can use the QuickStart - macOS Elevate Installers/Updaters Application Group; otherwise use the QuickStart - Global Approved Elevations Application Group.
Scaling Policy by Persona Group
Repeat the above workflow for each user group to reduce noise and fine-tune controls. Duplicate the 1.1 QuickStart – [Role] Exceptions policy and its related App Groups for:
- Global – Applications used on all macOS devices
- Information Security – Tools exclusive to security teams
- Information Technology – Applications used by IT and support
- Executives – Applications used by leadership team
- Developers – Likely the most complex due to diverse toolsets
- Any other pertinent roles to include
In summary, this article serves as a prescriptive guide on how to execute least privilege on macOS using our QuickStart policies. These policies were created not only to help you get started with EPM but also allows you to scale in a structured and organized manner that is scalable.