HSCP-R-040 · recipe · Security
Move connections to hybrid key exchange and check it at each version
Written entry, version 0.1, checked on 2026-12-04.
At a glance
| Implements | HSCP-G-042 Scale encryption to the security need : Choose an encryption level and scope proportionate to the security need, facet “algorithms, key sizes and protocols, with a migration plan” |
|---|---|
| Case | Instantiates: applies an existing practice to a context. |
| Context | health software whose exchanges with browsers, applications, national services and third parties (hosting provider, AI model, remote MCP server) must remain confidential long after they take place, on an infrastructure it operates or entrusts to a hosting provider |
| Surfaces |
|
| Verification | review |
Scope: The recipe deals with the key exchange of connections and the order of migration. It does not choose algorithms in place of cryptography guides, does not supply quantum-resistant certificates and does not deal with encryption at rest, which belongs to the inventory.
When
An encrypted exchange captured today can be kept and opened later, the day a quantum computation or a mathematical advance breaks the algorithm used to set its key. For health software, whose data remains sensitive for years, this risk bears on the present. The recipe applies once the inventory of encryption (HSCP-R-019) exists, and is repeated at each version, with each new third party and with each change of hosting.
How
- Start from the inventory. Take its transit lines, in both directions: what the product receives (browsers, applications, partners) and what it opens itself (hosting provider, national services, AI model through an API, remote MCP server). For each, note who holds the other end and which cryptography library carries it, with its version.
- Update before tuning. A recent library already offers hybrid key exchange without any setting: OpenSSL since version 3.5, the Go standard library since version 1.24, recent browsers. The first step is often an update of the web server, the load balancer or the runtime environment, not development work.
- Take the choices out of the code. Key exchange groups, algorithms and key sizes are set in the configuration. A change of algorithm is then made through a new configuration, without a new version of the product. Certificates are replaced the same way.
- Survey what is negotiated, connection by connection, and compare it with what is expected. On the incoming side, from outside, towards each exposed endpoint. On the outgoing side, from the product's environment, towards each third party. A connection that does not negotiate hybrid receives a dated decision: update, ask the third party for a date, accept with its reason.
- Order the migration, in the plan: first the key exchanges of connections that leave the controlled network, because they are exposed to capture today; then the signatures that must remain verifiable for a long time (distributed updates, archived documents); finally the certificates, when the authority that issues them offers resistant ones.
- Ask the third parties that hold the other end for their position: hosting provider for its entry points and its key service, AI model provider, authority that issues the sector's certificates. The expected answer: hybrid exchange already accepted, otherwise by what date, and change of algorithm possible through a simple update.
- Redo the survey at each version, and when a third party announces a change.
Examples
Command from a free software tool, with OpenSSL 3.5 or later, that succeeds only if the other end accepts the hybrid exchange:
openssl s_client -connect portail.exemple.test:443 -groups X25519MLKEM768 </dev/null
Run from outside towards an exposed endpoint, it checks the incoming side. Run from the product's environment towards a third party, it checks the outgoing side. A failure does not say why: old version, restricted setting, or an intermediary that redoes the encryption.
Fictitious survey:
| Connection | Direction | Other end | Hybrid negotiated | Decision |
|---|---|---|---|---|
| Patient portal | incoming | browsers | yes | nothing to do |
| Partner interface | incoming | partner software | no: old load balancer | update before the next version |
| AI model through an API | outgoing | model provider | no | ask the provider for a date |
| National service | outgoing | sector authority | no | follow the authority's schedule |
Verification
- Review at each version: each transit line of the inventory has its survey result and, if it is not hybrid, its dated decision.
- Automated check: the command above, or a configuration testing tool, run towards each exposed endpoint and each third party, compares the result with what is expected and reports any connection that no longer negotiates hybrid.
- Review of the plan: each third party has a noted and dated position.
Evidence produced
The dated survey of connections with the negotiated exchange and the decisions, the ordered migration plan with the position of each third party, the configuration that carries the choice of algorithms.
Evidence items
Each item attests the recipe at a given date. Frequency given for a product in service.
- Survey Survey, connection by connection, of the negotiated key exchange, incoming and outgoing
- Written rule Ordered migration plan: key exchanges, long-lived signatures, certificates, with the position of each third party
- Configuration or schema Configuration of key exchange groups and algorithms, outside the code
Own mappings
In addition to those of the practice:
| Identifier | What the recipe adds |
|---|---|
owasp_asvs_5.0.0/V11.1.4 |
an ordered migration plan towards post-quantum cryptography, attached to the inventory |
owasp_asvs_5.0.0/V11.2.2 |
algorithms and groups set in the configuration, replaceable without a new version |
owasp_asvs_5.0.0/V12.1.1 |
a survey at each version of the negotiated protocols and exchanges |
cra_2024_2847/annexeI-p24 |
the signatures of distributed updates placed in the order of migration |
References outside the catalogue
- ANSSI, opinion on recent publications concerning the advances made possible by AI and their impact on cryptography, 04/12/2026 (in French): https://cyber.gouv.fr/actualites/avis-de-lanssi-sur-avancees-permises-par-lia-et-leur-impact-sur-la-cryptographie/
- ANSSI, frequently asked questions on post-quantum cryptography (in French): https://cyber.gouv.fr/enjeux-technologiques/cryptographie-post-quantique/faq-pqc/
- OpenSSH, post-quantum cryptography: https://www.openssh.org/pq.html
- Go 1.24, release notes: https://go.dev/doc/go1.24
Versions
| Version | Status | Date |
|---|---|---|
| 0.1 | Draft | 2026-12-04 |
How to cite: “Health Software Common Practices”, HSCP-R-040, version 0.1, https://healthtechpractices.org/en/recettes/hscp-r-040/, under the CC BY-NC-SA 4.0 licence. Licence