Lukas Forst Profile picture
Oct 31 8 tweets 3 min read Read on X
🧵 There are hundreds o PRIVATE RSA keys in DNS TXT data.

You read it right, the secret part of RSA that you should never expose... What's even more surprising is, that it might make sense to have it there. Image
1/6 While poking around DNS, we found something unexpected: private keys in TXT records. These keys, which are meant to be private, were just hanging out there, visible to anyone checking those records. Image
2/6 Why is this even a thing? Well, some email systems use DKIM, where public keys in DNS help verify a sender’s authenticity by validating email signatures.

BUT you always only publish public part of the key! Not the private part! That one must remain secret. Image
3/6 DKIM successfully fulfills its goal of reducing email-based fraud, such as phishing and spoofing. However, the side effect is that anyone can cryptographically verify authenticity of email even many years after it was sent - including leaked or stolen emails.
4/6 If an organisation wants to prevent that, it can rotate DKIM keys and release the old secret keys. This way, any future email with valid signature can be denied as a forgery which gives the organisation a plausible deniability.
5/6 TLDR: there are private RSA keys in public TXT DNS data, it makes sense because they're revoked and published for plausible deniability

At @ReconWave, we wrote about this here buff.ly/4flbPe5Image
@ReconWave 6/6 Example domain with this is here - buff.ly/4hqu2ZzImage
@threadreaderapp unroll

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Lukas Forst

Lukas Forst Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @lukasf0rst

Oct 29
🧵 Following up on @repa_martin thread on funny stuff in DNS, there's my attempt to find additional stuff!
@repa_martin And let's start with classic - say hello to Bobby Tables! Image
Image
@repa_martin Back to engineering basics, Hello World to you as well!

Actually... there are so many of these! Love it. Image
Image
Read 11 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(