A privacy impact assessment (PIA) is the structured write-up of what a
change does with personal data, what could go wrong, and what stops it
going wrong. A data protection impact assessment (DPIA) is the formal
version required by GDPR Article 35 for high risk processing. The
workflow is the same either way - screen, describe, assess, mitigate,
sign off, and revisit. The most common failure is writing the
assessment after launch to justify a decision already made. Run it
while the design can still change.
Quick Workflow
- Screen the change for high risk triggers - systematic profiling,
large scale special category data, systematic public monitoring,
new technology, or matching across datasets.
- Describe the processing precisely - data flows, categories of data
and people, purposes, legal bases, recipients, retention, and
cross-border transfers.
- Assess necessity and proportionality - is each element of the
processing needed for the purpose, and is there a less intrusive
way to reach the same result.
- Identify risks to people (not just to the company) and score each
by likelihood and severity before mitigation.
- Assign mitigations with owners and due dates, and re-score the
residual risk after each one.
- Consult the data protection officer, and where the impact is high,
the people affected or their representatives.
- Get a written sign-off before launch, and set the review trigger -
a scope change, a new recipient, or at most one year out.
- If residual risk stays high after mitigation, seek prior
consultation with the supervisory authority before processing.
1. Screening - decide whether a DPIA is required
Screening is a short checklist, answered honestly, kept on file even
when the answer is no DPIA needed. A "no" without a record is
indistinguishable from never having screened.
#!/usr/bin/env python3
"""DPIA screening - any YES on a high risk trigger means a DPIA is required."""
TRIGGERS = [
("systematic and extensive profiling with significant effects", False),
("large scale processing of special category data", True),
("systematic monitoring of a publicly accessible area", False),
("new technology with untested privacy impact", False),
("matching or combining datasets from multiple sources", True),
("processing data about vulnerable people at scale", False),
("innovative use of biometric or location data", False),
]
required = any(hit for _, hit in TRIGGERS)
for label, hit in TRIGGERS:
print(f"{'YES' if hit else 'no '} - {label}")
print()
print("DPIA required:", "YES" if required else "NO - record this screening and the reasons")
2. Data flow description - the assessment's foundation
An assessment built on a vague flow diagram is fiction. Map every hop
the data takes, including vendors, subprocessors, logs, and backups,
and confirm each hop with the team that owns it.
# Data flow record - template
| Hop | From | To | Data categories | Purpose | Legal basis | Retention |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | User device | App backend | Email, device id | Account creation | Contract | Life of account |
| 2 | App backend | Analytics vendor | Pseudonymous id, events | Product improvement | Legitimate interests | 13 months |
| 3 | App backend | Log store | IP address, request path | Security monitoring | Legitimate interests | 30 days |
| 4 | App backend | Backup store | Full database copy | Disaster recovery | Contract | 90 days |
Rules - every recipient gets a row, including internal teams.
A hop with no legal basis or no retention is an open finding, not a draft.
3. Risk register - score before and after mitigation
Score risk to the people affected, not reputational risk to the
company. A breach that exposes health data is severe even if the press
never notices, and a minor leak affecting millions is high risk even
if each record looks harmless.
#!/usr/bin/env python3
"""Risk register - likelihood and severity scored 1 to 5, risk is the product."""
RISKS = [
# (risk, likelihood, severity, mitigation)
("Analytics vendor re-identifies pseudonymous users", 3, 4,
"Contract ban on re-identification plus quarterly vendor audit"),
("Support tool exposes health notes to all agents", 2, 5,
"Role based access plus field level redaction in the support UI"),
("Location history retained beyond stated 24 hours", 4, 3,
"Automated deletion job with a weekly retention check"),
]
for risk, likelihood, severity, mitigation in RISKS:
before = likelihood * severity
verdict = "ACCEPTABLE" if before <= 6 else "MITIGATE BEFORE LAUNCH"
print(f"Risk: {risk}")
print(f" score before mitigation: {likelihood} x {severity} = {before} -> {verdict}")
print(f" mitigation: {mitigation}")
print(" Re-score after the mitigation lands and record the residual score.")
4. Sign-off and review triggers
# DPIA sign-off - template
- Assessment owner: (name, team)
- Data protection officer consulted: (date, advice given, advice followed or reasons not)
- People affected consulted: (method and date, or why consultation was not appropriate)
- Residual risks above the acceptable threshold: (list, or "none")
- Prior consultation with the supervisory authority needed: (yes or no, with reasons)
- Approved for launch by: (name, date)
- Review triggers: scope change, new recipient, new data category,
incident involving this processing, or 12 months, whichever comes first.
Edge cases
- A vendor change can trigger a fresh assessment even when your own
code did not change, because the recipient, jurisdiction, or
subprocessor list changed with it.
- Legitimate interests needs a balancing test on file, not just the
label. If the test is missing, the legal basis is unproven.
- Assessments for AI features must cover training data provenance,
inference outputs that reveal personal data, and human review of
automated decisions, not just the input form.
- Small pilots are not exempt. A pilot processing real personal data
at small scale still needs screening, and its results often decide
a full rollout, so assess before the pilot, not after.
- If stakeholders or the data protection officer disagree with the
sign-off, record the disagreement and the resolution. A unanimous
document nobody believed is worse than a contested one that was
actually debated.
Key references
- GDPR Article 35 - data protection impact assessment
- GDPR Article 36 - prior consultation with the supervisory authority
- GDPR Article 37 to 39 - data protection officer duties and consultation
- WP248 guidelines on data protection impact assessment (Article 29 Working Party)
- Parent skill privacy-impact-assessment - assessment foundations
1---2name: pia-dpia-workflow3description: "Use when a new feature, vendor, or data flow needs a privacy impact assessment or a data protection impact assessment. Covers screening for high risk processing, describing flows and legal bases, assessing necessity and proportionality, consulting stakeholders, and tracking mitigations to closure. Use when launching profiling, large scale monitoring, or new special category data processing."4version: "1.0.0"5domain: privacy6lifecycle: stable7last_verified: "2026-10-27"8parent: privacy-impact-assessment9requires: [privacy-impact-assessment]10extends: []11relates: [privacy-threat-model, gdpr-engineering, data-minimization]12tools:13 - name: Python14 version: "3.12"15 - name: curl16 version: "8.5"17metadata:18 source: https://skillmd.com/skills/mizazhaider-ceh/pia-dpia-workflow19---2021A privacy impact assessment (PIA) is the structured write-up of what a22change does with personal data, what could go wrong, and what stops it23going wrong. A data protection impact assessment (DPIA) is the formal24version required by GDPR Article 35 for high risk processing. The25workflow is the same either way - screen, describe, assess, mitigate,26sign off, and revisit. The most common failure is writing the27assessment after launch to justify a decision already made. Run it28while the design can still change.2930## Quick Workflow31321. Screen the change for high risk triggers - systematic profiling,33 large scale special category data, systematic public monitoring,34 new technology, or matching across datasets.352. Describe the processing precisely - data flows, categories of data36 and people, purposes, legal bases, recipients, retention, and37 cross-border transfers.383. Assess necessity and proportionality - is each element of the39 processing needed for the purpose, and is there a less intrusive40 way to reach the same result.414. Identify risks to people (not just to the company) and score each42 by likelihood and severity before mitigation.435. Assign mitigations with owners and due dates, and re-score the44 residual risk after each one.456. Consult the data protection officer, and where the impact is high,46 the people affected or their representatives.477. Get a written sign-off before launch, and set the review trigger -48 a scope change, a new recipient, or at most one year out.498. If residual risk stays high after mitigation, seek prior50 consultation with the supervisory authority before processing.5152## 1. Screening - decide whether a DPIA is required5354Screening is a short checklist, answered honestly, kept on file even55when the answer is no DPIA needed. A "no" without a record is56indistinguishable from never having screened.5758```python59#!/usr/bin/env python360"""DPIA screening - any YES on a high risk trigger means a DPIA is required."""61TRIGGERS = [62 ("systematic and extensive profiling with significant effects", False),63 ("large scale processing of special category data", True),64 ("systematic monitoring of a publicly accessible area", False),65 ("new technology with untested privacy impact", False),66 ("matching or combining datasets from multiple sources", True),67 ("processing data about vulnerable people at scale", False),68 ("innovative use of biometric or location data", False),69]70required = any(hit for _, hit in TRIGGERS)71for label, hit in TRIGGERS:72 print(f"{'YES' if hit else 'no '} - {label}")73print()74print("DPIA required:", "YES" if required else "NO - record this screening and the reasons")75```7677## 2. Data flow description - the assessment's foundation7879An assessment built on a vague flow diagram is fiction. Map every hop80the data takes, including vendors, subprocessors, logs, and backups,81and confirm each hop with the team that owns it.8283```markdown84# Data flow record - template8586| Hop | From | To | Data categories | Purpose | Legal basis | Retention |87| --- | --- | --- | --- | --- | --- | --- |88| 1 | User device | App backend | Email, device id | Account creation | Contract | Life of account |89| 2 | App backend | Analytics vendor | Pseudonymous id, events | Product improvement | Legitimate interests | 13 months |90| 3 | App backend | Log store | IP address, request path | Security monitoring | Legitimate interests | 30 days |91| 4 | App backend | Backup store | Full database copy | Disaster recovery | Contract | 90 days |9293Rules - every recipient gets a row, including internal teams.94A hop with no legal basis or no retention is an open finding, not a draft.95```9697## 3. Risk register - score before and after mitigation9899Score risk to the people affected, not reputational risk to the100company. A breach that exposes health data is severe even if the press101never notices, and a minor leak affecting millions is high risk even102if each record looks harmless.103104```python105#!/usr/bin/env python3106"""Risk register - likelihood and severity scored 1 to 5, risk is the product."""107RISKS = [108 # (risk, likelihood, severity, mitigation)109 ("Analytics vendor re-identifies pseudonymous users", 3, 4,110 "Contract ban on re-identification plus quarterly vendor audit"),111 ("Support tool exposes health notes to all agents", 2, 5,112 "Role based access plus field level redaction in the support UI"),113 ("Location history retained beyond stated 24 hours", 4, 3,114 "Automated deletion job with a weekly retention check"),115]116for risk, likelihood, severity, mitigation in RISKS:117 before = likelihood * severity118 verdict = "ACCEPTABLE" if before <= 6 else "MITIGATE BEFORE LAUNCH"119 print(f"Risk: {risk}")120 print(f" score before mitigation: {likelihood} x {severity} = {before} -> {verdict}")121 print(f" mitigation: {mitigation}")122 print(" Re-score after the mitigation lands and record the residual score.")123```124125## 4. Sign-off and review triggers126127```markdown128# DPIA sign-off - template129130- Assessment owner: (name, team)131- Data protection officer consulted: (date, advice given, advice followed or reasons not)132- People affected consulted: (method and date, or why consultation was not appropriate)133- Residual risks above the acceptable threshold: (list, or "none")134- Prior consultation with the supervisory authority needed: (yes or no, with reasons)135- Approved for launch by: (name, date)136- Review triggers: scope change, new recipient, new data category,137 incident involving this processing, or 12 months, whichever comes first.138```139140## Edge cases141142- A vendor change can trigger a fresh assessment even when your own143 code did not change, because the recipient, jurisdiction, or144 subprocessor list changed with it.145- Legitimate interests needs a balancing test on file, not just the146 label. If the test is missing, the legal basis is unproven.147- Assessments for AI features must cover training data provenance,148 inference outputs that reveal personal data, and human review of149 automated decisions, not just the input form.150- Small pilots are not exempt. A pilot processing real personal data151 at small scale still needs screening, and its results often decide152 a full rollout, so assess before the pilot, not after.153- If stakeholders or the data protection officer disagree with the154 sign-off, record the disagreement and the resolution. A unanimous155 document nobody believed is worse than a contested one that was156 actually debated.157158## Key references159160- GDPR Article 35 - data protection impact assessment161- GDPR Article 36 - prior consultation with the supervisory authority162- GDPR Article 37 to 39 - data protection officer duties and consultation163- WP248 guidelines on data protection impact assessment (Article 29 Working Party)164- Parent skill privacy-impact-assessment - assessment foundations