Scanning models in S3, MLflow and JFrog before anything loads them
Models usually reach training or serving from a bucket, a registry or an artifact repository, and the first load is often the moment a hidden problem runs. ModelAudit can scan model files where they are stored, so the check happens before anything loads them. The decision that matters is where the gate sits. A scan run only on a developer's laptop misses files uploaded by a pipeline or another account. Place the scan at the point where a model is promoted into a location that training jobs or inference servers read from, and give the scanning identity read access only, so the check cannot change what it inspects. Ask your platform team which identity the job will use, which bucket prefixes and registry stages it covers, and whether a rejected model is quarantined or only reported.
At a high level, ModelAudit inspects the model file without loading it into the framework that would normally run it. It examines the file's structure and contents for signs that loading it could run code or behave in ways the publisher did not intend, then reports its findings for a reviewer to act on. That report feeds the intake decision. Static analysis has limits, and a clean result only covers what the scanner understands, so pair it with a source allowlist and a record of who published each artifact.
promptfoo is MIT licensed, and its promptfoo introduction states that it runs completely locally, so evaluations run on your machine. Confirm that the scanning path in your own environment matches this before you rely on it. Confirm against the current documentation for the ModelAudit version you install: which storage sources are supported, how each source authenticates, and which flags control scope and output. Record that version in your intake procedure, because source support changes between releases and a scanner that silently skips a path gives false comfort.
How ModelAudit moves from registry to accept or reject
The flow starts at the model source: an S3, GCS or R2 bucket, the MLflow Model Registry, JFrog Artifactory or DVC-tracked files. These sources sit outside your control, so the first hand-off is a copy pulled across the trust boundary to a scan host inside your network. Check who can write to each source and that the scanned copy matches what gets promoted. ModelAudit scans that copy and the decision step accepts or rejects it. Only accepted artifacts reach the serving or training environment. Rejected artifacts stay on the scan host and are never loaded.
Only artifacts that pass the scan reach serving or training.
Which model source to scan and what to confirm for each
This table compares six places where model files and registry entries commonly live, and what you must confirm before pointing ModelAudit at each one. Read each row as a checklist: confirm the access method, the credentials, and whether a specific version or digest can be addressed, because a scan of a moving tag tells you little about the file you deploy. Confirm every source against the current ModelAudit documentation before you rely on it.
| Source | How the model is typically reached | What to confirm | When it fits best |
|---|---|---|---|
| S3 and S3-compatible buckets | Object keys in a bucket, read through AWS credentials or a compatible endpoint URL. | Credential scope, endpoint for S3-compatible stores, bucket versioning, and whether a version ID can be pinned. | Models already produced in your AWS account or an on-premises S3-compatible object store you operate. |
| Google Cloud Storage | Objects in a Cloud Storage bucket, read with Google Cloud credentials. | Service account or workload identity permissions, bucket object versioning, and whether a generation number can identify the exact object scanned. | Teams whose training pipelines already write checkpoints to Cloud Storage. |
| Cloudflare R2 | Objects in an R2 bucket, usually through an S3-style endpoint and API token. | Token scope and bucket binding, the account endpoint, and whether object versions or an immutable reference are available for pinning. | Teams that already keep model artifacts in R2 and need to scan them in place. |
| MLflow Model Registry | A registered model name and version, resolved through the MLflow tracking server API. | Tracking server URI and auth, whether a model version or its artifact URI is pinned, and who may read the registry entry. | Teams that promote models through the registry and want a scan gate at each stage transition. |
| JFrog Artifactory | A model file in an Artifactory repository, fetched through its repository path and an access token. | Repository type and path, token or API key scope, whether the repository is local or remote, and whether checksums can pin the exact file. | Organizations that already use Artifactory as the approved source for third-party packages and models. |
| DVC-tracked files | A pointer file in Git that names a content hash, with the data fetched from the DVC remote. | Which remote holds the data, credentials for that remote, and whether the Git commit and DVC hash pin the exact content. | Teams whose datasets and model files already live under DVC and Git review. |
Why the scan host should fetch models before serving systems load them
Scan each model on a dedicated host before any serving system can load it. Scanning inside the serving cluster keeps the workflow short and reuses existing network paths and credentials, but the artifact then lands on a machine that holds production secrets and accelerator access, and the scan runs with the same permissions as the model server. A dedicated scan host downloads or mounts the artifact from S3, MLflow or JFrog Artifactory, runs the scan, and only then allows promotion. The cost is an extra hop, extra storage and one more component that someone must patch and monitor. Ask your platform team whether the serving cluster can be restricted to pull only from an approved location.
The scan host needs three things. First, a network path to the registry, limited to the specific bucket, tracking server or Artifactory repository it scans. Second, read-only credentials scoped to those same resources, so the scanner cannot modify or delete what it inspects. Third, local disk large enough for the biggest artifact you accept, plus working space during the scan. Check the size of your largest model before sizing the disk. Downloads should land in a quarantine location, such as a separate bucket prefix or repository path that serving systems cannot read. Promotion to the serving path becomes a separate step that happens only after an accept decision, so unscanned files never sit where the cluster pulls from.
A scan result should bind to one exact artifact, not to a file name. A pass recorded against a path proves little if the same path later points to different bytes. Store the content hash of the scanned file with the result, together with the registry's version identifier, such as the S3 object version ID where versioning is enabled, the MLflow model version or the Artifactory checksum. Confirm which of these fields your registry exposes. Before loading, the serving pipeline should compare the hash of the file it is about to use with the hash that was scanned, and stop if they differ. Also ask whether your registry lets anyone overwrite an approved version. If it does, turn on versioning or immutability controls so a later upload creates a new version that needs its own scan.
Setting up ModelAudit scans against a bucket or registry
This sequence sets up ModelAudit so that scans of models in S3, MLflow and JFrog run from a read-only identity, produce a recorded result, and feed an accept or reject decision. Each step ends with a check you can run, so the scan host is proven before any supplier model reaches a production path.
Confirm source and version addressing
The platform owner and the security reviewer agree in writing which bucket prefixes, MLflow registered models and JFrog Artifactory repositories are in scope. For each source, record how an artifact is addressed: by object key, registry version or digest. Ask the source owner whether those versions can be overwritten, because a mutable tag can point to a different file later. Done when one in-scope artifact resolves to the same file hash on two separate lookups.
Create a read-only scan identity
The platform team creates a dedicated service identity for the scan host with read access only to the agreed prefixes, repositories and model versions. It gets no write, delete or admin rights. Store its credentials in your secret manager, keeping them out of shell history and out of scan configuration files committed to Git. Done when a download from an in-scope location succeeds and an upload or delete attempt to the same location fails with a permission error. Save both results in the change record.
Install ModelAudit and check Node.js
Install ModelAudit as a standalone tool or through promptfoo on a host your security team controls. If you use promptfoo, note that release 0.124.1, published on npm, requires Node.js 22.22.0 or newer, so check the runtime before installing. If you install standalone, confirm its Node.js requirement in the release notes. Pin the exact release you tested so scan behavior stays the same across hosts. Done when the installed version and the Node.js version are both recorded.
Run a known-good baseline scan
Scan one artifact your team already trusts, such as a model it trained and hashed itself or a file from a vendor you have approved. Use the same source type and credentials that production scans will use. Compare the findings with what you expect for that file. If the scan flags something unexpected, stop and investigate before going further. Done when the scan completes, the output is saved and the artifact hash matches the hash on record.
Run a known-test artifact to prove detection
Scan one artifact that should be flagged, built or obtained for testing in an isolated lab. Keep it out of the production bucket and registry. Confirm that ModelAudit reports the finding and that the exit status signals failure. Check the release documentation for the exact exit codes, since your gate will read those codes. Done when the finding appears in the output and the exit status differs from the success status seen in the baseline scan.
Record output and exit status
For every scan, save the full output, the exit status, the ModelAudit and Node.js versions, the source path, the artifact hash and the time the scan ran in one run record. Keep the record on a system the scan host cannot overwrite. Done when you rerun the baseline scan from a clean working directory and each recorded field matches, or any difference has a written explanation.
Wire results into accept or reject
Connect the exit status and run record to your intake gate, whether that is a registry promotion step, a deployment pipeline check or a manual review queue. Define that a failed scan leads to rejection or quarantine, and state who may override it and what written reason they must give. Done when the known-test artifact is blocked at the gate, the baseline artifact passes, and both outcomes appear in the run record.
Confirm logs and retention
Confirm where scan logs, run records and any downloaded copies are kept, who can read them and how long your retention policy keeps them. Configure the scan host to delete temporary model copies after each scan, and check that the logs record the scan without keeping the model file itself. Ask your platform or vendor contact to confirm what the logs contain for the release you use. Done when you delete a scratch copy, the log entry remains, and the reader list matches the agreed owner list.
Credentials, network reach and audit trail for model scans
Model scans touch three areas that need explicit controls: the credentials that read model storage, the network path from the scan host to each source, and the records that show what was scanned and by whom. The cards below cover the decisions your security team will ask about before approving a scan host.
Least-privilege read credentials
Give the scan host one read-only credential per source: a bucket or prefix, an MLflow registry principal, and an Artifactory token scoped to the repositories that hold models. A scanner has no reason to write, overwrite or delete what it reads, so confirm none of these credentials carries those rights. Keep the credentials in your secrets manager and out of pipeline files and shell history, and set a rotation schedule that your security policy requires. Before go-live, test that each credential reads its intended locations and fails on anything else.
Egress from the scan host
The scan host needs outbound access to the storage endpoints, the MLflow tracking server and the Artifactory instance it reads from, and little else. Allow those destinations by name and port in your firewall or proxy policy, and block general internet egress so a scan cannot reach unexpected hosts at run time. Confirm the endpoints with your platform team, including any private endpoints, mirrors or proxies your network uses. Test the policy with a known-good model and a deliberately blocked destination, and log denied connections so failures are visible.
Quarantine downloaded artifacts
Download each artifact into a quarantine directory that only the scanning service account can read and write, and keep it away from any path that model servers, notebooks or training jobs mount. Nothing loads from quarantine before a recorded scan result and an accept decision. Decide whether quarantine copies are deleted after the decision or kept for re-scanning, and write that rule into your intake procedure. Check that permissions survive container restarts and volume mounts, since a permissive mount is a common gap.
Record digest and scanned version
Record the content digest or storage version ID at the moment of download, along with the source location, scan time, ModelAudit version and the identity that ran the scan. A result describes exact bytes, so a record without a digest can end up attached to the wrong file after an overwrite. Re-check the digest before promotion, and treat any mismatch as a new artifact that needs its own scan. Confirm that your registry and storage expose the digest or version fields you need to compare.
Handle scan output as sensitive
Scan reports can describe model internals, including layer and tensor names, custom operators, embedded metadata and the paths or repository names where files were found. Treat reports like internal design documents, with access limited to the people who review intake decisions. Keep them out of public CI logs and shared chat channels, and set a retention period that matches your data classification policy. Before exporting results to a ticket or a SARIF upload, confirm who can read that destination.
Large models and resource limits by source
Buckets in S3, GCS and R2 are often the largest source of model files. The cost of a scan depends on whether ModelAudit reads the object directly or copies it to local disk first, so confirm which path your installed version takes before you size the scanner host. Transfer time grows with file size and with the network distance between the scanner and the bucket region.
- Download time: Multi-gigabyte checkpoints transfer before any static check runs, so run the scanner in the same region as the bucket where your network policy allows it.
- Local disk: If the scanner stages objects in a temporary directory, that location must hold the largest file in the batch. Point the temp path at a volume sized for it and clear staged copies after each run.
- Memory during the scan: Measure peak resident memory on a representative object, since archive and pickle inspection can use more memory than the raw file size suggests.
- Limits: Look for the size and timeout settings in the configuration for your version, and confirm the exact key names in the installed package's documentation before you rely on them.
- Credentials: Use a read-only role scoped to the scanning prefix so the job cannot modify objects.
Before a rollout, measure scan time and peak memory on one representative object from each bucket and confirm the configuration keys in the version you installed.
MLflow resolves a registered model to its artifacts, so the scan path depends on how the artifact store behind the registry is set up. The registry holds metadata, while the artifact store holds the model bytes, and that store determines the transfer and disk profile. Confirm whether your setup downloads artifacts to the scanner host before the scan starts.
- Artifact store location: Artifacts may sit in object storage, a shared file system or a server-proxied store. Each has different throughput, so scanning from a host on the same network as the store avoids repeated long transfers.
- Local disk: Downloaded model versions can accumulate in the client's download location. Give the scanner a dedicated cache directory, confirm where the installed client writes it and clear it on a schedule.
- Memory during the scan: Models split across several weight files may need to be read together for inspection, so measure peak memory on the largest registered version you plan to gate.
- Versions: Scanning every version of a model multiplies the cost. Scan the versions that will be promoted, and record the version number and artifact checksum with each result.
- Limits and connection: Confirm which size and timeout keys apply to MLflow sources in your installed version, along with the tracking URI and credentials the scanner uses.
Check that the scanner resolves the same version and artifact path your deployment pipeline promotes, then measure scan time and peak memory on that exact version.
Artifactory often sits between your teams and external model sources, so scans may run against artifacts that are already cached or proxied in a repository. Repository caching changes where the first byte comes from, and the first fetch of a large model is usually the slowest. Identify which repository type holds the models and whether the scanner reads through Artifactory or from a copy downstream.
- First fetch and cache hits: A remote repository may fetch an upstream file on the first request. Record cold fetches separately from later runs so the timings are meaningful.
- Local disk: Artifactory's own storage holds the cached copies, and any scanner staging adds a second copy on the scanner host. Size both volumes with that in mind.
- Memory during the scan: Measure peak memory on the largest artifact in the repository you intend to gate, because memory use depends more on file structure than on where the file is stored.
- Access: Use a service account with read permission limited to the specific repository. Store its token in your secrets manager and keep it out of pipeline logs.
- Limits: Confirm which size, timeout or concurrency settings apply to Artifactory sources in your installed version, and whether they differ from the object storage keys.
Confirm the repository key, the authentication method and the configuration keys in the installed version, then measure scan time and peak memory on a representative artifact from that repository.
DVC keeps large model files out of Git and stores small pointer files in the repository, so the scanner must resolve each pointer to actual content before it can inspect the model. Resolution can pull large content from a remote, and the workspace may already hold a full copy on disk. Confirm which path your scan uses: a checked-out workspace, a fetched cache or a direct remote read.
- Pointer resolution: A
.dvcfile records a hash, not the model itself. Pulling content can take longer than the scan, so schedule the pull as a separate step. - Local disk: The DVC cache and the workspace can both hold copies of the same model. Check how your platform links or copies files, because that changes the disk footprint.
- Memory during the scan: Memory use is set by how the scanner reads the file, not by Git. Measure peak memory on a representative tracked model after the pull completes.
- Partial pulls: Pull only the paths a change touches so unrelated large files do not transfer. Confirm the exact DVC command syntax in your installed version.
- Limits: Confirm whether the size and timeout keys in ModelAudit apply to files read from a DVC workspace in your installed version, because the same file may take a different path than an object in a bucket.
Verify that the scan runs against the content the pointer resolves to, then measure scan time and peak memory on a representative tracked model.
Limits to confirm before ModelAudit scans run on a schedule
Scheduled scans only protect you if the scanner, the storage source and the results behave the way your process assumes. The cards below list what to check in your own environment before the first unattended run, and each item is a question to answer against your installed version and storage setup.
Supported sources and authentication
Source support depends on the version you install, so confirm each place you scan, such as S3, MLflow and JFrog Artifactory, and the authentication method each one needs. Check which credential types the installed version accepts, how it reads them from the environment, and whether a read-only service account is enough for scheduled runs. Record the version and a successful test run in your runbook before any job is scheduled.
promptfoo releasesVersion and digest pinning
A scheduled job should scan the same bytes that the registry promotes. Confirm whether a scan can pin to a specific object version, MLflow model version or artifact checksum, and whether the output records the digest that was actually scanned. If pinning is not supported, a model can change between the scan and the load, so compare the digest again at load time. Test this by replacing a file in a non-production bucket and confirming the next run notices.
Partial downloads and timeouts
Large model files often fail mid-transfer, and a timeout can look like a finished scan. Confirm how the tool reports an incomplete download, a timed-out request or an unreadable archive, and whether it exits with a failure code in each case. A run that skips a file and still exits cleanly would pass an unscanned model through your gate. Test with a truncated file and a throttled connection, then configure the scheduler to treat any error as a failed check.
Exportable results for the gate
Your gating system needs a result it can read without a person opening a web page. Confirm which machine-readable output formats the installed version writes, whether each finding carries the file path, rule and severity, and whether a partly completed run is marked as incomplete in the export. Check that the export reaches the pipeline or ticketing system that makes the accept or reject decision, and that it is stored with the model's intake record.
A clean scan is not proof of safety
Static scanning checks a file for patterns it knows how to flag. A clean result means those checks found nothing, which is not proof that a model is safe to load, because a loader or custom operator can still execute code. Agree with your security team which findings block a model, and load approved models only on isolated hosts with least privilege. Pair scan results with supplier provenance and the review steps your intake process already requires.
Community edition coverage
The promptfoo Community edition is free and includes all LLM evaluation features, model providers and integrations, and red teaming with 10k probes per month. Team sharing, access control and SSO are part of the paid Enterprise tiers, so confirm which features your scheduled scanning depends on before you plan around them. Check the current feature list on the pricing page, since terms can change.
promptfoo pricingWhat does a registry scan project cost and what does it need from us?
What drives the cost of scanning models across registries?
Cost follows the size of your registry footprint and how much control you need around each scan decision. The main drivers are:
- Number of sources: each bucket, MLflow instance, Artifactory repository or DVC remote is a separate connection to design, test and monitor.
- Authentication complexity: one service account with clear permissions is far simpler than mixed IAM roles, SSO-backed tokens and per-team credentials.
- Model size and count: large weight files need resource limits and longer scan windows, and a large inventory adds triage time.
- Gating workflow: a scan that only writes a report costs less than one that blocks promotion and routes exceptions to approvers.
- Documentation needs: evidence packs for auditors or security reviews add write-up effort after the technical work is done.
Ask for a quote that lists each source, its authentication method, the expected model count and size range, and the gate design. DeployOpen does not publish prices, and the quote follows from that written scope.
Can our in-house team scan registry models without outside help?
Yes, if the work covers one source with clear credentials. A team that already manages cloud or registry access and runs Python can point ModelAudit at a single S3 bucket or MLflow registry, review the output and write a basic accept or reject rule. Difficulty grows across several registries, because each one brings its own credential model, network path, file layout and rescan schedule that must stay consistent. Watch for three gaps: no named owner for decisions, shared credentials that nobody can rotate, and large models that exhaust memory on shared runners. If two or more of these apply, a partner can design the setup and hand back a tested runbook. Confirm the exact ModelAudit options and supported formats for the version you deploy before you commit to a design.
What does a model registry scan need from our team?
The client provides four things, and a gap in any one of them delays the work:
- Network access: a route from the scanning host to each bucket, MLflow server, Artifactory instance or DVC remote, including proxies, private endpoints and egress rules.
- Identities: a read-only service account or role for each source, created with least privilege and a plan for rotation.
- A test model set: a known-clean sample and models with known issues, so scan rules can be checked before they touch production models.
- An owner for accept or reject decisions: a named person or group who receives findings, decides on flagged models and signs off exceptions.
Also agree on who receives scan reports and where scan logs are kept.
How long does a registry scan project take?
The written scope sets the timeline, and the duration depends mainly on the following drivers:
- How many sources and credential types must be connected and tested.
- Whether network paths and identities already exist or must go through change control first.
- The number and size of models, since large files slow scanning and need resource planning.
- How many approval steps sit in the gate and how quickly your owner can review findings.
- How much evidence documentation the engagement must produce.
A single source with existing access moves much faster than a multi-registry rollout that waits on security approvals. Ask for the timeline with its assumptions listed, so you can see which driver would change it if your environment differs.
What is one-time setup and what recurs after go-live?
Setup is one-time work: designing the connectors, building the gate, writing the runbook and testing against the sample set. Recurring work begins once scans run on a schedule:
- Scheduled rescans of registries, since new versions and new uploads need checks.
- Credential rotation and access reviews for each service account.
- Updates to ModelAudit and its dependencies, followed by retesting the gate.
- Triage of new findings and upkeep of allowlists and exceptions.
- Changes when a new registry, bucket or team joins the process.
Ask any quote to separate these into one-time and recurring lines. Ongoing support and upgrades are available as retainers, and their scope is agreed in writing.
Does DeployOpen offer a fixed-scope quote for registry scanning?
Yes. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. DeployOpen does not publish a price list, so a quote follows from the written scope. To compare quotes from any partner on equal terms, give each one the same inputs: the list of sources, the authentication method for each, the approximate model count and size range, the gate design and the documentation you need. Ask for deliverables in plain terms, such as the configuration, the runbook, the test results and handover notes, and ask what is excluded. Expect the quote to separate one-time setup from any recurring retainer.
How should we store and scope credentials for registry model scans?
Give the scanner read-only access to each source and keep every secret in a managed secrets store, not in pipeline files or shell history. Use one identity per registry so a leaked credential exposes one source, and set expiry or rotation wherever the platform supports it. In practice:
- Use read-only roles or tokens scoped to the buckets, repositories or model versions the scan needs.
- Inject credentials at run time from a secrets manager, and redact them from logs and reports.
- Place scanner hosts in a network segment that can reach the registries but cannot reach production model serving.
- Record which identity performed each scan so the audit trail is complete.
Confirm the exact environment variables or config keys each registry connector reads in the version you deploy, because those names change between releases.
How DeployOpen scopes and delivers model scanning
DeployOpen plans and runs ModelAudit scanning inside your own infrastructure, so model files in your S3 buckets, MLflow registry, JFrog Artifactory and DVC remotes are checked where they live. Most engagements are fixed-scope, with storage locations, credentials, resource limits and deliverables agreed in writing before work starts. The handover is a scan setup that your security and platform teams can review, operate and extend.
How we scope
- Inventory every storage location in scope, including S3, GCS and R2 buckets, MLflow Model Registry, Artifactory and DVC remotes.
- Agree which least-privilege credentials the scanner uses for each store, who owns them and how they are rotated.
- Agree deliverables, timeline and exclusions in writing before any work starts.
How we build
- Deploy the ModelAudit scanner in your environment and confirm which storage backends the installed version supports.
- Wire scans to each source: bucket listings, MLflow registry versions, Artifactory repositories and DVC-tracked files.
- Store scan results with the model's identifier, version and checksum so every verdict traces to one artifact.
How we hand over
- Deliver the scan configuration, credential handling notes and a runbook for adding new model sources.
- Test the setup against known-good and known-bad sample models, then record the results for your review.
- Document where each scan runs, what it reads, and which team approves a model that fails or is flagged.
How we support
- Confirm with your security team how scan findings feed accept or reject decisions before model promotion.
- Plan updates for ModelAudit and the storage integrations as new versions are released, tested before rollout.
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.

