LLM supply chain security with promptfoo

promptfoo pairs static scanning of model files with behavioral tests against the model you actually run, which covers backdoors, silent API model changes and safety regressions after fine-tuning. This page explains what each check catches, what it misses, and what your team needs to set it up.

On this page

LLM supply chain security with promptfoo starts before a model is loaded

Use promptfoo for LLM supply chain security when your team pulls third-party or fine-tuned models into a product and needs evidence that each one is safe to use. It combines static scanning of model files with behavioral testing of the model's responses, so you can check the artifact before it is loaded and the behavior before it reaches users. Teams need this whenever a model arrives from a public hub, a vendor, a partner or an internal fine-tuning run, because the file can carry executable code or hidden behavior that a quality evaluation alone would not reveal. The static side is ModelAudit, which the sibling sections cover in depth. This section explains how the two halves fit together and what each one can and cannot show you.

promptfoo's guidance maps this topic to OWASP LLM03. Confirm which edition your policy cites before you rely on that number. The OWASP Top 10 for LLM Applications 2026, published in August 2026, lists Excessive Agency as LLM03 and Supply Chain as LLM04, so a control reference that says LLM03 for supply chain may point to a different edition. Check whether your auditors, customers or internal standard use the 2026 numbering and align your control IDs to it. The threats this approach targets are trojans and backdoors hidden in model artifacts, model drift over time and safety regressions introduced by fine-tuning. Static scanning looks inside the file for the first of these, while behavioral testing is where drift, regressions and many backdoors show up in what the model actually does.

Set the acceptance rule before intake, so a scan result and a test run are required before any model reaches a staging environment. Record the model source, the exact version or revision, the file format, the scan result and the behavioral test run against the weights you plan to deploy. Rerun the behavioral tests after every fine-tune, quantization or change to a hosted endpoint, because an identifier can stay the same while the model behind it changes. Ask your model provider how they announce model updates and whether they offer pinned versions you can test against. The promptfoo supply chain guidance lists the test categories to start from.

Static scans and baselines gate each model before release

The flow starts when a model file arrives from a supplier or public hub. ModelAudit scans the file before anything loads it, and unsafe findings send it to quarantine. Clean files are loaded in staging, where promptfoo runs a behavioral baseline of evals and red team tests. The results are compared with the approved baseline for the same model. A regression goes to quarantine, and a result with no regression moves to release approval. Scheduled reruns and provider change checks feed back into the comparison, so a silent change on the provider side surfaces for review.

Model intake path from static scan through baseline comparison to release and reruns.

Which check fits which supply chain risk

This table compares the three checks in promptfoo's LLM supply chain approach by what each inspects, when it runs, what it cannot show and when to use it. Read it by stage: the static scan looks at files before loading, behavioral testing looks at what the loaded model does, and monitoring watches for change over time. The main takeaway is that file scanning and behavioral testing answer different questions, so teams usually need both before a model reaches production.

CheckWhat it inspects and when it runsWhat it cannot showWhen a team should use it
Static model file scan with ModelAuditUnsafe serialized content inside model files, checked before the file is loadedBehavior after loading. Confirm format coverage and findings against current ModelAudit documentation.At intake, before a supplier or downloaded model is loaded or promoted to any environment
Behavioral testing with promptfoo evals and red team probesModel outputs after loading, including changed behavior and safety regressionsAbsence of a backdoor. A clean run shows only the inputs that were tested.After fine-tuning, after a provider changes a model version, and before each release
Continuous monitoring in promptfoo EnterpriseOngoing results across runs, delivered through the Enterprise platform after deploymentBehavior that no configured test exercises. Monitoring reports only what it runs.When several teams need shared, ongoing results under access control and SSO
Using the checks togetherStatic scan at intake, then behavioral tests, then monitoring after deploymentProof that a model is safe. Each check covers a different stage of the supply chain.When adopting a third-party or fine-tuned model, to cover both file and behavior risks

How LLM supply chain security catches backdoors and silent model changes

Static scanning and behavioral testing answer different questions, so a model intake process needs both. Static scanning inspects the model artifact before anything loads it. It looks for signs of executable code, suspicious embedded content and structural problems inside the file, and it decides whether that file may enter a workstation or pipeline. Behavioral testing asks what the deployed model does when it receives your prompts and the attack patterns you care about. promptfoo sends those prompts to the model and records the responses, so a backdoor that stays dormant in the file can still appear as a behavior change under a specific trigger. The catch is that this only happens if your test set includes that trigger, so the two checks complement each other and neither replaces the other.

