Closed Bug 1724476 Opened 5 years ago Closed 5 years ago

Sectigo: Updates for Sectigo’s Guard Rails project

Categories

(CA Program :: CA Certificate Compliance, task)

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: tim.callan, Assigned: tim.callan)

Details

(Whiteboard: [ca-infosharing])

This bug is not a response to a particular CA Compliance incident.

Bug 1715929 has transformed from a description of a specific issue and our response to a general warehouse for all updates on our Guard Rails project. Per bug 1715929 comment 19, this new bug will replace that bug as our Guard Rails warehouse moving forward. We of course will report Guard Rails implementations in response to specific Bugzilla bugs in those bugs in addition to reporting them here. We suspect at some point in the future it may not make sense to continue maintaining these announcements in this bug, and we can deal with that eventuality when it comes about.

“Guard Rails” is a convenient name for a series of programmatic checks we are putting in place to confirm certificate orders for compliance with specific requirements before issuance can occur. Guard Rails are like Certificate Lints, except that they may be stricter than what CA/B Forum and root program policies require. By defining and adding these checks, we can eliminate potential sources of misissuance and achieve higher overall issuance quality. This initiative is borne in part from the understanding that human-based processes are fundamentally error prone, and to the degree we can implement defined machine processes, our error rate will go down. We understand that it may never be possible to implement programmatic checks for every potential source of error, but we’d like to get as close to that ideal as we can.

Potential sources of ideas for these checks include:

  • Root causes of past or new Bugzilla bugs for Sectigo
  • Root causes of Bugzilla bugs for other CAs
  • Redefined versions of queries we run to investigate our own certificate base for misissuance
  • Our own knowledge of how validation works and where it could fail

We intend for this bug to contain all updates that fall under the Guard Rails rubric, which can include but might not be limited to:

  • Descriptions of upcoming Guard Rails initiatives
  • Expected release dates
  • Deployment announcements
  • Refinements and improvements to existing Guard Rails features
  • Lessons learned
  • Our goals, challenges, and approach for this initiative

To date we have announced these Guard Rails deployments, all of which affect certificate Subject Names:

  • Enforced matching of serialNumber and businessCategory for government entities. July 18 release (see bug 1715929 comment 12 for description).
  • Forced escalation for postalCode match to other fields. July 25 release (see bug 1715929 comment 15 for description).
  • Match businessCategory to organizationName. July 25 release (see bug 1715929 comment 15 for description).
  • stateOrProvinceName-localityName exclusivity. August 1 release with one or more follow up releases in the next few weeks to clean up some corner cases. (Detailed description to follow in this thread.)

As the last few Guard Rails releases have been ahead of original schedule, we will be looking at our upcoming deliverables and schedules. As we solidify these expectations, we’ll publish them here.

Some of these Guard Rails may be applicable to all public SSL certificates, in which case we will consider adding them to public Linter projects. Some of them will be specific to our own processes or to requirements we’ve set for our certificates that are more stringent or more specific than the Baseline Requirements or EV Guidelines, in which case that would not be appropriate. In the latter case, it may make sense for some of these internal rules to become future requirements as part of the BRs or EVGs. In this scenario we may surface and drive discussion around one or more of our Guard Rails in that context.

For both these reasons, it makes great sense for our Guard Rails initiatives to be transparent to the broader community, and we would like this bug to become the repository for this thinking and discussion.

Since this bug is intended to be a repository for information and discussion rather than a response to any particular CA Compliance incident, I'm immediately marking it as RESOLVED INCOMPLETE and deliberately not putting [ca-compliance] in the Whiteboard field. We chose to deviate from the "<CA Name>: <Incident Summary>" bug title format for the same reason.

Assignee: bwilson → tim.callan
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INCOMPLETE

I just wonder if a discussion in m.d.s.p. would have been an option
BR/Pedro

While stateOrProvinceName-localityName exclusivity is live, it will take some time for localityName fields to completely phase out of Sectigo’s active certificate base, including issuance of some new certificates. This message is to explain how this phase-in will work, to avoid confusion among observers when looking at active Sectigo certificates. In plain English, this Guard Rail does the following:

If a certificate request has a stateOrProvinceName field, then the certificate will be issued without a localityName field. Most new OV and EV certificates will each be required to contain a stateOrProvinceName field populated with a country-appropriate value from our table of potential names. There are two specific exceptions, which will phase out over time.
First, replacement certificates will not remove locality information that was in the original certificate. This is to facilitate fast reissuance while making a reasonable risk tradeoff. Bug 1715929 comment 13 explains,

