2021-04-16 15:21:00 +00:00
|
|
|
id: ssh-authorized-keys
|
|
|
|
|
|
|
|
info:
|
2023-02-23 21:13:56 +00:00
|
|
|
name: SSH Authorized Keys File - Detect
|
2021-04-16 15:21:00 +00:00
|
|
|
author: geeknik
|
|
|
|
severity: low
|
2023-02-23 21:13:56 +00:00
|
|
|
description: SSH authorized keys file was detected.
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://www.ssh.com/academy/ssh/authorized-key
|
2021-04-16 15:21:00 +00:00
|
|
|
tags: config,exposure,ssh
|
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/.ssh/authorized_keys"
|
|
|
|
- "{{BaseURL}}/_/.ssh/authorized_keys"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "ssh-dss"
|
|
|
|
- "ssh-ed25519"
|
|
|
|
- "ssh-rsa"
|
|
|
|
- "ecdsa-sha2-nistp256"
|
|
|
|
condition: or
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2023-02-23 21:13:56 +00:00
|
|
|
|
|
|
|
# Enhanced by md on 2023/02/23
|