If you’ve been buried in PHP2Shell mitigations recently, you might have overlooked another issue that could be, arguably, worse than Heartbleed. On October 20, 2026, it was reported that the eMudhra Certificate Authority (CA) had generated intermediate CA private keys with very small private keys. How small?
From Arstechnica.com:
The compromised eMudhra keys were defective at a level that’s challenging the imagination of many of the engineers studying the incident. A normal size for a NIST P-384 elliptic curve cryptography private key contains roughly 384 bits of entropy, a size allowing almost 2384, or a number with 116 digits, different possibilities. The private key sizes of the compromised keys ranged from 3 to 8 bits. Astonishingly, the private keys were 4, 56, 66, 115, 155, 156, 230, 237.
Let that sink in for a moment…
The implications of this compromise are huge, and as I implied earlier, possibly Heartbleed huge. An attacker that has easily factored and exposed the private key of one of these intermediates can now start issuing certificates (impersonating the intermediate CA) that would be considered valid to any client that trusts this issuer. And what client would trust this issuer? Well, it turns out…many. Up until about a day or two after the announcement, every modern browser trusted the eMudhra roots, thus implicitly trusting the impacted intermediates. In fact, anywhere that any system – an OS, an application, daemon/process/service, IoT device, anything, that talks TLS out to the Internet, there’s a local root of trust that’s consulted to make sure the server endpoint can be trusted. Many of these systems source their root of trust from Mozilla or Google, so eMudhra roots were in there. But here’s the real rub. While the intermediate CA certificates were revoked and browser vendors were quick to push down updated root of trust bundles, those automations are not generally available to many of the aforementioned systems. That means, you very likely have servers, services, agents of all kinds within your enterprise that have no idea that a CA has been compromised. That’s bad!
Impacts
There are two primary concerns that are relevant to this discussion – the impact of the CA compromise to internal systems that must communicate over TLS to something on the Internet and that have to be able to securely trust the remote endpoints, and the impact to the BIG-IP itself given that the BIG-IP also communicates to Internet-based resources.
With respect to the former concern for internal systems talking out, the BIG-IP can be a single point of outbound root of trust TLS validation. This applies to BIG-IP use cases that apply a CA bundle to an SSL profile, so primarily SSL Orchestrator and Secure Web Gateway, where the CA bundle is applied to the server-side SSL. While a CA bundle can be applied to client-side SSL for the purpose of mutual TLS authentication, it is almost never the case that client certificates are issued by the set of Internet CAs. The primary mitigation here can simply be to create a new CA bundle or to update the built-in ca-bundle.crt as described below.
With respect to the latter concern for BIG-IP initiated TLS to external resources, the built-in ca-bundle.cert bundle file is often used for:
- OCSP certificate validation - where the BIG-IP performs OCSP stapling or OCSP-based certificate validation for Internet origins and needs to validate the OCSP responder’s TLS certificate.
- APM use cases - where an APM policy relies on AAA services, like LDAP over TLS, SAML IdP endpoints, etc., that may have TLS certificates issued by a public CA.
The BIG-IP itself also relies on the ca-bundle root of trust for various TLS mechanisms, including:
- Telemetry streaming & analytics
- NTP over TLS (NTS)
- SMTP over TLS
- URL database and IP intelligence feed updates
- License activation and iHealth uploads
The primary mitigation here is to update the ca-bundle.crt as described below.
Mitigations
In this article I’m going to address two mitigation strategies. Consider the scenario where, in the enterprise, there are a number of systems that talk TLS out to the Internet. One obvious solution to the current problem is to touch every one of those systems and update their root of trust bundles to remove the eMudhra roots. That might be fine if this was a one-time operation…but would it be? Can you be certain that something like this won’t happen again? If you are as skeptical as I am, then also consider a solution whereby outbound TLS root of trust can be managed in ONE place, at an F5 BIG-IP. Routing all of the internal systems’ TLS traffic through the BIG-IP instantly mitigates this and any future CA compromises. I should note here that in doing so, each of these systems still have to be touched once to update their existing root bundle to trust the BIG-IP issuing CA, but then all future external CA trust is handled at the BIG-IP.
The F5 BIG-IP SSL Orchestrator solution handles this exact use case. It also maximizes infrastructure and security investments via dynamic service chaining for decrypted multi-layer inspection, but in this case all that’s really required is the explicit decrypt, re-encrypt, and root of trust validation at this single point of control. Once systems traffic is flowing, adding new layers of decrypted inspection (if desired) becomes trivial.
Depending on when you read this, the downloadable F5 blended-bundle may have already been updated to remove the impacted roots and intermediates, and subsequent releases of the BIG-IP will also contain an updated default ca-bundle.crt with the same removed. For any existing BIG-IP, there are two options: one that creates a new CA bundle to use in an outbound SSL Orchestrator deployment, and the other to manually update the default ca-bundle.crt file.
Mitigation 1: Create a new CA bundle: this option defines a new CA bundle file that the SSL Orchestrator topology uses to trust-validate external TLS connections.
- In the BIG-IP UI, navigate to System → Certificate Management → Traffic Certificate Management → Bundle Manager List, then click the Create button.
- Name: provide a unique name.
- Include URLs: Include the F5 managed blended-bundle. Enter this URL and then click the Add button: https://cdn.f5.com/product/ca-bundle/blended-bundle.crt.
- Exclude URLs: F5 has created the full emudhra CA bundle, complete with the impacted roots and intermediates. Enter this URL and then click the Add button: https://cdn.f5.com/product/ca-bundle/emudhra.crt
- Trusted CA-Bundle: To access either of these hosted bundles the CA Bundle Manager must also explicitly trust the F5 source. Select the f5-ca-bundle.crt from the dropdown.
- Check (enable) the Update Now checkbox. This is important and easily missed.
- Click the Finished button.
- With the bundle created, edit or define an SSL Orchestrator outbound topology, and on the SSL Configurations page, in the Trusted Certificate Authority dropdown, select this new CA bundle.
Mitigation 2: Update the built-in default ca-bundle.crt: this option updates the built-in default ca-bundle.crt bundle file. While more comprehensive, this option does also require a BIG-IP reboot. The full official steps for updating the ca-bundle.crt are here.
- Create a new script in the BIG-IP shell. This automatically removes (just) the eMudhra roots from the existing ca-bundle (and create a backup).
#!/usr/bin/env bash
# eMudhra CA Root Certificate Removal Script
# Author: KStewart
# Version: 20261023-1
# Reference: https://emudhra.we-have-a-problem.com/roots.json
# Description: This script removes the impacted eMudhra CA root certificates from the BIG-IP ca-bundle.crt file. To use this script,
# copy it to the BIG-IP and run it from the command line. The script will create a backup of the original ca-bundle.crt file and
# then create a new ca-bundle.crt file with the impacted roots removed. The following impacted roots will be removed:
# emSign ECC Root CA - G3
# AAA Certificate Services
# emSign Root TLS CA - G3
# emSign Root CS CA - G3
#
# == Usage Instructions ==
# ## Run the script
# chmod +x ca-bundle-updater.sh
# ./ca-bundle-updater.sh
#
# ## Force the mcpd process to reload the configuration
# touch /service/mcpd/forceload
#
# ## On VIPRION systems, enter the following command to run this on all blades
# clsh touch /service/mcpd/forceload
#
# ## Restart the BIG-IP -- required to load the new ca-bundle.crt file
# reboot
#
# ## On VIPRION systems, enter the following command to run this on all blades
# clsh reboot
# Create a copy of the ca-bundle
cp /config/ssl/ssl.crt/ca-bundle.crt /config/ssl/ssl.crt/ca-bundle.crt.bak
# Create a temporary ca-bundle.crt to work on
cp /config/ssl/ssl.crt/ca-bundle.crt /config/ssl/ssl.crt/ca-bundle.crt.work
# Update the ca-bundle, removing the impacted roots
awk '/BEGIN CERTIFICATE/,/END CERTIFICATE/' /config/ssl/ssl.crt/ca-bundle.crt.work | while read -r line; do
if [[ "$line" == *"BEGIN CERTIFICATE"* ]]; then
cert_buffer=""
fi
cert_buffer+="$line"$'\n'
if [[ "$line" == *"END CERTIFICATE"* ]]; then
# Check if the current certificate contains the unwanted subject string
if ! echo "$cert_buffer" | openssl x509 -noout -subject | grep -Eq "emSign ECC Root CA - G3|AAA Certificate Services|emSign Root TLS CA - G3|emSign Root CS CA - G3"; then
printf "%s" "$cert_buffer"
fi
fi
done > /config/ssl/ssl.crt/ca-bundle.crt
# Word count the original and new ca-bundle files and echo the results
cnt1=$(cat /config/ssl/ssl.crt/ca-bundle.crt.bak | grep BEGIN | wc -l)
echo "The original ca-bundle contained: ${cnt1} certificates"
cnt2=$(cat /config/ssl/ssl.crt/ca-bundle.crt | grep BEGIN | wc -l)
echo "The new ca-bundle contains: ${cnt2} certificates"
# Delete work file
rm -f /config/ssl/ssl.crt/ca-bundle.crt.work
- Run the script, force an mcpd process reload, and then reboot the BIG-IP tenant (or F5OS).
# Run the script
chmod +x ca-bundle-updater.sh
./ca-bundle-updater.sh
# Force the mcpd process to reload the configuration
touch /service/mcpd/forceload
# On VIPRION systems, enter the following command to run this on all blades
clsh touch /service/mcpd/forceload
# Restart the BIG-IP
reboot
# On VIPRION systems, enter the following command to run this on all blades
clsh reboot
Note that if you observe the resulting bundles from either of these options there will still be eMudhra roots and/or intermediates within. This is expected. Only these specific “G3” roots/intermediates were impacted, while all others (i.e., G1, G2, C1, C2, C3) are still valid and secure.
It’s also worth noting that as of 22 October, eMudhra has indicated it will voluntarily withdraw from the global SSL/TLS certificate business.
Parting Wisdom
You may have also noticed the Update Interval option in the CA Bundle Manager utility. Beyond the ca-bundle.crt file that ships with each BIG-IP release, F5 maintains a broader, downloadable CA bundle called the “blended-bundle” and updates it promptly when a CA compromise like the one involving eMudhra comes to light. Set an update interval on your existing managed bundle, or create a new one that includes the blended-bundle URL. Now BIG-IP pulls in the changes automatically and CA-bundle maintenance is a routine update instead of an emergency requiring manual intervention.
It is highly suggested that an Update Interval be applied to the built-in ca-bundle CA bundle management object. This allows the built-in bundle to stay fresh. A good recommendation is 7 days.
The key advantage of the SSL Orchestrator option is that it defines one place to manage outbound TLS trust for any and all internal systems that need to talk TLS out to the Internet. Your admins don’t have to track changes in the CA ecosystem and update trust stores on every legacy appliance, embedded device, and hard-to-update server. They manage that trust on BIG-IP instead. When the next CA compromise hits, they know where to act and can update trust in one place.
More information on BIG-IP CA bundles and configuration:
-
K000132397: Automatic update of a certificate bundle (F5 ca-bundle and custom bundles)
-
K60612439: Manually updating the BIG-IP default CA certificate bundle file
The eMudhra compromise summarized
Almost completely irrespective to the above, I’ve also decided to include a small summary of the eMudhra compromise as a point of interest. And without getting TOO much into the technical weeds, the issue was not, for all intents and purposes, some clandestine operation. It was, ultimately, some hacker (we’ll call him “Wayne”) likely performing a crawl of CT logs and testing the available certificates against a relatively small field of numbers, basically a brute force starting at 1 (one) and going up.
To put this attack in perspective, we know that eMudhra keys use P-384 elliptic curves, thus the simplified representation for the elliptic curve would be the point Q = d · G, where Q is the public key, G is the public Generator, d is the scalar private key, and · is scalar multiplication…adding G to itself d times. The private key d is some random value between 1 and n-1, and somewhere in the range of a very large number 2³⁸⁴. The Elliptic Curve Discrete Logarithm Problem (ECDLP) essentially states that, given public G and Q, recovering d such that Q = d · G, is practically infeasible – however there is an attack (Pollard’s rho) that reduces the cost to roughly √n – the amount of effort required to break a strong key, so in this case, 2¹⁹². You might then be asking, if the private key d is truly random, then the number 4 would be just as likely as any other number, right? In truth, yes. But given a number field 2³⁸⁴, if every computer on Earth generated a trillion keys per second since the Big Bang, the expected number of keys ever to land on that small number is still effectively zero. To put it simply then, Wayne likely scraped a set of certificates from a CT log, then ran a script that generated a private key (starting at 1), generated its respective public key, and then compared that generated public key to the real public key. If the public keys didn’t match, increment the private key by 1 and roll again. If they matched, the private key was revealed. And in this case, those private keys ended up being 4, 56, 66, 115, 155, 156, 230, and 237.
So why cap off a BIG-IP mitigation strategy with a cryptography lesson? It’s because the takeaway wasn’t the math…it was how utterly ordinary the attack was. A curious researcher, public certificates from a CT log, and a for-loop gave way to arguably one of the biggest CA compromises on record. And that’s the whole point. Despite all the checks and balances that most crypto systems put in place to prevent such a thing, you ultimately can’t stop an unseen implementation bug, or audit every certificate on the planet. What you can control is how fast, and how completely, your enterprise responds when a CA goes bad. If the answer is, “we touch thousands of legacy devices and services and hope we find them all”, then the next eMudhra is a full-blown incident. If the answer is, “we manage outbound root of trust in one place”, then the next eMudhra is just another Tuesday.
Thanks.
