id: mx-fingerprint

info:
  name: MX Record Detection
  author: pdteam
  severity: info
  description: An MX record was detected. MX records direct emails to a mail exchange server.
  reference:
    - https://www.cloudflare.com/learning/dns/dns-records/dns-mx-record/
    - https://mxtoolbox.com/
  classification:
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: dns,mx

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

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