AI Governance · Data Protection

AI data protection for AI connected to your business systems

AI data protection is the set of technical controls that keep confidential business information, customer records and personal data safe wherever an AI assistant, agent or model touches them: in prompts, in retrieval, in API calls, in logs and in the provider's own systems. Twopir Consulting designs and implements those controls across AI connected to Salesforce, HubSpot, ERP, cloud and integration environments. Your AI gets the data it needs, and nothing it should not see.

Protected AI Data Path
WHAT YOUR AI CAN REACH CRM Records Salesforce · HubSpot Enterprise Data ERP · Databases · Documents Prompts Knowledge Index APIs · Agents TWOPIR DATA PROTECTION LAYER Classify Sensitivity · PII Data inventory Protect Mask · Tokenize Redact · Encrypt Control Scoped retrieval DLP · Audit logs LEAST DATA · LEAST PRIVILEGE · EVERY CALL LOGGED 2πr WHAT REACHES THE MODEL Scoped Context Only what this user may already see No Raw PII Masked or tokenized before it leaves Audited Calls Who asked, what was sent, what came back COLLECT · PROCESS · RETRIEVE · TRANSMIT · STORE · MONITOR
500+
Clients Served Across Global Markets
12+
Years of Salesforce & HubSpot delivery
10+
Countries Served
15+
Certified Platform Partnerships

Trusted by 500+ organizations — including legal, healthcare, real estate and technology businesses that run their customer data on Salesforce and HubSpot.

Mitratech
LegalZoom
Magnus Health
Sotheby's International Realty (UAE)
Platform9
Kacific
Ultra Consultant
Aventria

Platforms We Apply Controls Across

  • Salesforce Partner
  • HubSpot Partner
  • OpenAI
  • Anthropic Claude
  • Microsoft Azure AI
  • AWS
  • Google Cloud
Where Data Leaks

How AI exposes sensitive business data

AI rarely leaks data through a dramatic breach. It leaks through ordinary design choices: a connector with more access than it needs, a knowledge index that ignores who is asking, a log that keeps every prompt. These are the six exposure paths we look for first.

Confidential data typed into prompts

Staff paste customer lists, contract terms, financials and case notes into AI tools to get work done. If the tool is a personal account with consumer data terms, that information has left your control.

Agents connected with admin-level access

An assistant or agent wired to the CRM through one integration user can read every record that user can, regardless of who is asking. The AI inherits the broadest permission in the chain.

Retrieval that ignores permissions

A retrieval-augmented generation (RAG) index built from shared drives and CRM records will happily return an HR file or a board pack to anyone who asks the right question, unless access rules travel with every chunk.

Vendor retention and training terms nobody read

Whether prompts are stored, for how long, where, and whether they can be used to improve models depends on the product, the plan and the contract. Many teams cannot answer those questions for the tools already in use.

Logs, traces and caches full of PII

Debug logs, observability traces, conversation history and vector stores keep copies of what passed through. The production database is locked down; its AI shadow copies often are not.

Over-scoped APIs and database credentials

API keys with write access, shared service accounts and direct database connections give an AI integration far more reach than its use case needs, and make one leaked key an incident.

Definition

AI data protection, defined

AI data protection is the practice of controlling which business data an AI system can reach, what it may send to a model, and what is kept afterwards, across the whole AI data lifecycle. It covers classifying data by sensitivity, keeping personally identifiable information (PII) and confidential records out of prompts unless a use case needs them, encrypting data in transit and at rest, limiting retrieval to what each user may already see, scoping the APIs and database access AI integrations use, and monitoring for leakage.

Three parties share the responsibility, and it helps to keep them apart. The AI provider, such as OpenAI, Anthropic, Microsoft, AWS or Google Cloud, sets how its service handles your data: retention, training use, encryption and where processing happens, under the plan and contract you choose. Your organization owns the data, decides what AI may use it for and answers for the legal obligations. Twopir Consulting designs and implements the technical controls in between, in the CRM, ERP, cloud and integration systems where the data actually lives.

Data protection is one domain of wider AI governance, alongside access control, agent permissions, output reliability and oversight, all covered on our AI governance and security page. We align the work with the frameworks your risk and audit teams already use: the NIST AI Risk Management Framework, the NIST Privacy Framework and ISO/IEC 42001, the AI management system standard. Aligning controls to a framework gives auditors a common language; it is not a certification, and it does not replace legal review.

The AI Data Lifecycle

Six stages, each with its own controls

Data is exposed differently at each step between your systems and a model's answer. Protecting one step and not the next is how most AI data incidents happen, so we design controls for the whole path.

