Open Bug 2087677 Opened 28 days ago Updated 1 day ago

GDCA: Investigate predictable certificate serial generation and implications for CA key security

Categories

(CA Program :: CA Security Vulnerability, task)

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: bwilson, Assigned: capoc)

Details

Attachments

(2 files)

This confidential investigation concerns GDCA-specific findings reported in restricted Bug 2085752. The findings below are attributed to the researcher and require GDCA’s verification.

The report demonstrates claimed predictability of certificate serial numbers. It does not establish compromise or predictability of GDCA’s private keys.

Note: In Bug 1536831, GDCA reported configuring EJBCA to generate 16-octet serial numbers effective December 1, 2017, and subsequently implementing serial-length checks. Please explain whether that remediation also included reviewing the randomness source and seeding mechanism, and provide the relevant software versions, configuration changes, and validation results. In light of the newly reported predictable streams, please assess whether the current findings reflect a weakness that remained undetected during the earlier investigation, a later regression, or a separate implementation, and explain the basis for GDCA’s earlier conclusion that the upgraded issuance system met the CSPRNG-output requirement.

Reported findings

1. CA certificate serials

The researcher reports that the following three intermediate certificates, each with a notBefore date of February 25, 2026, correspond to consecutive outputs—positions 2, 3, and 4—of one time-seeded Java SHA1PRNG stream:

Certificate Serial number
GDCA TrustAUTH R4 DV SSL CA2 4ba6397c02f5b7b14350e2f96bd6c3fd
GDCA TrustAUTH R4 OV SSL CA2 23eee2fc486fe64bb7e6c876cd241461
GDCA TrustAUTH R4 EV SSL CA2 5794f0435036c354e01a0eb07f2e8bbd

The researcher estimates a process-start window of April 19–May 14, 2025. This is an inference from the generator model, not a confirmed ceremony date.

2. Subscriber certificate serials

The original report identifies 59 sampled subscriber certificate serials across the three intermediates that match two reconstructed streams, covering issuance in April–May and September–October 2026.

Within the report’s fresh-precertificate sample, all 47 GDCA serials examined reportedly matched: 26 OV, 20 DV, and one EV. These figures describe the researcher’s sample, not GDCA’s complete issuance population.

3. OCSP responder certificate

The researcher reports that the following certificate matches another time-seeded stream:

  • Issuer: GDCA TrustAUTH R4 EV SSL CA2
  • notBefore: August 25, 2026
  • Serial: 28d4e3026c7497c081ef1607747e7c77
  • SHA-256: 172e9301058626ec6b0770664d02242b31989efa29d08516cadcf141ecf0591e

4. Implementation differences

The researcher reports different serial-number construction behavior for the February 2026 CA certificates and subscriber issuance, suggesting that their generation paths may differ. The deployed software and actual cause remain to be established.

The report also identifies a historical match for the GDCA TrustAUTH R5 ROOT certificate dated November 26, 2014. Its generation process should be included when assessing whether related practices affected still-used CA keys.

Questions for GDCA

Please address each question with currently available information, distinguishing confirmed findings from hypotheses and identifying supporting records.

  1. Can you reproduce or otherwise verify the reported matches? Identify any discrepancies and provide your explanation of the serial-generation mechanisms.

  2. What software and configurations generated these serials? Identify product editions, versions, cryptographic providers, RNG settings, customizations, and ceremony scripts. Explain any differences between CA-certificate creation, subscriber issuance, and OCSP responder issuance.

  3. What is the scope and current status? Identify affected systems, hierarchies, certificate types, operating periods, and certificate populations. Explain whether the behavior continues and what containment or remediation has occurred.

  4. Are key generation and signing independent of the affected randomness? Describe the relevant randomness sources, seeding mechanisms, and any shared generator state. Include CA keys and OCSP responder keys, and explain where signature randomness is generated when applicable.

  5. What evidence establishes the origin of the relevant keys? Provide ceremony records, HSM audit records, configurations, and other evidence connecting generation events to the public keys in the certificates. Identify the HSM models, firmware, operating modes, and applicable validation references, and account for imports, backups, or migrations. Evidence of present HSM storage or signing should be distinguished from evidence of original generation within the HSM.

  6. What remains uncertain? Identify missing records, investigation limitations, responsible persons, planned validation, and completion dates. Explain the evidence supporting continued use of potentially affected systems and keys.

