← Back to verifying a finding

eMudhra G3CA key compromiseOctober 2026

Guide  ·  Incident  ·  Affected software  ·  Fixes  ·  Checker rules  ·  Proof  ·  References

Flow A
A certificate in a bundle

One of four flows for verifying a finding by hand, from the original sources. Find a certificate in a CA bundle or Java keystore, and confirm it is the one on the project’s list.

About this flow

Flow A checks one FAIL line by hand, without running the check. It confirms that the bundle holds the exact certificate on the project's list, and that the hash on the list belongs to a real eMudhra root that Mozilla trusted.

The check reaches its verdict from rules in this repository. These steps rebuild the evidence for one finding from primary artifacts, so you can confirm it without trusting the checker. Setup lists the tools this flow needs.

The line being checked

On a Mac the check can print this line:

FAIL  os trust store [/etc/ssl/cert.pem] contains emSign ECC Root CA - G3 (removed root)

What the steps do

Flow B shows why that root is no longer trusted.

The certificate count and the file numbers in the output depend on the machine.

Step 1. Make an empty work directory

mktemp -d makes a new empty directory with a random name. Step 3 writes more than a hundred files, and an empty directory keeps them apart from everything else.

cd "$(mktemp -d)"
ls -A | wc -l
       0

Step 2. Count the certificates in the bundle

The count sets how many times step 3 cuts the file. The bundle stores each certificate in PEM form, a block of text that opens with a -----BEGIN CERTIFICATE----- line, so counting those lines counts the certificates.

grep -c 'BEGIN CERTIFICATE' /etc/ssl/cert.pem
128

Step 3. Split the bundle into one file per certificate

openssl x509 reads only the first certificate in a file, so each certificate needs a file of its own.

n=$(grep -c 'BEGIN CERTIFICATE' /etc/ssl/cert.pem)
csplit -s -k -n 3 -f c- /etc/ssl/cert.pem '/-----BEGIN CERTIFICATE-----/' "{$((n-1))}"
ls c-* | wc -l
ls c-* | sed -n '1p;2p;$p'
     129
c-000
c-001
c-128

csplit cuts the file at the first BEGIN line and then repeats the cut n-1 times, 127 here, once for each remaining certificate.

The macOS csplit has no {*} for "repeat to the end of the file", so the command passes in the count from step 2.

There are 129 pieces for 128 certificates. c-000 holds the comment text at the top of the bundle, before the first certificate, and no certificate.

grep -c 'BEGIN CERTIFICATE' c-000
0

Every other piece starts at a BEGIN line. In this bundle every piece but the last also carries, after its END line, a text description of the next certificate. openssl reads the block from BEGIN to END and ignores the text around it.

Step 4. Find the certificate by its SHA-256 fingerprint

A SHA-256 fingerprint is the SHA-256 hash of a certificate's bytes, 64 hexadecimal digits that openssl prints in pairs separated by colons. Any change to the certificate changes the fingerprint, so a matching fingerprint identifies one certificate exactly. A name does not, because anyone can put any name in a certificate.

The loop prints the fingerprint of every piece and keeps the line that starts with 86:A1:EC:BA.

for f in c-*; do echo "$f $(openssl x509 -in "$f" -noout -fingerprint -sha256 2>/dev/null)"; done | grep '86:A1:EC:BA'
c-044 sha256 Fingerprint=86:A1:EC:BA:08:9C:4A:8D:3B:BE:27:34:C6:12:BA:34:1D:81:3E:04:3C:F9:E8:A8:62:CD:5C:57:A3:6B:BE:6B

The prefix 86:A1:EC:BA is the first eight digits of the hash on the project's list. A prefix taken from the list being tested only points at a candidate, and step 5 compares all 64 digits.

2>/dev/null hides the error openssl gives for c-000, which holds no certificate. The steps below use c-044. On another machine the piece number differs.

Step 5. Compare the full hash with the project's list

Only a match on all 64 digits shows that the bundle holds the certificate the project lists.

The project's list of certificates is rules/iocs.csv. The command below downloads the copy published with release v2.0.0. A clone of the repo at that tag holds the same file.

