fleet/handbook/queries/detect-presence-of-authorized-ssh-keys.md
noahtalerman 650db555fd
Add 6 queries to the handbook (#459)
This PR includes 6 potentially useful queries.
2021-03-12 12:34:26 -08:00

21 lines
383 B
Markdown

# Detect presence of authorized SSH keys
Presence of authorized SSH keys may be unusual on laptops. Could be completely normal on servers, but may be worth auditing for unusual keys and/or changes.
### Platforms
macOS, Linux
### Query
```sql
SELECT username, authorized_keys.*
FROM users
CROSS JOIN authorized_keys USING (uid);
```
### Purpose
Detection
### Remediation
TODO