EPM - MacOS - Troubleshooting Policy Blocks in Idira EPM on macOS: Identifying the Ultimate Parent Process
Objective
Overview
This knowledge article provides a systematic procedure for investigating policy blocks in Idira Endpoint Privilege Manager (EPM) on macOS systems. It focuses on tracing the parent processes of a blocked item to determine the ultimate originating process. This approach is essential for understanding the root cause of blocks enforced by policies, such as those targeting applications or tasks. Perform these steps each time a block occurs to ensure accurate diagnosis. The process involves reviewing EPM logs, system logs, and policy configurations.
Prerequisites:
- Access to EPM logs generated by Get Support Info (typically covering the last 8 hours or a relevant timeframe).
- Access to macOS system logs via tools like Console.app or log commands.
- Familiarity with basic log searching and process identification.
Environment
25.1;25.2;25.3;25.4;25.5;25.6;25.7;25.8;25.9;25.10;25.11;25.12 EPM EPM Console;EPM Agent
Procedure
Step-by-Step Procedure
Step 1: Review the EPM Logs
Open the EPM logs file for the relevant period (e.g., the last 8 hours). Begin at the end of the file and search backward for entries related to the blocked process (e.g., the executable name or path). This establishes the initial context for the block event.
Step 2: Locate the Blocked Event Entry
Identify the log entry that documents the block. Look for indicators such as:
- The attempt to execute the process (e.g., "try to exec '/path/to/process'").
- The denial action (e.g., "- deny").
- The associated policy (e.g., policy name and ID).
Record the policy details for later reference, as they explain the blocking criteria.
Step 3: Extract the Parent Process Information
Within the blocked event entry, locate the parent process details. This is typically formatted as:
- "parent: PID:additional_values" (e.g., the parent PID is the first value after "parent:").
Note the parent Process ID (PID) for further tracing.
Step 4: Search for the Parent Process in EPM Logs
Using the parent PID from Step 3, search the EPM logs for related entries. If no entries are found, the parent process may have initiated outside the current log window. In such cases, proceed to the system logs for a broader search using the same PID.
Step 5: Trace Further in System Logs
Access the macOS system logs (e.g., via Console.app or the log command). Search for the parent PID to find where it was created. Look for entries showing:
- The launching process (e.g., an executable that initiated the parent).
- Any associated scripts or commands.
Repeat this tracing for subsequent parent PIDs until the ultimate originating process is identified (e.g., a script or service that started the chain).
Step 6: Identify the Ultimate Originating Process
Examine the log entries for details on the responsible process, such as:
- Script paths or originating executables.
- Contextual information indicating the root cause (e.g., a system service or user-initiated task).
This step reveals the full process hierarchy leading to the block.
Step 7: Analyze the Blocking Policy
Review the policy configuration (e.g., via XML export or EPM console):
- Confirm the policy action (e.g., block) and targets (e.g., application groups).
- Verify how the blocked process matches the policy criteria (e.g., file name and location).
This ensures the block aligns with intended security rules.
Step 8: Document the Process Chain
Summarize the findings by mapping the full chain of processes, from the ultimate parent to the blocked item. For example:
- Originating Process → Intermediate Process(es) → Blocked Process.
Include relevant log excerpts, PIDs, and policy details for reference in incident reports or policy adjustments.
Best Practices
- Conduct investigations promptly after a block to capture fresh log data.
- Use search tools or scripts for efficient log navigation if dealing with large files.
- If blocks recur, consider policy refinements to target root causes rather than downstream processes.
This procedure enables precise troubleshooting, minimizing downtime and enhancing policy effectiveness in macOS environments.