Choosing promptfoo red team strategies

promptfoo red team strategies decide how attack payloads reach your application and how many probes each plugin produces. This page explains which strategies add worthwhile coverage, which add cost, and which depend on hosted inference.

On this page

How promptfoo red team strategies shape coverage and probe volume

Strategies decide how each plugin payload reaches the target and whether it is transformed on the way, and every strategy you add multiplies the number of probes a scan sends. Each added strategy is a budget decision, not a free extra layer of coverage. Once you have a purpose and a plugin set, the remaining question is how many delivery methods you can afford to run against each payload, and which of them your grading and hosting setup can support.

The choice is a trade-off between four things: coverage, probe budget, grading effort and whether hosted generation is needed. A plain delivery pass gives the broadest view for the lowest cost. Transforming strategies, such as encodings or multi-step attacks, can expose weaknesses a plain prompt does not, but they also add probes, produce more borderline results for someone to review and may depend on remote generation that your security team has not approved. The Community edition includes red teaming with 10k probes per month, so count your planned multiplier against that allowance before you commit to a strategy list. Confirm the exact multiplier for each strategy in the promptfoo red teaming documentation rather than estimating it from memory.

Start with a small strategy set on a first run, then add strategies only where the results show a gap. Record the probe count the scan reports, the number of results that need manual review and any strategy that needed hosted generation. Those three numbers tell you whether a larger strategy set is worth its cost in probes and reviewer time. (Illustrative example: a team that adds an encoding strategy to every plugin may double its probes but find only a handful of new failures, which argues for applying it to the plugins where encoded input is a realistic attack path.)

Strategy families and when each fits

This table compares the strategy families a team meets in promptfoo red teaming, from plain plugin payloads to multi-turn attacks. Read each row for what the strategy changes in the payload, which target it suits, how much it adds to the probe count and whether it needs hosted inference. Confirm the exact behavior and hosted requirement of each strategy in the promptfoo red teaming documentation before you finalize a scan.

Strategy familyWhat it changes in the payloadTypical target and added probe costNeeds hosted inference?
Plain plugin payloadsSends the plugin's generated attack prompts as written, with no transformationGood baseline for any endpoint. Adds no strategy multiplier, so probe count follows numTests per pluginGeneration and grading depend on the plugin, confirm per plugin in the docs
Encoding transforms (Base64, leetspeak)Re-encodes the same attack text so keyword and pattern filters may not recognize itSuits filter-heavy input paths such as keyword blocklists or regex checks. Adds one probe variant per encoding appliedTypically no, confirm in the docs
Composite jailbreaksWraps plugin payloads in jailbreak framing, such as role-play or instruction-override templatesSuits chat and assistant applications with a system prompt that must hold. Adds probes for each wrapper combined with each payloadConfirm in the docs
Meta AgentUses an attacker model to rewrite and iterate on payloads based on the target's responsesSuits applications with guardrails that respond to phrasing. Adds model calls and probes per iteration, so budget more time and rate limit headroomLikely yes for the attacker model, confirm the provider setup in the docs
Multi-turn approaches (Hydra, GOAT, Crescendo)Builds a conversation across several turns that escalates toward the goalSuits chat applications with session memory. Each attack adds turns, so probe cost grows with conversation length and session handlingLikely yes for attack generation, confirm in the docs

How to decide which strategies to add to a scan

The decision starts from a scoped plugin set and first asks whether the target is public-facing or sits behind an input filter, since that decides whether delivery-only probes are enough or encodings and wrappers are worth testing. It then checks for multi-turn state, which points to conversational strategies, and whether hosted generation is permitted under your data-handling review. Each branch ends in a small starting set: plain delivery first, one added family, then a retest. Before adding any family, confirm the probe budget covers it.

Decision path from a scoped plugin set to a recommended starting strategy set.

When extra probes earn their cost

Strategies multiply the probes a scan sends, so each added strategy costs target calls, grading time and review hours. The factors below decide whether that spend answers a real question or only adds noise to the report.

Attack surface and exposure

