id: fortiauthenticator-certificate

info:
  name: Fortinet FortiAuthenticator Certificate - Detect
  author: johnk3r
  severity: info
  metadata:
    verified: true
    max-request: 1
    shodan-query: ssl:"ou=fortiauthenticator"
  tags: ssl,tls,fortinet,fortiauthenticator

ssl:
  - address: "{{Host}}:{{Port}}"

    matchers-condition: and
    matchers:
      - type: word
        part: subject_dn
        words:
          - "O=Fortinet, L=Sunnyvale, ST=California, C=US, emailAddress=support@fortinet.com"

      - type: word
        part: subject_dn
        words:
          - "OU=FortiAuthenticator"

    extractors:
      - type: dsl
        dsl:
          - 'subject_cn'
# digest: 4a0a0047304502200bfd01556237a3666e62c9c8e1a0071fe1d20aef9f11ee7c7b99d0e79772f1b6022100ce22cbf95be49dcdf0bce68f1e8657c52d3785c6137c5ee8b94368e889fc48bd:922c64590222798bb761d5b6d8e72950