AI Governance

AI applications create new paths for sensitive data to leak, be misused or be manipulated. Here is a layered approach to data protection covering classification, access control, retrieval, prompts, vendors and monitoring.

By NowDigitalize Engineering5 min read

AI applications are only as useful as the data they can reach. A knowledge assistant needs policies, contracts and procedures; an HR agent needs employee records; a finance agent needs ledgers and supplier details. That access is exactly what makes AI valuable and exactly what creates risk. Sensitive information can appear in an answer to someone who should not see it, be sent to an external service without the right agreements, or be extracted by a carefully crafted input. Protecting business data in AI applications means applying established security principles to a new architecture, and adding controls for the risks that are genuinely new.

Understand where data flows

Start by mapping every path data takes through an AI application. A typical retrieval-augmented assistant or agent involves several stages, each with its own exposure:

  1. Ingestion: documents and records are collected from source systems, split into passages and indexed.
  2. Retrieval: when a user asks a question, relevant passages are found and assembled.
  3. Prompting: the question, retrieved content and instructions are sent to a language model.
  4. Generation: the model produces an answer or proposes an action.
  5. Action: an agent may call tools that read or write data in business systems.
  6. Logging: prompts, outputs and actions are stored for audit and improvement.

Data can leak or be misused at any of these points. The logs, in particular, are often overlooked; they can end up containing more sensitive information than any single source system.

Classify data before connecting it

Not all data should be available to AI, and not all data that is available should be treated the same way. Apply your existing data classification scheme, or create one, before connecting sources.

  • Public: published material, safe for any use.
  • Internal: general business information available to employees.
  • Confidential: commercial terms, financial results, strategy and customer data, restricted by role.
  • Restricted: personal data, health information, payment details, credentials and legally privileged material, with strict need-to-know access and additional controls.

Enforce permissions at retrieval time

The most important control for enterprise AI is that users can only receive information they are already entitled to see. An AI assistant must not become a way around existing access controls.

That means retrieval must be permission-aware: each indexed passage carries the access rules of its source, and every query is filtered by the identity and roles of the person asking. Permissions must be synchronized when they change at the source, and agents acting on behalf of a user should operate with that user's permissions, not with a powerful service account. A policy for an HR knowledge assistant might be expressed along these lines:

policy: hr-assistant-data-access
identity: end-user          # act with the caller's permissions
sources:
  - name: hr-policies
    classification: internal
    allow_roles: [all-employees]
  - name: employee-records
    classification: restricted
    allow_roles: [hr-business-partner]
    row_filter: "record.region == user.region"
    fields_masked: [national_id, bank_account, medical_notes]
outputs:
  redact_patterns: [national_id, bank_account]
  cite_sources: true
logging:
  store_prompts: true
  mask_restricted_fields: true
  retention_days: 90

The exact format will depend on your platform, but the principles carry over: act as the user, filter by role and attribute, mask what is not needed and keep logging consistent with the data's classification.

Defend against prompt injection and manipulation

AI applications introduce a class of risk that traditional systems do not have: instructions hidden in content. A document, email or web page retrieved by an assistant may contain text designed to make the model ignore its instructions, reveal data or take an unintended action. The OWASP Top 10 for LLM Applications lists prompt injection, sensitive information disclosure and excessive agency among the key risks to address.

Practical defenses

  • Treat retrieved content as untrusted data, clearly separated from system instructions.
  • Limit agent capabilities to the minimum tools and permissions needed for the task.
  • Require human approval for actions that send data externally, change records or move money.
  • Validate outputs before they are acted upon, for example checking that a proposed email recipient is internal or on an approved list.
  • Test adversarially with injected instructions in documents and inputs before deployment.

Govern vendors and model hosting

Many AI applications send data to external model providers. Before doing so with confidential or restricted data, confirm the terms that govern it.

QuestionWhy it matters
Is submitted data used to train the provider's models?Business data should not become part of a shared model without explicit agreement.
How long are prompts and outputs retained, and where?Retention and data residency affect privacy obligations and breach exposure.
Who at the provider can access the data, and under what conditions?Determines insider risk and supports your own access reviews.
What security certifications and audit reports are available?Provides evidence for your risk assessment and compliance obligations.
Can the service run in a dedicated or private environment?May be required for restricted data or regulated workloads.

For the most sensitive workloads, organizations may choose private deployments or models hosted within their own cloud environment, accepting more operational responsibility in exchange for tighter control.

Monitor, log and respond

Protection does not end at deployment. Log queries, retrieved sources, outputs and actions with user identity, and protect those logs as carefully as the data they reference. Monitor for unusual patterns, such as a user suddenly querying large volumes of restricted content or repeated attempts to extract system instructions. Extend your incident response plan to cover AI-specific events, including how to disable a connector, revoke an agent's tool access and notify affected parties.

Consider an IT service desk assistant connected to internal runbooks. If a monitoring rule detects responses containing credential-like strings, the assistant can block the output, alert the security team and flag the source document for cleanup, often revealing that a password had been pasted into a runbook years earlier.

Where to start

  1. Map the data flows of your current or planned AI applications, including logs.
  2. Classify every connected source and remove or restrict anything that should not be there.
  3. Implement permission-aware retrieval that acts with the user's identity.
  4. Restrict agent tools to the minimum needed and add human approval for high-impact actions.
  5. Review vendor terms for training use, retention, residency and access.
  6. Run adversarial tests, then set up monitoring and an AI-specific incident playbook.

The organizations that get the most from AI are not the ones that connect the most data. They are the ones that connect the right data, under controls strong enough that everyone, from the security team to the board, is comfortable using it.

References

  1. OWASP Top 10 for Large Language Model Applications
  2. NIST AI Risk Management Framework
NE

NowDigitalize Engineering

Solution architecture & engineering

Notes from the team that designs, builds and integrates AI agents, automation and enterprise software.