system_settings_remote_management_disable avoid undocumented mdmclient #122

Closed
opened 2026-01-19 18:29:18 +00:00 by michael · 2 comments
Owner

Originally created by @nihil-admirari on GitHub.

system_settings_remote_management_disable check uses mdmclient, whose man page states:

WARNING: All command arguments are private. The arguments and output can and will change without notice. Do not rely on any output this command may produce.

CIS “2.3.3.6 Ensure Remote Management Is Disabled” simply does a pgrep:

! /usr/bin/pgrep -q ARDAgent && :
echo $?

May be it makes sense to switch away from mdmclient, considering that CIS have already done so?

Originally created by @nihil-admirari on GitHub. [system_settings_remote_management_disable](https://github.com/usnistgov/macos_security/blob/main/rules/system_settings/system_settings_remote_management_disable.yaml) check uses `mdmclient`, whose man page states: > WARNING: All command arguments are private. The arguments and output can and will change without notice. Do not rely on any output this command may produce. CIS “2.3.3.6 Ensure Remote Management Is Disabled” simply does a `pgrep`: ```sh ! /usr/bin/pgrep -q ARDAgent && : echo $? ``` May be it makes sense to switch away from `mdmclient`, considering that CIS have already done so?
Author
Owner

@robertgendler commented on GitHub:

Reviewing this again. If mdmclient does change and ends up being not the best method to check when an OS update or upgrade is released, we will update our checks appropriately.

@robertgendler commented on GitHub: Reviewing this again. If `mdmclient` does change and ends up being not the best method to check when an OS update or upgrade is released, we will update our checks appropriately.
Author
Owner

@robertgendler commented on GitHub:

We have found a handful of undocumented things within the project and test them between OS releases. mdmclient commands seem safe enough.

@robertgendler commented on GitHub: We have found a handful of undocumented things within the project and test them between OS releases. mdmclient commands seem safe enough.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: usnistgov/macos_security#122