PAM: a domain-specific language for specifying privacy requirements from regulation to runtime
Michail Pantelelis, Christos Kalloniatis
Key points
From the paper's conclusion- We present Privacy Attribute Matrix (PAM), a domain-specific language that bridges this gap.
Abstract
Privacy regulations such as the General Data Protection Regulation (GDPR) require organizations to specify what personal data they collect, for which purpose, how long they retain it, and under what consent conditions—yet practitioners struggle to translate these legal requirements into specifications that can be validated and enforced. We present Privacy Attribute Matrix (PAM), a domain-specific language that bridges this gap. PAM provides four constructs, derived directly from GDPR articles, for specifying personally identifiable information (PII) fields with sensitivity classifications, processing purposes with legal bases, retention policies with deletion strategies, and consent requirements with expiration semantics. Its scope is deliberately bounded to the technical data-handling obligations GDPR imposes—which data, for which purpose, for how long, under what consent—rather than organizational duties such as staff training or breach notification. Unlike annotation-based approaches that document but cannot enforce, PAM specifications are executable: the runtime validates data access against declared policies, detects violations, and applies configurable erasure strategies (hard deletion, anonymization). We evaluate PAM through a case study on a university payment system, replicated on the open-source Solidus e-commerce platform. The , , and constructs are exercised directly by the production system, whose legal basis is contract and legal obligation rather than consent; the construct is validated end-to-end through an extension that adds an optional consent-gated purpose. PAM expressed 90% of the Information Commissioner’s Office (ICO) GDPR technical checklist requirements for the evaluated system in about 70 lines of specification. The work advances requirements engineering by showing how regulatory requirements can be specified in a DSL that is both human-readable for compliance auditors and machine-enforceable at runtime.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Word-level Annotation of GDPR Transparency Compliance in Privacy Policies using Large Language ModelsProceedings on Privacy Enhancing Technologies · 2026
- PrivacyPR: A Dataset of Real-World Privacy Fixes for Benchmarking Privacy-Aware Code ReviewarXiv · 2026
- Extracting Next Generation Access Control Policies from Natural Language Using LLMs: An Intermediate-Representation Approach with Back-Translation VerificationarXiv · 2026
- Enhancing Consent Policy Privacy in Blockchain-Based Healthcare Data SharingBlockchains · 2026
- ARCCS: An Automated Regulatory Compliance Checking SystemarXiv · 2026
- Who's Asking? Audience-Conditioned PrivatizationarXiv · 2026