A fine-tuned model can pass a generic scan and still show a safety regression. A static scan reads the file format, serialized objects and embedded code. It cannot tell you whether fine-tuning weakened refusals, made the model more willing to follow instructions hidden in documents, or changed how it handles your system prompt. Those changes only show up in responses. Run the same red team and eval suite against the base model and the fine-tuned model, and compare results for the categories your use case depends on. Ask the team that produced the fine-tune which data it used, and make sure the suite covers the behaviors that data could have changed. For each model format and provider you use, confirm what the scanner covers and what the behavioral suite can reach. The promptfoo LLM supply chain security guidance describes how the two check types fit together.

The hardest case is a provider that changes a model behind an unchanged API name. The request still names the same model, the endpoint still responds and nothing in your pipeline fails, yet the outputs may shift. A one-time test cannot catch this. The control that does is a stored baseline: save the responses your suite produced on a known-good date, then rerun the same suite on a schedule and compare the new results against that baseline. Record the prompts, the model identifier, the generation settings and the run date with each result, so a difference can be traced to the model or to your own test edits. Decide in advance who reviews a drift alert, which failing cases block a release and how often reruns happen. Those choices set the ongoing cost of this control, since every rerun uses model calls and reviewer time. Ask your provider how it announces model updates and whether it offers fixed model versions, because the answer determines how often you need to rerun.

Three LLM supply chain failures and the check aimed at each

Four supply chain failures reach an LLM application through different doors: the model file, the model's behavior on certain inputs, a hosted model that changes under you, and a fine-tune that weakens safety. Each check below produces its own evidence and leaves one question open, so read them together before setting intake, monitoring and release gates.

Trojaned model files from public hubs

Pickle and PyTorch model files can execute code the moment they are loaded, which makes a public download a code delivery path. Run ModelAudit as a static scan before load, before any loader opens the file, and record the file hash with the result. Evidence: a scan report tied to that exact artifact, supporting an accept or reject decision. It cannot prove the weights are clean, because a file with no flagged patterns can still behave badly once it runs.

Backdoors that wake on specific inputs

A backdoored model answers normally until a particular phrase, format or token appears in the input, so ordinary evaluation sets miss it. Write targeted probes around suspected triggers, such as rare tokens, odd casing and embedded instructions, and run them against the exact model version you deploy. Evidence: per-probe logs showing the output and the expected behavior for each trigger. It cannot prove the absence of a backdoor, because a trigger you did not think to probe stays untested.

LLM supply chain docs

Silent changes to hosted models

A provider can update a hosted model under the same name, so your prompts run against different behavior with no change on your side. Schedule baseline reruns of a fixed test set against the provider on a cadence you set, and store each run with any model identifier the API reports. Evidence: dated result sets diffed against a stored baseline, so a shift shows up as a changed score or answer. It cannot prove why the provider changed, and a result within your tolerance may still hide a change that matters for your use.

Safety loss after fine-tuning

Fine-tuning can weaken refusals and guardrails the base model had, even when the training data looks harmless. Run the same red team configuration against the base model and the tuned model, with identical plugins, strategies and grading. Evidence: side-by-side results by category showing where the tuned model is weaker. It cannot prove the tuned model is safe in general, because it only measures the attack categories and strategies you selected.

Setting up LLM supply chain security with promptfoo in order

