If your company fine-tunes models, builds retrieval systems on its own documents or runs open-weight models, those assets need protecting. This guide explains the main threats to models and their data, and the controls that reduce them.
> Key points
- AI model security protects weights, training and retrieval data, system prompts and the pipelines that build and serve models.
- Key threats include theft of weights, extraction through APIs, poisoned data, tampered open-source models and data leaking through answers.
- Core controls: inventory and ownership, encryption and access logging, verified sources, data provenance, API monitoring, retrieval permissions and red-teaming.
What AI model security covers
AI model security is the protection of the assets that make an AI system work: the model weights, the training and fine-tuning data, the documents a system retrieves from, the system prompts and the pipelines that build and deploy them. It is a narrower field than overall AI security, which also covers attacks that use AI and staff misuse of AI tools.
Every company that fine-tunes a model, builds a retrieval system on its own documents or deploys an open-weight model is responsible for these assets. They can be stolen, tampered with or made to leak information, and the damage can be hard to detect because a compromised model may still appear to work normally.
The assets to protect
- Model weights. The learned parameters that define a model. For a company that trained or fine-tuned a model, they represent much of the investment.
- Training and fine-tuning data. Often includes proprietary, customer or personal data, and determines how the model behaves.
- Retrieval data and embeddings. The documents and vector databases that retrieval-augmented generation systems search to answer questions.
- System prompts and configuration. Instructions and settings that shape behavior and may contain business logic.
- Evaluation data and results. Test sets and benchmarks that reveal how the model was tuned.
- The pipeline. The code, libraries, infrastructure and credentials used to train, store and serve models.
Threat 1: theft of weights
Attackers or insiders can copy model files from storage, training clusters or deployment servers. Stolen weights let a competitor use your model without the cost of building it, or let an attacker study it offline to find weaknesses.
- Store weights encrypted, in access-controlled locations, with access limited to named roles.
- Log and alert on downloads and copies of model files.
- Separate training, staging and production environments, and keep credentials out of code.
- Apply insider risk controls to staff with access to model files, including offboarding checks.
Threat 2: extraction and distillation
A model does not have to be stolen to be copied. Attackers can query it at scale through an API and use the answers to train their own model, a technique called distillation when done adversarially. They can also try to infer what data the model was trained on. OpenAI described its own measures against adversarial distillation this month, as we covered in our report.
- Rate-limit API access and monitor for systematic, high-volume or unusually broad querying.
- Require authentication and tie usage to accounts, with terms of service that prohibit training on outputs.
- Watch for accounts that probe many topics in patterns typical of data collection rather than normal use.
Threat 3: poisoned data and models
Data and model poisoning is on OWASP’s 2026 Top 10 for LLM applications. Attackers insert malicious or misleading examples into training, fine-tuning or retrieval data so that the model learns a hidden behavior, such as responding in a particular way to a trigger phrase, or simply gives wrong answers on certain topics.
- Track where every dataset came from and who changed it, a practice known as data provenance.
- Restrict who can write to training data and retrieval sources, as you would for production databases.
- Test models for unexpected behavior after each fine-tuning run, including trigger-style tests.
- Be cautious with data scraped from the open web or contributed by users.
Threat 4: a compromised supply chain
Supply chain risk is also on OWASP’s list. Many companies download open-weight models, datasets and libraries from public hubs. A tampered model file can contain malicious code that runs when the model is loaded, and a popular library can be compromised upstream.
- Download models only from trusted publishers and verify checksums or signatures where available.
- Prefer model file formats designed not to execute code on load, and scan files before use.
- Keep an inventory of models, versions and sources, sometimes called an AI bill of materials.
- Pin library versions and monitor them for known vulnerabilities.
Threat 5: leaking data through the model
Models can reveal sensitive information in their answers: personal data memorized from training, confidential documents surfaced by retrieval, or the contents of system prompts. OWASP’s 2026 list adds hidden context exposure as a new risk, alongside sensitive information disclosure and vector and embedding weaknesses.
- Remove or mask personal and confidential data before training or fine-tuning where it is not needed.
- Enforce document-level permissions in retrieval systems, so users only get answers from documents they are allowed to see.
- Do not put secrets such as API keys or credentials in system prompts, and assume prompts can be extracted.
- Test systems with attempts to extract training data, documents and prompts.
Threat 6: manipulation at run time
Even a well-protected model can be manipulated through its inputs. Prompt injection, the top risk on OWASP’s list, can make a model ignore its instructions, reveal data or misuse tools. Model security therefore has to include the application around the model.
- Treat all external content the model reads as untrusted.
- Limit the actions and data a model can reach, and require approval for sensitive actions.
- Monitor outputs for signs of manipulation or data leakage.
Security across the model lifecycle
- Sourcing: verify where base models, datasets and libraries come from before they enter your environment.
- Data preparation: record provenance, remove data you do not need, and control who can change datasets.
- Training and fine-tuning: run in isolated environments with logged access and protected credentials.
- Evaluation: test for poisoning, data leakage, prompt extraction and harmful behavior before release.
- Deployment: serve models behind authentication, rate limits and monitoring, with least-privilege connections to other systems.
- Operation: monitor usage and outputs, patch dependencies, and re-test after updates.
- Retirement: securely delete old weights, datasets and embeddings that are no longer needed.
Who should own model security
Model security sits between data science, engineering and security teams, and it often falls through the gaps. The data team knows the data, the engineering team runs the infrastructure and the security team knows the threats, but nobody owns the model as an asset. Assign a named owner for each model in production, responsible for its inventory entry, access list, testing and incident response, and give the security team the authority to set minimum standards that every model must meet before release.
For companies that only use AI through vendors, ownership still matters. Someone should hold the list of AI services in use, the data each one receives and the contract terms that govern it.
A model security checklist
- Inventory every model, dataset, retrieval source and pipeline, with an owner for each.
- Encrypt and restrict access to weights, data and embeddings; log access.
- Verify the source and integrity of third-party models and libraries.
- Track data provenance and lock down write access to training and retrieval data.
- Rate-limit and monitor model APIs for extraction patterns.
- Enforce permissions in retrieval and keep secrets out of prompts.
- Red-team models before release and after significant changes.
- Include model incidents in your incident response plan.
Signs a model may be compromised
- Unexpected changes in behavior after an update, retraining or a change to retrieval data.
- Answers that consistently favor a particular product, source or outcome without reason.
- Responses that reveal internal documents, prompts or personal data.
- Unusual spikes in API usage, or queries that systematically cover many topics.
- Model files or datasets modified outside approved processes.
Treat any of these as a possible incident: preserve logs, roll back to a known-good version where possible, and investigate before restoring service.
Frameworks to use
The OWASP Top 10 for LLM Applications 2026 lists the main technical risks, including supply chain, data and model poisoning, hidden context exposure and vector and embedding weaknesses. The NIST AI Risk Management Framework, with its Govern, Map, Measure and Manage functions, provides a governance structure, and its Generative AI Profile adds specific guidance for generative models.
Frequently asked questions
Do we need model security if we only use AI through an API? Less of it. The provider protects the model itself, but you are still responsible for your prompts, retrieval data, fine-tuning data and how you connect the model to your systems.
What is model distillation? Training a new model on another model’s outputs. Done with permission, it is a common way to make smaller models. Done without permission, it is a way to copy a competitor’s model.
Who is responsible if a vendor model leaks our data? Contracts decide much of this, so read the data protection and incident terms. Regulators generally expect you to choose vendors carefully and limit what data you send, even when the vendor is at fault.
What is data poisoning? Deliberately inserting bad data into what a model learns from, so that it behaves incorrectly or in a hidden way chosen by the attacker.
Are open-weight models riskier? They carry supply chain risks if downloaded from untrusted sources, but they also let you inspect and control the model. Verify sources and scan files. Our AI glossary explains open-weight and related terms.
What it means
For business
Fine-tuned models and retrieval data are valuable assets. Protect them like source code and customer data, with owners, access controls and logs.
For industry
As companies build on open-weight models and retrieval systems, AI supply chain security is becoming a standard part of security programs.
For workers
Engineers and data teams handling models need security training on data provenance, model sources and secrets management.
Sources
- OWASP: Top 10 for LLM Applications 2026
- OWASP: Top 10 for Agentic Applications 2026
- NIST: AI Risk Management Framework
Bilal Malik is a contributing writer at Modern AI Today covering consumer AI, digital media and the creator economy. A content creator and marketer with a background in psychology and music, Bilal works with Pixara. Based in San Francisco.




