id: tls-version

info:
  name: TLS Version - Detect
  author: pdteam,pussycat0x
  severity: info
  description: |
    TLS version detection is a security process used to determine the version of the Transport Layer Security (TLS) protocol used by a computer or server.
    It is important to detect the TLS version in order to ensure secure communication between two computers or servers.
  metadata:
    max-request: 4
  tags: ssl,tls,discovery
ssl:
  - address: "{{Host}}:{{Port}}"
    min_version: tls10
    max_version: tls10

    extractors:
      - type: json
        json:
          - ".tls_version"

  - address: "{{Host}}:{{Port}}"
    min_version: tls11
    max_version: tls11

    extractors:
      - type: json
        json:
          - ".tls_version"

  - address: "{{Host}}:{{Port}}"
    min_version: tls12
    max_version: tls12

    extractors:
      - type: json
        json:
          - ".tls_version"

  - address: "{{Host}}:{{Port}}"
    min_version: tls13
    max_version: tls13

    extractors:
      - type: json
        json:
          - ".tls_version"
# digest: 490a0046304402206de52ff8c21f7bad71cdae5eb9c2b04c72de66a17a62827457b729c299778308022050d0c00d1ea8a3fc427fcacc294999acee70c5e71fb26a7bc52310cd84191c92:922c64590222798bb761d5b6d8e72950