AI Security: Risks, Data Leakage and Controls
Published Updated
AI security protects the data, models and connected systems an organisation uses for AI. Start by controlling what goes into an AI tool, who can see its answers and what it can do in other systems. A business plan that keeps your prompts out of model training can still expose a file your staff already have permission to open.
What AI Security Covers
AI security prevents data leakage, misuse and tampering wherever an AI system handles information or acts on it. That includes the documents staff send to a chatbot, the model that generates an answer and the tools an assistant uses to look up or change records. Using AI to detect suspicious network activity is a separate job within cyber defence.
How Data Leakage Happens With AI Tools
Data leakage can start with what staff submit, what a vendor keeps or what an assistant returns. A staff member who pastes a client file into a public chatbot may disclose it to the provider. Depending on the plan and settings, the provider can store a copy or use the contents for model training. Staff who use a personal account for work can bypass the organisation’s controls over shadow AI.
An internal assistant can expose pay data without sending it to a public chatbot. Imagine a staff member asks about salaries and gets an answer with figures and a link to a payroll spreadsheet. A SharePoint folder or a Google Drive shared drive gave the whole team access, so the assistant found a spreadsheet the staff member was never meant to see. The assistant made the existing permission error easy to discover.
Use data classification to decide which files the assistant can index and which it may quote. Apply sensitivity labels so the system can enforce those choices. For instance, keep payroll out of a general staff index and limit a payroll assistant to authorised staff. Check whether the connector actually enforces the labels, file permissions and sharing rules, including when someone loses access.
Prompt Training and Retention by Plan
Treat training and retention as separate decisions. Turning off training can leave chat history and uploaded files in storage. The relevant terms are the ones that apply to the account and workspace your staff actually use.
| Tool | Personal use | Business use |
|---|---|---|
| ChatGPT | The account’s data controls govern model training. Turning off training leaves regular chats in history. | ChatGPT Business and Enterprise exclude workspace content from training by default. Enterprise admins can set retention. OpenAI’s offboarding guidance says Business retains a removed member’s chats and files indefinitely. |
| Claude | Anthropic can train on chats when you allow model improvement. It can keep de-identified training data from new or resumed chats for up to five years. | Claude for Work excludes inputs and outputs from model training by default. It keeps saved chats in the product and publishes separate retention rules for certain models and safety cases. |
| Gemini | With Gemini History on, Google can use chat content for model training depending on your settings. History defaults to 18 months before automatic deletion. Turning history off can still leave chats in short-term storage. | For qualifying Google Workspace editions, Google says it needs permission to train models outside your domain on your content. Admins can set retention, with separate rules for the Gemini app and Gemini within Workspace apps. |
| Microsoft Copilot | The updated personal Copilot app keeps a chat history and excludes prompts, replies and file contents from foundation model training. The older app has different training terms. | Microsoft 365 Copilot stores prompts and replies in its activity history. Admins can use Microsoft Purview to set retention. Microsoft excludes this data from foundation model training. |
Attacks Aimed at AI Systems
Prompt injection occurs when an AI model treats hidden instructions in content it reads as commands. That can lead the assistant to reveal data or take actions the user never authorised.
Data poisoning corrupts the examples, documents or records an AI system learns from or reads. Model poisoning changes the model itself or its training so that it behaves in an unwanted way. Use reviewed data sources and approved model releases, and keep a known-good version to restore.
A plugin or tool connection can expose data or let an assistant make changes if it runs with more access than its job needs. A stolen application programming interface (API) key can let someone use the service with the key’s permissions. Someone who steals the model files can copy a privately hosted model. Restrict access to model files and keep credentials in a secrets manager.
Third-party models, open-source libraries and Model Context Protocol (MCP) servers are part of the supply chain. An MCP server exposes tools or data to an assistant. Review who maintains each dependency, what it can access and how updates are approved before adding it.
Security Controls for AI Deployments
Give users and tools only the access they need, then record enough activity to investigate a suspected leak.
- Use single sign-on (SSO) for staff and enforce each user’s source-system permissions at retrieval. Give every connected tool a separate identity with the smallest set of permissions it needs. If a tool only looks up a record, give it read access.
- Set data loss prevention rules for what staff can submit and what the assistant can disclose. Use AI guardrails to check inputs and answers. Specify where data can be processed and stored. Set a retention period for each copy, including logs and backups.
- Review the vendor’s signed terms for model training, retention and deletion. Identify the sub-processors, which are other providers that handle your data, and check where each stores or processes it. Include any connected tools that receive prompts or files.
- Log which user made the request, which sources were retrieved and what each tool returned or changed. Record prompts and answers only to the extent needed for investigation. Mask sensitive content and restrict access to the logs. Have the security team review alerts and ask the system owner to investigate unexpected access or actions.
- Before go-live and after changes to models, prompts or connected data, have an authorised team test in an isolated environment. Use synthetic records and harmless markers to check that restricted content stays out of answers, citations and tool calls. If a check fails, disable the affected connection or feature, preserve the relevant logs, fix the permission or data rule and repeat the check before re-enabling access.
Australian Rules and Guidance That Apply
The Privacy Act 1988 has no AI exemption. Organisations and agencies covered by the Act must apply their privacy obligations to personal information they put into AI tools and to outputs that contain it. The Office of the Australian Information Commissioner (OAIC) recommends keeping personal information, especially sensitive information, out of public generative AI tools. OAIC guidance on commercially available AI products
Under the Notifiable Data Breaches scheme, an AI leak can become an eligible breach if personal information a covered entity holds is accessed or disclosed without authorisation. Loss also counts if it is likely to lead to unauthorised access or disclosure. Serious harm to at least one person must be likely after any remedial action. OAIC guidance on the Notifiable Data Breaches scheme
If you reasonably suspect an eligible breach, assess it promptly and take all reasonable steps to finish within 30 days. Once you have reasonable grounds to believe an eligible breach occurred, give the OAIC a statement as soon as practicable. Notify affected people or those at risk of serious harm as soon as practicable. If neither option is practicable, publish the statement and take reasonable steps to publicise it. The notifiable data breach guide explains how assessment and notification work.
The Australian Signals Directorate (ASD) co-authored Deploying AI systems securely and Careful adoption of agentic AI services. These publications give teams deployment guidance. The Australian Prudential Regulation Authority (APRA) requires the entities it regulates to protect information in proportion to its sensitivity and criticality. CPS 234 Information Security also requires systematic control testing and notification of qualifying incidents. See what CPS 234 requires when a third party manages your information assets.
Securing AI Built Into Your Own Systems
An assistant built on your organisation’s documents inherits your permission model when retrieval checks the signed-in user’s access to each source. A connector may read broadly to build an index. Carry file permissions into retrieval so that the connector’s access never becomes the user’s access.
- Before connecting data, ask the source owner who needs access to each collection. Compare that list with effective access through inherited folders, groups and sharing links. Remove unnecessary grants and exclude restricted or unclassified collections until their owners approve them.
- Before go-live, use authorised test accounts from different roles to check what each can read and do. For a synthetic payroll file, confirm a payroll user sees the permitted answer and a general staff user receives neither its figures nor a source link.
- While the assistant runs, assign someone to review changes to users, permissions and connectors. Check that access revocations take effect in the index, cached answers and fresh responses. Keep the affected collection disconnected if those checks fail, and reconnect once the access tests pass.
Related reading
What is Prompt Injection? Risks and Defences
Hidden instructions in an email, web page or file can turn an AI assistant against you. See how prompt injection works and which defences hold up.
Shadow AI: Find and Manage Unapproved AI Use
What is shadow AI, and how much of it is already in your organisation? Find the AI tools staff use without approval and bring them under control.
How to Set Up Data Classification for AI Tools
Staff can only follow an AI data rule once they know what is confidential. Set up data classification levels, label your data and link it to AI tools.
What Are AI Guardrails? Types and Examples
AI guardrails limit what an assistant can say, reveal and do. The main types, worked examples, the tools that apply them and where they fail are all here.
embeddings
Embeddings is an Australian AI consultancy. We design, build and run AI systems inside the software, documents and data organisations already use, from offices in Perth and Melbourne.
About Embeddings