The control map we build for each AI use case. Every row is designed, implemented and tested, not assumed.
Lifecycle stageWhat is exposedControls we implement
CollectionRecords, files and fields pulled into an AI use case because they were easy to reach, not because the use case needs them.Data inventory per use case, sensitivity classification, data minimization rules and an approved-source list.
ProcessingPrompts and context assembled from live records, including names, contact details, account numbers and free-text notes.PII detection, masking, tokenization or redaction before the prompt is built; field-level exclusions for regulated data.
RetrievalKnowledge-base and vector-store content returned to users who could not open the source document.Permission-aware retrieval that filters by the asking user's access, metadata tags on every chunk, separate indexes for restricted content.
Model interaction and transmissionData in transit to the model provider, and whatever the provider's terms allow it to keep.TLS in transit, enterprise or API endpoints with documented no-training terms, private connectivity where the cloud supports it, approved model list.
Storage and retentionConversation history, embeddings, caches, logs and traces that copy sensitive data outside its system of record.Encryption at rest with managed keys, retention periods per store, deletion jobs, and logging that records the event without the payload.
MonitoringLeakage nobody notices: sensitive data in responses, unusual query volume, new tools connected without review.Data loss prevention (DLP) rules on prompts and responses, audit trails, alerting, and periodic access and vendor reviews.
What We Implement

The technical controls we put in place

Six workstreams cover the controls an AI data protection programme needs. Each one is scoped to your AI use cases and built in the systems that hold the data, so the protection does not depend on any single AI vendor.

Strategy & Data Classification

An AI data protection strategy starts with knowing what you hold. We inventory the data each AI use case touches and rate its sensitivity.

  • AI use-case and data-flow inventory
  • Sensitivity tiers: public, internal, confidential, restricted
  • PII, financial and proprietary data discovery
  • Allowed-data rules per AI tool and use case
  • Acceptable-use guidance for staff

PII Protection, Masking & Redaction

Personal and sensitive values are replaced before a prompt leaves your environment, and restored only where the answer needs them.

  • PII detection on prompts and retrieved context
  • Masking and reversible tokenization
  • Redaction of free-text notes and documents
  • Field-level exclusions for regulated data
  • Masked test data for AI sandboxes

Encryption & Secure Processing

Data stays encrypted in transit and at rest on every hop, including the stores AI adds: vector databases, caches and conversation history.

  • TLS on every AI and integration call
  • Encryption at rest with managed keys
  • Private networking to cloud AI endpoints where available
  • Secrets management for keys and tokens
  • Retention and deletion rules per data store

Secure RAG & Knowledge Access

Retrieval returns only what the asking user is already allowed to open, and the knowledge index never becomes a back door around your permissions.

  • Permission-aware retrieval and filtering
  • Access metadata on every indexed chunk
  • Separate indexes for restricted content
  • Source curation and stale-content removal
  • Citations back to the source record

Secure APIs & Database Access

Every AI integration gets its own identity with the narrowest access its job needs, so one leaked credential cannot open the whole estate.

  • Dedicated integration users per AI use case
  • OAuth scopes and read-only access by default
  • Query allow-lists instead of open database access
  • Key rotation and revocation
  • Rate limits and anomaly alerts

DLP & Sensitive-Data Monitoring

Controls are only as good as the evidence that they work. We monitor what goes into and comes out of AI, and alert when something should not.

  • DLP rules on prompts, responses and uploads
  • Audit trails of AI calls without stored payloads
  • Alerts for sensitive data in responses
  • Shadow-AI and new-connector detection
  • Periodic access and control reviews
Controls vs Compliance

Technical controls are not the same as compliance

Privacy laws and sector rules decide what you may do with personal data. Technical controls decide what your systems actually do with it. You need both, and no AI platform, setting or certification makes an organization compliant on its own.

Technical Controls

What we design and implement

Classification, masking and tokenization, encryption, permission-aware retrieval, scoped integrations, data residency settings, retention and deletion jobs, DLP rules, logging and monitoring, and the evidence that each one works.

These are engineering decisions, and they are where Twopir Consulting does its work.

Legal Obligations

What your legal and privacy teams decide

Which laws apply, the lawful basis for processing, consent and notices, contracts and data processing agreements with AI vendors, cross-border transfer mechanisms, data subject rights and breach notification duties.

We do not give legal advice. We turn the requirements your counsel sets into controls your systems enforce, and document them so they can be audited.

How the two meet on the questions that come up in every AI data review.
QuestionThe obligation (your counsel)The control (implemented)
Where may this data be processed?Residency and transfer requirements for each data category and region.Region-pinned AI endpoints and storage, and routing rules that keep restricted data in-region.
How long may it be kept?Retention limits and deletion duties.Retention settings on every AI store, deletion jobs, and vendor retention options confirmed in configuration.
May a vendor use it?Processor terms, data processing agreements and approved sub-processors.Only reviewed vendors and plans connected; consumer AI tools blocked or restricted for business data.
Who may see it?Purpose limitation and need-to-know rules.Least-privilege integration users, field-level security and permission-aware retrieval.
Can we prove it?Accountability, records of processing, audit requests.Audit trails, control documentation and test evidence, mapped to the framework your auditors use.
AI Vendor Assessment

