Policy library

Block bulk exports of personal data

Covers: LGPD (Brazil), art. 46 security measures

Use in VulnifyOpens in monitor mode by default. Nothing is created until you click Apply.

What it does

Blocks any export of more than 1,000 records from resources you classify as customer personal data (CUSTOMER_PII) in one action. A starting point for internal controls around large personal-data exports. Vulnify’s risk engine may also return REVIEW or BLOCK for bulk personal-data exports on its own, even without this policy (for example, large internal exports), so not every REVIEW or BLOCK on these exports comes from this template.

Notes

Matching depends mainly on the resource labels you apply in Vulnify, plus optional content checks for some common identifiers (such as CPF numbers or email addresses); it is not a reliable detector of personal data. Test in monitor mode first.

Default mode in this template: ENFORCE. The “Use in Vulnify” link preselects monitor mode; you can switch to enforce before applying.

Policy

Policy JSON (API)
{
  "name": "lgpd-block-bulk-personal-data-export",
  "description": "Blocks any export of more than 1,000 records from resources you classify as customer personal data (CUSTOMER_PII) in one action. A starting point for internal controls around large personal-data exports. Vulnify’s risk engine may also return REVIEW or BLOCK for bulk personal-data exports on its own, even without this policy (for example, large internal exports), so not every REVIEW or BLOCK on these exports comes from this template.",
  "enabled": true,
  "action": "EXPORT",
  "resource": "CUSTOMER_PII",
  "condition": {
    "minRecords": 1001
  },
  "decision": "BLOCK",
  "mode": "ENFORCE"
}
Policy YAML (CLI policy file)
apiVersion: vulnify.io/v1
kind: Policy
metadata:
  name: lgpd-block-bulk-personal-data-export
spec:
  description: "Blocks any export of more than 1,000 records from resources you classify as customer personal data (CUSTOMER_PII) in one action. A starting point for internal controls around large personal-data exports. Vulnify’s risk engine may also return REVIEW or BLOCK for bulk personal-data exports on its own, even without this policy (for example, large internal exports), so not every REVIEW or BLOCK on these exports comes from this template."
  enabled: true
  action: EXPORT
  resource: CUSTOMER_PII
  condition:
    minRecords: 1001
  decision: BLOCK
  mode: ENFORCE

Example test cases

CaseInputExpected decision
5000 customer records exported{"agent":"example-agent","action":"EXPORT_DATA","resource":"customers-db","recordsAffected":5000}BLOCK

Try this template on your own agents, in monitor mode first.

Use in Vulnify