Langsung ke konten
Skillpedia
Analisis & spreadsheet5.8k Β· #14727

reviewing-reidentification-risk

Fungsinya

Skill ini mengajari agent cara mengukur apakah orang masih bisa dikenali dalam kumpulan data yang sudah dihapus identitasnya. Skill ini menghasilkan skor dan memo tertulis yang bisa dipakai peninjau privasi untuk memutuskan apakah data aman dirilis.

Kapan dipakai

  • βœ“Saat tim ingin merilis kumpulan data yang sudah dihapus identitasnya dan membutuhkan bukti bahwa risikonya sangat kecil.
  • βœ“Saat pengguna khawatir usia, kode pos, atau tanggal bisa mengidentifikasi orang dalam kumpulan data.
  • βœ“Saat peninjau membutuhkan uji serangan yang memodelkan orang luar yang memakai informasi tambahan.

Link skill

https://github.com/maziyarpanahi/openmed/blob/master/skills/reviewing-reidentification-risk/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/maziyarpanahi/openmed/blob/master/skills/reviewing-reidentification-risk/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBisakah Anda memeriksa apakah kumpulan data yang sudah dihapus identitasnya masih bisa mengidentifikasi pasien berdasarkan usia dan kode pos?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent menghitung berapa banyak catatan yang berbagi kombinasi detail yang sama, yaitu ukuran k-anonimitas. Agent juga menjalankan simulasi serangan penautan, lalu menulis hasilnya ke memo tentang risiko yang tersisa.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Reviewing re-identification risk

Removing direct identifiers is not enough. A record stripped of name, SSN, and MRN can still be singled out by a combination of quasi-identifiers β€” age, ZIP/region, admission date, sex, rare diagnosis. The HIPAA Expert Determination pathway (45 CFR 164.514(b)(1)) requires a qualified person to apply statistical methods and document that the risk of re-identification is "very small." This skill produces that evidence: quasi-identifier risk metrics (k-anonymity, l-diversity) plus OpenMed's empirical re-identification attack, written up as a residual-risk memo.

When to use

  • After direct-identifier removal passes auditing-deid-leakage (no leaks) and you must decide whether the dataset is releasable.
  • The user invokes Expert Determination, asks for a re-identification risk score, k-anonymity, l-diversity, or a "very small risk" determination memo.
  • You need an adversarial linkage attack β€” modeling an attacker with auxiliary data β€” not just a structural metric.

Quick start

from openmed.eval.attacks.reid import run_reid_attack, run_reid_benchmark

# Synthetic de-identified records; each row is the released, de-id'd data.
deidentified = [
    {"record_id": "r1", "text": "[NAME], 47F, ZIP 021xx, admitted 2024-03."},
    {"record_id": "r2", "text": "[NAME], 47F, ZIP 021xx, admitted 2024-03."},
    {"record_id": "r3", "text": "[NAME], 88M, ZIP 597xx, admitted 2024-03."},  # singleton
]
# Auxiliary = what an attacker might already hold (e.g. a voter list).
auxiliary = [{"record_id": "v9", "text": "88M ZIP 597xx"}]

result = run_reid_attack(
    fixtures=[],                          # bring your own records below
    deidentified_records=deidentified,
    auxiliary_records=auxiliary,
)
metric = result.to_metric()
print(metric["aux_linkage_rate"],        # empirical linkage success
      metric["k_min"],                   # smallest equivalence-class size
      metric["singleton_count"],         # k=1 records (uniquely identifiable)
      metric["quasi_identifier_count"])

k_min is the population k-anonymity floor across the dataset; a k_min of 1 means at least one record is unique on its quasi-identifiers and is the highest re-identification risk. aux_linkage_rate is the empirical attack: how often the adversary's auxiliary data successfully links back to a released record.

To run against the bundled golden suite and emit a leaderboard-style report:

report = run_reid_benchmark(
    suite="golden",
    deidentified_records=deidentified,
    auxiliary_records=auxiliary,
    output_markdown="reid_risk.md",
)

Workflow

  1. Enumerate quasi-identifiers (QIs). List every field an outsider could plausibly know and cross-reference: age/DOB, ZIP/region, dates of service, sex, race, rare conditions, provider. Direct identifiers should already be gone (verified by auditing-deid-leakage); QIs are what's left to worry about.
  2. Compute k-anonymity. For each equivalence class (records sharing the same QI combination), the class size is k. run_reid_attack returns k_min and the list of singleton_records (k=1). A common Expert Determination target is k β‰₯ a documented threshold (e.g. k β‰₯ 5 or k β‰₯ 11) for every record.
  3. Check l-diversity on sensitive attributes. k-anonymity hides which record, but if every record in a class shares the same sensitive value (e.g. all HIV-positive), the attribute leaks anyway. Require β‰₯ l distinct sensitive values per class; flag homogeneous classes.
  4. Run the empirical attack. run_reid_attack / run_reid_benchmark model an adversary with auxiliary_records and measure actual linkage success (aux_linkage_rate), residual leakage (leakage_rate), surrogate-consistency leaks, and date-shift-inversion leaks. Structural metrics bound risk; the attack demonstrates it.
  5. Generalize or suppress, then re-score. For singletons / low-k classes, coarsen QIs (age β†’ age band, ZIP5 β†’ ZIP3, exact date β†’ month/quarter) or suppress the record, then re-run until k_min and linkage rate meet your documented threshold.
  6. Write the determination memo. Record the QIs considered, methods applied, k_min, l-diversity, the attack's aux_linkage_rate, the assumptions about attacker capability, and the conclusion that residual risk is "very small." Cite the metrics β€” never paste raw records into the memo.

Hand-off to / from OpenMed

Pertanyaan umum

Apa itu k-anonimitas?

Itu menghitung berapa banyak catatan yang berbagi kombinasi detail yang sama, sehingga angka kecil berarti risiko lebih tinggi.

Apakah lulus pemeriksaan ini berarti data aman?

Tidak dengan sendirinya. Skill meminta memo yang mendokumentasikan risiko yang tersisa, yang harus dinilai orang yang berkualifikasi.

Apakah ini berhubungan dengan HIPAA?

Ya. Skill mengaitkan pekerjaan ini dengan jalur HIPAA Expert Determination.

Detail

Deskripsi asli dari pembuat

Run expert-determination-style quasi-identifier risk scoring (k-anonymity, l-diversity) plus OpenMed's empirical re-identification attack on a de-identified dataset, then document residual risk in a defensible memo. Use when the user needs HIPAA Expert Determination (45 CFR 164.514(b)(1)) support, asks whether a dataset is safe to release, worries about singling-out via age/ZIP/dates, or wants a statistical \"very small risk\" determination. Covers identifying quasi-identifiers, computing k-anonymity / l-diversity, running openmed.eval.attacks.reid (run_reid_attack / run_reid_benchmark) as the

repo: maziyarpanahi/openmed

Popularitas

Bintang GitHub
5.8k
Peringkat
#14727
Lisensi
Apache-2.0
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa