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,discovery
tcp:
  - host:
      - "{{Hostname}}"
    port: 22

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

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