Scan your whole stack
From OX Research Newsroom
Are you using commissura?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.6
commissura was last scanned on 27 Nov 2026 at version 0.1.6. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.6 LATEST | 27 Nov 2026 | No rules fired |
| 0.1.5 | 27 Nov 2026 | No rules fired |
| 0.1.4 | 25 Nov 2026 | No rules fired |
| 0.1.3 | 25 Nov 2026 | Not shown |
| 0.1.2 | 25 Nov 2026 | Not shown |
Findings for v0.1.6. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.6; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Turn raw clinical material — HL7 v2 lab messages, free-text reports, DICOM imaging metadata — into a standardised, de-identified, research-ready dataset with a verifiable manifest.
BIDS gives neuroimaging a shared layout. Nothing equivalent links laboratory
results and clinical reports to the same subject. commissura builds that bridge.
All clinical data in this project is synthetic. No real patient data ever enters this repository, in any form. Every fixture is generated by
commissura generate.
EU Regulation 2025/327 (European Health Data Space) makes secondary use of
health data a legal obligation for data holders from March 2029. Hospitals,
research institutes and laboratories will have to produce structured,
de-identified, documented datasets. commissura is a local command-line tool that
does exactly that — no service to deploy, no network component, no accreditation
required.
Four limits, stated here rather than further down, because a tool that touches health data should declare them before you install it and not after.
It needs a structured source beside the free text. The de-identification here works by targeted redaction: the laboratory message states this patient's name, national identifier and record number, MSH-4 states the sending institution, OBR-16 the ordering clinician, the imaging header the institution's address. So the problem stops being "find the names in the prose" and becomes "remove these specific strings", which is exact, auditable and countable. Take the structured source away and the method has nothing to work from. If what you have is a folder of PDF reports and nothing else, this tool is not for you — you would need named entity recognition, which this project rejects on the evidence that general-purpose tools miss over half of clinical PHI. Rules first, measurement always; and no rules are possible without a source of truth.
Exact intervals are a re-identification channel, and this tool keeps them
exact on purpose. The dataset carries day_offset from each subject's own
baseline, with no calendar anchor, because the interval between two events is
clinically useful and the absolute date is what has to go. The consequence:
anybody who learns one true date for a subject from anywhere else — a
discharge letter in a drawer, a dated post, an insurance claim, an obituary —
recovers that subject's entire timeline, because every other event is a known
number of days from it. Blurring the intervals would close the channel and
destroy the clinical value, so this tool does not do it. Decide which side of
that trade-off your release is on before you publish; it is the single most
likely route from this dataset back to a person.
On a small cohort, k-anonymity does not reach a useful threshold, and no
amount of care changes that. risk reports the number honestly and the
honest number is often 1: twenty-five people with exact ages cannot reach k=5
on age and sex together. That is arithmetic, not a defect in the dataset or the
tool. The fix is banding the ages or dropping an attribute before release, which
is a decision about your data that commissura does not take for you. Run
commissura risk and read the number before you release anything, and see
commissura risk for why k is a measurement and not a
certificate.
Lose the key file and the dataset is permanently orphaned. Not unreadable — the data stays exactly as useful as it was — but no longer extensible or linkable. You cannot add next year's records for the same people, because their subject labels can never be derived again. You cannot link it to another dataset you built, because you cannot show the labels came from the same secret. You cannot answer a question about which original record a row came from. Every pseudonym in the dataset derives from that one file, nothing in the dataset can reconstruct it, and that is the design working as intended. Back it up somewhere you will still have in five years.
Requires Python 3.11 or newer.
pip install commissura
From a checkout instead, which is what running the tests and the linters needs:
git clone https://github.com/jonathanmanca/commissura.git
cd commissura && uv venv && uv pip install -e ".[dev]"
What each artefact carries is asserted by tests/test_packaging.py rather
than intended: the wheel is the package, its typing marker and the two licence
files and nothing else, while the source distribution additionally carries the
tests and the vendored SHACL shapes — so the HealthDCAT-AP conformance claim is
checkable from the archive alone, with no clone and without fetching the
profile's shapes from a server nobody here controls. Measured against the
published 0.1.0 rather than asserted: unpack it, install the development
extras, and the conformance tests pass.
Releases are started by hand, and checked before they leave. The same
workflow that uploads a release first runs the whole suite, builds both
artefacts, and installs the wheel into an environment that has never seen this
source tree to drive it end to end on Python 3.11, the declared floor.
.github/workflows/publish.yml uses trusted publishing, so no upload token is
stored anywhere here; it has no tag and no release trigger, and a test asserts
there is not. PyPI refuses to re-upload a filename it has already accepted and
a yanked release stays downloadable by exact version, so a release is the one
thing this project cannot take back.
Five commands. Every output below was captured from a real run, not written by
hand. A test re-runs this walkthrough and compares each block against what the
command prints, so a capture cannot quietly go stale — which it did three times
before the test existed. Lines showing a key fingerprint or a sub- label are
the exception: they come from a key that is not in this repository.
commissura keygen --out ./commissura.key
Wrote a new key to commissura.key
fingerprint 35eea6fcd0bad4df
owner-only access NO
This platform does not honour POSIX file modes, so the key file inherits the
directory's permissions. Move it somewhere only you can read, or keep it in an
encrypted store. Back it up: every dataset built with it becomes permanently
unlinkable if it is lost.
Every pseudonym derives from this one secret. The key is never printed and never enters the dataset; what gets recorded is the fingerprint. On Linux and macOS the file is created mode 0600 and the message says so instead.
commissura generate --subjects 25 --seed 42 --defect-rate 0.2 --out ./raw
Wrote 190 files to ./raw
lab 115 HL7 v2 ORU^R01 messages
cda 0 HL7 Italia CDA R2 documents
reports 48 free-text documents
imaging 27 DICOM JSON Model sidecars
subjects 25 seed 42
PHI spans 3628 recorded as ground truth
defects 366 injected at rate 0.2
Verified: every recorded PHI offset matches the file on disk.
Three separate exports, as a hospital would hand them over, with 366 injected defects and 3,628 identifiers whose exact character positions are on record.
commissura build ./raw --out ./dataset --key-file ./commissura.key \
--hdab "Agenzia Nazionale Sintetica per i Dati Sanitari" \
--publisher "IRCCS SINTETICO MAREBIANCO" \
--contact-point "dati@irccs-sintetico.invalid" \
--access-url "https://portale-hdab-sintetico.invalid/permessi"
Wrote 211 files to ./dataset
subjects 25 sessions 90
lab 94 tables and sidecars
reports 90 documents and sidecars
imaging 27 metadata sidecars in derivatives/
key fingerprint 35eea6fcd0bad4df
free-text redactions 528
participant ages exact, truncated at 89
linkage issues 49
records dropped 3 (no readable date)
reports/5806125_rad_1.txt (undated_record)
reports/2935320_dim_5.txt (undated_record)
reports/5247115_dim_2.txt (undated_record)
lab/0976285_LAB55466956.hl7 (conflicting_identity: this record shares an
identifier with a record naming a different person; both identities are
kept so that both names are redacted)
... nine more of the same ...
... and 39 more linkage issue(s)
minimum k 1 (21 combination(s) below 5)
profile HealthDCAT-AP 8, non-public tier
Residual risk the method cannot reach:
1 unrecognised all-capitals token(s) remain, of 5 characters. Nothing
declared them, so this is the layer that catches what was not
anticipated. Not quoted here: this report travels with the dataset.
Validation: conforms - 0 error(s), 8 warning(s)
Three of the forty-eight reports are not in the dataset, and that is the
walkthrough earning its keep rather than a disappointment. At this defect rate
the generator leaves some report dates as an unfilled template placeholder —
Data del referto: __/__/____ — and a session is a dated encounter, so those
documents link to a person and then have nowhere to go. They used to vanish
without a word. Now the count is on the second screen you look at and the paths
are listed under it.
linkage issues 49 is the line to read next, and forty-nine is not a
failure. A reason either means a record could not be attached to anybody or
it means the record was attached and something about the attribution is worth a
second look — here they are all the second kind. The manifest counts the two
separately, because adding them together would be a false statement about what
the dataset contains. See
the manifest for the split.
Two of the three reasons are defects injected on purpose,
lab.conflicting_identity and reports.wrong_patient_name. The third is not
a defect at all: one of the five generated sites has a laboratory feed whose
source system holds no national-identifier field, so every message from it
carries a placeholder where the codice fiscale belongs. Those records are
attached by the record number within that institution, which is what
invalid_national_identifier says on the terminal, naming the institution so
you know whose export to go and ask about. That is a real export, not damaged
data — which is why it is a property of the site and appears even at
--defect-rate 0.
It also means the walkthrough's dataset holds subjects keyed on something other than a codice fiscale, which is the case acting on an opt-out needs a different kind of entry to reach.
The four --hdab, --publisher, --contact-point and --access-url values
have no defaults, because they are facts about your release arrangement and the
tool will not invent them. Leave them out and it still builds, and tells you
what is missing. The one warning left at the end is --license, for the same
reason: see conformance.
commissura validate ./dataset
WARNING DI009: derivatives/imaging-metadata/sub-744ee679b207_...json
records BurnedInAnnotation=YES
Identifiers may be rendered into the image itself. This tool does
not inspect pixel data, so they are still there. Remove or redact
the pixels before release.
... six more of the same ...
WARNING DS005: dataset_description.json does not record 'License'
Recommended so the dataset can state its own provenance.
CONFORMANT: 0 error(s), 8 warning(s), 0 notice(s) from 40 rules
build already ran this and would have failed if it did not conform. Running it
separately is for datasets you did not build here.
Seven of the eight warnings are the dataset telling you something true about
itself — the eighth is the missing License, which the build section above
explains. Seven of its twenty-seven imaging studies say in their own metadata
that
identifiers are rendered into the pixels — put there by the
imaging.burned_in_annotation defect, which is what a real scanner does when a
technician types a name onto a screen capture. This tool orchestrates dcm2bids
rather than reading pixel data, so it cannot remove them, and the flag is
carried on purpose so that whatever converts the images knows to look.
A warning rather than an error, because the dataset is not malformed and
refusing to build would leave you worse off than telling you. It is a warning
rather than silence because a dataset nobody warned about is one somebody
converts without looking — which is how it behaved until the audit of
2026-11-13 found conforms — 0 warnings printed over a dataset in which every
study was flagged.
commissura risk ./dataset
participants 25
quasi-identifiers age, sex
minimum k 1
below k=5 21 combination(s)
k=1 age=22, sex=M
k=1 age=26, sex=F
... eight more rows, then the laboratory-values section ...
Those twenty-one are combinations of age and sex rather than people: every distinct combination in this cohort is shared by fewer than five participants, and eighteen of the twenty-five are alone on theirs. That is not a defect — twenty-five people with exact ages cannot reach k=5 on two attributes — and it is the number an access body would ask you to fix by banding the ages before release. The command reports it rather than passing judgement.
You can act on it. build --age-band 10 writes 40-49 instead of 44 and
takes the same cohort from twenty-one combinations below the threshold to ten;
see generalising ages for the width, which is yours to
choose.
dataset/
dataset_description.json BIDS
healthdcat-ap.jsonld EHDS Article 77, for the access body
participants.tsv participant_id, age, sex
participants.json
sub-0366506f1824/
ses-01/ ses-02/
lab/ sub-..._ses-01_lab.tsv + .json
reports/ sub-..._ses-02_run-01_report.txt + .json
derivatives/imaging-metadata/
.deident/
manifest.json what was done, and what it could not reach
risk_report.json
And one report, before and after. Same document, same patient:
IRCCS SINTETICO MAREBIANCO [INSTITUTION]
Via dei Glicini 35 - Milano [ADDRESS] - [ADDRESS]
REFERTO DI DIAGNOSTICA PER IMMAGINI REFERTO DI DIAGNOSTICA PER IMMAGINI
=================================== ===================================
Paziente: GIULIA FERRARA Paziente: [NAME]
Nato/a il: 15/07/1950 Eta: 72 anni Nato/a il: [BIRTH-DATE] Eta: 72 anni
Codice fiscale: FRRGLI50L55X959F Codice fiscale: [NATIONAL-ID]
Numero nosografico: 8975172 Numero nosografico: [PATIENT-ID]
Data del referto: 26/08/2022 Data del referto: [day_offset:+3]
reports/8975172_rad_1.txt became
sub-0366506f1824/ses-02/reports/sub-0366506f1824_ses-02_run-01_report.txt.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.