What each AI platform does with your data

Retention, training use and processing location depend on the product, the plan and the settings, not only on the vendor. This is what each provider documents for its business offerings, and what we still confirm in your own deployment before any sensitive data is connected.

As each vendor's documentation states it, checked November 2026. Vendor terms change, so we re-check them at every review.
PlatformWhat the vendor documentsWhat we verify for you
OpenAI ChatGPT business plans and APIBusiness data is not used to train models by default. API inputs and outputs may be retained for up to 30 days to provide the service and identify abuse, and zero data retention can be requested for eligible endpoints. OpenAI enterprise privacyWhich plans staff actually use, workspace retention settings, and whether a use case qualifies for zero data retention.
Anthropic Claude for Work and Claude APIInputs and outputs from commercial products are not used for training by default. On the API, prompts and outputs are not retained by default except for models that require 30-day retention; zero data retention arrangements exist but do not cover every interface. Anthropic data retentionWhich Claude interfaces and features are in use, and whether each one falls inside the retention arrangement you rely on.
Microsoft Azure Azure OpenAI and Foundry modelsPrompts and completions are not available to OpenAI or other model providers and are not used to train foundation models without your permission. Processing stays in your chosen geography unless a Global or DataZone deployment is used; stored data is encrypted at rest, with customer-managed keys available. Azure data privacyDeployment type against your residency requirement, key management, and abuse-monitoring settings.
AWS Amazon BedrockModel providers have no access to Bedrock logs or to customer prompts and completions. Security follows the shared responsibility model: AWS secures the infrastructure, and the customer configures access, logging and network controls. Bedrock data protectionIAM policies, private connectivity, logging configuration and where invocation logs are stored.
Google Cloud Generative AI on Google CloudGoogle states it will not use your data to train or fine-tune AI models without your prior permission or instruction. Zero data retention requires specific customer settings, for example on logging, caching and stored interactions. Google Cloud zero data retentionThat each setting zero retention depends on is actually configured in your project.
Salesforce Einstein Trust LayerZero data retention with external model providers, with no training on your data; grounding that respects the running user's permissions and field-level security; data masking options; and audit logging of prompts and responses. Einstein Trust LayerWhich Trust Layer features apply to each prompt template and agent, since they differ, and that the permissions AI inherits are the ones you intend.
HubSpot HubSpot AI featuresThird-party AI providers may not train on customer data, and HubSpot enforces zero retention with them wherever possible. HubSpot may use customer data to improve its own AI models unless a Super Admin opts out; opt-outs apply going forward. HubSpot AI model trainingThe account's training opt-out and sensitive-data settings, and which AI features are switched on for which teams.

A vendor commitment covers the vendor, not your configuration. None of these terms decides which records your AI can read, what your logs keep or who can query your knowledge index. Those controls are yours to build, and they are what the rest of this page is about.

Salesforce, HubSpot & ERP

Customer data, protected at every connection

Most sensitive business data lives in the CRM and the systems around it. These are the connections AI projects open, what moves across each one, and the control that keeps it in bounds.

Salesforce + Einstein and Agentforce

Records ground prompts and agents inside Salesforce. We configure the Trust Layer, agent identities and the permissions they inherit; deeper agent work is on our Agentforce governance and security page.

Salesforce + external models

Account, case and opportunity data flows out to OpenAI or Claude, and answers flow back to the record. A dedicated integration user, field-level exclusions and masking decide exactly which fields leave.

HubSpot + AI features and apps

Contacts, deals and conversations feed HubSpot's own AI tools and connected AI apps. We set the account's AI and sensitive-data settings and keep private-app scopes to the objects each use case reads. More on AI in HubSpot.

ERP + AI assistants

Orders, invoices and payment status flow to assistants that answer finance and service questions. Read-only views, row-level filters and masked bank and tax fields keep financial data to what the question needs.

Databases + AI agents

Agents query operational data to answer or act. Instead of open SQL access, they call approved queries or read replicas, under a credential that cannot write or reach restricted tables.

Documents + knowledge index

Policies, contracts and knowledge articles are chunked into a vector store for retrieval. Access tags copied from the source system travel with each chunk, so retrieval honours the same permissions.

Middleware, MCP and connectors

Integration platforms and MCP servers carry data between AI tools and business systems in both directions. Each connector gets its own scoped identity, logging without payloads and an owner. See AI integration services.

Workplace AI assistants

Staff use ChatGPT, Claude or Copilot with business content. We move that use onto managed business plans with retention and connector settings you control, through our OpenAI and Claude implementation services.

Delivery Process

