GDPR Compliance Scanner
What It Does
Automatically scans codebases, data flows, and infrastructure for GDPR compliance gaps. Identifies personal data processing, checks for consent management implementation, verifies data subject rights support (access, erasure, portability), audits data retention, and flags cross-border data transfer issues. Produces compliance reports with remediation recommendations.
Iron Laws (NEVER violate)
- PII is toxic by default — Treat all personal data as a liability. Collect minimum, store minimum, retain minimum.
- Consent must be explicit — Pre-checked boxes, implied consent, and "by using this service" are not valid GDPR consent.
- Deletion means deletion — "Soft delete" that keeps data is not GDPR-compliant erasure. Data must be irrecoverable.
- Data flow documentation required — Every PII data flow must be documented: source, processor, storage, transfer, retention.
Red Flags (STOP immediately)
- Unmapped PII — Personal data found in logs, backups, or analytics without documentation → data mapping failure
- Missing legal basis — Processing personal data without a documented lawful basis (consent, contract, legitimate interest)
- Cross-border transfer without safeguards — EU data sent to non-adequate country without SCCs or BCRs → violation
- Data subject request not honored — System can't fulfill access, erasure, or portability request within 30-day SLA
Common Rationalizations (self-deception)
- "We don't have EU users" → If you're accessible from the EU, GDPR applies. Geography of server is irrelevant.
- "The data is anonymized" → True anonymization is extremely hard. Pseudonymization ≠ anonymization under GDPR.
- "We'll handle compliance later" → GDPR fines are up to 4% of global revenue. Compliance debt is existential risk.
When To Use
- Auditing a codebase for GDPR compliance before launch
- Responding to a data subject access/erasure request
- Setting up privacy-by-design practices in development
- Preparing for a Data Protection Impact Assessment (DPIA)
- Reviewing third-party processor compliance
Human Partner Signals (escalate to human)
- Data breach — PII exposed or potentially exposed → DPO and legal must be notified within 72 hours
- DPIA trigger — Large-scale processing of sensitive data → mandatory DPIA required
- Regulatory uncertainty — Grey area in GDPR interpretation → legal counsel needed
- Processor non-compliance — Third-party vendor not meeting GDPR requirements → contract review
Pipeline
- Discover: scan codebase for PII processing — identify data types, storage locations, processing purposes
- Map: document data flows — collection → processing → storage → transfer → deletion for each PII type
- Audit: check consent mechanisms, data subject rights implementation, retention policies, processor agreements
- Score: rate compliance maturity per GDPR article — compliant, partially compliant, non-compliant, not applicable
- Remediate: generate prioritized remediation plan with specific code/config changes
- Report: produce compliance report suitable for DPO review and regulatory inspection
Verification Checklist
Related Skills
soc2-audit-prep — SOC 2 and GDPR share data protection requirements
data-retention-manager — Automated data retention enforcement
policy-as-code — Compliance rules encoded as automated policies
cloud-security-auditor — Cloud infrastructure compliance scanning