Access Controls and Data Security for AI
AI systems handle valuable data and can act on business systems, so they need strong security controls. This lesson describes the measures a business leader should expect, at a governance level, without configuring them.
Learning outcomes
After completing this lesson, you will be able to:
- Explain what is different about securing AI systems.
- Describe the core access controls and data security measures for AI.
- Describe how prompts, outputs and logs should be protected.
- Explain the risks of the AI supply chain and how to manage them.
What is different about AI security
AI systems need the same security disciplines as any other system, plus attention to new assets and new attacks. The assets include training data, knowledge sources used for RAG, prompts and outputs, which may contain sensitive information, and the models themselves. New threats include prompt injection, where crafted input tricks a model into ignoring its instructions or revealing data, data leakage through outputs, and agents misusing the tools they have been given.
New assets, new attacks
Core controls
The following terms describe the access controls and data security measures most relevant to AI systems.
- Least privilege
- Users, applications and agents receive only the access they need. An agent that only reads order status should not be able to issue refunds.
- Permission-aware retrieval
- A RAG assistant returns information only from documents the user is already entitled to see, so it does not become a way around existing access controls.
- Data classification
- Labels such as public, internal, confidential and restricted define which AI tools and models may process which data.
- Encryption
- Data is protected at rest and in transit, including prompts, outputs, knowledge bases and logs.
- Logging and auditing
- AI use and agent actions are recorded so that they can be reviewed, investigated and audited.
- Input and output filtering
- Guardrails detect prompt attacks and block or mask sensitive information.
- Data residency
- Data is processed and stored only in approved Regions where law or policy requires it.
Which control was missing?
Protecting prompts, outputs and logs
Prompts and outputs often contain the most sensitive information in an AI system: customer details, confidential documents pasted for summarisation, and generated content based on them. Logs that record this material for quality review and audit are valuable, but they also create a new store of sensitive data. Business owners should decide what is logged, how long logs are kept, who may read them and whether sensitive data is masked before storage. Retention should be long enough for investigation and audit obligations and no longer.
Securing the AI supply chain
AI systems are assembled from components supplied by others: foundation models, open models, datasets, software libraries, plug-ins and connectors that give agents access to tools. Each component can introduce risk, such as a model of unknown origin, a dataset with unclear licensing or a connector that sends data to an unknown service. The following practices manage these risks.
- Use trusted sources, such as models offered through a managed service with documented terms, rather than components of unknown origin.
- Assess third-party components through the same review process as other AI tools, including what data they send and where.
- Record the components each AI system uses in the AI inventory, so that a problem in one component can be traced to every system that depends on it.
- Restrict what connectors and plug-ins can do, following least privilege.
A secure AI supply chain
Governance of access
Business leaders own key decisions in this area: which data each AI use case may access, who approves access to sensitive data, how long prompts and outputs are retained, and which actions an agent may take without approval. Access should be reviewed periodically and removed when no longer needed. Technical teams implement the controls; business owners decide what is appropriate.
A common failure
An AI assistant connected to a document repository must not reveal to a user information that the user could not open directly. Permission-aware retrieval is essential before connecting AI to sensitive content.
An HR assistant with too much access
An internal assistant is connected to the HR document repository so that employees can ask policy questions. During testing, an employee asks about a colleague's salary and receives the answer from a compensation spreadsheet in the repository. What controls were missing?
Permission-aware retrieval was missing: the assistant used its own broad access rather than the requesting employee's permissions. Least privilege and data classification were also missing, because restricted compensation data should not have been in the scope of a general policy assistant. Fixes include limiting the knowledge source to approved policy documents, enforcing user-level permissions, adding sensitive information filters and logging queries for review.
A connector from an unknown source
A sales operations team connects its AI agent to a free, community-built connector that lets the agent read and update the CRM. The connector was found online and installed without review. The security team discovers that it also sends copies of CRM records to an external analytics service. What went wrong, and what should change?
This is an AI supply chain failure. An unreviewed component was given broad access to customer data and used it in ways nobody approved. The immediate actions are to disconnect it, assess what data was sent and involve privacy and legal teams. Going forward, connectors and plug-ins should go through the AI tool review process, be recorded in the AI inventory against the agents that use them, and receive only the permissions they need, such as read-only access where updates are not required.
What is permission-aware retrieval?
Show answer
A RAG assistant retrieves only content that the requesting user is already entitled to see, so it cannot bypass existing access controls.
Exam Tips
Remember for the exam
- Protect training data, knowledge sources, prompts, outputs and models.
- Apply least privilege to users, applications and agents.
- RAG assistants must respect the requesting user's permissions.
- Data classification decides which AI tools may process which data.
- Decide what prompts and outputs are logged, for how long, who can read them and what is masked.
- Treat models, datasets, plug-ins and connectors as supply chain components to assess and record.