Initial response and handling

Please acknowledge notification within 24 hours and identify the investigation lead and immediate security assessment. Provide a preliminary response within 72 hours, supplementing it as the investigation progresses.

Preserve relevant evidence before making changes where practicable without delaying necessary containment.

This bug will remain confidential for detailed investigation and sensitive supporting material. A separate public incident report will document findings and remediation, with disclosure coordinated with the root programs.

Hello,

We acknowledge receipt of this issue and confirm that it has been referred to our technical team for further investigation.

We will provide a preliminary response within the 72-hour timeframe.

Thank you.

Assignee: xiulei → capoc

(In reply to Ben Wilson from comment #0)

Questions for GDCA

Please address each question with currently available information, distinguishing confirmed findings from hypotheses and identifying supporting records.

  1. Can you reproduce or otherwise verify the reported matches? Identify any discrepancies and provide your explanation of the serial-generation mechanisms.

Following our investigation, we have confirmed that the issue reported by the researcher is true. Certificate serial numbers were generated using the Java SHA1PRNG algorithm, with timestamps used as one of the factors in the random seed. This resulted in predictable output sequences, consistent with the researcher's findings.

  1. What software and configurations generated these serials? Identify product editions, versions, cryptographic providers, RNG settings, customizations, and ceremony scripts. Explain any differences between CA-certificate creation, subscriber issuance, and OCSP responder issuance.

1. CA software version: Customized EJBCA Community Edition.
2. Cryptographic providers: java.security.SecureRandom.
3. RNG settings: SHA1PRNG was used. The seed construction included timestamps as one of the input factors.
4. Differences between CA-certificate creation, subscriber issuance, and OCSP responder issuance: The same algorithm and configuration were used for all three types of certificates. However, the input variables used in seed construction differed.

  1. What is the scope and current status? Identify affected systems, hierarchies, certificate types, operating periods, and certificate populations. Explain whether the behavior continues and what containment or remediation has occurred.

1. GDCA has suspended the issuance of SSL certificates.
2. Based on our preliminary investigation, the currently identified affected certificate types and populations are as follows:
Subordinate CA certificates: Three certificates, namely GDCA TrustAUTH R4 DV SSL CA2, GDCA TrustAUTH R4 OV SSL CA2, and GDCA TrustAUTH R4 EV SSL CA2.
OCSP responder signing certificates: Four certificates.
Subscriber certificates: A preliminary count of 501 certificates.

  1. Are key generation and signing independent of the affected randomness? Describe the relevant randomness sources, seeding mechanisms, and any shared generator state. Include CA keys and OCSP responder keys, and explain where signature randomness is generated when applicable.

Yes. They are completely independent.
The generation of all GDCA CA keys and the execution of digital signing operations are performed entirely within independent HSMs. These operations are subject to both physical and logical isolation from the defective random number generation mechanism used for certificate serial number generation. No random number generator (RNG) state is shared between these processes.

  1. What evidence establishes the origin of the relevant keys? Provide ceremony records, HSM audit records, configurations, and other evidence connecting generation events to the public keys in the certificates. Identify the HSM models, firmware, operating modes, and applicable validation references, and account for imports, backups, or migrations. Evidence of present HSM storage or signing should be distinguished from evidence of original generation within the HSM.

After review, we confirmed that the generation of GDCA CA keys is entirely separate from the certificate serial number generation process affected by this issue. The relevant keys were generated within HSMs, whereas the affected certificate serial numbers were generated at the application software layer. The two processes are independent of each other.
GDCA retains a complete chain of evidence documenting the key generation process, which is available for review. This evidence includes video recordings of key generation ceremonies, HSM audit logs, approval records etc.

  1. What remains uncertain? Identify missing records, investigation limitations, responsible persons, planned validation, and completion dates. Explain the evidence supporting continued use of potentially affected systems and keys.

At present, no other significant uncertainties have been identified. The relevant records and supporting evidence have been retained in full, including audit logs and video recordings of operational procedures. The investigation leads and their respective responsibilities have been clearly assigned.

GDCA plans to complete the remediation of the certificate serial number generation mechanism within five days.

Initial response and handling

Please acknowledge notification within 24 hours and identify the investigation lead and immediate security assessment. Provide a preliminary response within 72 hours, supplementing it as the investigation progresses.

Preserve relevant evidence before making changes where practicable without delaying necessary containment.

This bug will remain confidential for detailed investigation and sensitive supporting material. A separate public incident report will document findings and remediation, with disclosure coordinated with the root programs.

Preliminary Incident Report

Summary

  • Incident description: On October 31, 2026, GDCA received a report published by Mozilla on Bugzilla concerning the predictability risk in the certificate serial number generation mechanism used for certain GDCA certificates and the related security investigation. The report indicated that the generation of serial numbers for certain GDCA certificates was predictable and may have involved the Java SHA1PRNG pseudo-random number generation mechanism initialized with a time-based seed, resulting in predictable output sequences.

    Following an internal investigation, GDCA confirmed that the issue was true and suspended SSL certificate issuance. The affected certificates include three Subordinate CA certificates, four OCSP responder certificates, and a preliminary count of 501 subscriber certificates that are currently within their validity periods.

    GDCA is conducting a comprehensive investigation to determine the root cause and remediate the certificate serial number generation mechanism. A full incident report will be issued subsequently. At present, GDCA can confirm that CA key generation and signing operations are performed within independent HSMs. These operations are subject to both physical and logical isolation from the defective random number generation mechanism used for certificate serial number generation, with no shared random number generator (RNG) state between them.

  • Relevant policies: Baseline Requirements for the Issuance and Management of Publicly-Trusted Certificates, section 7.1.2: serialNumber MUST be a non‐sequential number greater than zero (0) and less than 2¹⁵⁹ containing at least 64 bits of output from a CSPRNG.

  • Source of incident disclosure: Third Party Reported

Progress Update – 2026-11-09

GDCA has completed the revocation of all currently identified affected certificates and the remediation of the certificate serial number generation mechanism.

The remaining investigation and preparation of the Full Incident Report are ongoing. GDCA will submit the Full Incident Report by November 13, 2026, detailing the root cause and remediation measures.

Full Incident Report

Summary

  • CA Owner CCADB unique ID: A000290

  • Incident description: On October 31, 2026, GDCA received a report published by Mozilla on Bugzilla concerning the predictability risk in the certificate serial number generation mechanism used for certain GDCA certificates, together with a related security investigation. The report indicated that the serial numbers of certain GDCA certificates were potentially predictable and may have been generated using the Java SHA1PRNG pseudo-random number generation mechanism initialized with a time-based seed.
    Upon receiving the report, GDCA immediately suspended the issuance of all SSL certificates and initiated its emergency incident response. To date, GDCA has revoked all affected Subordinate CA certificates and subscriber certificates, and has remediated the entropy source defect in certificate serial number generation.
    GDCA confirms that CA key generation and signing operations are performed within independent Hardware Security Modules (HSMs). These operations are subject to both physical and logical isolation from the defective random number generation mechanism used for certificate serial number generation. No pseudo-random number generator state is shared between these processes.

  • Timeline summary:

    • Non-compliance start date: 2016-09-30
    • Non-compliance identified date: 2026-11-01
    • Non-compliance end date: 2026-11-06
  • Relevant policies: Baseline Requirements for the Issuance and Management of Publicly-Trusted Certificates (historical versions), section 7.1: Effective September 30, 2016, CAs SHALL generate non-sequential Certificate serial numbers greater than zero (0) containing at least 64 bits of output from a CSPRNG. (Requirement introduced by Ballot 164).
    Baseline Requirements for the Issuance and Management of Publicly-Trusted Certificates (current version), section 7.1.2: serialNumber MUST be a non‐sequential number greater than zero (0) and less than 2¹⁵⁹ containing at least 64 bits of output from a CSPRNG. (Requirement introduced by SC062v2).

  • Source of incident disclosure: Third Party Reported

Impact

  • Total number of certificates: 7953
  • Total number of "remaining valid" certificates: 0
  • Affected certificate types: Subordinate CA certificates; DV, OV, and EV SSL subscriber certificates.
  • Incident heuristic: The corpus of affected certificates is disclosed in the Appendix.
  • Was issuance stopped in response to this incident, and why or why not?: Yes. Certificate issuance was suspended upon receipt of the certificate problem report.
  • Analysis: N/A
  • Additional considerations: N/A

Timeline

All times below are in Beijing Time (UTC+8).

  • 2016-09-30: Ballot 164 took effect, requiring certificate serial numbers to contain at least 64 bits of output from a CSPRNG.
  • 2016-10-08: The legacy Subordinate CA certificates (GDCA TrustAUTH R4 DV SSL CA, GDCA TrustAUTH R4 OV SSL CA, and GDCA TrustAUTH R4 EV SSL CA) were used to issue subscriber certificates whose serial numbers did not comply with the BR requirements.
  • 2026-02-25: The affected Subordinate CA certificates (GDCA TrustAUTH R4 DV SSL CA2, GDCA TrustAUTH R4 OV SSL CA2, and GDCA TrustAUTH R4 EV SSL CA2) were issued.
  • 2026-10-31, 06:44: GDCA received the report published by Mozilla on Bugzilla.
  • 2026-10-31, 08:48: GDCA initiated an investigation and suspended SSL certificate issuance.
  • 2026-11-01, 15:15: GDCA confirmed through its internal investigation that the issue was valid.
  • 2026-11-02: GDCA began remediating the system defects related to the random number source and random seed.
  • 2026-11-04: GDCA completed the remediation of the defect in the certificate serial number generation mechanism.
  • 2026-11-05, 09:45: GDCA began revoking affected subscriber certificates that were still within their validity periods.
  • 2026-11-05, 16:09: Revocation of the last affected subscriber certificate that was still within its validity period was completed.
  • 2026-11-06, 14:07: GDCA revoked the affected Subordinate CA certificates.
  • 2026-11-06, 15:04: GDCA issued replacement compliant Subordinate CA certificates and OCSP responder certificates to ensure uninterrupted CRL and OCSP services.

Related Incidents

Bug Date Description
Bug 2087236 2026-10-29 CA certificate serial numbers contain fewer than 64 bits of CSPRNG output
Bug 2085769 2026-10-26 Serial number of a cross-signed CA certificate generated with java.util.Random
Bug 2087990 2026-11-02 Insufficient randomness in serial numbers of two Cybertrust Japan subordinate CA certificates
Bug 2090881 2026-11-09 CA Certificate Serial Numbers Generated Using a Non-Cryptographically Secure PRNG
Bug 2090925 2026-11-09 Serial numbers do not contain at least 64 bits of CSPRNG output

Root Cause Analysis

Contributing Factor 1: Certificate serial numbers were generated using Java SHA1PRNG initialized with a time-based seed

  • Description: Some certificate serial numbers were generated using the Java SHA1PRNG pseudo-random number generation mechanism initialized with a time-based seed. This introduced a risk that the resulting serial numbers could be predicted and did not comply with the requirement in BR Section 7.1.2 that certificate serial numbers contain at least 64 bits of CSPRNG output.
  • Timeline: Same as the timeline described above.
  • Detection: This defect was identified during the investigation following receipt of the external notification.
  • Interaction with other factors: This factor directly resulted in the non-compliance. Factor 2 allowed the issue to persist without being detected at an earlier stage.

Contributing Factor 2: Previous remediation (Bug 1536831) did not cover the random number source and random seed mechanism

  • Description: Bug 1536831 reported that GDCA's certificate serial numbers were insufficient in length. In response, GDCA upgraded its issuance system and implemented serial number length validation to ensure that certificate serial numbers met the applicable BR length requirements at that time. However, this remediation focused only on the length of serial numbers and did not include a review of the random number entropy source or seed mechanism.
  • Timeline: From December 1, 2017 (when the 16-byte serial number configuration took effect) until the issue was identified in the present incident.
  • Detection: This defect was identified during the investigation following receipt of the external notification.
  • Interaction with other factors: Because the previous remediation did not cover the random number source and seed mechanism, this gap indirectly contributed to the persistence of Factor 1. It also explains why the lack of randomness in the serial numbers was not detected through internal validation over an extended period.

Contributing Factor 3: The acceptance testing process did not include a compliance review against BR requirements

  • Description: The previous remediation was limited to the CA configuration layer (serial number byte length). Existing inspection tools did not cover the review of random number sources or random seed mechanisms, and the acceptance testing process lacked a step for validating serial number compliance against BR requirements. Consequently, the random algorithm used by the serial number generator (SHA1PRNG) and its seed construction (with timestamps as seed input factors) were not reviewed, nor was it verified whether the generated output provided the unpredictability required of a CSPRNG.
  • Timeline: From December 1, 2017 (when the 16-byte serial number configuration took effect) until the issue was identified in the present incident.
  • Detection: This defect was identified during the investigation following receipt of the external notification.
  • Interaction with other factors: Factor 2 did not cover the random number source or random seed mechanism. In addition, the acceptance testing process lacked a compliance review against BR requirements and was therefore unable to identify serial-number randomness risks during system changes. As a result, Factor 1 was allowed to persist without being detected at an earlier stage.

Lessons Learned

  • What went well:
    Prompt response following receipt of the third-party report: Upon receiving the report on October 31, 2026, GDCA immediately suspended SSL certificate issuance and initiated an investigation. The issue was confirmed following internal review on November 1, 2026, after which GDCA promptly proceeded with certificate revocation and remediation of the serial number generation mechanism.
    CA key generation and signing operations are performed within independent Hardware Security Modules (HSMs). These operations are subject to both physical and logical isolation from the defective random number generation mechanism used for certificate serial number generation. No pseudo-random number state is shared between these processes.

  • What didn’t go well:
    During regression testing following the previous security incident (Bug 1536831), excessive reliance was placed on superficial length validation, and the underlying cryptographic entropy source compliance was not examined in sufficient depth.

  • Where we got lucky:
    The scope of impact was relatively limited, and certificate revocation and remediation could be completed within a foreseeable timeframe.

  • Additional: N/A

Action Items

Action Item Kind Corresponding Root Cause(s) Evaluation Criteria Due Date Status
Remediate the defect in the serial number generation mechanism. Mitigate Factors 1 and 2 Use an entropy source compliant with SP 800-90B as the entropy input, and employ Hash_DRBG compliant with SP 800-90A to generate CSPRNG output that meets BR requirements. 2026-11-04 Completed
Revoke affected subscriber certificates that are still within their validity periods Mitigate Factors 1 All affected subscriber certificates have been revoked. 2026-11-05 Completed
Revoke affected Subordinate CA certificates Mitigate Factors 1 Affected Subordinate CA certificates have been revoked. 2026-11-06 Completed
Incorporate BR requirements into the acceptance testing process Prevent Factors 3 Incorporate BR compliance requirements into the acceptance testing process to ensure that every system version change is validated against BR requirements before deployment 2026-11-10 Completed

Appendix

Attached is the lists of affected certificates.

We are continuing to monitor this issue.

Mozilla intends to make this bug public. As far as we are aware, you have not yet posted a public version of your response in Bugzilla. If you have already done so, please provide the bug number here. Or, if you object to making this bug public, please comment here by 23:00 UTC on Monday, November 23, 2026, and explain why. If your objection concerns specific information in a comment or attachment, please identify the material and explain why it should remain confidential. If we receive no objection by the deadline, we plan to make this bug public.

Flags: needinfo?(capoc)

Hello Ben,
We have no objection to making this bug public.

Flags: needinfo?(capoc)
Group: ca-program-security

We are continuing to monitor this issue.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: