Fleet uses osquery tables to query operating system, hardware, and software data. Each table provides specific data for analysis and filtering.
user_ssh_keys
Returns the private keys in the users ~/.ssh directory and whether or not they are encrypted.
Column | Type | Description |
---|---|---|
encrypted | integer | 1 if key is encrypted, 0 otherwise |
key_type | text | The type of the private key. One of [rsa, dsa, dh, ec, hmac, cmac], or the empty string. |
path | text | Path to key file |
pid_with_namespace | integer | Pids that contain a namespace Only available on Linux |
uid | bigint | The local user that owns the key file |
SELECT * FROM users CROSS JOIN user_ssh_keys USING (uid);
Identify SSH keys stored in clear text in user directories
SELECT * FROM users JOIN user_ssh_keys USING (uid) WHERE encrypted = 0;
Querying this table requires joining against the users
table. Learn more