This sequence builds the intake and monitoring process for model files and model endpoints, with each step depending on the one before it. Each step closes with a check you can record, from the runtime version to the accept or reject decision and the scheduled comparisons that catch later changes. Run the steps in a test environment first, then carry the same configuration into your production pipeline.

  1. Confirm the Node.js runtime version

    The platform engineering team checks the Node.js version on every host or image that will run promptfoo and ModelAudit. The promptfoo npm release 0.124.1, published on 8 October 2026, requires Node.js 22.22.0 or newer, so that is the minimum to confirm. Check the promptfoo package on npm for the current release before you install, because a newer release may require a different runtime. The step is done when node --version reports a version that meets the requirement on every scanning host.

  2. Install promptfoo and ModelAudit

    The platform team installs promptfoo and ModelAudit into a controlled scanning environment and pins the versions, so that scan results can be reproduced later. Confirm the install method for ModelAudit against the current promptfoo documentation, because the supported route depends on your setup. Record the installed versions in your model intake log. The step is done when both tools run on the scanning host and their versions are written down alongside the intake record.

  3. Define the model intake rule

    The security lead and the model owner write the intake rule before any model file is scanned. The rule lists the file formats your team has approved, the sources a model may come from, and an allowlist of named repositories, buckets, registries and model identifiers. Anything outside the rule is rejected at intake without being scanned. Keep the rule in version control so every change has a named owner. The step is done when an approver signs off on the rule and a test model from outside the allowlist is rejected in a dry run.

  4. Run static scans on samples

    The security engineer runs ModelAudit against two samples: a known-good model from an approved source and a known-bad test file that the team has built to contain a flagged pattern. Build and store the known-bad sample only in an isolated scanning environment, and label it clearly so nobody loads it by mistake. Confirm that the scan flags the bad sample and passes the good one. A clean result on a real model does not prove the model is safe, because static scanning does not observe behavior. The step is done when both reports are saved with the scanner version and the team agrees the known-bad sample is caught.

  5. Record behavioral baselines for endpoints

    The evaluation owner runs promptfoo evaluations against each approved model or provider endpoint and saves the outputs as the baseline. Use test cases that cover your application's own tasks, plus safety prompts drawn from your red teaming plan, so later comparisons can detect drift in behavior that a file scan cannot see. Record the endpoint identifier, the model version string the provider reports and the configuration used. The step is done when each approved model or endpoint has a saved baseline run that a reviewer can open and reproduce.

  6. Schedule comparisons against baselines

    The platform team wires the baseline comparisons into a scheduled job in the CI system or scheduler your organization already operates, so the same test set runs against each endpoint at a fixed interval. Configure the job to fail or raise an alert when pass rates drop or outputs move beyond the tolerance your reviewers agreed. Set the interval and the alert recipients in your own runbook. The step is done when a scheduled run has completed against each endpoint and a deliberate change to a test case produces the expected alert.

  7. Document the accept or reject decision

    The model owner and the security approver record a decision for each model: accept, reject, or accept with conditions, citing the static scan result, the baseline and the intake rule. Store the decision, the scan reports, the baseline outputs and the job logs in a location your audit team can reach, with access controls that match the sensitivity of the data involved. Set the retention period in line with your own records policy. The step is done when every approved model has a decision record linked to its evidence and a named owner who reviews it whenever the model or endpoint changes.

Where the scanner and tests run: workstation, shared server or Enterprise

The CLI is the lightest option. promptfoo runs on the engineer's machine, and evals run locally and talk directly with the model under test. Prompts, outputs and scan results stay on that machine, apart from the calls sent to the model under test. It suits individual intake reviews, early evaluation work and exploratory red teaming, where one person runs the scans and reads the results.

  • Data path: Test traffic travels between the workstation and the model under test, so check that path against your data handling policy before any sensitive data is used.
  • Results visibility: Results stay in local files, so a colleague sees them only when someone shares the output. There is no shared history.
  • Access control: Protection depends on the workstation's own controls, such as disk encryption, operating system accounts and who holds the model API keys.
  • Consistency: Each engineer may configure scans differently, so keep shared configuration files under version control and run the same commands in CI where gates matter.
  • Best fit: Low, individual volume and a governance model that accepts local records as supporting evidence.

Confirm where the model API keys are stored and whether your policy allows test data to reach the model provider from a workstation.

Protecting scan results, credentials and test data

The risks in this section sit where promptfoo touches your environment: provider keys that authorize runs, model files from outside your organization, stored results, prompts sent to providers and evidence kept for later review. Each card names one control and the question to answer before the first scan runs.

Provider API keys

Evals and red team runs call your model providers with live keys, so each run holds credentials that can spend budget and reach data. Keep those keys in your existing secrets system, inject them into the CI job or runner at execution time, and keep them out of promptfoo config files. Use a dedicated key for test runs, tied to a test account with a spending cap and no access to production data. Confirm that logs and saved results do not echo key values.

Untrusted model files

A downloaded model file is the attack input, so the scan itself parses hostile content. Run ModelAudit on an isolated host, container or sandbox with no production credentials, no write access to your model registry and no route to internal networks. Pickle-based formats can execute code when loaded, so a clean scan is one input to the accept or reject decision, not the whole decision. Rebuild the scan host between batches and keep quarantined files out of shared storage until they pass.

LLM supply chain docs

Results storage and access

Eval outputs and red team reports often contain prompts and responses that reveal how your application behaves on sensitive topics. The self-hosted server keeps data in a local SQLite database that cannot be shared across replicas, and it has no RBAC, no built-in authentication and no SSO. It is not recommended for production use. If several teams need shared results with access control, confirm what the Enterprise edition provides for your deployment, and restrict file system access to the database and exports.

Self-hosting docs

Test data sent to providers

