id: spf-record-detect

info:
  name: SPF Record - Detection
  author: rxerium
  severity: info
  description: |
    An SPF TXT record was detected
  reference:
    - https://www.mimecast.com/content/how-to-create-an-spf-txt-record
  metadata:
    max-request: 1
  tags: dns,spf
dns:
  - name: "{{FQDN}}"
    type: TXT
    matchers:
      - type: word
        words:
          - "v=spf1"

    extractors:
      - type: regex
        regex:
          - "v=spf1(.+)"
# digest: 4b0a004830460221008b30072d03157b6e85a4be32afa128f43d1c7f36ff3008528e5077041740e9c5022100b9dfea5e5e9c12b58e0b039463add70e3360ba2161a048cbbfa874f6db3c59f5:922c64590222798bb761d5b6d8e72950