For the replacement certificates exception, the point behind a replacement certificate is immediate issuance with all the same organization details and the same expiry date. Because these certificates may have been issued without a stateOrProvinceName field initially, forcing them to have this field now can hold up replacement while we undergo new validation and cause production outages. For those certificates we can allow the localityName field to remain and the risk of a mississued certificate will be no greater than if no replacement had occurred. As the existing certificate base expires out, this risk will approach and then reach zero as the number of existing certificates with localityName diminishes.

Second, we have an exception for OV reuse within our Sectigo Certificate Manager platform. In this case the pre-approved OV details in a given Certificate Manager account might not include state or province information in favor of locality information. To individually vet and sometimes reauthenticate these OV details for all organizations in all Certificate Manager accounts would have been a vast task with very little benefit. Remember, the point is not to remove localityName but rather to remove the risk of misissuance due to localityName. In the case of preapproved, enterprise, OV information, the risk that locality information is somehow incorrect is exceedingly low. That means removing these fields in the short term is of little value.

Therefore, certificates issued from Certificate Manager accounts will include the same combination of stateOrProvinceName and localityName that is in the preapproved OV details today (which we call the OV anchor). OV anchors are good for one year before we revalidate each set of organization details. Those revalidated anchors will be forced to include stateOrProvinceName and will exclude localityName. Today we have made that change through policy. We have a Certificate Manager code update expected in the next three weeks that will programmatically enforce this requirement.

All leaf certificates issued based on the organization details in the OV anchor will follow that anchor. That means we may be issuing new leaf certificates from Certificate Manager with localityName fields until roughly a year from now. Therefore there may be active SSL certificates with localityName in our base until a little over two years from now.

The incidence of this field should drop at a steady rate until about a year from today, when all remaining certificates will have been issued from Certificate Manager accounts. Those certificates will expire out over the course of the following year or so, and then there should be no more localityName fields in Sectigo’s active, public, SSL certificates.

