Create ssh-authorized-keys.yaml

patch-1
Geeknik Labs 2021-04-16 15:21:00 +00:00 committed by GitHub
parent 101051cb21
commit f877923dc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
id: ssh-authorized-keys
info:
name: SSH Authorized Keys
author: geeknik
reference: https://www.ssh.com/academy/ssh/authorized-key
severity: low
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