Skip to content

Security and LGPD

Legal principles, verifiable controls.

Customer, employee, contract and financial data flow through AI every day — much of it personal or sensitive under LGPD. AI Shield turns each principle into a decision enforced in the flow — with evidence of effectiveness, not just terms of use.

01 — Mandatory premises

Seven premises no feature bypasses.

    01

    Deny by default

    In the absence of a clear rule, the request does not go to the provider or the data source.

    02

    Minimization before sending

    Fields removed, identifiers replaced or aggregated whenever the purpose does not require identification.

    03

    Authorization before retrieval

    Semantic search, SQL, files and connectors receive tenant, user, attribute and purpose filters before returning content.

    04

    Defense in depth

    The decision does not rely on one classifier or a single LLM. Deterministic rules, DLP and schema validation complement each other.

    05

    Plane separation

    Policy configuration never mixes with prompt, response, file and media traffic.

    06

    Evidence without widening risk

    Logs prefer metadata, hashes and references. Raw content is only retained when policy authorizes it — always encrypted.

    07

    No vendor by declaration

    Region, retention, training use, sub-processors and contract are recorded and approved before approval.

    The AI does not receive data the user is not authorized to use — and the user does not receive content beyond their authorization.

02 — LGPD mapping

From law to product requirement.

Each provision of Law No. 13,709/2018 considered in the design, its implication and the corresponding technical response.

ReferenceImplicationProduct response
Articles 5 and 11Health and biometric data require specific processingSensitive classification, default blocking, dedicated policies and legal basis justification
Article 6Purpose, adequacy, necessity, security, prevention and accountabilityMandatory purpose, minimization, DLP, decision records and evidence of effectiveness
Articles 18 and 19Rights of confirmation, access, correction, anonymization, blocking and erasureSearch by data subject, export, handling flow, blocking and retention execution
Article 20Review and explanation of automated decisions affecting interestsExplainable decisions, contestation channel and human review where applicable
Article 33International transfer requires valid grounds and safeguardsCatalog of region, sub-processors, contract, retention and permission per provider
Articles 37 and 38Records of processing and possible impact assessmentRoPA, technical trail and exportable data for DPIA
Articles 46 to 50Security by design, governance and incident responsePrivacy by design, encryption, least privilege, monitoring, incidents and continuous testing
The software provides controls and evidence but does not guarantee compliance on its own. Each customer remains responsible for defining controller and processors, mapping purposes, choosing legal bases, serving data subjects and validating transfers.

03 — Classification

Five classes. One default treatment for each.

ClassCriterionExamplesDefault treatment
PublicAuthorized disclosurePublished institutional materialUse in approved models per policy
InternalCommon corporate useInternal procedures and announcementsCorporate identity and approved models only
ConfidentialCommercial or personal impactContracts, code, individual salaryExplicit access, minimization and reinforced logging
Restricted sensitiveHigh harm or sensitive personal dataDiagnosis, ICD, biometrics, medical recordDeny by default, strict purpose and allowed provider
Critical secretSystemic riskKeys, credentials, tokens, trade secretsNever send to external models and block tools

04 — Threat model

Twelve threats. One main control for each.