How we implement AI data protection

Six phases, run per AI use case or across a whole programme. The first two are often all an organization needs to see where it is exposed today; the rest build and prove the controls.

Phase 01

Inventory

Every AI tool, assistant, agent and integration in use or planned, the systems each one connects to, and the data that can flow through it, including tools adopted without review.

DeliverableAI use-case and data-flow inventory

Phase 02

Classify & Assess

Sensitivity ratings for the data in scope, a review of each AI vendor's data handling, and a gap assessment against the controls each use case needs.

DeliverableExposure assessment and prioritized gaps

Phase 03

Design Controls

The control map for each lifecycle stage: what gets masked, who can retrieve what, which endpoints and regions are used, what is logged and how long anything is kept.

DeliverableSigned-off control design

Phase 04

Implement

Controls built where the data lives: CRM permissions and integration users, masking services, retrieval filters, encryption and key settings, DLP rules and logging, in a sandbox first.

DeliverableConfigured controls, documented per system

Phase 05

Test for Leakage

We try to make the AI reveal what it should not: cross-user retrieval, prompt injection aimed at sensitive fields, PII in responses and logs, and over-scoped credentials.

DeliverableLeakage test results and fixes

Phase 06

Monitor & Govern

Alerts, audit trails and a review cadence handed to the people who own them, with control documentation your security, privacy and audit teams can use.

DeliverableMonitoring runbook and governance handover

Why Twopir

Data protection from the people who build the systems

Most AI data exposure lives in the permissions, integrations and data models of the systems AI is connected to. Those are the systems we design and build every day.

The architecture comes first

We decide which identity an AI runs as, which objects and fields it may read and where its data flows as part of your CRM and revenue architecture, before any prompt is written.

Salesforce-first, with HubSpot and connected platforms

Profiles, permission sets, sharing rules and field-level security are what an AI inherits in Salesforce. We work with them daily, and with HubSpot scopes and the platforms around both.

Built for multi-system complexity

Data leaks where systems meet: CRM to ERP, documents to a knowledge index, middleware to a model API. Multi-system integration, ERP, automation and AI are the core of our work.

Real implementation experience

We have delivered for 500+ clients across industries and countries, so the controls we design fit how teams actually work with customer data, not a policy binder.

Senior-led, specialist delivery

Senior architects own the design and the risk decisions; specialists build and test each control. You get documented controls your own teams can run, and ongoing AI governance and security support when you want it.

Common Questions

AI data protection questions, answered plainly

AI data protection is the set of technical controls that decide which business data an AI system can reach, what it may send to a model, and what is kept afterwards. It includes data classification, PII masking and redaction, encryption, permission-aware retrieval, scoped API and database access, data loss prevention and monitoring, applied across the whole AI data lifecycle.

No. A business plan with no-training terms, a signed data processing agreement or a HIPAA business associate agreement covers what the vendor does with your data. Compliance also depends on your lawful basis, notices, contracts, retention, access controls and records, and on how your own systems are configured. Your legal and privacy teams decide the obligations; we implement and document the technical controls that meet them.

For their business and API offerings, OpenAI, Anthropic, Microsoft Azure and Google Cloud each state that customer data is not used to train their models by default or without your permission. Those terms apply to the specific products and plans they name, not to personal or consumer accounts, and retention rules differ between them. That is why we confirm which tools your teams actually use, and how each one is configured, before connecting sensitive data.

By making the AI work with the asking user's permissions instead of one broad service account. In Salesforce and HubSpot that means grounding and queries that respect sharing rules and field-level security. In a retrieval-augmented generation (RAG) knowledge index it means access metadata on every chunk and filtering at query time, with restricted content in separate indexes. We then test it by trying to retrieve one user's data as another.

Masking replaces a sensitive value with a placeholder so the model never sees it. Tokenization replaces it with a token that your system can map back to the original, so the answer can be personalized after it returns. Redaction removes the value from text or documents entirely. Which one fits depends on whether the use case needs the real value at any point.

Yes, when the AI is connected with a deliberate permission model. Both platforms provide controls of their own: Salesforce documents its Einstein Trust Layer, and HubSpot documents AI training and data settings. The remaining risk sits in how integrations, agents and external models are connected, so we design dedicated integration identities, field-level exclusions, masking and logging around each use case.

With an inventory: every AI tool, assistant, agent and integration in use or planned, the systems each connects to and the data that can flow through it. Classifying that data and reviewing each vendor's data handling then shows where the real exposure is, so the first controls go where they reduce the most risk.

Next Step

Find out what your AI can reach before someone else does

A first conversation covers the AI tools and agents you run or plan, the systems they connect to and the data involved: enough to show where the exposure is and which controls come first. No obligation to proceed.

Talk to an architect who secures AI connected to Salesforce, HubSpot and ERP