TL;DR

If you may be affected by the eMudhra key compromise:

  • Have your security team check your codebases, devices and bundled runtimes for trust stores that never get updated, and see whether any still trust the compromised eMudhra keys. mitmproxy --emudhra and DNS interception (changing DNS responses so traffic goes to the mitmproxy host) work well.

If you want to fix it:

  • Update the systems you can.
  • For devices you can’t update, ask the OEM to release patches that distrust the affected keys.
  • In the meantime, consider a temporary measure such as certificate pinning, or the reverse of pinning, an app-level check that refuses any connection whose certificate path contains one of the compromised keys.
  • If you need help, reach out to us.

What happened

On 17 October 2026 a researcher reported to the Chrome and Mozilla root programmes that the private keys of eight eMudhra intermediate CA certificates are compromised, and Mozilla recovered the keys independently that evening (CSO Online). The researcher’s incident page has the full details and the list of impacted intermediates.

The CA generated the private keys incorrectly, so anyone can recover them from the public certificates. That makes it very easy to create falsified certificate chains. The mitmproxy 12.3 release shows how easy this is. Its new --emudhra option signs the leaf certificates mitmproxy generates with one of the compromised keys, and clients that haven’t updated their trust stores accept them. The commit that adds it embeds the key and its certificate chain in mitmproxy/certs.py as EMUDHRA_CHAIN_PEM:

if ctx.options.emudhra:
    self.certstore.default_privatekey = certs.load_pem_private_key(
        certs.EMUDHRA_CHAIN_PEM, None
    )
    self.certstore.default_chain_certs = [
        certs.Cert(c)
        for c in x509.load_pem_x509_certificates(certs.EMUDHRA_CHAIN_PEM)
    ]
    self.certstore.default_ca = self.certstore.default_chain_certs[0]
    self.certstore.default_chain_file = None
    self.certstore.default_crl = certs.dummy_crl(
        self.certstore.default_privatekey,
        self.certstore.default_ca._cert,
    )

Running mitmdump --emudhra and connecting through it with openssl shows a forged chain. mitmproxy generates a leaf for mwrcybersec.com, signed by one of the compromised intermediates EM OV TLS CA – G3C.

openssl s_client -proxy 127.0.0.1:8080 \
  -connect mwrcybersec.com:443 -servername mwrcybersec.com
Connecting to 127.0.0.1
CONNECTED(00000003)
depth=3 C=IN, OU=emSign PKI, O=eMudhra Technologies Limited, CN=emSign ECC Root CA - G3
verify return:1
depth=2 C=IN, O=eMudhra Technologies Limited, CN=emSign Root TLS CA - G3
verify return:1
depth=1 C=US, O=eMudhra Inc, CN=EM OV TLS CA - G3C
verify return:1
depth=0 CN=mwrcybersec.com
verify return:1

As seen by the successful verification steps, openssl on our test machine still accepts the forged chain.

Inspecting one of these certificates, EM DV TLS CA – G3B, we can see that it is valid until 2040 (Cloudflare Radar). Radar lists it as revoked – due to this whole debacle. As the certificates have a long lifetime, expiry alone will not be sufficient.

As a fun aside, Radar is also really useful for inspecting certificate trust stores. If you need to know whether a specific certificate is anomalous, you can just search for its SHA-256 fingerprint and check its inclusion status.

EM DV TLS CA - G3B on Cloudflare Radar, valid until 28 April 2040 and listed as revoked

Figure 1: EM DV TLS CA – G3B on Cloudflare Radar: valid until 28 April 2040, listed as revoked.

Why browsers were (mostly) fine

Chrome and Firefox each have their own mechanism for handling revoked certificates. Chrome ships CRLSets and Firefox ships OneCRL. Both began blocking the compromised keys on 17 October, the day of the report (Google, researcher’s timeline), so an up-to-date browser is generally secure.