(In reply to Pedro Fuentes from comment #2)

I just wonder if a discussion in m.d.s.p. would have been an option
BR/Pedro

Hi Pedro. Yes, this would have been an option, and Mathew Hodson made the same suggestion in bug 1715929 comment 21. However, we've found that linking within Bugzilla to other comments, to other bugs, and even to particular comments in other bugs (e.g., see previous sentence :-) ), is simpler and more elegant than linking between m.d.s.p posts or between m.d.s.p posts and Bugzilla. An added bonus of using Bugzilla is that we'll be able to use "Depends on:" or "See also:" to link this bug to each incident response bug that prompts the development of a Guard Rail.

We intend to implement new functionality that will perform programmatic checks of QGIS against seven different factors:

  • Registration number available (y/n)
  • Registration number format
  • Registration date available (y/n)
  • Business category
  • JOI country
  • JOI state or province
  • JOI locality

All seven of these checks will follow the same basic architecture, which will be to check against the expectations recorded in a table we are presently populating. This will depend on the relevant record being complete before a specific one of these lookups will occur for a given QGIS. For example, before matching against registration number availability occurs for a specific QGIS, the record of whether or not registration numbers are available must be filled in. A blank field will result in skipping this programmatic check for this particular QGIS. This approach means we can start to gain benefits prior to the complete population of the big table of QGIS properties.

Our target delivery date is October 17.

In response to the Mojibake issue we reported in bug 1724458, we will introduce a new validation step we’ve dubbed "Character Set Review." We will add a programmatic check of certain Subject Name attributes of every OV or EV certificate request for one or more characters outside the set of printable ASCII characters. In the event of such characters, our system will hold issuance and require manual review by a Validation Specialist.

The rep will use existing qualified data sources to confirm the string or determine the true text that should appear in the offending field. If a Subject Name has been flagged for Character Set Review on a previous occasion and okayed by Validation, then this Subject Name will be set as approved and future issuance can go through automatically without requiring manual Character Set Review. If a Subject Name has been flagged for Character Set Review on a previous occasion and modified by Validation prior to issuance, then the original and modified Subject Names will be recorded so that we can automatically apply the same modification in the event that the customer sends us the same problematic Subject Name in the future.

We believe the primary beneficiary of this process will be the subject:organizationName field. Most Subject Name fields in the OV and EV certificates that we issue either are locked down to a discrete set of allowable values (such as the countryName and businessCategory fields) or have been eliminated or are soon to be eliminated (such as streetAddress, postalCode, and localityName). The three that remain are organizationName, organizationalUnitName, and joiLocalityName.

For the organizationName, localityName and joiLocalityName Subject Name fields, we will use “Character Set Review” as detailed above.

Validating the “correct” string for subject:organizationalUnitName is especially difficult as we have no data sources we can look to for what the correct text should be. We will solve this problem in the short term by implementing a rule that OU fields in certificate Subjects must only contain printable ASCII characters; any OU field that doesn’t meet this condition will be discarded from the certificate request prior to issuance. This is a simple, reliable, automated safeguard against issuing certificates with OU fields that contain Mojibake. In the event of customers who really wanted OU fields to be present, they can contact us to supply an OU string that contains only printable ASCII characters and we will reissue the certificate accordingly. In the longer term, OU fields will be going away due to SC47v2.

At present we have a target deployment date of September 26.

Bug 1724458 at present contains an ongoing discussion about further ideas to programmatically detect and fix Mojibake characters. Should that dialog or the lessons we learn from our current response to Mojibake result in modifications to this or new Mojibake Guard Rails, we plan to report them here.

(In reply to Tim Callan from comment #6)
Character set review occurred on Sunday as scheduled and is now in production. We are gathering reviewed strings in our database for future analysis.

(In reply to Tim Callan from comment #6)
I don't see the value in adding this information here instead of in bug 1724458. Everything in the previous comment was related to the mojibake issue and your character set review, and so should be in bug 1724458. Important information such as the target deployment date of September 26 should be provided in the same place as the incident report because it is part of the remediation.

This information was covered in bug 1724458 comment 1 with a slight modification described in bug 1724458 comment 6. You can find the original target date in bug 1724458 comment 4 and then the updated date in bug 1724458 comment 10. All these comments were posted prior to this bug’s comment 6.

The purpose of this bug, as explained in comment 0, is to be a single repository for all the individual releases that contribute to our Guard Rails initiative. Placing them together in this thread helps track the fullness of the initiative and allows a functional thread for discussion not just of single, integrated fixes but also of the larger effort to set up programmatic checks to block potential misissuance.

As previously announced in bug 1721271 comment 14, our new target date for QGIS-JOI matching is October 30.

In addition to the seven QGIS-matching functions listed in comment 10, we also have added a check for United States financial institutions chartered and regulated on the federal level. State- and local-level JOI information is inappropriate for them. As these financial institutions will have local information associated with their actual business operations, the potential exists to incorrectly assign them one of these JOIs. Our programmatic check will prevent issuance of EV certificates containing jurisdictionStateOrProvinceName or jurisdictionLocalityName fields if the QGIS is flagged as a federal-only source.

Due to unforeseen circumstances unrelated to this additional check, we were not able to deploy in the expected window last weekend. That places this release in the next deployment window on November 6.

We are pleased to announce that our suite of QGIS matching Guard Rails as described in comment 5 and then amended in bug comment 11 went live this past weekend.

Bug 1724458 comment 17 describes recent changes we made to remove OU field content from consideration for Mojibake Character Set Review. That comment explains the change and our reason to make it.

Bug 1724458 comment 20 describes our upcoming Exception List functionality for Mojibake Character Set Review. The value of this change will be to programmatically eliminate many false positives that presently cause Character Set Review to occur. That comment explains the change that we will be making and how it will be beneficial. We have set a January 8, 2022 target date for that update.

In response to the inclusion of inappropriate Subject fields in OV and EV certificates as described in bug 1736064, we have implemented an additional pre-issuance check for all TLS certificates. This check contains a set of permissible Subject fields for each authentication level (DV, OV, EV). according to the Baseline Requirements and EV Guidelines. Any certificate containing a field not permitted at that authentication level is blocked from issuance. This check went into production this last weekend.

Product: NSS → CA Program
Whiteboard: [ca-compliance] [uncategorized]
Summary: Updates for Sectigo’s Guard Rails project → Sectigo: Updates for Sectigo’s Guard Rails project
Whiteboard: [ca-compliance] [uncategorized] → [ca-infosharing]
You need to log in before you can comment on or make changes to this bug.