mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
650db555fd
This PR includes 6 potentially useful queries.
21 lines
383 B
Markdown
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 |