id: caa-fingerprint

info:
  name: CAA Record
  author: pdteam
  severity: info
  description: A CAA record was discovered. A CAA record is used to specify which certificate authorities (CAs) are allowed to issue certificates for a domain.
  reference:
    - https://support.dnsimple.com/articles/caa-record/#whats-a-caa-record
  classification:
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: dns,caa

dns:
  - name: "{{FQDN}}"
    type: CAA
    matchers:
      - type: regex
        regex:
          - "IN\\s+CAA\\s+(.+)"

    extractors:
      - type: regex
        group: 1
        regex:
          - 'issue "(.*)"'
          - 'issuewild "(.*)"'
          - 'iodef "(.*)"'
# digest: 490a0046304402201705a3081e6ff79c2094c77820d98f4882aa97ca841d7deeb41e5a70a846ad8e02202c858b7037c3d267add7b14c9993088ea6d7f5e3b64926e580de881f90ce3b48:922c64590222798bb761d5b6d8e72950