Browsers push a small block list instead of asking the CA about every certificate, because live revocation checks don’t work well. Online OCSP and CRL lookups add delay, tell the CA which sites you visit, and fail open. If the lookup fails, whether the CA’s server is down or an attacker blocks the request, the browser accepts the certificate anyway (Scott Helme on CRLite). An attacker who can intercept traffic can therefore simply switch the check off (Adam Langley on CRLSets). All of this assumes the client checks revocation in the first place. We didn’t try to bypass revocation checking on our test devices. The point is that you can’t rely on revocation alone.

Both browsers also check Certificate Transparency (CT). Chrome requires publicly trusted certificates to meet its CT policy, and Firefox requires CT log inclusion for certificates issued by CAs in Mozilla’s Root CA Program on desktop from version 135 and on Android from version 145 (MDN).

CT does not prevent a forged certificate from being issued. A forged certificate is only accepted by a CT-enforcing client if it carries proof that it was logged, which makes it detectable, but only by someone who is actively monitoring the logs for mis-issued certificates. Google states that no TLS certificates chaining to the affected intermediates appeared in CT logs before Chrome blocked their keys via CRLSet, so none could have been used against CT-enforcing clients such as Chrome. Google also says it has worked to ensure that CT logs now reject certificates chaining to the compromised CAs, which should stop an attacker from getting a forged certificate logged (Google, CSO Online).

Trying the attack on a P30 Pro and a Galaxy Note 10.1

We had some older devices lying around that we were fairly certain had not been patched, which made them ideal for this testing. They were a Huawei P30 Pro (Android 10, software build 12.0.0.134 C316ER1P1patch03, security patch level 1 May 2022, with Google Play services installed) and a Samsung Galaxy Note 10.1 (GT-N8000).

To our surprise, it appeared as though the P30 had been patched. As HarmonyOS wasn’t available in South Africa the last time we checked, the update was likely to have come from GMS. We observed the following behaviour:

  • Huawei’s browser marked the certificate as untrusted.
  • Chrome first displayed a certificate transparency error, then a short while later a certificate revocation error.

That change from transparency to revocation was likely Chrome receiving its own block for the eight keys, which needs no OS update. However, this is just a guess on our part.

We also ran the Android SSL pinning demo app from HTTP Toolkit on the P30 Pro, which goes through the platform’s own TLS stack instead of a browser. It failed with an error stating that the certificate was blocklisted by public key. That points to an update delivered through either HMS (Huawei Mobile Services) or GMS. Because the phone runs Android with GMS, we suspect the blocklist arrived through Google Play services.

Unsurprisingly, it did work on a Samsung Galaxy Note 10.1 (GT-N8000) running an unofficial LineageOS 20 build. The built-in browser loaded a page served with a certificate chaining to a compromised intermediate, with no warning.

We did not try a Lineage build with Google apps (GApps) installed, so we don’t know whether that would have changed the result.

Static Trust Store < OS Maintained Trust Store

On Android, the certificate block is delivered through Google Play services, which updates separately from the OS. Google says Android devices and Googlebooks received an equivalent update through Google Play Services around Monday 22:00 UTC (19 October) (Google). A phone that has Play services and is online got the block without an OS update.

Devices with no GMS or OTA security updates are likely to be vulnerable. The GT-N8000, which runs an unofficial LineageOS build without Google apps, is a good example of this.

This isn’t limited to hobbyist builds. We have also found more bespoke devices that use neither GMS nor HMS and whose OEMs have not yet shipped an update, so they are still affected. We are not naming the devices or the OEMs yet, because we believe the OEMs may need more time to respond.

Embedded and thick clients may be more adversely affected. Many applications and devices use their own TLS stack instead of the system’s. A bundled JVM that is installed once alongside the thick client and never rebuilt has no mechanism to protect itself. Their trust is static, and determined by whatever the runtime or CA bundle contained when the app was built, so the only fixes are a rebuild on a patched runtime or an explicit check in the app itself – alongside forced updates to all running instances of the application.

If you want to see who is still connecting to the forged chains, the researcher publishes live statistics, but this list isn’t conclusive.

What can you do?

