70trust / 100

Dkim Record Audit

by DKIM Record Audit in Security & trust

x402 APIPassing, checked 40 min ago

Audit DKIM selector records. The key length follows from the length of the encoded public key, so a short RSA key is readable from the record itself with no cryptography. Reports a key shorter than a stated minimum; a selector left in testing mode, which asks receivers to treat a failure as unsigned so it cannot contribute to DMARC alignment however correctly it signs; a revoked key, with its consequence; and a key type verifiers do not implement.

POST https://api.zfinia.com/x402/v1/dkim-record-audit

This listing's own text contains instructions aimed at AI agents (see the security scan below). We withhold that text from agents and never recommend this service.

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
511 ms typical, 943 ms slowest 5%
Last check
40 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.zfinia.com/x402/v1/dkim-record-audit" \
  -H "content-type: application/json" \
  -d '{"minimum_key_bits":2048,"records":[{"record":"v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDLiL1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijQIDAQAB","selector":"legacy2019"},{"record":"v=DKIM1; k=rsa; t=y; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ12345678QIDAQAB","selector":"rollout2026"},{"record":"v=DKIM1; k=rsa; p=","selector":"retired2024"},{"record":"v=DKIM1; k=rsa; s=tlsa; rotation=90d; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0000000000abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ12345678QIDAQAB","selector":"odd"}]}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.zfinia.com%2Fx402%2Fv1%2Fdkim-record-audit
const res = await pay("https://api.zfinia.com/x402/v1/dkim-record-audit", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"minimum_key_bits":2048,"records":[{"record":"v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDLiL1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijQIDAQAB","selector":"legacy2019"},{"record":"v=DKIM1; k=rsa; t=y; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ12345678QIDAQAB","selector":"rollout2026"},{"record":"v=DKIM1; k=rsa; p=","selector":"retired2024"},{"record":"v=DKIM1; k=rsa; s=tlsa; rotation=90d; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0000000000abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ12345678QIDAQAB","selector":"odd"}]}),
});
console.log(await res.json());

Example input

{
  "minimum_key_bits": 2048,
  "records": [
    {
      "record": "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDLiL1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijQIDAQAB",
      "selector": "legacy2019"
    },
    {
      "record": "v=DKIM1; k=rsa; t=y; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ12345678QIDAQAB",
      "selector": "rollout2026"
    },
    {
      "record": "v=DKIM1; k=rsa; p=",
      "selector": "retired2024"
    },
    {
      "record": "v=DKIM1; k=rsa; s=tlsa; rotation=90d; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0000000000abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ12345678QIDAQAB",
      "selector": "odd"
    }
  ]
}

Example output

{
  "assumptions": [
    "The key length is derived from the length of the encoded public key, so a short key is readable from the record itself without any cryptography. The figure is rounded to the nearest common size.",
    "An empty p tag is the documented way to revoke a key, so it is reported as a revocation with its consequence rather than as a malformed record.",
    "A selector in testing mode is reported because it asks receivers to ignore failures, which means the selector cannot contribute to DMARC alignment however correctly it signs."
  ],
  "complete": true,
  "finding_count": 7,
  "findings": [
    {
      "code": "KEY_SHORTER_THAN_REQUIRED",
      "detail": "Selector legacy2019 publishes an RSA key of about 896 bits and 2048 was required. The length follows from the encoded key, so this is readable from the record without any cryptography.",
      "selector": "legacy2019"
    },
    {
      "code": "KEY_SHORTER_THAN_REQUIRED",
      "detail": "Selector rollout2026 publishes an RSA key of about 1536 bits and 2048 was required. The length follows from the encoded key, so this is readable from the record without any cryptography.",
      "selector": "rollout2026"
    },
    {
      "code": "TESTING_FLAG_SET",
      "detail": "Selector rollout2026 declares t=y, which asks receivers to treat a failure as though the message were unsigned. A selector left in testing mode cannot contribute to DMARC alignment.",
      "selector": "rollout2026"
    }
  ],
  "findings_by_code": {
    "KEY_REVOKED": 1,
    "KEY_SHORTER_THAN_REQUIRED": 3,
    "SERVICE_TYPE_EXCLUDES_EMAIL": 1,
    "TAG_NOT_RECOGNISED": 1,
    "TESTING_FLAG_SET": 1
  },
  "limitations": [
    "The records supplied. Nothing resolves DNS, no signature is verified, and whether the private key is held securely is outside this entirely. Not a security assessment.",
    "valid is true only when every selector parsed, carried a usable key and was not left in testing mode."
  ],
  "limits": {
    "maxFindings": 500,
    "maxHeaderBytes": 131072,
    "maxIncludeTree": 200,
    "maxRecordLength": 4096,
    "maxRecords": 2000,
    "spfLookupLimit": 10,
    "spfVoidLookupLimit": 2
  },
  "minimum_key_bits": 2048,
  "not_examined": [],
  "observed_at": "2026-10-02T00:00:00.000Z",
  "passed": false,
  "request_id": "example-request",
  "selector_count": 4,
  "selectors": [
    {
      "key_bits": 896,
      "key_type": "rsa",
      "revoked": false,
      "selector": "legacy2019",
      "testing": false
    },
    {
      "key_bits": 1536,
      "key_type": "rsa",
      "revoked": false,
      "selector": "rollout2026",
      "testing": true
    },
    {
      "key_bits": null,
      "key_type": "rsa",
      "revoked": true,
      "selector": "retired2024",
      "testing": false
    }
  ],
  "service_id": "dkim_record_audit",
  "service_version": "1.0.0",
  "usable_selector_count": 2,
  "valid": false
}

Security scan

  • Mentions credentials or secret files in example_output
    signature is verified, and whether the private key is held securely is outside this entirely. Not a security assessment.","valid is true on

Recent checks

WhenResultHTTPTimePrice
40 min agoPassed402499 ms$0.18
5 h agoPassed402478 ms$0.18
8 h agoPassed402554 ms$0.18
12 h agoPassed402679 ms$0.18
15 h agoPassed402508 ms$0.18
19 h agoPassed402593 ms$0.18
22 h agoPassed4021.2 s$0.18
26 h agoPassed402943 ms$0.18
29 h agoPassed402396 ms$0.18
34 h agoPassed402478 ms$0.18
37 h agoPassed402762 ms$0.18
41 h agoPassed402673 ms$0.18
45 h agoPassed402369 ms$0.18
47 h agoPassed402511 ms$0.18
2 days agoPassed402511 ms$0.18