curl -sS -o iocs.csv https://raw.githubusercontent.com/fieldse/emudhra-ca-compromise-check/v2.0.0/rules/iocs.csv
sed -n '1p;18p' iocs.csv
name,role,issuer,serial_hex,sha256,sha1,subject_key_identifier
emSign ECC Root CA - G3,G3 root,emSign ECC Root CA - G3,3CF607A968700EDA8B84,86A1ECBA089C4A8D3BBE2734C612BA341D813E043CF9E8A862CD5C57A36BBE6B,3043FA4FF257DCA0C380EE2E58EA78B23FE6BBC1,7C5D028413D4CC8A9B81CE171C2E291E9C486342

The fifth column, sha256, holds the hash as 64 digits with no colons. The first command below puts the bundle's fingerprint in the same form by cutting the text before =, removing the colons and changing any lower-case letters to upper case. The second prints the fifth column of line 18.

openssl x509 -in c-044 -noout -fingerprint -sha256 | cut -d= -f2 | tr -d ':' | tr 'a-f' 'A-F'
sed -n 18p iocs.csv | cut -d, -f5
86A1ECBA089C4A8D3BBE2734C612BA341D813E043CF9E8A862CD5C57A36BBE6B
86A1ECBA089C4A8D3BBE2734C612BA341D813E043CF9E8A862CD5C57A36BBE6B

The shell test below compares the two strings character by character. It prints match only when all 64 digits are equal.

a=$(openssl x509 -in c-044 -noout -fingerprint -sha256 | cut -d= -f2 | tr -d ':' | tr 'a-f' 'A-F')
b=$(sed -n 18p iocs.csv | cut -d, -f5)
[ "$a" = "$b" ] && echo match || echo differ
match

Step 6. Read the certificate

The subject, issuer, serial number and dates show which certificate c-044 is.

openssl x509 -in c-044 -noout -subject -issuer -serial -dates
openssl verify -check_ss_sig -CAfile c-044 c-044
subject=C=IN, OU=emSign PKI, O=eMudhra Technologies Limited, CN=emSign ECC Root CA - G3
issuer=C=IN, OU=emSign PKI, O=eMudhra Technologies Limited, CN=emSign ECC Root CA - G3
serial=3CF607A968700EDA8B84
notBefore=Feb 18 18:30:00 2018 GMT
notAfter=Feb 18 18:30:00 2043 GMT
c-044: OK

Browser and operating system vendors stop trusting a root by dropping it from their lists of trusted roots. The certificate itself does not change, and nothing in it marks it as compromised or withdrawn.

Step 7. Look the hash up at crt.sh

crt.sh is a public search of certificate transparency logs, the public, append-only records of certificates kept by Google, Sectigo, DigiCert and others. The project does not run it.

The page for this fingerprint is:

https://crt.sh/?sha256=86A1ECBA089C4A8D3BBE2734C612BA341D813E043CF9E8A862CD5C57A36BBE6B

On 3 November 2026 the page showed these values:

Field on the pageValue
crt.sh ID713604941
SummaryRoot certificate
Certificate Fingerprints, SHA-25686A1ECBA089C4A8D3BBE2734C612BA341D813E043CF9E8A862CD5C57A36BBE6B
Serial Number3c:f6:07:a9:68:70:0e:da:8b:84
IssuercommonName = emSign ECC Root CA - G3, organizationName = eMudhra Technologies Limited
SubjectSame as the issuer
ValidityFeb 18 18:30:00 2018 GMT to Feb 18 18:30:00 2043 GMT
Certificate TransparencyFirst entry 2019-09-05, in a Sectigo log

The "Download Certificate: PEM" link on that page gives crt.sh's own copy of the certificate. Its fingerprint, worked out locally, is the same as the one from c-044.

curl -sS -o crtsh.pem 'https://crt.sh/?d=713604941'
openssl x509 -in crtsh.pem -noout -fingerprint -sha256
sha256 Fingerprint=86:A1:EC:BA:08:9C:4A:8D:3B:BE:27:34:C6:12:BA:34:1D:81:3E:04:3C:F9:E8:A8:62:CD:5C:57:A3:6B:BE:6B

The page's Revocation table reads "Not Revoked" for every source it checks. Root removals do not appear in that table.

Step 8. Find the root in Mozilla's root list

Mozilla publishes the roots it trusts in a file called certdata.txt. Debian's ca-certificates package carries a copy, and the project cites the one in Debian 12's package version 20230311+deb12u1, from before the removal. An entry there shows the hash belongs to a root that Mozilla checked and trusted.