If you are a consumer, the best bet is to ensure that your device still gets regular security updates. Google says that restarting an Android device triggers the Play services update. For older devices that don’t get it, you may be able to manually distrust emSign ECC Root CA – G3 and AAA Certificate Services (the root on the Sectigo cross-sign path). The researcher warns that disabling AAA Certificate Services may cause errors on some websites that still chain to it (researcher’s page). Some OEMs may not allow you to disable system certificates.

Enterprises have a few options:

1. Ask your OEM

The manufacturer sold the device, so it should also keep its security updates coming. Ask the device or firmware vendor whether the trust store has been updated since the block shipped, specifically whether the eight compromised eMudhra intermediate keys, or the emSign roots, have been removed or blocked, and which build contains the change.

It might even be worth having a legal team review your SLA with the OEM, to see whether they promised security updates as part of your contract.

While these processes are ongoing, consider using certificate pinning if possible. The easiest way is Android’s Network Security Config, which is available on Android 7.0 (API 24) and later. Pins are hashes of a certificate’s public key, and a connection is accepted only if its certificate chain contains at least one pinned key. Pin your own server’s key, or a key closer to the leaf. Don’t pin the compromised intermediate or anything above it towards the CA, because a forged chain contains those keys and would pass.

Add an expiry date to the pin set, so that a forgotten pin stops being enforced instead of locking users out for good, and include a backup pin for a key you have generated but not deployed yet, so you can rotate without an outage:

<network-security-config>
    <domain-config>
        <domain includeSubdomains="true">example.com</domain>
        <pin-set expiration="2027-06-30">
            <pin digest="SHA-256">BASE64_SHA256_OF_YOUR_CURRENT_KEY=</pin>
            <pin digest="SHA-256">BASE64_SHA256_OF_YOUR_BACKUP_KEY=</pin>
        </pin-set>
    </domain-config>
</network-security-config>

If the pins are correct, and you forget to update them, the application will eventually stop using the pins. This is preferable to a denial of service condition across the entire userbase.

Pinning is a controversial control, as it’s easy to accidentally lock legitimate users out of your application through development errors. The app-level check discussed next is the reverse. Instead of allowing only your keys, it refuses the compromised ones.

2. Block the keys in your own app (defence in depth)

Wrap the platform trust manager, let it validate normally, then reject the connection if the path the platform validated contains one of the eight compromised SPKI hashes. Blocking by SPKI hash means you don’t have to track cross-signs, because a cross-signed certificate carries the same public key as the original. The researcher’s list of 16 impacted certificates, the eight intermediates plus their Sectigo cross-signs, has only eight distinct SPKI hashes, the same eight as in the code below. Other runtimes have implemented a similar control, such as Go (commit). Revocation checking could be a supplementary control, but its weaknesses were discussed earlier in this post.

We use X509TrustManagerExtensions because a standard trust manager can be bypassed by abusing caching and partial certificate chains. It checks the path the platform built, not the chain the server sent. Wrapping the system trust store in this way was the safest option, according to our tests – even if it does mean we do the checks twice.

import android.net.http.X509TrustManagerExtensions
import java.net.Socket
import java.security.KeyStore
import java.security.MessageDigest
import java.security.cert.CertificateException
import java.security.cert.X509Certificate
import javax.net.ssl.SSLContext
import javax.net.ssl.SSLEngine
import javax.net.ssl.SSLSocket
import javax.net.ssl.TrustManagerFactory
import javax.net.ssl.X509ExtendedTrustManager

/**
 * Rejects TLS connections whose certificate path contains a blocked CA key. Android 7.0+ (API 24).
 * Only protects connections that use it. [system] is the trust manager to wrap; by default the
 * platform's.
 */
