Skip to content

Monitoring - authorisation rules

Elevate24 has the capability to block processes or file actions while the user is elevated, or always regardless of elevation. When configuring this, it's important to test the configuration to ensure the desired outcome.

File operation rules

  • Availability: Premium
  • Type: Array

Rules to restrict file operations. Allow rules can be used in conjunction with block rules to allow a process to execute under the specified conditions. File open operations can be restricted to read-only access where required.

xml
<key>FileOperationRules</key>
	<array>
		<dict>
			<key>action</key>
			<string>allow</string>
			<key>alwaysActive</key>
			<true/>
			<key>fileOperation</key>
			<string>file:open</string>
			<key>fileTargetPath</key>
			<string>/path/to/file</string>
			<key>signingID</key>
			<string>com.example.app</string>
			<key>username</key>
			<string>username</string>
		</dict>
	</array>

Parameters

KeyTypeRequiredDescription
actionStringYesThe action to apply. Accepted values: allow, block, readOnly
alwaysActiveBooleanNoWhen true, the rule applies at all times regardless of elevation. When omitted or false, the rule only applies during an elevated session.
fileOperationStringYesThe file operation to match. Accepted values: file:open, file:unlink
fileTargetPathStringNoPath to the target file or directory. Supports wildcards, e.g. /private/var/*
signingIDStringNoSigning ID of the process performing the file operation, e.g. com.apple.finder
usernameStringNoRestricts the rule to a specific local username

NOTE

At least one of fileTargetPath, signingID, or username should be specified to avoid broadly matching all file operations.


Execute process rules

  • Availability: Premium
  • Type: Array

Rules to restrict execution of processes. Allow rules can be used in conjunction with block rules to allow a process to execute under the specified conditions. Multiple arguments can be specified by separating them with a comma.

xml
<key>ExecuteProcessRules</key>
	<array>
		<dict>
			<key>action</key>
			<string>block</string>
			<key>alwaysActive</key>
			<true/>
			<key>matchingArgumentsContaining</key>
			<string>Contains...</string>
			<key>processPath</key>
			<string>/Applications/Example.app/Contents/MacOS/Example</string>
			<key>signingID</key>
			<string>com.example.app</string>
			<key>sourceSigningID</key>
			<string>com.example.app</string>
			<key>username</key>
			<string>username</string>
			<key>silentBlock</key>
			<true/>
		</dict>
	</array>

Parameters

KeyTypeRequiredDescription
actionStringYesThe action to apply. Accepted values: allow, block
alwaysActiveBooleanNoWhen true, the rule applies at all times regardless of elevation. When omitted or false, the rule only applies during an elevated session.
matchingArgumentsContainingStringNoMatches processes whose launch arguments contain this value. Separate multiple values with a comma, e.g. --admin,--elevated
processPathStringNoFull path to the process executable, e.g. /usr/bin/curl
signingIDStringNoSigning ID of the process to match, e.g. com.apple.Terminal
sourceSigningIDStringNoSigning ID of the launching (parent) process. Used to permit or block a process from being launched from a nominated source
usernameStringNoLimits application of the rule to a specific username. This key is only valid for Elevate24 2.5+
silentBlockBooleanNoWhen true, users will not be notified of the blocked process. When omitted or false, users will be notified if a process is blocked.

NOTE

At least one of processPath or signingID should be specified to avoid broadly matching all process executions.

IMPORTANT

Always test authorisation rules in a non-production environment before deploying. An overly broad block rule could prevent critical system processes from running.

Authorisation rule - notifications

  • Availability: Premium
  • Version: 2.5.0+

When an authorisation rule is triggered, the user is shown a notification.

Notification

Clicking on the notification will display more detailed information.

Notification Expanded

Authorisation rule - blocked events history

  • Availability: Premium
  • Version: 2.5.0+

Additional information and options are accessible via the settings panel.

Elevate24

From the settings panel, a 30-day history of blocked events is available.

Elevate24_Settings

This will show a history of triggered authorisation rules.

Elevate24-Blocked_Events_List

Each list item can be opened for additional details (displaying the same information shown when clicking the original notification).

Elevate24-Blocked_Event_Details

Hide blocked events history

  • Availability: Premium
  • Version: 2.5.0+
  • Default: false

When enabled, hides the blocked events history from the Elevate24 UI.

xml
<key>HideBlockedEventHistory</key>
<true/>

NOTE

When enabled, users cannot view the blocked events history. Notifications are still shown when an authorisation rule is triggered.

macOS Privileged Access Management solution