An internet-facing assistant that accepts free text from anyone has a wider attack surface than an internal tool used by trained staff. The wider the surface, the more reason to add encodings and composite jailbreaks to the baseline, because attackers rarely send plain requests. For an internal tool with limited inputs, hold strategies back until the baseline shows where the plain payloads land. Check who can reach the endpoint and what the model can call.

Red teaming docs

Keyword or pattern filters in front

If a keyword blocklist, regex or input classifier sits in front of the model, plain payloads may be blocked before they test the model at all. Encodings such as Base64 or leetspeak can show whether the filter is literal or whether the model still interprets the request. Add these strategies when you need to know if the filter is the only control. Hold them back if no filter exists, since the extra probes will mostly test the model alone.

Conversation depth of the product

A single-turn form or search box gives multi-step strategies little room to work. A chat product that keeps history, remembers context or calls tools across turns gives the Meta Agent and multi-turn attacks more to exploit. Confirm whether your target manages sessions itself before you add these strategies, since the setup changes what the probes can reach. Single-turn products usually need fewer strategy layers than chat products.

Existing findings from a baseline

A baseline run with plugins and no extra strategies shows which categories already fail. If a category fails cleanly, extra strategies in that category add detail but seldom change the fix. If a category passes on plain payloads, adding strategies is the right next step, because a pass on plain text does not prove the model holds under obfuscation. Review the baseline results before you widen the scan, so the new probes answer a specific question.

Probe budget and target rate limits

Every strategy multiplies the probes a scan sends, and each probe is a call to your target and often a call to a grading model. Ask the team who pays for target inference and whether the endpoint has rate limits or a per-minute quota. Community probe limits also apply to red team scans, so confirm your monthly allowance before you widen the scan. If the budget is tight, add strategies to a narrow set of plugins rather than the full collection.

Community probes per month
10k
Pricing page

Review capacity for extra results

Strategies produce more results, and each borderline result needs a person to decide whether it is a finding. Count the reviewers available before the run and how many hours they can give to grading review. If the team cannot review a larger result set within the release window, the extra probes create unread failures and a weaker report. Start with the strategies that answer your baseline question and expand only when the review queue is under control.

Where the Meta Agent, composite jailbreaks and encodings add signal

The Meta Agent, composite jailbreaks and encoding strategies change the attack itself rather than the plugin payload. A plain payload asks for disallowed output in its most direct wording, so a refusal may depend on that exact surface form. The Meta Agent rewrites or iterates on the attempt, composite jailbreaks combine several techniques in one prompt, and encodings such as Base64 or leetspeak hide the request from simple keyword checks. These transformations are most useful for finding input normalization gaps, where a guardrail or filter inspects the raw text but the model or application decodes, translates or acts on something the filter never saw. They also expose refusals that only hold for the wording used in the test set, which a plain payload run will not reveal.

The cost of these strategies is volume and review effort. Each strategy multiplies the probes sent to the target, so the same plugin set can produce a much larger scan, and every extra probe needs a model call and a grading decision. Transformed prompts also make grading harder, because a model may answer an encoded request with gibberish, a partial decode or an unrelated refusal, and those responses can be labeled as failures that are not real weaknesses. Expect more borderline findings to review and more false positives to trim before a report goes to a risk owner. Plan the review time alongside the probe budget, not after it.

Before setting a budget, confirm each strategy's exact behavior and any probe multiplier in the promptfoo red teaming documentation, since these details change between releases. Then test the assumption that matters most: does the target actually decode Base64, interpret leetspeak or follow an instruction hidden inside a composite prompt? Send a small set of known-safe encoded requests and check the response. If the target ignores the encoding, an encoded probe tells you little about its safety, and the strategy adds cost without signal for that application. Record that result in the scan plan so the strategy choice can be justified later.

How to configure and verify strategies in a first scan

