aws / s2n-tls

An implementation of the TLS/SSL protocols
https://aws.github.io/s2n-tls/usage-guide/
Apache License 2.0
4.53k stars 707 forks source link

fix: update ja4 compliance #4773

Closed lrstewart closed 2 months ago

lrstewart commented 2 months ago

Description of changes:

Pull in the latest version of the JA4 spec for compliance comments.

This PR primarily just updates compliance comments, but the new spec does come with two behavior changes:

  1. Empty strings are set to a string of zeroes rather than hashed
  2. The version "s1" (SSLv1) is removed, meaning that SSLv1 would now be considered unknown / "00". That shouldn't really matter since s2n-tls doesn't support sslv1.

Call-outs:

Let me know if the diff is too confusing. I can always update the spec first, then make us compliant with the updated spec in a separate PR. But manual review of the spec changes isn't really important, since duvet will fail to generate the compliance report if the spec files don't match what it pulls down from the url.

You can see a diff of the spec in the original repo here.

Testing:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.