mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
Time Machine encryption check fails with space in mount point - system_settings_time_machine_encrypted_configure #33
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @phaninder-scalefusion on GitHub.
Summary
The compliance rule for encrypted Time Machine backups fails when the backup drive has a space in its mount point.
Steps to reproduce
Operating System version
(macOS 13 / 14 / 15)
Intel or Apple Silicon
Both
Current behavior
Script cannot parse mount points with spaces, leading to false results.
Expected behavior
Script should handle spaces correctly and report encryption status accurately.
Possible fix
Update check script to use a safe loop:
@brodjieski commented on GitHub:
It looks like CIS is doing the following command for their method of auditing:
/usr/bin/sudo /usr/bin/defaults read /Library/Preferences/com.apple.TimeMachine.plist | grep -c NotEncryptedAnd reviewing the output to make sure it isn't 0.
This may be a simpler approach and something to consider.