This sequence adds strategies to a promptfoo red team one family at a time, so each change to the findings has a known cause. It ends with a scan whose probe count, grading quality and hosted inference calls have all been checked.

  1. Confirm the plugin set and purpose

    Before adding any strategy, the security lead and the application owner agree that the purpose text and the plugin list are final. Strategies multiply whatever the plugins generate, so a vague purpose or an unreviewed plugin list makes every later comparison harder to read. Done means the purpose is saved in the configuration file, the plugin list is written down, and both owners have signed off on it.

  2. Run a baseline with plain delivery

    Run the configuration with no strategies, or with the default plain delivery only, and keep numTests low so the run stays small. This baseline shows what the plugins produce on their own against the target. Done means you have a saved report with a finding count and a list of the probes that succeeded, which becomes the reference for every later step.

  3. Review baseline grading quality

    Read a sample of failed and passed results from the baseline by hand, checking whether each grade matches what a reviewer would decide. Look for false positives on refusals and for missed leaks. If grading is unreliable, fix the purpose or grader guidance now, because adding strategies will repeat the same mistakes at higher volume. Done means you have recorded which grades you agree with and which you corrected.

  4. Add one strategy family at a time

    Enable a single strategy family, such as one encoding or one multi-turn strategy, and rerun with the same plugins and numTests as the baseline. Changing one family at a time lets you attribute any new findings to that family. Repeat this for each family you plan to keep. Done means each added family has its own saved report to compare against the baseline.

  5. Inspect transformed prompts before trusting results

    For each strategy, open a sample of the transformed prompts that reached the target and confirm the transformation applied as intended. An encoded or reworded prompt that the model could not parse may produce a result that tells you nothing about the application. Done means you have checked a sample of transformed prompts per strategy and noted any that were malformed or unchanged.

  6. Compare new findings against the baseline

    Compare each strategy report with the baseline to see which findings are new, which disappeared and whether the new findings are real. Send any unexpected results back through the grading review from earlier. Done means each strategy has a short written note listing its unique findings and whether they were confirmed or dismissed.

  7. Check the probe count and hosted inference

    Before the full scan, read the probe count the tool reports for the combined configuration and confirm it fits the edition and rate limits you have. Then confirm, strategy by strategy, whether it calls hosted inference for generation or grading, using the current promptfoo documentation and the network settings in your environment. Done means you have a written list of strategies that need hosted inference, an approved probe count, and a decision on whether to run the full scan.

Which strategies need hosted inference and what changes locally

Some promptfoo red team strategies and plugins depend on remote generation or grading, meaning promptfoo sends work to a model service it hosts for you. Strategies that build or rewrite attack prompts are the usual candidates, and so are the graders that decide whether a target response counts as a finding. Treat the list as a question to answer for each strategy in the version you install, not as a fixed catalog.

  • Data that leaves the environment: Prompts assembled from your purpose, plugin payloads and target responses may be sent to the hosted service for generation or grading. Confirm the exact fields in the promptfoo red teaming documentation before any request runs.
  • Approvals you need: Security, privacy and legal owners should approve the destination, the retention terms and whether application data, including personal data, can appear in those requests.
  • Quota effects: Hosted calls may count against plan limits. The Community edition includes red teaming with 10k probes per month, so confirm how generation and grading calls are counted before a large scan.
  • Reproducibility risk: A hosted model can change behind a stable name. Record the generation and grading model used in each run so results can be compared across scans.

Before enabling a strategy, check its requirement in the promptfoo red teaming documentation for your installed version and get written sign-off on the data it sends.

Security and operational considerations for strategy choices

Each strategy you add changes what leaves your environment, how many requests reach the target, and what evidence you keep afterward. The cards below cover the checks to make before a strategy goes into a scan, so the choice is reviewed alongside plugins and scan size.

Data sent to hosted generation

Some strategies transform plugin payloads with a model, and that step can run on promptfoo's hosted API rather than on your machine. Before enabling a strategy, check which steps call the hosted service for generation and which for grading, and whether your setup can point those steps at a model you run. Ask your security team to review the data flow for each strategy in the planned scan, not only for the scan as a whole.

Red teaming docs

Storage of generated attack prompts

Generated attack prompts, target responses and grading notes are written to results that persist after the run. Decide where those files live, who can open them, and how long they are kept, since a strategy such as an encoding or a multi-turn attack can produce many near-duplicate records. Confirm the storage location and retention behavior in your own environment before the first scan, and treat the output as sensitive if the target handles personal or regulated data.

