Most organisations choose a foundation model on benchmark scores and price, then discover the security, data use and licensing questions after the contract is signed or the weights are already in production. This guide sets out the security and risk criteria for comparing candidate models before you commit: hosted API models against open-weight models you run yourself, and one provider's offering against another. It is written for security architects, AI platform owners and procurement leads who sit on a model selection panel. It does not rank models or providers, and it does not cover the earlier decision of whether to build, buy or fine-tune, which has its own guide. The aim is a repeatable scorecard you can run again every time a new model version is released.
Key takeaways
- Select on evidence, not leaderboards. Public benchmark scores say little about how a model behaves under your prompts, your data and your attack surface; your own security evaluations must gate the shortlist.
- Deployment mode changes the risk owner. With a hosted model the provider holds the weights and much of the data path; with open weights you inherit model file integrity, runtime hardening and patching.
- Data use terms are a security control. Retention, training use, abuse monitoring access and processing region decide whether a model can see regulated data at all, so read them as carefully as a penetration test report.
- Documentation is a selection signal. Under the EU AI Act, providers of general-purpose AI models must give downstream providers information about capabilities and limitations, so a provider that cannot supply it is a risk in itself.
- Selection is never finished. Model versions are retired and replaced; pin versions, keep a fallback model qualified and re-run the scorecard on every change.
What model selection decides, and what it does not
By the time a selection panel meets, the route is usually settled: the organisation will consume an existing model rather than train its own. See the Build vs Buy vs Fine-Tune AI Models guide for that earlier choice. Selection then answers four narrower questions:
- Which deployment mode: a provider-hosted API, the same model through a cloud platform's managed service, or open weights run on infrastructure you control.
- Which model family and version: the specific model identifier you will pin in configuration, not a marketing name.
- Which commercial terms: the data processing, retention, residency and liability terms attached to the tier you buy.
- Which fallback: the second model you will qualify so that a retirement, outage or failed evaluation does not stop the service.
Selection does not replace the controls that sit around any model in production: input and output guardrails, gateway policy, agent permissions and monitoring. A well chosen model behind a weak integration still fails. The AI Gateway and LLM Gateway Guide covers the runtime layer.
Hosted API versus open weights: the risk shifts
The same model family can often be consumed in more than one way, and the risk profile changes with each. The table summarises who owns what.
| Risk area | Provider-hosted API | Managed service on your cloud tenancy | Open weights, self-hosted |
|---|---|---|---|
| Model weight integrity | Provider | Platform operator and provider | You: verify hashes and signatures, use safe file formats |
| Prompt and output data path | Leaves your boundary to the provider | Stays within the platform's regional service under your tenancy terms | Stays within your boundary |
| Retention and training use | Set by provider terms and tier | Set by platform terms and tier | Set by you |
| Inference runtime patching | Provider | Platform operator | You: serving framework, drivers, container images |
| Access control | API keys or tokens issued by the provider | Your cloud IAM roles and workload identities | Your network and service identities |
| Version stability | Provider retires versions on its schedule | Platform publishes its own availability lifecycle | You decide when to change |
| Safety tuning and abuse filtering | Provider layers, may not be configurable | Platform filters, often configurable | Only what you add |
Neither mode is inherently safer. Hosted models remove weight handling and runtime patching from your list but add a data processor, a key to protect and a retirement schedule you do not control. Open weights keep data in house but make you responsible for the model supply chain. The Open-Weight Model Security Guide covers file formats, loading settings and runtime hardening in depth; this guide only scores them at selection time.
The selection scorecard
Score each candidate against the same criteria, with evidence attached to every score. A criterion that cannot be evidenced scores zero, not "unknown".
| Criterion | What to ask for | Evidence that counts | Disqualifying finding |
|---|---|---|---|
| Data use and training | Are prompts, outputs and files used to train or improve models on this tier? | Contract clause or data processing addendum, not a blog post | Training use on regulated data with no opt-out |
| Retention and abuse monitoring | How long are inputs and outputs kept, who can review them, and can retention be reduced? | Documented retention period and access conditions | Undefined retention or human review without notice |
| Processing location | Where does inference run, and can it be pinned to a region? | Regional endpoint list and data residency terms | No region control where a transfer restriction applies |
| Provider documentation | Model card, technical documentation, intended use and known limitations | Model card fields such as licence, training data and evaluation results; downstream provider information | No statement of intended use or limitations |
| Security evaluations | Results of your own prompt injection, data leakage and jailbreak tests | Your test suite results at a fixed version | Failure on a must-pass test for the use case |
| Licence | Commercial use, field of use limits, user thresholds, attribution, derivative rules | Licence text and the model card license field | Licence forbids the intended use |
| Supply chain integrity | Where do weights come from, are they signed, which file format? | Publisher identity, hashes, signature bundle, safetensors or equivalent | Unsigned weights from an unknown publisher in a code-executing format |
| Access and identity | Can access use workload identity, scoped keys, IP restrictions and per-project separation? | Platform documentation and a test tenancy | Only a single shared long-lived key |
| Lifecycle | Version pinning, deprecation notice period, change logs | Published model lifecycle or deprecation policy | Silent model changes behind a fixed name |
| Incident handling | How will the provider notify you of a security incident or serious model issue? | Contractual notification clause and contact route | No notification commitment |
Weight the criteria by use case. An internal coding assistant with no customer data can accept looser retention than a claims assistant processing health information. Record the weighting decision so the next panel can see why a model passed.
Reading provider documentation
Documentation quality varies widely, and the gaps are informative. Three sources are worth requesting for every candidate.
- Model card: on public model hubs the model card is the repository README with a YAML metadata block. Hugging Face documents fields including
license,datasets,base_model(which identifies fine-tunes, adapters, quantised copies and merges) andmodel-indexfor structured evaluation results. Abase_modelchain tells you whose licence and whose training data you are really inheriting. The AI BOM vs Model Card vs Datasheet guide explains how these artefacts differ. - Regulatory documentation: under Article 53 of the EU AI Act, applicable from 2 August 2025, providers of general-purpose AI models must keep technical documentation (Annex XI), give downstream integrators information on capabilities and limitations (Annex XII), maintain a copyright compliance policy and publish a summary of training content. Models released under a qualifying free and open-source licence with public weights are exempt from the first two duties, but not from the copyright policy or the training summary, and the exemption does not apply to models with systemic risk. The European Commission's General-Purpose AI Code of Practice, published on 10 July 2025, includes a Model Documentation Form in its Transparency chapter: asking whether a provider has signed the Code, and for its completed form, is a fair selection question. See the EU AI Act GPAI Obligations Guide.
- Systemic risk evidence: providers of models designated as having systemic risk must also, under Article 55, evaluate the model with documented adversarial testing, assess and mitigate systemic risks, report serious incidents to the AI Office and ensure adequate cybersecurity for the model and its infrastructure. Ask what of that work can be shared under NDA.
Treat marketing claims ("enterprise grade", "secure by design") as zero evidence. A claim counts when it appears in a contract, a published policy or a test you ran.
Security evaluations that should gate the shortlist
Run the same evaluation suite against every candidate at a pinned version, in a test tenancy with synthetic data. The AI Security Evaluations Guide covers how to build and score the suite; for selection, focus on the tests that differ most between models.
| Test family | What it tells you at selection time | Related reference |
|---|---|---|
| Indirect prompt injection through retrieved content | How readily the model follows instructions embedded in documents or tool output | OWASP LLM01:2025; MITRE ATLAS AML.T0051 |
| System prompt and context leakage | Whether confidential instructions or other users' context can be extracted | OWASP LLM02:2025, LLM07:2025 |
| Tool call discipline | Whether the model calls tools outside the task or with malformed arguments | OWASP LLM06:2025 |
| Refusal and over-refusal balance | Whether safety tuning blocks legitimate work, pushing users to unsanctioned tools | NIST AI 600-1 Human-AI Configuration risk |
| Confabulation on your domain | Rate of confident wrong answers on questions with known answers | NIST AI 600-1 Confabulation risk |
| Structured output reliability | Whether output stays inside the schema your parser expects | OWASP LLM05:2025 |
Keep the pass threshold per test, not as one blended score. A model that is strong overall but fails your must-pass injection test is out for an agentic use case, however good its average.
Supply chain checks for open weights
OWASP LLM03:2025 Supply Chain lists vulnerable pre-trained models, weak model provenance, vulnerable LoRA adapters and unclear licence terms among its risks, and MITRE ATLAS tracks Supply Chain Compromise as AML.T0010, with a Model Repository sub-technique (AML.T0010.003). At selection time, four checks matter most:
- Publisher identity: confirm the repository belongs to the organisation that trained the model, not a lookalike namespace or re-upload.
- Integrity and signing: record the file hashes you evaluated. The sigstore model-transparency project, which builds on work with the OpenSSF, signs a model directory into a Sigstore bundle listing every file path and digest, and verification recomputes the hashes against the signed values. Where a publisher signs, require verification in your pipeline.
- File format: prefer weight formats that do not execute code on load, and reject candidates only available in formats that do, unless they are converted and scanned under control.
- Derivative chain: for fine-tunes, adapters and quantised copies, follow
base_modelback to the original and apply the strictest licence and provenance finding in the chain.
See the Model Supply Chain Guide and the OWASP LLM Top 10 LLM03 Supply Chain Guide for the controls after selection.
Where identity fits
Every hosted model is reached with a credential, and that credential is a non-human identity. Score candidates on whether they support short-lived workload identity rather than static keys, per-project or per-application keys with spend limits, and audit logs that show which key made which call. A model that can only be reached with one organisation-wide key forces you to build compensating controls in a gateway. The AI model provider API keys guide covers what to do when one leaks, and the AI API key abuse guide covers how stolen keys are used.
How to run a selection: phased approach
- Frame the use case (week 1): classify the data the model will see, the actions it can take, the users and the jurisdictions. This sets the weighting and the must-pass tests.
- Long-list and screen on terms (weeks 1 to 2): collect data processing terms, retention, region options and licences. Drop any candidate with a disqualifying finding before spending engineering time.
- Collect documentation (week 2): model card, downstream provider information, lifecycle policy and incident notification terms.
- Evaluate (weeks 2 to 4): run the security suite at pinned versions with synthetic data. For open weights, verify hashes and signatures before loading anything.
- Pilot behind controls (weeks 4 to 6): run the top candidate and the fallback through your gateway with logging on, a small user group and no production data until the pilot review passes.
- Decide and record: write a selection record with scores, evidence links, weighting, accepted risks and the named owner. Register the model and version in the AI inventory.
- Plan the exit: keep the fallback qualified, document how to switch, and test the switch. Rollback means pointing the gateway route at the fallback version, so make that a configuration change, not a code change.
Decision guidance
- Choose hosted when: the data is permitted to leave your boundary under the provider's terms, you lack GPU operations capability, and you need the provider's abuse filtering. Budget for key management, gateway policy and version change testing.
- Choose a managed cloud service when: you want hosted convenience but need your own IAM, private networking and the regional commitments you already hold with that cloud platform.
- Choose open weights when: data cannot leave your environment, you need a fixed version for a long period, or the use case needs fine-tuning under your control. Budget for model supply chain checks and runtime patching.
- Smaller organisations: usually do better with a hosted or managed model and a strict contract review than with self-hosting they cannot patch.
- Larger organisations: often run a portfolio: an approved list per data classification, with hosted models for general work and open weights for the most sensitive workloads.
Detection and measurement
Selection quality shows up after go-live. Track:
- Inventory coverage: percentage of model calls in production that go to a model and version with a completed selection record.
- Evaluation currency: share of production models whose security suite was last run against the version actually deployed.
- Unpinned usage: count of integrations calling a floating alias rather than a pinned version identifier.
- Fallback readiness: days since the fallback switch was last tested.
- Terms drift: number of provider term changes reviewed within 30 days of publication.
Log model identifier, version, key or workload identity and region for every call at the gateway, so an unexpected model change or region shift is visible.
Framework mapping
| Framework | Reference | How selection supports it |
|---|---|---|
| NIST AI 600-1 | GV-6.1-009, GV-6.1-004, GV-6.2-003 | Extend procurement due diligence to GAI risks; contracts covering usage rights, security and provenance; incident response plans for third-party GAI |
| NIST AI 600-1 | Value Chain and Component Integration; Information Security; Data Privacy | The GAI risks most directly scored by the scorecard |
| NIST CSF 2.0 | GV.SC-06, GV.SC-07 | Due diligence before entering supplier relationships; ongoing supplier risk monitoring |
| NIST SP 800-53 Rev 5 | SA-4, SA-9, SR-3, SR-5, SR-6 | Acquisition requirements, external services, supply chain controls and supplier assessment |
| ISO/IEC 27001:2022 Annex A | 5.19 to 5.23 | Supplier relationships, agreements, ICT supply chain and cloud service use |
| MITRE ATLAS | AML.T0010.003 | Supply Chain Compromise: Model Repository |
| EU AI Act | Articles 53 and 55 | Provider documentation and systemic risk evidence to request from GPAI providers |
Common failure patterns
- Leaderboard selection: choosing on a public benchmark and running no security tests on the organisation's own prompts and data.
- Terms read after go-live: discovering a retention period or training use clause once regulated data is already flowing.
- Floating aliases: calling a "latest" model name, so the model under test is not the model in production.
- Inherited licence surprises: selecting a fine-tune without tracing its base model, then finding a field of use restriction upstream.
- No fallback: a single qualified model, so a retirement notice or failed re-evaluation becomes an outage.
- Shared keys: one provider key across all applications, so a leak exposes every workload and spend controls are meaningless.
Practitioner checklist
- Classify the use case data, actions and jurisdictions before long-listing models.
- Collect data processing, retention, region and licence terms, and screen out disqualifying findings first.
- Request the model card, downstream provider documentation and lifecycle policy for every candidate.
- Run the same security evaluation suite against every candidate at a pinned version.
- For open weights, verify publisher, hashes and signatures, and trace the base model chain.
- Require workload identity or scoped, per-application keys for hosted models.
- Write a selection record with scores, evidence, accepted risks and an owner.
- Qualify and test a fallback model and make switching a configuration change.
- Re-run the scorecard on every version change or terms change.
Standards and references
- NIST: AI 600-1 Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile
- EU AI Act: Article 53 Obligations for providers of general-purpose AI models
- EU AI Act: Article 55 Obligations for providers of general-purpose AI models with systemic risk
- European Commission: The General-Purpose AI Code of Practice
- OWASP: LLM03:2025 Supply Chain
- NCSC: Guidelines for secure AI system development
- Hugging Face: Model Cards documentation
- Sigstore: model-transparency
Related NHI Mgmt Group resources: AI Security Evaluations Guide · Build vs Buy vs Fine-Tune AI Models · Open-Weight Model Security Guide · AI Vendor Security Questionnaire Template · NIST AI 600-1 Generative AI Profile Guide