promptfoo runs on your machine and talks directly with the models you configure, so every test prompt is sent to those providers. Red team prompts can describe sensitive scenarios, and model outputs can repeat personal or confidential data found in test sets. Use synthetic or redacted datasets where possible, check each provider's data handling terms for the account type you use, and confirm that any grading model is also approved. Record which providers received which datasets so the list feeds your vendor review.

Baselines and audit evidence

Baselines, scan reports and red team results are the evidence that a model was tested before release. Decide how long each artifact is kept, where it is archived and who may delete it, and store the promptfoo version, config and model identifier beside each report. DeployOpen prepares these controls and evidence but does not issue audit reports, so your independent auditor decides whether the evidence is sufficient. Confirm retention settings in your own environment before the first scan.

Questions buyers ask before hiring help with LLM supply chain security

What does the free promptfoo Community edition include?

The Community edition is free and includes all LLM evaluation features, all model providers and integrations, and red teaming with 10k probes per month, along with community support. promptfoo is licensed under the MIT license, so your team can run the tool inside its own infrastructure without a license fee for the tool itself. Check the promptfoo pricing page for the current terms before you plan scan frequency. The probe allowance matters most for red teaming, because a large test suite or frequent scheduled scans can use it up quickly. Community support does not include the SLAs that come with Enterprise priority support, so decide early which failures need a faster response. During scoping, we size the scan plan against the probe allowance so you can see whether the free tier covers your schedule.

What does promptfoo Enterprise add, and how is it priced?

Enterprise adds team sharing, teams-based access control and SSO, custom roles and permissions, continuous monitoring, a centralized guardrail dashboard, remediation recommendations and priority support with SLAs. Pricing is custom, so the cost depends on the features, deployment model and support level you choose, and it is set through the vendor's sales process. On-Premise runs the Enterprise functionality on your own infrastructure with complete data isolation and a dedicated deployment engineer. Ask for a written quote that names each feature you need, the deployment model and the support terms. Then compare that quote with the Community setup plus the internal effort of running the same controls yourself, including access reviews, monitoring and reporting.

What drives the effort of an LLM supply chain security project?

Effort depends on how many model sources you have, which file formats they use, how many providers you test, how large the test suite is and how many approval gates your release process needs. Each driver adds scoping, configuration, test design and review time. For example, an illustrative project with two sources, one file format and one approval gate needs far less work than one covering many hosted and self-hosted models across several release stages. Cost has two parts. DeployOpen is paid for planning, configuration, test suite design, pipeline gates and handover. Your team is paid in time for the model inventory, provider access and sign-off decisions. The tooling itself is open source. Ask for a written scope that states each driver as a count, so the quote can be checked line by line against what you asked for.

How long does an LLM supply chain security project take to finish?

The timeline follows the same drivers as effort: the number of model sources, formats, providers, test suite size and approval gates. Those drivers also set the order of work, since model inventory and provider access sit at the start and hold up everything after them. No duration applies to every project, so ask for a written timeline with milestones for inventory, scanning setup, test suite build, gate integration and handover. Each milestone should name the client input it depends on, such as provider keys or a named policy owner, and the date that input is due. A timeline without those dependencies is hard to check, and it is hard to hold anyone to a date when the inputs sit with other teams.

What does our team need to provide before the work starts?

Four inputs carry most of the early work, and they should be ready before scoping closes:

  • A model inventory listing every model in use or under evaluation, with its source, file format and version.
  • Provider access, meaning API keys or endpoints under your control, with the rate limits your team agrees to.
  • Test accounts for each application or endpoint under test, with the roles and data the tests need.
  • A named policy owner who signs off on pass and fail criteria and on accept or reject decisions for models.

Missing items push back the start of testing, so confirm each one during scoping. Credentials should stay in your secrets store, and access should be limited to the people and systems that need it for the engagement.

Can our own engineers run LLM supply chain checks without a partner?

Yes, for the open-source tooling. promptfoo runs from the command line, as a library and in CI/CD pipelines, so a team with the right skills can install, configure and run it in its own environment. The skills include command-line and Node.js work, familiarity with model file formats and their loading risks, and the judgment to write behavioral tests and grading rules that match your product. Upkeep is what teams most often underestimate. Someone has to rerun scans, update baselines when a provider changes a model and keep the tooling current. Decide whether that person and that time exist before you choose. A partner can cover setup, test design and handover, so the internal owner can run the program alone afterwards.

What recurring work follows go-live for model and provider testing?

Three kinds of work recur after go-live: scheduled reruns, baseline updates and upgrades. Reruns cover new model files, new fine-tunes and the scheduled behavioral suite, and each cycle uses compute and reviewer time. Baselines need updating whenever a provider or model changes, because a silent change in a hosted model can shift results, and an outdated baseline then flags normal behavior or hides a real regression. Upgrades keep promptfoo and its runtime current. The project publishes release notes on GitHub, and someone needs to read them, assess their impact and retest. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, so you can decide who carries each task.

