Merge pull request #1293 from geeknik/patch-72

Create ssh-authorized-keys.yaml
patch-1
Sandeep Singh 2021-04-17 15:37:28 +05:30 committed by GitHub
commit a0a3ce5679
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