Target credentials in configuration

Strategies do not need separate credentials, but the target's API keys, session cookies and tokens still appear in the configuration file that defines the scan. Keep these values in environment variables or your secrets manager, not in committed YAML, and check that they are not echoed into reports or logs. Review the configuration after adding a multi-turn strategy, since session identifiers are often stored there as well.

Red teaming docs

Load on production targets

Each added strategy multiplies the probes sent to the target, and conversational strategies send several turns per attack. A production endpoint can slow down, hit its own quotas, or trigger provider rate limits that disrupt real users. Agree a request budget with the application owner, run the scan against a staging copy where possible, and confirm the rate limits that apply to the target before widening the strategy set.

Findings on a self-hosted server

The self-hosted promptfoo server stores data in a local SQLite database, and its documentation notes it has no RBAC, no built-in authentication or SSO, and is not recommended for production use. Anyone who can reach the server can read every strategy's results, so limit network access, place it behind your own identity layer, and set a retention policy for old runs. Confirm these controls with your security team before sharing a server across teams.

Self-hosting docs

Change control between runs

Changing a strategy between runs alters the attack set, so a drop in attack success rate may reflect a different test rather than a fixed application. Record which strategies, multipliers and grading settings were used for each run, keep the configuration under version control, and approve changes the same way you approve code. This keeps trend comparisons and audit evidence meaningful over time.

Questions teams ask before choosing strategies

What does adding a strategy cost in effort and probes?

Each strategy multiplies the probes a scan sends, so the added cost is mostly probe volume and the review work that follows. Strategies that wrap every payload in a new encoding or a multi-turn attack can raise the count by a factor you should calculate from your own plugin list and per-plugin test counts before you run anything. The Community edition includes 10k probes per month, so the monthly budget is the first constraint to check. Effort also rises because each added strategy produces more results for someone to read. Ask your team or partner to estimate probe counts per strategy and to state how many results they expect a reviewer to examine.

How long does a first scan with extra strategies take to run and review?

No duration is given here, because run time depends on your target, its rate limits, the number of probes and how many results need human review. The main drivers are the response time of the application under test, any rate limit it enforces, the number of plugins and strategies chosen, and whether generation and grading run on hosted or local models. Review time depends on how many borderline findings appear and how clear your purpose and grader guidance are. Before scheduling, measure a small pilot scan on your own endpoint and extrapolate from its timings and finding volume.

Can our own team choose these strategies without outside help?

Yes, a team with security testing experience and access to the application can choose strategies itself, using the promptfoo documentation on red teaming as its starting reference. The harder part is judgment: deciding which strategies match your threat model, which encodings are relevant to your users, and when a result is a real weakness rather than a grading error. Teams without red teaming experience usually benefit from a reviewed first run and a documented baseline that the next scans can follow.

What does the work need from our team?

Four things need to be in place before strategy choices produce useful results:

  • A stable target endpoint that behaves consistently between runs, so changes come from the strategy rather than from the application.
  • A reviewed purpose that describes users, data and tools accurately, because it steers attack quality and grading.
  • A grading model decision, including whether grading runs through hosted inference or a model you control.
  • Named reviewers who will read borderline findings and decide which ones reach a report.

Confirm who owns each item and how much reviewer time is available before you add strategies.

Can we change strategies later without losing comparability?

You can change strategies, but results from different strategy sets are not directly comparable unless you keep a fixed baseline. Adding a strategy adds probes, so attack success rates for the same plugins can shift even when the application has not changed. Keep one baseline suite with recorded plugins, strategies, numTests and target version, and run any new strategies as a separate, labeled suite. Record every configuration change alongside the results so later trend reviews can explain differences.

Which strategies need hosted inference, and what does that mean for data?

Some strategies and plugins depend on remote generation or grading, which means prompts and responses may leave your environment. Check which features call the hosted API before you select them, and review the data flow with your security and privacy owners. Local model options exist for generation and grading, but certain plugins and strategies may not be available without remote generation. Confirm this per strategy in the promptfoo documentation for your installed version, and test connectivity in your environment before the scan.

When is an outside partner worth engaging for strategy choices?