class EMudhraBlocker(
    extraBlockedSpki: Set<String> = emptySet(),
    private val system: X509ExtendedTrustManager = platformTrustManager(),
) : X509ExtendedTrustManager() {

    private val extensions = X509TrustManagerExtensions(system)
    private val blocked = (EMUDHRA_SPKI_SHA256 + extraBlockedSpki).map { it.lowercase() }.toSet()

    override fun checkServerTrusted(chain: Array<X509Certificate>, authType: String, socket: Socket?) {
        system.checkServerTrusted(chain, authType, socket) // step 1: perform the platform validation
        checkPath(chain, authType, (socket as? SSLSocket)?.handshakeSession?.peerHost)
    }

    override fun checkServerTrusted(chain: Array<X509Certificate>, authType: String, engine: SSLEngine?) {
        system.checkServerTrusted(chain, authType, engine)
        checkPath(chain, authType, engine?.handshakeSession?.peerHost)
    }

    // No socket or engine, so no hostname: only reached when a library calls it directly. With
    // per-domain Network Security Config rules the platform refuses a null host (fails closed).
    override fun checkServerTrusted(chain: Array<X509Certificate>, authType: String) =
        checkPath(chain, authType, null)

    /** Step 2: Block if any certificate in the platform-validated path has a blocked key. */
    private fun checkPath(chain: Array<X509Certificate>, authType: String, host: String?) {
        val path = extensions.checkServerTrusted(chain, authType, host)
        val blockedCert = path.firstOrNull { spkiSha256Hex(it) in blocked } ?: return
        throw CertificateException("Chain contains a compromised CA key (SPKI sha256 ${spkiSha256Hex(blockedCert)})")
    }

    // Only server certificates are checked against the blocklist. Client certificates (when this
    // trust manager verifies the other side of an mTLS connection, i.e. your app is the server)
    // go straight to the platform, without the blocklist.
    override fun checkClientTrusted(chain: Array<X509Certificate>, authType: String, socket: Socket?) =
        system.checkClientTrusted(chain, authType, socket)

    override fun checkClientTrusted(chain: Array<X509Certificate>, authType: String, engine: SSLEngine?) =
        system.checkClientTrusted(chain, authType, engine)

    override fun checkClientTrusted(chain: Array<X509Certificate>, authType: String) =
        system.checkClientTrusted(chain, authType)

    override fun getAcceptedIssuers(): Array<X509Certificate> = system.acceptedIssuers

    fun sslContext(): SSLContext =
        SSLContext.getInstance("TLS").apply { init(null, arrayOf(this@EMudhraBlocker), null) }

    companion object {
        /** SHA-256 of each compromised CA's DER SubjectPublicKeyInfo, lowercase hex. */
        val EMUDHRA_SPKI_SHA256 = setOf(
            "ebed6475c2c2d80fcb199f3fe8dd6e6b3ce60b77eb15d4e42c3dec0c6f5b5105", // EM DV TLS CA - G3B
            "43bffa19d6ef651451f6841e019931e96f6f2eaeff28ab4b6f1ce4576de2717b", // EM OV TLS CA - G3B
            "e0254c7fcdc265e2f0f8a428dabb75ab4ae039b4872d62f5ee57f0877d5a8a41", // EM EV TLS CA - G3B
            "ec4ffa1ad0ac88081314b7aaffef6a91f97cd57291bb5ba686c5415f5eb4f6b6", // EM OV CS CA - G3B
            "49dd353dc2b919a3770645117d0e60c16115e7d1bc259eefe734b00ea434fe5f", // EM DV TLS CA - G3C
            "63ecefee431d49523bc1136c4e72d0206a477086caf606cd5cf025686c109cf8", // EM OV TLS CA - G3C
            "5c0660a2b164910d8ff589c18e14552e9e0ec237dcefe2cb736d41a4811f81a0", // EM EV TLS CA - G3C
            "92c063d67e8f14db71d288e11266ffdaf69cbf115f7bab14f3bc2f68d25e0e30", // EM OV CS CA - G3C
        )

        fun spkiSha256Hex(cert: X509Certificate): String =
            MessageDigest.getInstance("SHA-256").digest(cert.publicKey.encoded)
                .joinToString("") { "%02x".format(it) }

        fun platformTrustManager(): X509ExtendedTrustManager = TrustManagerFactory
            .getInstance(TrustManagerFactory.getDefaultAlgorithm())
            .apply { init(null as KeyStore?) }
            .trustManagers
            .filterIsInstance<X509ExtendedTrustManager>()
            .firstOrNull()
            ?: error("No X509ExtendedTrustManager available (needs API 24+)")
    }
}

