13 comments

  • hannob12 hours ago
    Author of badkeys here. I pointed this out in 2024: &quot;Why are people using keys with a vulnerability from 2008 in 2024? I can only speculate, but it may have to do with timing. The Debian OpenSSL bug was introduced in 2006. It was discovered and fixed in 2008. The DKIM specification was published as RFC 4871 in 2007.&quot; <a href="https:&#x2F;&#x2F;16years.secvuln.info&#x2F;" rel="nofollow">https:&#x2F;&#x2F;16years.secvuln.info&#x2F;</a><p>And yes, can confirm that there&#x27;s still (even after my 2024 disclosures) a significant number of affected hosts. My latest scans: <a href="https:&#x2F;&#x2F;monitor.badkeys.info&#x2F;dkim&#x2F;2026-08-11-dkim-badkeys.html" rel="nofollow">https:&#x2F;&#x2F;monitor.badkeys.info&#x2F;dkim&#x2F;2026-08-11-dkim-badkeys.ht...</a>
    • hinkley10 hours ago
      I blame the tools for letting people continue to be stupid.<p>My coworkers consistently underestimate the difference between shit and good tools until I show them good tools. I have a theory that the reason software is so uniformly bad is that people are (un)inspired by bad tools to create slightly less bad products with them.<p>If more developers had a mechanic or woodworking hobby, this industry would be so much more enjoyable. Watching someone wax poetic about a replica of a golden era Stanley plane or hand router is something else.
      • pcblues7 hours ago
        Software toolmaker here. When we have bosses they want something to work yesterday. When we don&#x27;t have bosses we are trying to find one or put food on the table in some other way.<p>The toolmaker you are looking for is very rich, very looked after, or very tenured.<p>Good luck :)
        • hinkley6 hours ago
          Every time I have to do something the hard way, I pay the tooling tax. Work on it a little bit every time even if it&#x27;s just planning and eliminating bad options.<p>With tooling and process, the improvements tend to be on a bell curve over time - small improvements result in small gains, until the gains complement each other resulting in 1 x 1.2^5 instead of 1 + 5(0.2).<p>When we treat tools like products instead of process improvement, we introduce a lot of friction that substantially raises the costs of change and adoption.
    • 1over13712 hours ago
      Can one run your tool to check one’s own mail server?
      • hannob11 hours ago
        Sure.<p>Something like:<p>pip install badkeys<p>badkeys -U<p>badkeys [path_to_your_mail_server_crt_file]
        • hannob11 hours ago
          Or, if you were asking about dkim, something like:<p>badkeys -a --dkim-dns 20260707._domainkey.google.com<p>(-a will give you an output whenever it&#x27;s found any key, otherwise, it&#x27;ll be silent if it didn&#x27;t find anything)
        • zdragnar6 hours ago
          I&#x27;m glad this tool exists, but as someone not in the know, I initially read this as a sarcastic post instructing us to install a package that will add bad keys to our systems.<p>It could also just be that I&#x27;m sick and need more sleep lol.
        • notpushkin8 hours ago
          Neat tool, thanks!<p>I love how the web UI (<a href="https:&#x2F;&#x2F;badkeys.info&#x2F;" rel="nofollow">https:&#x2F;&#x2F;badkeys.info&#x2F;</a>) will gladly accept a private key :-)<p>&gt; (While supported, uploading private keys is obviously discouraged for production keys.)<p>Any particular reason you’ve decided to still let people do that?
          • hannob2 hours ago
            &gt; Any particular reason you’ve decided to still let people do that?<p>From a practical perspective, it&#x27;s just the API. For the standard formats (PKCS public&#x2F;private keys, certificates, etc.), there&#x27;s a function &quot;detectandcheck&quot; that will detect the format, extract the public key, and runs the vulnerability checks against that.<p>But look at it like this: you might also want to pick a random &quot;private key&quot; from a public source (e.g., random example key from github) to test the tool and see if it detects that as a known-bad key.
      • drnick111 hours ago
        I use mail-tester.com to verify compliance of my server with DKIM, SPF, etc.
      • graovic11 hours ago
        you can use <a href="https:&#x2F;&#x2F;www.pulsarprotect.com" rel="nofollow">https:&#x2F;&#x2F;www.pulsarprotect.com</a>
  • AntiRush12 hours ago
    Hanno Böck (the developer of badkeys mentioned in the post) did a great talk about this vulnerability a couple of years ago:<p><a href="https:&#x2F;&#x2F;berlin2024.mini.debconf.org&#x2F;talks&#x2F;17-breaking-dkim-and-bimi-with-the-2008-debian-openssl-bug" rel="nofollow">https:&#x2F;&#x2F;berlin2024.mini.debconf.org&#x2F;talks&#x2F;17-breaking-dkim-a...</a>
  • pavinjoseph12 hours ago
    Good bit of history as this happened before I joined the email hosting profession in 2015.<p>I remember designing a new mail hosting system in 2019, the concern was with some DNS hosting providers, mostly the free ones from legacy registrars not being able to accept TXT values over 255 charcters. A compromise was made to stick to 1024 bit DKIM keys.<p>Finally made the change to 2048 bit keys this year!
    • robinpie12 hours ago
      We&#x27;re in for another round of DNS problems when PQ keys (or long anythings) start getting put in DNS. Buggy apps that don&#x27;t handle truncation, misguided middleboxes that block TCP 53, etc.
      • pavinjoseph12 hours ago
        Ugh, not looking forward to that. But we persevere anyway.
        • ikiris2 hours ago
          I&#x27;m actually looking forward to something that will force idiots to unblock TCP 53
    • cowlevel12 hours ago
      You should be able to CNAME the relevant record from their free provider onto your own DNS tree on your own domain where you can serve anything you like.
  • fc417fc80211 hours ago
    &gt; 18 private keys published in DNS<p>How does that even happen?
    • robinpie11 hours ago
      Copy-paste mistakes, I assume. At my own company, I found prose &quot;how to configure DMARC&quot; instructions in our DNS records once.
      • doubled11211 hours ago
        Curiously, those notes were exactly where they were needed next time. Maybe it wasn’t an accident?
        • robinpie10 hours ago
          It was definitely an accident. It was fragmented in weird ways, and our DMARC itself was broken
    • 1over13711 hours ago
      Copy-pasting the wrong thing?
  • dwheeler8 hours ago
    A simple solution would be to simply ignore DKIM if it&#x27;s a bad key. Update the spec to match.
  • phendrenad24 hours ago
    &gt; the change was seemingly, unclearly OKed by an OpenSSL maintainer in a way that people still argue about<p>Behind every great disaster is an engineer who couldn&#x27;t communicate effectively (see the Space Shuttle Challenger).
  • Iris869016 hours ago
    For anyone running their own mail, rotation is less painful than it sounds because DKIM supports multiple selectors. Publish a new key under a new selector, switch the signer to it, and leave the old TXT record up for a few weeks so mail still in flight keeps verifying, then remove it. The Debian bug only affects keys generated in the 2006-2008 window, so the real question is whether yours was ever rotated since then. Also worth checking the key size while you&#x27;re in there, 1024-bit RSA is still common and 2048 is the usual recommendation. Ed25519 DKIM exists (RFC 8463) but I believe verifier support is patchy, so most people dual-sign or just stay on RSA. That last part is from memory, not something I&#x27;ve tested recently.
    • j0273 hours ago
      This seems like an LLM. I don’t have enough karma to flag it
  • basilikum12 hours ago
    The real takeway for me is that there are more RSA-768 keys than RSA &gt; 2048 or anything ECC.
  • claude-ai12 hours ago
    We are lucky that none of the world&#x27;s secret services ever knew of this problem!
    • ameliaquining12 hours ago
      Do intelligence agencies care about DKIM? I would expect vulnerabilities in it to mostly be of interest to spammers.
      • hashstring12 hours ago
        Phishing is still unmatched as an initial access vector.<p>Intelligence agencies care about this space, it’s hyper cost efficient to care.
      • gwerbin9 hours ago
        The particular vulnerability affected more than just DKIM, but DKIM has the particular bad luck of having been first introduced when the vulnerability was out in the wild.
  • oniconnect3 hours ago
    [dead]
  • freecrow13 hours ago
    [dead]
  • Renich11 hours ago
    Oh man, it&#x27;s no secret that the Mexican government has been getting it all year. Many of those because of the holy 16-bit signed number. Now, you tell me that DKIM is cooked? Well, we always have DMARC and ... BIMI? (funny that last one).<p>I mean, next you&#x27;re gonna tell me that GPG has 50 0-day that given-ai-company decided to disclose to gain free publicity so, now, I cannot even sign my email in peace.<p>;D<p>Good work, though. Just venting a bit. =)
  • jijji12 hours ago
    PQC is this years Y2K... first openssh, now opendkim, next postfix
    • Avamander8 hours ago
      DKIM will not get PQC, DKIMv2&#x27;s is still quite far.