Red teaming multimodal applications with promptfoo: when text-only tests miss the risk
If your application accepts images, audio or video from users or from documents, text-only red team tests leave those inputs untested. Adversarial content can arrive through any modality the application reads, and a model that refuses a harmful text prompt may still follow the same instruction when it is embedded in a picture, a voice recording or a video frame. Before you scope a test, list every path where non-text content reaches the model: direct user uploads, files pulled from a document store, transcripts, and frames from a camera or screen capture. Each path is a place where an attacker can hide an instruction.
promptfoo's multimodal red team guide describes using adversarial text, images, audio and video inputs to find cross-modal vulnerabilities, meaning cases where an instruction in one modality changes behavior governed by another. The guide is the next read for the test design itself. Confirm in the guide which modalities your target configuration supports, and confirm how your application passes each one to the model, since a test that sends an image the production pipeline never forwards will not show the real exposure.
Plan the scope with your security and product owners before you choose strategies. Decide which modalities are in scope, which data sets or sample files represent real user content, and what a failed result would look like for your application, such as following an injected instruction or disclosing data from another session. Note that some audio testing depends on hosted inference, which affects where your data goes, so review the strategy options with the data handling guidance before the first run.
Which promptfoo modality strategy fits which application
This table compares the image, audio and video strategies with the text-based strategies used alongside them. Read each row for the input your application must accept, whether the strategy needs hosted inference, and the situation where it earns its place. The main takeaway is that audio testing requires hosted inference, so confirm the image and video dependencies in the guide before you plan data handling.
| Strategy | Input the application must accept | Runs locally or needs hosted inference | Choose it when |
|---|---|---|---|
| Image strategy | Image uploads sent with or instead of text, such as screenshots, scanned forms or photos | Not stated in the source; confirm in the guide | The application reads, summarizes or acts on user-supplied images |
| Audio strategy | Audio input such as voice messages, call recordings or spoken commands | Remote only; needs hosted inference, so audio leaves your environment | Voice is an input path and your approved provider may receive that audio |
| Video strategy | Video clips or frame sequences the model analyzes | Not stated in the source; confirm in the guide | Users upload or stream video that the model interprets or describes |
| Text-based strategies | Plain text prompts, including the same instruction carried in other documents or messages | Run against your target; confirm any dependencies in the guide | You need a baseline and a companion check for every modality the application accepts |
| Cross-modal combinations | Text paired with image, audio or video so each part carries a different instruction | Depends on the modalities included; confirm per modality | Your safeguards inspect each input type separately and may miss a combined payload |
| Text-only scan with a multimodal target | Text prompts sent to an application that also accepts other media | Local evals call the target; the target model may be hosted | You want fast coverage first and will add modality tests once data handling is approved |
How a multimodal red team run reaches your application
The run starts in promptfoo, which generates adversarial text, image, audio and video inputs for each modality. Those inputs pass through your application's input handling and then to the model it calls, which is where hosted inference may sit. The grading step checks the responses and writes the results back to you. Check which steps run inside your environment and which send content to a hosted model, because audio strategies need hosted inference.
Where a multimodal red team input travels, and where it leaves your environment.
Setting up a multimodal red team with promptfoo
This sequence takes a team from a clean install to a reviewed multimodal scan, with a checkpoint at each stage so that media-handling failures are separated from genuine application weaknesses. The output is a baseline text result, a confirmed set of image, audio and video test paths, and a documented decision about which generation calls leave your environment.
Install promptfoo on a supported Node.js runtime
The engineer running the scan installs the promptfoo package from npm on a machine or CI runner with Node.js 22.22.0 or newer, which is the minimum version the current npm release requires. Confirm the runtime first with the node version command, then install promptfoo and check that the CLI reports its version. The step is done when the CLI runs from the same environment where the scan will execute, so that later results are not affected by a mismatched Node.js version.
Define the target application as a provider
The application team writes a provider configuration that points promptfoo at the multimodal application under test, such as an HTTP endpoint or a Python function that accepts text plus media. Confirm with the application owner which input fields carry images, audio and video, what file formats and size limits the endpoint enforces, and whether it returns the same response shape for each modality. The step closes when a single hand-written request with a text prompt returns a response through the provider without errors.
Run a baseline text red team first
Before any media is added, the team runs a text-only red team against the same provider so that ordinary prompt-level failures are recorded separately from modality-specific ones. A text baseline shows whether the application refuses direct harmful requests and whether its guardrails respond at all. The step is complete when the baseline run finishes and the team has a saved report to compare against, because a failure that appears only in the image or audio run can then be attributed to that input path.
Choose modality plugins and strategies
The team selects the multimodal red team plugins and strategies that match the inputs the application accepts, enabling image, audio or video options only for modalities the target really processes. The promptfoo multimodal guide describes adversarial text, images, audio and video inputs for finding cross-modal weaknesses, so each enabled modality should map to a stated risk in the application's threat model. Confirm the selection against the current plugin list in the documentation, since names and availability can change between releases. The step closes with a written list of enabled modalities and the reason each one is in scope.
Decide which generation calls run remotely
The team maps every generation step in the scan to a location, separating calls made by the local tool from calls that go to a hosted service. The promptfoo data handling documentation states that the audio strategy is remote-only and needs hosted inference, so any scan that uses it sends test media to that hosted service. Ask the security and privacy owners to approve or reject each remote call before the run, and document the decision. The step is complete when the team can state, for each modality, whether test content leaves the environment and which provider receives it.
Run the scan and check media delivery
The engineer runs the multimodal scan with the approved configuration and watches the first results for evidence that media actually reached the application. Look for responses that reference the attached file, errors about unsupported formats or sizes, and empty responses that would make a pass meaningless. Stop and fix the provider if the target never receives the media, since a run that cannot deliver the input shows nothing about the application's behavior. The step is done when a sample of each modality shows the application processing its input.
Review findings against the text baseline
The team reviews the completed report by modality and compares failures with the text baseline, looking for weaknesses that appear only when instructions are carried in an image, audio clip or video. Each finding should be traced to the specific input, the response and the grader's reasoning, and then assigned an owner for a fix or a retest. The step closes when the report is filed with the configuration, the remote-call decision and the list of findings, so that a later run can be compared with the same setup.
Data handling and hosted generation risks to plan for
Multimodal test media is often built from real material, and some strategies send it to hosted inference. The cards below cover what leaves your environment, how the target is reached, and where results and media end up.
Test media may contain customer data
Images, audio and video collected from production or support queues can show faces, voices, account screens or documents. Before any scan, decide whether the media is synthetic or sanitized, and whether anyone reviewed it. Treat real customer media as regulated data even when it is only used for testing. Confirm this rule with your privacy and legal team before the first run.
Data handling docsRemote strategies send inputs to hosted inference
The audio strategy is remote-only and needs hosted inference, so the test media and generated attack content are sent to a third-party service. Other multimodal strategies may depend on hosted generation as well. List each strategy in your plan and mark whether it calls a hosted service, then confirm the provider's data use and retention terms for that service.
Remote data flowsLocal execution with direct LLM calls
promptfoo runs on the machine where you start it and talks directly to the LLM under test, with no promptfoo-operated relay in the path. That keeps the scan inside your network boundary, but the model provider you configure still receives the prompts and media. Document which endpoints the runner reaches, and check them against your egress rules.
promptfoo introductionCredentials for the target
Multimodal scans need API keys or tokens for the model and for any hosted generation service. Store them in your secrets manager and inject them at runtime, not in the configuration file committed to a repository. Use a test account with a narrow quota, and rotate the credentials after the engagement ends.
Storage of results and reports
Red team results can include the full attack image, audio clip or transcript, and the model's response. Decide where the results database or export files live, who can open them, and how long they are kept. Self-hosted promptfoo stores data in a local SQLite database that is not suited to shared multi-user use, so confirm the storage location and backup approach before the team relies on it.
Keeping media out of shared logs
CI logs, chat notifications and shared dashboards often copy console output and attachments. Configure runs so that media files are written to a restricted directory, and keep raw payloads out of pipeline logs. Review artifact retention settings in your CI system, since a failed job may publish media to everyone with project access.
Turning multimodal findings into fixes and repeatable tests
Triage multimodal findings by modality before assigning any fix, because the cause and the owner differ between image, audio and video results. Group each failing case by the input type that carried the payload, then note whether the failure came from the media alone or from media combined with text in the same request. A text instruction hidden in an image, a spoken command in an audio clip and a frame-level payload in a video are three different problems, even when the model's final answer looks the same. Keep the original media file, the exact prompt template, the target configuration and the model response together for each finding, so an engineer can rerun the same case without reconstructing it from the report.
Reproduce each failing media file outside the scan before deciding where the fix belongs. Replay the file directly against the application endpoint and against the model with the same settings, and record whether the failure persists. If it only appears through your application, the weakness sits in preprocessing, such as resizing, transcoding, frame sampling or metadata handling, or in the way the application builds the prompt. If it reproduces against the model directly, the first candidate is the model configuration, including system instructions and any tool access. Input validation should reject or normalize unexpected formats, sizes and embedded content before inference, while application logic should limit what the model's output can trigger. Confirm with your model provider which multimodal inputs the chosen model accepts and how it handles them, since those details change between releases.
Keep the confirmed failing media in a versioned regression set and rerun it after every model change, prompt change or preprocessing change. Store each file with its modality, the strategy that produced it, the expected safe behavior and the environment it was run against. Because audio strategies depend on hosted inference, check the promptfoo data handling documentation before adding audio samples to a shared repository or sending them to an external provider, and confirm your approval for that data flow in advance. Schedule the regression run in your delivery pipeline so a fixed case cannot quietly return after an upgrade, and treat any change in result as a review item rather than an automatic pass.
Limits to confirm in your environment before testing
Multimodal red teaming depends on details that vary by promptfoo version, by modality and by how your application calls its models. The cards below list what to confirm before you commit a test plan, so the results you report reflect what was actually tested.
Strategy support in your version
Image, audio and video strategies are added and changed across releases, so the list in your installed version is the one that counts. Check the installed version against the current release notes before writing a plan that names specific strategies. Record the version in your test evidence so a later rerun can be compared like for like. The current npm release is listed as 0.124.1, but confirm that your pipeline pins the version you tested.
Multimodal red team guideHosted inference per modality
The audio strategy is remote-only and needs hosted inference, so audio tests may send content to a provider you have not approved for that data. Check each modality separately, since image and video strategies may run differently from audio. Confirm with your data protection team which provider receives each media type before any test runs. Keep a list of which strategies call hosted services so the scope can be approved in advance.
Data handling docsModel support for each media type
Your application may accept images, audio or video, but the model under test may only handle some of them, or accept them only through a specific API format. Verify that the model or endpoint you test accepts the same media types, sizes and encodings your users send. A test against a text-only fallback proves nothing about the media path. Ask your model provider for their documented media limits and keep those limits in the test configuration.
Community probe allowance on large media sets
The Community edition includes red teaming with 10k probes per month. Multimodal probes multiply quickly when each prompt is paired with several images, clips or audio files, so a large media set can consume the allowance faster than expected. Count probes per strategy before running a full scan, and confirm how your edition meters media-based probes. Plan a smaller pilot scan first, then size the full run to the remaining monthly allowance.
Pricing pageMultimodal testing is not an independent assessment
A promptfoo red team run shows that specific adversarial media inputs produced specific failures, and that is useful evidence. It does not cover every attack an application will face, and it does not replace a review by an independent assessor. Treat the results as one input to your security review, and record which modalities, strategies and models were excluded. Present the scope honestly to anyone relying on the report.
Questions teams ask before testing multimodal applications
Is promptfoo free for red teaming multimodal applications?
The promptfoo Community edition is free and includes all LLM evaluation features, all model providers and integrations, and red teaming with 10k probes per month, with community support, according to the promptfoo pricing page. The software itself is licensed under the MIT license. Your costs come from the work around it: someone to design the test cases, the model calls your target and grader make, and any hosted inference needed for particular strategies. Enterprise features such as team sharing, SSO and continuous monitoring are sold separately at custom pricing, so confirm with promptfoo which edition covers your probe volume and team needs before you plan the rollout.
What makes multimodal red teaming take more effort?
Effort rises with four factors: the number of modalities your application accepts, how much preprocessing sits between the upload and the model, whether generation runs on hosted services or on infrastructure you control, and how many of your own payloads you need to build. An image-only chatbot with a simple upload path is a smaller job than a system that accepts images, transcribes audio and extracts frames from video before a model reads them. Hosted generation also adds data-handling review, because test media leaves your environment. Ask for each of these factors to be listed in the written scope so the estimate matches the real pipeline.
How long does setup take before the first multimodal test run?
Setup time depends on your environment, and no reliable figure applies across applications. The main variables are how quickly you can provide a stable target endpoint that accepts media uploads, whether the application runs in a test environment with realistic preprocessing, how long data-handling approval takes if hosted generation is involved, and how many modality-specific test sets you need to assemble. Confirm each of these with your own team and your security reviewers before setting a date. A written scope should separate the setup phase from the test execution phase so that approval delays are visible.
Can our own team run multimodal red teaming without a partner?
Yes, if your team has engineers who can write promptfoo configuration, connect a target endpoint and read grading results, and someone who can review the findings for severity. The CLI runs locally, and the documentation describes evals running on your machine and talking directly with the model. The harder parts are usually building realistic adversarial media for each modality, deciding which strategies need hosted inference, and interpreting cross-modal results where an image or audio file changes how the text is handled. A partner can take on these areas, or your team can do them with a short review from an outside tester.
Which strategies depend on hosted generation?
The promptfoo audio strategy is remote-only and needs hosted inference, according to the promptfoo data handling documentation, so audio tests will send generated or test content to an external service. Image and video strategies are described in the multimodal red teaming guide, and you should check there which of them need hosted generation for your configuration before you approve the plan. If your policy forbids sending test media outside your boundary, decide that first, then scope the modalities that can run locally and document the gaps for the risk owner.
What do we need to provide for the engagement?
Most multimodal engagements depend on four inputs from your side. The first is representative test media for each modality, including files that match what real users upload. The second is a target endpoint that accepts those inputs in a non-production environment. The third is test identities with the roles your application uses, so authorization can be checked. The fourth is a written data-handling sign-off that covers which media, prompts and responses may leave your infrastructure and to which services. Ask for a list of these items in the scope document, with an owner and a due date for each.
Does multimodal testing replace a complete AI security review?
No. Multimodal red teaming finds how an application responds to adversarial inputs in each modality and how those inputs interact, but it does not cover every control in your AI system. Authorization policy, logging, retention, model supply chain and the surrounding infrastructure need their own review. Results from the test run are evidence for the findings you report, and they should feed into remediation and a retest. Treat the output as one input to your overall security program rather than a finished assessment.
How DeployOpen scopes and delivers multimodal red teaming
DeployOpen plans and runs promptfoo multimodal red teams against the applications you operate, starting from a written scope that names the modalities, targets and hosting boundaries in play. The work ends with documented results, retest evidence and a handover your team can repeat. Engagements are fixed-scope, and ongoing support is available as a retainer.
How we scope
- We confirm which inputs your application accepts, whether images, audio, video or combinations of them.
- We record which strategies may send data to hosted generation and agree that boundary in writing before testing.
- The written scope lists targets, test identities, grading criteria, deliverables and the timeline agreed before work starts.
How we build
- We connect promptfoo to your application through a configured provider that matches its real request path.
- We build adversarial image, audio and video cases alongside text, then review which ones produce cross-modal failures.
- We run the scans in a controlled environment and keep configs, seeds and results versioned so each run can be reproduced.
How we hand over
- You receive a findings report that ties each failure to the modality, strategy and evidence that produced it.
- Remediation guidance is written for your engineers, with fixes and a retest of each confirmed finding.
- Your team receives the configs, run instructions and documentation needed to repeat the scans after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the initial engagement.
- Retainers can cover re-running multimodal scans when your models, providers or input pipelines change.
- Confirm with us which parts of the test suite your team will own and which parts remain under the retainer.