Use it for the connections you control:

val blocker = EMudhraBlocker()
val client = OkHttpClient.Builder()
    .sslSocketFactory(blocker.sslContext().socketFactory, blocker)
    .build()

If you need a raw TLS socket:

import javax.net.ssl.SSLSocket

val blocker = EMudhraBlocker()
val socket = blocker.sslContext().socketFactory.createSocket("server.com", 443) as SSLSocket

// Without this, a raw SSLSocket does no hostname check at all
socket.sslParameters = socket.sslParameters.apply { endpointIdentificationAlgorithm = "HTTPS" }

socket.startHandshake() // validation happens here

To see a rejection without an eMudhra host, block a key you know is in a real chain. For example, connect to https://www.google.com once, take the SPKI hash of its intermediate, and pass it as extraBlockedSpki. The handshake should then fail with “Chain contains a compromised CA key”.

We tested this on three devices: a Google Pixel 8 running Android 17, the Huawei P30 Pro described above (Android 10), and the Galaxy Note 10.1 running LineageOS 20 (Android without Google apps). On the Note, whose platform has no protection against the compromised keys, the default trust manager accepted forged chains from mitmproxy --emudhra, and the blocker rejected them. On all three, using test certificates that simulate the compromised chains, the blocker rejected them, including in the cache-bypass case, rejected certificates for the wrong host, and behaved the same as the default trust manager for network security config rules, OkHttp’s CertificatePinner and connections by IP address. On the Pixel, with Certificate Transparency switched on, it also behaved the same as the default trust manager: both accepted certificates with embedded SCTs or SCTs in a stapled OCSP response, and both rejected a certificate without SCTs. Hosts that deliver SCTs only in the TLS extension are untested, and Android 10 and 13 have no CT. We strongly recommend testing it on a wider variety of devices and Android versions before deploying it as an emergency mitigation.

It also only protects connections that use it. It doesn’t help where you can’t pass your own trust manager, the canonical example being a WebView, and SDKs or other HTTP clients in your application that you don’t explicitly manage will still trust eMudhra through the default trust manager.

Both pinning and this check only take effect once users install an update to your app. For the kinds of devices we expect to be affected, such as managed fleets, enterprises usually have a way to force that update, for example through their MDM. Be aware, though, that an attacker who knows enough about a specific device and can intercept its traffic could block your updates indefinitely. They don’t need to break TLS for that. They can drop traffic to your update servers, for example by IP address, DNS or the server name in the TLS handshake.

Critically, keep the call to the platform’s checkServerTrusted, and check every certificate in the path it validated, not just the leaf. Skipping the platform validation and checking only the blocklist means even a self-signed certificate chain would be considered valid.

Conclusion

Browsers and devices that still receive updates were protected within days of the report. The devices that remain exposed are the ones nothing updates, such as phones without GMS or HMS, devices whose OEMs haven’t shipped a fix yet, and applications that bring their own trust store. The certificates are valid until 2040, so this problem won’t go away on its own.

The only real remedial action is an update from the OEM. While you wait, pinning or the blocker above can protect the connections your own app makes.

We have not tested the blocker exhaustively. We tested it on three devices: a Google Pixel 8 running Android 17, the Huawei P30 Pro running Android 10, and a Galaxy Note 10.1 running LineageOS 20 (Android 13) without Google apps. On the Note, which has no protection of its own against the compromised keys, the blocker rejected real forged chains that the platform accepted. We did not test hosts whose Certificate Transparency proofs (SCTs) arrive only in the TLS extension instead of being embedded in the certificate or a stapled OCSP response. It is meant as a starting point, not a drop-in library. If you want to use it, test it properly across a wide range of devices and Android versions, from different OEMs.

If you need help checking your devices or applications, reach out to us.