An outside partner is worth considering when the application is high-risk, when results must support a compliance or audit file, or when your team lacks time to review findings. A partner can set the baseline, tune the purpose and grader guidance, run the first scan and explain borderline results. DeployOpen's security testing covers AI systems and agents, and its compliance readiness work prepares evidence, though it does not issue audit reports or certifications. Scope, deliverables and timelines are agreed in writing before work starts, and a quote follows from that scope.

Limits to confirm in your environment

Strategy behavior, probe counts and edition access all change between promptfoo releases and between deployments. The cards below list what to confirm before you commit a scan plan, and where to confirm each item.

Version and Node.js requirement

Strategy names, multipliers and hosted-inference rules are tied to a specific promptfoo release. The current npm release requires Node.js 22.22.0 or newer, so an older runtime can block the install before any scan starts. Record the exact version you test with, and re-check the strategy list after every upgrade because a multiplier can change between releases. Confirm the Node.js floor on the npm page and the release notes on GitHub.

promptfoo on npm

Probe multiplier per strategy

Each strategy wraps the plugin payloads in extra variants, so the probe count grows with every strategy you add. Meta Agent, composite jailbreaks and encodings differ in how many probes they generate per payload. Do not plan from memory: run a small scan with the chosen strategies and count the probes in the report. Confirm the current multipliers in the red teaming strategy reference.

Red teaming docs

Hosted inference requirements

Some strategies and plugins call promptfoo's hosted API for generation or grading. Whether a given strategy needs that call depends on your version, so an air-gapped or privacy-restricted setup can silently lose coverage. Test each strategy on a non-production target and confirm which network calls it makes. Compare the results against your data-flow review before approving the plan.

Hosted API host
api.promptfoo.app

Community probe quota

The Community edition includes red teaming with a monthly probe allowance, and strategy multipliers consume it quickly. Compare the planned scan size, including all strategies and all plugins, against that allowance before the first run. If the scan exceeds the quota, reduce the plugin set, lower numTests or split the work across months. Confirm the current allowance on the pricing page.

Monthly probes
10k
Pricing page

Target rate limits

Encodings, multi-turn strategies and composite attacks send many more requests to the application under test than a plain plugin run. Your endpoint may throttle, queue or bill per call, and throttling can hide real findings by returning errors instead of model responses. Ask the team that owns the target for its request ceiling and per-minute limits, then set concurrency so the scan stays within them. Watch for error spikes in the first run.

Strategy access by edition

Confirm that every strategy you plan to use is included in the edition you license, not only in the free tier or in the documentation. Enterprise and On-Premise add team, access control and monitoring features, but scan strategy availability should be verified in writing for your contract. Ask for the list of included strategies before procurement closes, and record it with the scope.

Compare editions

How DeployOpen works on this

DeployOpen scopes promptfoo red team strategy work as a written plan tied to your target application, your risk questions and your approved infrastructure. We set which strategies run, which need hosted inference and how probe counts are checked before any scan starts. Engagements are fixed-scope, so the strategy plan is agreed in writing first.

How we scope

  • Written scope lists the target endpoint, the plugins each strategy will multiply, and the strategies chosen for each.
  • We confirm whether generation and grading may use hosted inference or must stay on models you approve.
  • The scope states which encodings, Meta Agent runs or composite jailbreaks are included and why each adds probes.

How we build

  • We configure promptfoo strategies in a version-controlled config, with per-strategy settings reviewed by your team.
  • We run a small pilot scan to measure probe volume and confirm strategies deliver payloads to the target as intended.
  • Grading is checked on borderline results so strategy output does not produce false positives in the final report.

How we hand over

  • You receive the strategy configuration, a probe budget estimate method and the record of which strategies needed hosted inference.
  • A written summary explains which strategies were kept, dropped or deferred, with the reason for each decision.
  • Your team receives a runbook covering reruns, config changes and how to add or remove strategies later.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after the initial plan is delivered.
  • Retainers can cover re-checking strategy choices when promptfoo releases change strategy behavior or defaults.
  • Ask your DeployOpen contact to confirm retainer terms, response expectations and included retests in the written quote.

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.