The page to read in a browser is:

https://sources.debian.org/src/ca-certificates/20230311%2Bdeb12u1/mozilla/certdata.txt/

A search on that page for emSign ECC Root CA - G3 finds the entry at line 16688. The same file can be downloaded as plain text:

curl -sS -o certdata.txt 'https://sources.debian.org/data/main/c/ca-certificates/20230311%2Bdeb12u1/mozilla/certdata.txt'
grep -n -A7 '^# Certificate "emSign ECC Root CA - G3"' certdata.txt
16688:# Certificate "emSign ECC Root CA - G3"
16689-#
16690-# Issuer: CN=emSign ECC Root CA - G3,O=eMudhra Technologies Limited,OU=emSign PKI,C=IN
16691-# Serial Number:3c:f6:07:a9:68:70:0e:da:8b:84
16692-# Subject: CN=emSign ECC Root CA - G3,O=eMudhra Technologies Limited,OU=emSign PKI,C=IN
16693-# Not Valid Before: Sun Feb 18 18:30:00 2018
16694-# Not Valid After : Wed Feb 18 18:30:00 2043
16695-# Fingerprint (SHA-256): 86:A1:EC:BA:08:9C:4A:8D:3B:BE:27:34:C6:12:BA:34:1D:81:3E:04:3C:F9:E8:A8:62:CD:5C:57:A3:6B:BE:6B

The label, serial number and SHA-256 fingerprint are the same as in steps 5 and 6. A second record further down the file sets what Mozilla trusted the root to do:

awk '/^# Trust for "emSign ECC Root CA - G3"/,/TRUST_SERVER_AUTH/' certdata.txt | grep -E '^# Trust for|^# Fingerprint \(SHA-256\)|SERVER_AUTH'
# Trust for "emSign ECC Root CA - G3"
# Fingerprint (SHA-256): 86:A1:EC:BA:08:9C:4A:8D:3B:BE:27:34:C6:12:BA:34:1D:81:3E:04:3C:F9:E8:A8:62:CD:5C:57:A3:6B:BE:6B
CKA_TRUST_SERVER_AUTH CK_TRUST CKT_NSS_TRUSTED_DELEGATOR

CKT_NSS_TRUSTED_DELEGATOR on the CKA_TRUST_SERVER_AUTH line means Mozilla trusted the root to issue certificates for websites.

The same check in a Java keystore

Java keeps its trusted roots in a keystore file, cacerts, and keytool -list prints the SHA-256 fingerprint of each entry. changeit is the default password of that keystore. This output is from the eclipse-temurin:21.0.8_9-jre image, a Java runtime released before the fix, run in a container:

keytool -list -cacerts -storepass changeit | grep -i -A1 'emsign_ecc_root_ca__g3'
cn_emsign_ecc_root_ca__g3,o_emudhra_technologies_limited,ou_emsign_pki,c_in [jdk], Nov 3, 2026, trustedCertEntry, 
Certificate fingerprint (SHA-256): 86:A1:EC:BA:08:9C:4A:8D:3B:BE:27:34:C6:12:BA:34:1D:81:3E:04:3C:F9:E8:A8:62:CD:5C:57:A3:6B:BE:6B

Step 5's comparison applies to this fingerprint unchanged.

Result

Each claim in Flow A rests on one of these original sources:

ClaimStepSource and what to look for
The project's list names the G3 rootStep 5rules/iocs.csv at release v2.0.0. Line 18, sha256 column: 86A1ECBA089C4A8D3BBE2734C612BA341D813E043CF9E8A862CD5C57A36BBE6B
crt.sh holds the G3 rootStep 7crt.sh search for the root's SHA-256. crt.sh ID 713604941 and Serial Number 3c:f6:07:a9:68:70:0e:da:8b:84
Mozilla trusted the G3 root for websites, in Debian 12's copy of its root listStep 8certdata.txt in Debian's ca-certificates 20230311+deb12u1. # Certificate "emSign ECC Root CA - G3" at line 16688, and CKA_TRUST_SERVER_AUTH CK_TRUST CKT_NSS_TRUSTED_DELEGATOR in the root's trust record

Flow B shows why that root is no longer trusted.