News for hackers. Stuff that matters.
Re:Encrypted traffic interception on Hetzner and Linode targ... by beeboobaa on Friday October 20, 2023 @11:37AM (#37957612)
Are there any services that monitor the certificate transparency logs and send an email when a new certificate is issued for your domain? That would alert you to this kind of MITM
Re:Encrypted traffic interception on Hetzner and Linode targ... by tptacek on Friday October 20, 2023 @11:40AM (#37957663)
Yes. Several. They're called CT "Monitors".
Re:Encrypted traffic interception on Hetzner and Linode targ... by f311a on Friday October 20, 2023 @11:40AM (#37957675)
Cloudflare does that
Re:Encrypted traffic interception on Hetzner and Linode targ... by L29Ah on Friday October 20, 2023 @12:29PM (#37958242)
Cloudflare is a MITM you voluntarily setup yourself, innit?
Re:Encrypted traffic interception on Hetzner and Linode targ... by f311a on Saturday October 21, 2023 @12:57PM (#37968501)
You don't have to setup anything
Re:Encrypted traffic interception on Hetzner and Linode targ... by jauntywundrkind on Friday October 20, 2023 @11:39AM (#37957659)
> Could you prevent or monitor this kind of attack? There are several indications which could be used to discover the attack from day 1:

> All issued SSL/TLS certificates are subject to certificate transparency. It is worth configuring certificate transparency monitoring, such as Cert Spotter (source on github), which will notify you by email of new certificates issued for your domain names

Re:Encrypted traffic interception on Hetzner and Linode targ... by johnmaguire on Friday October 20, 2023 @11:55AM (#37957871)
> All issued SSL/TLS certificates are subject to certificate transparency. It is worth configuring certificate transparency monitoring, such as Cert Spotter (source on github), which will notify you by email of new certificates issued for your domain names

This seems like the kind of thing domain registrars should do for you.

Re:Encrypted traffic interception on Hetzner and Linode targ... by Operyl on Friday October 20, 2023 @12:05PM (#37957976)
Who could in theory also be told “don’t notify your client about this specific one”. You’re best off self hosting if you think you’d be a target for these kind of attacks.
Re:Encrypted traffic interception on Hetzner and Linode targ... by ratsmack on Friday October 20, 2023 @02:20PM (#37959643)
It seems that trust is a highly variable quantity, maybe similar to intuition.
Re:Encrypted traffic interception on Hetzner and Linode targ... by detourdog on Friday October 20, 2023 @11:56AM (#37957885)
Kerberos right?
Re:Encrypted traffic interception on Hetzner and Linode targ... by LinuxBender on Friday October 20, 2023 @12:00PM (#37957918)
There are but this assumes that services like the transparency log servers and LetsEncrypt are not being legally compelled to do or not do something.
Re:Encrypted traffic interception on Hetzner and Linode targ... by agwa on Friday October 20, 2023 @12:53PM (#37958552)
If the CA doesn't log a certificate, the certificate won't work in CT-enforcing clients (Chrome, Safari, Edge) because it lacks receipts (SCTs) from CT logs.

If a log fails to publish a certificate despite issuing a receipt for it, Chrome's SCT auditing infrastructure can detect that, as it did recently with the Nessie 2023 log: https://groups.google.com/a/chromium.org/g/ct-policy/c/5x1A6... (this was also detected by monitors operated by myself and Cloudflare)

But this is all moot when it comes to XMPP, since XMPP clients don't check for SCTs, and there is no requirement for CAs to log certificates if they don't need to work in non-CT-enforcing clients. Some CAs (e.g. DigiCert) will sell you unlogged certificates - no need to compel them.

tldr: situation is good and improving with browsers, not so much with non-browser clients

Re:Encrypted traffic interception on Hetzner and Linode targ... by MattJ100 on Friday October 20, 2023 @01:25PM (#37958956)
XMPP has some adoption of channel binding (it could be better, but it's heading in the right direction) which mitigates these kinds of attacks in a different way. It is able to do that because the client and server already share a secret (the user's credentials), unlike most HTTP clients/servers (at least as far as the protocol is concerned).

But SCT validation would indeed be something we should investigate for the ecosystem, it could be beneficial for certain use cases.

Re:Encrypted traffic interception on Hetzner and Linode targ... by agwa on Friday October 20, 2023 @01:48PM (#37959257)
It may be better for the XMPP ecosystem to focus on increasing adoption of channel binding rather than CT enforcement. I wrote briefly about the challenges faced by non-browser clients at <https://news.ycombinator.com/item?id=36436303> but the tldr is that all SCT-checking clients have to be able to respond to ecosystem changes very quickly. This is so important that Chrome and Safari both disable SCT checking entirely if the browser hasn't been updated in more than 10 weeks.

Feel free to contact me (email in profile) or ask here if you want to talk more about this. I use XMPP (thank you for Prosody!) and have been involved in the CT space for many years now.

Re:Encrypted traffic interception on Hetzner and Linode targ... by aaomidi on Friday October 20, 2023 @02:29PM (#37959733)
> but the tldr is that all SCT-checking clients have to be able to respond to ecosystem changes very quickly.

This is fine. If you're using a tool that's connecting to the internet, you probably need to monitor for updates anyway.

I'd like to see a separate package, similar to Mozilla's `ca-certificates`, but for CT that can be updated independently of the actual useragent.

Re:Encrypted traffic interception on Hetzner and Linode targ... by agwa on Friday October 20, 2023 @02:46PM (#37959907)
> This is fine. If you're using a tool that's connecting to the internet, you probably need to monitor for updates anyway.

People should do this, but in practice it often doesn't happen - as witnessed by the Appmattus library fiasco earlier this year.

> I'd like to see a separate package, similar to Mozilla's `ca-certificates`, but for CT that can be updated independently of the actual useragent.

Considering how slowly updates to the various ca-certificates packages propagate, this would be absolute disaster for CT.

Re:Encrypted traffic interception on Hetzner and Linode targ... by jpalomaki on Friday October 20, 2023 @12:07PM (#37958004)
As mentioned there are services for doing this (I've been using for example the free service from Facebook [1])

Since the certificates are nowadays renewing quite often, it's very easy to just end up ignoring these notifications. To really get the benefits, I think you should somehow combine these with logs from the legit cert renewals and only alert when something strange pops up.

[1] https://developers.facebook.com/tools/ct/search/

Re:Encrypted traffic interception on Hetzner and Linode targ... by agwa on Friday October 20, 2023 @12:46PM (#37958471)
Indeed, a CT monitor which sends alerts about legitimate certificates is almost useless due to noise. My service, Cert Spotter, provides an API endpoint[1] which you can upload your CSRs to, so you don't get alerted about certificates using the same key as the CSR. The open source version of Cert Spotter can invoke a script[2] when a certificate is discovered, and the script can cross reference against a list of legitimate certs.

[1] https://sslmate.com/help/reference/certspotter_authorization...

[2] https://github.com/SSLMate/certspotter/blob/master/man/certs...

Re:Encrypted traffic interception on Hetzner and Linode targ... by tehlike on Saturday October 21, 2023 @02:44AM (#37964647)
Could it check against public key for the certificate?
Re:Encrypted traffic interception on Hetzner and Linode targ... by agwa on Saturday October 21, 2023 @07:43AM (#37965991)
Yes, the script can consult the $PUBKEY_SHA256 environment variable to get the hash of the certificate's public key.