We’re launching free support for BYOD Android devices and looking for early feedback. Interested?
Required: osquery must have Full Disk Access. Policy passes if all keys are encrypted, including if no keys are present.
Create or edit a configuration profile with the following information:
Create or edit the following script and configure it to run when the check fails:
Use the policy below to verify:
SELECT 1 WHERE NOT EXISTS (SELECT 1 FROM users CROSS JOIN user_ssh_keys USING (uid) WHERE encrypted='0');
if find /Users -type f -path "*/.ssh/id_*" ! -name "*.pub" 2>/dev/null | while read -r f; do grep -q "ENCRYPTED" "$f" || { echo "$f" && break; }; done | grep -q .; then echo 0; else echo 1; fi
PowerShell commands are currently work in progress, contributions welcome.
Bash commands are currently work in progress, contributions welcome.