id: aws-sftp-detect

info:
  name: AWS SFTP Service - Detect
  author: johnk3r
  severity: info
  description: |
    AWS-SFTP service was detected.
  reference:
    - https://aws.amazon.com/pt/about-aws/whats-new/2018/11/aws-transfer-for-sftp-fully-managed-sftp-for-s3/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 1
    shodan-query: SSH-2.0-AWS_SFTP_1.1
  tags: network,ssh,detect,aws,sftp,detection,tcp
tcp:
  - host:
      - "{{Hostname}}"
    port: 22

    matchers:
      - type: regex
        regex:
          - '(?i)AWS_SFTP'

    extractors:
      - type: regex
        regex:
          - '(?i)SSH-(.*)-AWS_SFTP_[^\r]+'
# digest: 490a004630440220249a70f9987cc6400b1edc52e7a2922887b7f896abb22d7ea92c7f341345f970022015630679fcc2898b615c74eb6754bc146e0914371a50244229a2eb1283f286fd:922c64590222798bb761d5b6d8e72950