Download rules/privacy_lint_rules.json from gitmodelmujtaba/gdpr-normative-triples: direct link, hf CLI and curl.
- Browser
- Download file 6.87 kB
-
https://huggingface.co/datasets/gitmodelmujtaba/gdpr-normative-triples/resolve/main/rules/privacy_lint_rules.json
- Command line
-
hf download hf://datasets/gitmodelmujtaba/gdpr-normative-triples/rules/privacy_lint_rules.json
-
curl -L -o privacy_lint_rules.json https://huggingface.co/datasets/gitmodelmujtaba/gdpr-normative-triples/resolve/main/rules/privacy_lint_rules.json
6.87 kB
| { | |
| "title": "Privacy-as-Code DevSecOps Static Analysis Ruleset", | |
| "version": "1.0.0", | |
| "frameworks": ["GDPR (2016/679)", "EU AI Act (2024/1689)", "NIS2 Directive (2022/2555)"], | |
| "rules": [ | |
| { | |
| "id": "LINT-001", | |
| "title": "Unencrypted Personal Data Storage at Rest", | |
| "severity": "CRITICAL", | |
| "category": "INFRASTRUCTURE_SECURITY", | |
| "legal_basis": { | |
| "gdpr": "Art. 32(1)(a)", | |
| "nis2": "Art. 21(2)(h)", | |
| "ai_act": "Art. 15(1)" | |
| }, | |
| "description": "Cloud storage buckets, persistent volumes, or databases holding personal data must enforce server-side encryption at rest using AES-256 or customer-managed KMS keys.", | |
| "targets": { | |
| "terraform_types": ["aws_s3_bucket", "google_storage_bucket", "azurerm_storage_account", "aws_db_instance"], | |
| "openapi_keywords": ["storage", "upload", "persistence"] | |
| }, | |
| "remediation": "Enable server-side encryption configuration (e.g., aws_s3_bucket_server_side_encryption_configuration with SSE-KMS or AES256)." | |
| }, | |
| { | |
| "id": "LINT-002", | |
| "title": "Missing Data Retention TTL / Lifecycle Expiry Policy", | |
| "severity": "HIGH", | |
| "category": "DATA_MINIMIZATION", | |
| "legal_basis": { | |
| "gdpr": "Art. 5(1)(e) (Storage Limitation)", | |
| "nis2": "N/A", | |
| "ai_act": "Art. 10(5)" | |
| }, | |
| "description": "Datastores and message queues containing personal identifiers must specify explicit retention periods or automated TTL lifecycle expiration to satisfy the storage limitation principle.", | |
| "targets": { | |
| "terraform_types": ["aws_s3_bucket_lifecycle_configuration", "google_storage_bucket", "aws_dynamodb_table"], | |
| "openapi_keywords": ["retention", "ttl", "logs", "audit"] | |
| }, | |
| "remediation": "Define automated lifecycle rule with expiration days or TTL attribute." | |
| }, | |
| { | |
| "id": "LINT-003", | |
| "title": "Non-EEA Cloud Deployment without Documented Transfer Safeguards", | |
| "severity": "CRITICAL", | |
| "category": "CROSS_BORDER_TRANSFER", | |
| "legal_basis": { | |
| "gdpr": "Chapter V (Art. 44, 45, 46)", | |
| "nis2": "N/A", | |
| "ai_act": "N/A" | |
| }, | |
| "description": "Deploying infrastructure storing EU citizen data to jurisdictions outside the EEA without documented Standard Contractual Clauses (SCCs) or an Adequacy Decision is unlawful under Chapter V GDPR.", | |
| "targets": { | |
| "terraform_types": ["provider.aws", "provider.google", "provider.azurerm", "resource.region"], | |
| "non_eea_regions": ["us-east-1", "us-west-2", "ap-southeast-1", "ap-south-1", "sa-east-1"] | |
| }, | |
| "remediation": "Migrate data storage to EU regions (e.g. eu-central-1, europe-west3) or attach verified Standard Contractual Clauses (SCCs) metadata." | |
| }, | |
| { | |
| "id": "LINT-004", | |
| "title": "Biometric / Sensitive Data Endpoint Missing Elevated Authentication or DPIA Reference", | |
| "severity": "CRITICAL", | |
| "category": "SPECIAL_CATEGORY_DATA", | |
| "legal_basis": { | |
| "gdpr": "Art. 9(1), Art. 35(3)", | |
| "nis2": "Art. 21", | |
| "ai_act": "Art. 5(1)(c), Art. 10" | |
| }, | |
| "description": "API endpoints ingesting facial geometry, biometric signatures, health records, or sensitive demographic attributes must enforce mutual TLS / OAuth2 Scopes and reference an authorized DPIA.", | |
| "targets": { | |
| "openapi_paths": ["*biometric*", "*face*", "*facial*", "*health*", "*medical*", "*race*", "*political*"], | |
| "required_security_schemes": ["OAuth2", "mTLS", "BearerAuth"] | |
| }, | |
| "remediation": "Enforce strict BearerAuth/mTLS security requirements and annotate with 'x-gdpr-dpia-id' reference." | |
| }, | |
| { | |
| "id": "LINT-005", | |
| "title": "Public Datastore Exposure / Unrestricted Ingress Access", | |
| "severity": "CRITICAL", | |
| "category": "PRIVACY_BY_DEFAULT", | |
| "legal_basis": { | |
| "gdpr": "Art. 25(2) (Privacy by Default), Art. 32", | |
| "nis2": "Art. 21(2)(a)", | |
| "ai_act": "Art. 15" | |
| }, | |
| "description": "Personal data datastores and databases must disallow public access blocks (ACLs: public-read, public-read-write, CIDR: 0.0.0.0/0).", | |
| "targets": { | |
| "terraform_types": ["aws_s3_bucket_public_access_block", "aws_security_group_rule", "google_storage_bucket_iam_binding"] | |
| }, | |
| "remediation": "Enable block_public_acls = true, block_public_policy = true, and restrict security group ingress to private VPC subnets." | |
| }, | |
| { | |
| "id": "LINT-006", | |
| "title": "Missing Administrative Audit Logging & Telemetry", | |
| "severity": "MEDIUM", | |
| "category": "ACCOUNTABILITY", | |
| "legal_basis": { | |
| "gdpr": "Art. 30 (Records of Processing), Art. 5(2)", | |
| "nis2": "Art. 21(2)(g)", | |
| "ai_act": "Art. 12 (Record-Keeping)" | |
| }, | |
| "description": "Systems processing high-volume personal data must record administrative access logs to ensure accountability and facilitate breach investigation.", | |
| "targets": { | |
| "terraform_types": ["aws_s3_bucket_logging", "google_storage_bucket.logging", "aws_cloudtrail"] | |
| }, | |
| "remediation": "Attach target logging bucket and enable CloudTrail / Cloud Audit Logs." | |
| }, | |
| { | |
| "id": "LINT-007", | |
| "title": "Plaintext Personal Identifiers Transmitted in URL Query Parameters", | |
| "severity": "HIGH", | |
| "category": "DATA_SECURITY", | |
| "legal_basis": { | |
| "gdpr": "Art. 32(1), Art. 25", | |
| "nis2": "N/A", | |
| "ai_act": "N/A" | |
| }, | |
| "description": "Sensitive personal identifiers (email, ssn, phone, credit_card) must never be passed in GET URL query parameters as they are logged in plaintext in proxies, browser histories, and server logs.", | |
| "targets": { | |
| "openapi_parameters": ["email", "ssn", "phone", "national_id", "dob", "credit_card"], | |
| "parameter_in": "query" | |
| }, | |
| "remediation": "Pass personal identifiers inside an encrypted HTTPS POST/PUT JSON request body instead of URL query parameters." | |
| }, | |
| { | |
| "id": "LINT-008", | |
| "title": "AI Model Training Pipeline Missing Bias Auditing & Minimization Annotation", | |
| "severity": "HIGH", | |
| "category": "AI_DATA_GOVERNANCE", | |
| "legal_basis": { | |
| "gdpr": "Art. 5(1)(c) (Minimization), Art. 5(1)(d)", | |
| "ai_act": "Art. 10(2), Art. 10(3)", | |
| "nis2": "N/A" | |
| }, | |
| "description": "API endpoints or data pipelines serving High-Risk AI model training/inference must document dataset validation, statistical bias auditing, and minimization techniques.", | |
| "targets": { | |
| "openapi_paths": ["*train*", "*model*", "*inference*", "*predict*"], | |
| "required_metadata": ["x-ai-act-bias-audited", "x-ai-act-risk-tier"] | |
| }, | |
| "remediation": "Include 'x-ai-act-bias-audited': true and define training dataset provenance metadata." | |
| } | |
| ] | |
| } | |