Aligned with the OWASP Top 10 for LLM Applications and the NIST AI RMF, with dedicated red teaming for prompt injection, exfiltration, RAG, tools and DLP evasion.

    01Direct prompt injection

    User tries to change instructions or obtain forbidden data

    Policy external to the model, instruction separation and detection

    02Indirect prompt injection

    Document, website or e-mail contains malicious instruction

    Treat content as data, sanitize, limit tools and confirm actions

    03Exfiltration via response

    Model reproduces data outside the scope

    Outbound DLP, provenance validation and blocking before display

    04Horizontal escalation

    User accesses a colleague’s or another department’s data

    ACL, ABAC, relationships and per-object authorization tests

    05Cross-tenant leakage

    Cache, index, queue or storage mixes companies

    Namespaces, keys, database policies and isolation tests

    06Secret in prompt

    Code contains key, token or credential

    Secret scanner, blocking, rotation and user guidance

    07Tool abuse

    Agent sends e-mail, changes a system or runs code

    Scopes, allowlist, sandbox, limits and human approval

    08Malicious file

    Upload contains malware, macro, file bomb or link

    Antivirus, sandbox, real type, limits and quarantine

    09Knowledge base poisoning

    False or hostile content enters the RAG

    Provenance, approval, integrity, review and alerting

    10Sensitive log

    Prompt or response appears in APM, support or error

    Redaction at source, log schemas and automated tests

    11Vendor changes behavior

    Version starts retaining or processing data differently

    Version pinning, contract monitoring and re-approval

    12Cost attack

    Usage generates excessive expenses

    Quotas, rate limits, budget, alerts and circuit breaker

05 — Technical controls

The minimum we demand of ourselves.

  • 01Least privilege principle and temporary privileged access
  • 02Encryption with key rotation and optional dedicated key per customer
  • 03Secure SDLC: dependency analysis, SAST, DAST, review and artifact signing
  • 04Supply chain protection and component inventory (SBOM)
  • 05Penetration testing before production and after high-risk changes
  • 06Dedicated red team for prompt injection, exfiltration, RAG, tools and DLP evasion
  • 07Encrypted backups with periodic restore testing and retention consistent with deletion
  • 08Separate environments and prohibition of real data in development

06 — Failure policy

Fail-closed. When in doubt, data does not leave.

Failure of the classifier, policy engine, file inspection or output verification blocks the flow whenever personal data or an unknown class is possible.

Low-risk tasks only get an alternative route if the policy has explicitly approved degradation and no sensitive content is present. Engine unavailability raises an immediate alert.

Persistent state machine

  1. Received
  2. Classified
  3. Authorized for retrieval
  4. Context prepared
  5. Authorized for model
  6. Sent
  7. Under inspection
  8. Authorized for delivery
  9. Delivered
  10. Archived

Alternative states

  • Denied
  • Awaiting approval
  • Quarantined
  • Cancelled
  • Expired
  • Failed closed

07 — Audit event

What every event records.

01Identity
Tenant, user, session, groups, role, device and authentication
02Request
Capability, purpose, classification, attachments, sources and tools
03Decision
Outcome, reason, policy version, filters, transformations and approvers
04Retrieval
Source, query, filters, fragment identifiers and denials
05Model
Vendor, model, version, region, parameters, usage, cost and latency
06Output
Classification, findings, transformation, blocking and artifacts
07Integrity
Timestamp, previous hash, event hash and signature where applicable

08 — Incident response

Six steps, without widening access.

    01

    Detect or receive the incident and preserve evidence

    02

    Classify data, data subjects, reach, origin, duration and failed controls

    03

    Contain compromised credentials, routes, models, connectors or policies

    04

    Assess relevant risk or harm and engage DPO, legal, security and controller

    05

    Prepare communications and records under current regulation

    06

    Remediate, verify effectiveness, conclude root cause and update policies, tests and DPIA

09 — References

Frameworks that guide the design.

    LGPD

    Law No. 13,709/2018 — consolidated text and ANPD regulation.

    ISO/IEC 27001

    Alignment with information security controls.

    NIST AI RMF

    Artificial intelligence risk management.

    NIST Privacy Framework

    Outcome-oriented privacy governance.

    OWASP Top 10 for LLM

    Specialized threats and testing for LLM applications.

    ANPD

    Documents, publications and guidance from the Brazilian authority.

Formal certifications are obtained per deployment, according to the scope defined with each customer. Production gates include legal review, DPIA, multi-tenant isolation testing and red teaming with no open critical finding.

Get the LGPD mapping applied to your scenario.

Our team prepares an initial reading of the processing operations involved in your company’s use of AI.

Chat with us