What does LLM supply chain testing catch, and what does it miss?

Static scanning catches unsafe content in model files before anything loads them, such as serialized code that runs on load and suspicious patterns in weights and metadata. Behavioral testing covers what a file scan cannot see: backdoors that appear only on specific inputs, silent changes in a hosted model's behavior and safety regressions after fine-tuning. Both have limits. A clean scan does not show that a model is free of backdoors, and a passing test suite only covers the cases someone wrote. Expect the written scope to name the threat model and the test categories, and expect the final report to state what was not tested and why.

What static and behavioral testing cannot prove

Static scanning and behavioral testing each answer a narrower question than whether a model is safe. The cards below set out what each method can establish, where it stops, and what to confirm in your own environment before a passing result feeds a release decision.

Static scans cannot prove absence

ModelAudit inspects file contents and matches known patterns, such as unsafe pickle opcodes or suspicious operators. A backdoor stored in ordinary-looking weights has no such pattern, so a clean report only shows that no known signature matched. Keep static results as one intake gate, separate from any safety claim. Confirm which formats and checks apply to each model type you accept, using the ModelAudit and promptfoo docs for the version you run.

Behavioral tests sample the input space

A behavioral suite sends a finite set of prompts to the model and grades each response. It can show that a trigger was absent from the samples, but a trigger phrase nobody wrote into a test stays invisible. A clean run is supporting evidence only. Confirm which languages, user personas, attack strategies and trigger candidates your suite covers, and store the suite version with each result so the coverage claim can be audited later.

LLM graders need calibration

Some promptfoo assertions use an LLM to judge whether a response is unsafe, off-policy or degraded. That grader can miss a poisoned response or flag a safe one, so its verdicts carry error of their own. Calibrate the grader before you trust its pass rate. Label a sample of responses by hand, measure how often the grader agrees with those labels, and pin the grader model and rubric in your config. Confirm with your provider how the grader model is versioned.

Silent provider changes need baselines

A hosted model can change behind the same name, and the change appears only as different outputs. Drift is detectable when the same baseline suite reruns against the model and the new results are compared with a stored run. Detection depends on a baseline rerun and a stable model identifier. Confirm with your provider whether the identifier pins a fixed model snapshot and how the provider announces changes to it.

LLM supply chain docs

Format and version coverage varies

Scanner coverage is tied to specific file formats and library versions. A format that ModelAudit parses only in part, or a serialization variant it does not recognize, can pass with less inspection than you expect. Map each model type you accept to the checks that apply to it. Confirm coverage for every format in the ModelAudit and promptfoo docs for the version you run, and reject any format you cannot inspect.

Confirm the OWASP edition

promptfoo's LLM supply chain guidance maps the topic to LLM03, but the 2026 edition lists Excessive Agency at LLM03, Supply Chain at LLM04 and Data and Model Poisoning at LLM05. Confirm which edition your policy cites before you write the control reference. Check the numbering against the published list, record the edition and date in your control mapping, and update the mapping when the list changes.

OWASP 2026 Top 10

How DeployOpen scopes and delivers LLM supply chain security

DeployOpen plans and builds LLM supply chain checks with promptfoo inside your own infrastructure. Engagements pair static scanning of model files before they are loaded with behavioral tests against the model you plan to use, so both suspicious artifacts and behavior changes surface before release.

How we scope

  • The written scope lists which model files, model sources and endpoints are in scope before work starts.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before any work begins.
  • Scope records which behavioral risks are tested, such as backdoors, silent API model changes and post-fine-tuning safety regressions.

How we build

  • Static scans of model files run before any artifact is loaded into a training, evaluation or serving process.
  • Behavioral test suites run against the model endpoint, comparing outputs with a baseline for drift and safety regressions.
  • promptfoo runs locally, so evaluation requests go directly from your environment to the model under test.

How we hand over

  • Handover includes the promptfoo configurations, scan settings, test suites and gating rules used in your environment.
  • Documentation covers how to run scans and tests, read results and decide whether a model is accepted or rejected.
  • DeployOpen prepares evidence for your compliance assessment; auditors and certification bodies issue any formal opinion.

How we support

  • Ongoing support is available as a retainer for model intake reviews, upgrades and rescans as models change.
  • Retainers can also cover continuous testing of promptfoo suites as providers update their models.
  • Upgrades of promptfoo and its scanners are planned before they reach your pipelines.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.