Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security ssh detection update #943

Merged
merged 10 commits into from
Feb 8, 2018

Conversation

poundbangbash
Copy link
Contributor

The current SSH information in the Client Details and Security Listing doesn't include group or directory based users.

The changes I incorporated gather user and group information from the com.apple.ssh_access group.

Users that are explicitly added in the Remote Login Preference pane are listed in the GroupMemberships key.

Groups are a little trickier as they are only stored as UUIDs. Using a couple loops those UUIDs can be converted to group names.

Since groups are now supported I thought it didn't make much sense to use the previous method of evaluating each local user against the com.apple.ssh_access list to check if they are members. That method won't catch directory based groups would not list all of it's members as SSH Users.

Since this is my first go at a v3 migration I'd appreciate a keen eye on how the migration is performed. In testing the current code appears to work fine.

@bochoven bochoven merged commit 9c05815 into munkireport:wip Feb 8, 2018
@poundbangbash poundbangbash deleted the security-ssh-detection-update branch February 9, 2018 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants