kolide-google-matcher
Discover out-of-compliance hosts that have recently logged into Google Workspace, but lack a matching record in Kolide.
Installation
go install github.com/chainguard-dev/kolide-google-matcher@latest
Example Output
2022/11/07 11:35:44 Kolide: found 60 devices
2022/11/07 11:35:44 Google: found 58 devices
2022/11/07 11:35:44 inky@chainguard.dev mismatch: Google sees 2 macOS devices, Kolide sees 1
Google:
Inky's MacBookPro18,2 (MacOS 13.0.0) [Sep 2, 2022 to Nov 7, 2022]
Inky's Mac (macOS 10.15.7) [Sep 2, 2022 to Nov 6, 2022]
Kolide:
Inkys-MacBook-Pro-2 (macOS 13.0 Ventura Build: 22A380) [Sep 5, 2022 to Nov 7, 2022]
2022/11/07 11:35:44 wolfi@chainguard.dev mismatch: Google sees 1 devices, Kolide sees 0!
Google:
Wolfi's Mac (macOS 10.15.7) [Nov 4, 2022 to Nov 4, 2022]
2022/11/07 11:35:44 found 2 total mismatches
Requirements
- A Kolide API key Create a New Key
- Access to a Google Workspace admin console
- The Go Programming Language
Usage
Gather the current list of Desktop machines according to Google:
- Visit Google Admin: Mobile Devices
- Click the Download button (top right)
- Select All columns
- Select Comma-separated values (.csv)
- Click "Download CSV"
Then you can run the kolide-google-matcher
:
export KOLIDE_API_KEY="..."
$HOME/go/bin/kolide-google-matcher --endpoints-csv=</path/to/csv>