id: txt-fingerprint

info:
  name: DNS TXT Record Detected
  author: pdteam
  severity: info
  description: A DNS TXT record was detected. The TXT record lets a domain admin leave notes on a DNS server.
  reference:
    - https://www.netspi.com/blog/technical/network-penetration-testing/analyzing-dns-txt-records-to-fingerprint-service-providers/
  classification:
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: dns,txt,discovery

dns:
  - name: "{{FQDN}}"
    type: TXT
    matchers:
      - type: regex
        part: answer
        regex:
          - "IN\tTXT\\t(.+)$"

    extractors:
      - type: regex
        group: 1
        regex:
          - "IN\tTXT\t(.+)"
# digest: 490a00463044022018fd2cc8ecf9a4406fe86b07658ba6c5be2730bb80784656078f7efcdbf5998102207d632c066d8042216299f73b15a9ac73510642e1ece0b5e730d3ec7c67c0e5b6:922c64590222798bb761d5b6d8e72950