HSCP-R-007 · recipe · Security
Send less to a third party: reduce the data before it leaves
Written entry, version 0.1, checked on 2026-11-20.
At a glance
| Implements | HSCP-G-001 Manage the data lifecycle soberly |
|---|---|
| Case | Instantiates: applies an existing practice to a context. |
| Context | health software that calls a third-party service with data (AI model through an API, document recognition, error tracking, message sending) |
| Verification | open test · review |
Also serves: HSCP-G-004 Govern third parties that receive data or run code
Implements HSCP-G-001, Manage the data lifecycle soberly, and HSCP-G-004, Govern third parties that receive data or run code. Case: applies two generic practices to the health context.
When
A call to a third party carries more than the task requires: the whole record to summarise a paragraph, the image of an identity document to read a date from it, the error trace with the form content. Data that is not transmitted cannot leak at the third party: here sobriety serves security, and it also reduces the volume processed and billed.
Public example, November 2026. A transport company had opened a storage space to its AI model execution provider. Valid credentials were enough for an attacker, without triggering any alert, and images of driving licences are exposed (The Register, 17/11/2026). The company has not said why these images were transmitted.
How
- For each outbound call in the third-party register (HSCP-R-006), write in one sentence what the third party must produce.
- List the fields sent and strike out those that this sentence does not require.
- Transform before sending, in this order of preference: do not send; send a derived value (an age band, not the date of birth); replace the identity with an identifier specific to the call; send the extract, not the document.
- Route all calls to that third party through a single point in the code, which applies the list of permitted fields and rejects the rest.
- Set retention at the third party to the shortest the service allows, and disable reuse of the data.
- Give the third party dedicated, bounded access: one key per use, a storage space that contains only what it must read, an alert on unusual volume or origin.
- Strip the traces and logs sent to observability services: no request bodies, no form fields.
Data model
One row per outbound call.
| Field | Content |
|---|---|
appel |
code location, third party called |
finalite |
what the third party must produce, in one sentence |
champs_permis |
closed list |
transformation |
none, derived, per-call pseudonym, extract |
conservation_tiers |
retention period set, reuse disabled or not |
acces |
dedicated key or account, scope, alert |
Verification
- Automated test: one test sends the single point an object containing a non-permitted field and expects a rejection; another checks that the payload produced contains none of the struck-out fields.
- Audit agent: search the code for calls to the third party that do not go through the single point.
- Review of the third party's settings: retention and reuse, at each new version of its service.
Evidence produced
The list of permitted fields per call, the test results, the dated screenshot of the retention settings at the third party.
Evidence items
Each item attests the recipe at a given date. Frequency given for a product in service.
- Configuration or schema List of fields allowed per call to the third party
- Test report Test results: disallowed field refused, no removed field in the payload
- Dated screenshot Dated screenshot of the third party's retention and reuse settings
Own mappings
In addition to those of the practices:
| Identifier | What the recipe contributes |
|---|---|
rgpd_2016_679/art25-p2 |
applies limitation by default to data leaving for a third party, not only to data collected |
rgpd_2016_679/art28-p3 |
has the instructions given to the third party state what it receives and for what purpose |
Versions
| Version | Status | Date |
|---|---|---|
| 0.1 | Draft | 2026-11-20 |
How to cite: “Health Software Common Practices”, HSCP-R-007, version 0.1, https://healthtechpractices.org/en/recettes/hscp-r-007/, under the CC BY-NC-SA 4.0 licence. Licence