Choosing promptfoo red team plugins and collections

A practical guide to selecting promptfoo red team plugins and collections for one LLM application, with the trade-offs of each family and what to confirm before a scan.

On this page

Choosing promptfoo red team plugins for your LLM application

Plugins define the attack categories a red team tests, and collections group related plugins so you can run them together. The right choice follows from your application's purpose, its users, the data it can reach and the tools it can call. Start there before you look at any list. promptfoo is licensed under the MIT license and runs locally, so you can work through this choice on your own machine before any scan is sent to a model. The plugin set is the first decision a red team makes, because it determines which failures you look for, how many probes you send and how grading results will read later.

Begin by listing what the application is for and what it can touch. A customer-facing assistant that reads account records raises different questions from an internal summarizer with no tools. Map each answer to a plugin family: harmful content, PII exposure, toxicity, bias, and security-oriented plugins for misuse of tools or data. Where your sector has its own rules, look for domain plugins such as the medical collection. Run the promptfoo redteam command with its plugin listing option to see the exact names available in your installed version, and confirm them there rather than relying on names from older documentation. Record your choices in the configuration file, since the list becomes the baseline you will rerun later.

Treat the plugin set as a draft to review with the people who own the application's risks. Ask the product owner which outputs would be embarrassing or harmful, ask the data owner which records must never leave the system, and ask the security lead which controls the test must cover. Then check whether any chosen plugin depends on a service you have not yet approved, and confirm that with your own team and the promptfoo documentation before the first run. The promptfoo red team configuration documentation is the next read for plugin options and per-plugin settings.

Plugin options and when each one fits

This table compares the ways to select promptfoo red team plugins: the harmful, pii, toxicity, bias and medical collections, individual plugins, domain plugins, and per-plugin numTests and severity. Read each row for when the option fits and what it adds in probes or review effort. Exact keys and defaults are in the configuration documentation, so confirm them there before you build a config.

OptionWhen it fitsCost in probes or reviewWhat to confirm
harmful collectionA first scan of a general-purpose assistant where broad coverage of unsafe content matters more than depth in one areaAdds many probes across its member plugins, so the scan grows quickly and each finding needs reviewWhich plugins the collection currently includes
pii collectionApplications that handle customer records, account data or retrieval over internal documentsModerate probe count, but findings often need a data owner to judge whether exposure is realHow the collection interacts with your purpose text
toxicity collectionCustomer-facing chat where tone and abusive output affect brand or user safetySubjective grading means more borderline results to review by handGrader settings and language coverage
bias collectionApplications that make or support decisions about people, such as screening or eligibilityFindings often need domain or legal judgment, so review time is higher than the probe count suggestsWhether your policy defines the protected attributes you care about
medical collectionHealthcare or pharmacy assistants where unsafe clinical advice is a concernNeeds clinical reviewers for borderline cases, which adds review effort rather than probesWhether a domain plugin for your sector is a better fit
Individual pluginsNarrow threat models, or when a collection is too broad for one applicationSmallest probe cost, but you must choose every plugin and can miss areas you did not think ofPlugin names from the command line list
Domain pluginsRegulated sectors where generic attacks miss sector-specific failure modesAdds probes for sector scenarios and requires a reviewer who knows the sectorAvailable domain plugins for your sector in the documentation
Per-plugin numTestsRaising coverage on a high-risk plugin while keeping others smallEach increase multiplies probes for that plugin and raises the number of results to reviewDefault value and how strategies multiply the count
Per-plugin severityRanking findings so high-impact plugins are reviewed and fixed firstAdds no probes, but changes how findings are ordered and reportedSeverity keys and the levels they accept

Which plugin family maps to which application risk

promptfoo groups its red team plugins into collections such as harmful, pii, toxicity, bias and medical, plus security and domain plugins. Each family tests a different kind of failure, so the right set depends on what your application can say, what data it can reach and who answers for the result.

Harmful content

The harmful collection checks whether the application produces content it should refuse, such as dangerous instructions or abusive material. The risk sits with product and trust and safety teams, who decide which refusals the application must hold. Before a run, confirm with the CLI which harmful subcategories your version includes and whether each fits your user base, since a children's education tool and an internal engineering assistant need different refusal limits.

Red team configuration docs

PII exposure

The pii collection tests whether the application reveals personal data it should protect, whether from its own context, its tools or its retrieval sources. Privacy and data protection officers usually own the result, with the application owner fixing it. Check which data stores, connectors and system prompts the target can reach, because a finding depends on what the model could actually see. Pair this family with your data classification so each finding maps to a defined data category.

Toxicity

The toxicity collection targets hostile, demeaning or abusive language in responses. Customer-facing teams and brand owners typically own it, since the result shows how the application sounds under provocation. Decide early which tone standards count as a failure, because a finding that is acceptable in a debate tool may be unacceptable in a support chatbot. Confirm the current toxicity subcategories with the CLI before setting per-plugin counts.

Bias

The bias collection checks whether responses treat people differently based on protected or sensitive characteristics. Legal, HR or compliance owners usually review these results, because unequal treatment can create regulatory and employment exposure. Bias findings often need human judgment, so plan a reviewer for borderline cases rather than relying on grader output alone. Confirm the bias categories your version offers before choosing a set.

Medical content

The medical collection tests whether the application gives clinical content it should not, such as diagnoses or dosing advice presented as authoritative. Clinical safety leads or a medical governance group should own the result, with product owners deciding what the assistant may say. Use this family when a general-purpose or health-adjacent assistant may reach patients or clinicians, and confirm with the CLI whether it fits alongside the domain plugins for your sector.

Security and domain plugins

Security-oriented and domain plugins target attacks on the application itself, such as injection and unauthorized tool use, or industry-specific rules for a sector. Security engineering owns the security results, while the business owner of the domain rules owns the domain results. Because the exact plugin list changes between releases, run the CLI's plugin listing command to confirm what your installed version provides before you write the configuration.

The decision path from application profile to plugin set

The path starts with the application profile: whether the target is a customer-facing chat, an internal assistant, a RAG application or an agent with tools. Next comes a check for a regulated domain, which decides whether a domain plugin is added. The base collection (harmful, pii, toxicity, bias or medical) is chosen first, then individual plugins are added, and numTests and severity are set for each. The final check is whether any selected plugin needs hosted generation, since that decides whether the run can stay on your own models. Confirm plugin availability with promptfoo redteam on the command line before you commit to a set.

Steps from application profile to a checked promptfoo plugin set.

How numTests and severity shape a plugin run

Each plugin contributes its own block of probes, so the plugin list sets the size of the scan. In promptfoo, the numTests setting on a plugin controls how many probes that plugin generates. Every plugin you add, whether a single plugin or a whole collection such as harmful, pii, toxicity, bias or medical, multiplies the total, and strategies then multiply that count again. A broad collection set on a generous numTests value can produce a run far larger than the team expected, so the total should be calculated before the first run rather than discovered from the bill or the rate-limit errors. Confirm the current default numTests value and how strategies apply to it in the red team configuration documentation, because the default determines what you get when you add a plugin without setting a value.

Severity lets the team point probes at the risks it has already ranked. Plugins that map to the highest-impact risks in your risk register, such as disclosure of customer personal data or domain-specific harms in a regulated workflow, can be given more probes and a higher severity, while lower-impact plugins can be kept narrow. Severity and numTests work as two separate levers: one decides how much attention a plugin gets in the run, the other decides how many attempts it makes. Write the mapping from each plugin to a risk owner and a severity level before editing the configuration, so the reasoning is recorded and reviewers can challenge it. Check the exact severity options and their effect on reports in the configuration documentation.

Coverage and scan time pull against each other, so set limits on purpose. A wider plugin set finds more categories of weakness but takes longer, consumes more target and grading calls, and produces more results to review. If you are on the Community edition, which includes 10k probes per month, the allowance is shared across every scan in that period, so a few broad runs can exhaust it before the team has tested the changes it cares about. Decide the monthly probe budget first, then divide it between a baseline scan, pre-release checks and ad hoc investigations. Ask whether the target can absorb the request rate of your planned run, and split large configurations into several scans when it cannot. Recording each numTests value in version control makes the trade-off visible to reviewers.

Starting plugin sets by application type

Public or customer chat is open to anyone, so the likely attacks are harmful requests, jailbreak attempts and efforts to pull personal data about other customers. The starting set should focus on content the brand would not want to publish and on disclosure of data the bot can reach. The example below is illustrative only.

  • Start with harmful and toxicity: Use the harmful and toxicity collections to cover unsafe and abusive output that could appear in a public transcript.
  • Add pii: The pii collection checks whether the bot discloses account details about other customers or leaks data from its context.
  • Add bias where decisions touch people: If the bot answers questions about eligibility, pricing or service levels, add the bias collection.
  • Add prompt disclosure and misuse plugins: Include the security-oriented plugins that test system prompt disclosure and off-topic misuse. Confirm their identifiers with promptfoo redteam plugins before you write them into the config.

Review the highest-severity findings first for brand-damaging replies, then sample refusals to confirm the bot does not block ordinary customer questions.

How to build and check a plugin set

This sequence turns a chosen application and purpose into a promptfoo plugin configuration that has been dry run and reviewed before any full scan. The output is a reviewed config file, a list of plugins that need hosted generation, and a sample of probes the team has checked.

  1. Confirm the target and purpose

    The security or product owner confirms which application endpoint is under test, who uses it, what data and tools it can reach, and what it is supposed to refuse. Write these as a short purpose statement in the config. The step is done when the owner signs off on the purpose text and the target is reachable from the machine that will run promptfoo. Without a clear purpose, the plugins you select will be generic and the grading will be less accurate.

  2. List available plugins from the command line

    Run the promptfoo redteam plugins command on the machine where promptfoo is installed to list the plugins available in your version. Compare the output with the plugin collections named in the configuration documentation, which include harmful, pii, toxicity, bias and medical. The step is done when you have a saved copy of the list for your installed version, so later decisions refer to plugins your version actually supports.

  3. Draft the configuration with collections and plugins

    Using the purpose from the first step, select the collections and individual plugins that match the application's risks, such as PII exposure for a customer support bot or a domain plugin for a regulated workflow. Record in the config file why each plugin is included. The step is done when every plugin in the draft maps to a stated risk in the purpose, and no plugin is included only because it appears in a collection. Domain plugins should be reviewed by someone who knows the sector.

  4. Set numTests and severity per plugin

    Set numTests for each plugin to control how many probes it generates, and set severity where your reporting needs it. Start with fewer probes for low-risk plugins and more for plugins tied to your highest-impact risks. Write down the total probe count implied by the draft so the reviewer can see the size before the scan runs. The step is done when every plugin has an explicit numTests value and the total is recorded next to the config. Probe limits on your plan, such as the Community edition monthly limit, should be checked against this total.

  5. Identify plugins that need hosted generation

    Go through each plugin in the draft and check the promptfoo documentation to see whether it depends on hosted generation or grading. Mark those plugins in the config and note which ones would be lost if you run generation on local models. Ask your vendor or the documentation maintainers to confirm any plugin where the docs are unclear. The step is done when every plugin has a recorded answer on hosted dependency, and the team knows which network destinations the scan will contact.

  6. Run a small dry run

    Run the configuration with reduced numTests values to confirm that the config parses, the target responds, and each plugin produces output. Watch for errors that stop a plugin from generating, and for plugins that return no probes. The step is done when the dry run completes without configuration errors and each plugin in the draft has produced at least some probes, or the missing ones are documented with a reason.

  7. Review generated probes before the full scan

    Open the generated probes from the dry run and read a sample from each plugin. Check that they match the stated purpose, that they are in the language you expect, and that none of them would send real customer data or credentials to a third party. Remove or adjust plugins that generate off-topic or duplicate probes. The step is done when a named reviewer has signed off on the probe sample and the final config is saved with its probe total, ready for the full scan.

Limits to confirm before you commit to a plugin set

A plugin set looks settled once it is written into a configuration file, but several limits only show up when you run it. Each card below names one limit that affects which plugins you can use, how many probes you send, and whether the results hold for your sector and language.

Plugins that need hosted generation

Some plugins and strategies depend on remote generation and grading through the hosted promptfoo API, which means prompts and responses leave your network. Before committing, list every plugin in your set and mark which ones require hosted generation. Then confirm with your security team what those requests contain and whether the hosted path is allowed for this application's data.

Red team configuration docs

Community probe allowance

The Community edition includes red teaming with 10k probes per month, so the allowance is shared across every scan your team runs. Multiply each plugin's numTests by the strategies you apply, then add the scans you expect in a month. If the total exceeds the allowance, reduce the set, lower numTests on lower-risk plugins, or confirm what a paid tier would cost.

Plugin names across releases

Plugin identifiers and collection names can change between versions, so a configuration that works today may fail or silently drop coverage after an upgrade. Pin the promptfoo version used for your red team, run promptfoo redteam plugin listing on that version, and compare the output against the names in your file. Repeat the check whenever you upgrade, including moves from 0.124.1.

promptfoo releases

Target rate limits

A large plugin set sends many requests to your application in a short period, and the target may throttle, time out or return errors that look like findings. Ask the team that owns the endpoint for its request limits and concurrency rules, then compare them with the planned run. Run a small batch first and check the error rate before the full scan.

Domain plugins for your sector

Domain plugins for areas such as finance, healthcare and insurance test scenarios specific to those sectors, but they only help if they match what your application actually does. Compare each domain plugin against your documented use cases and regulated data types. Ask your compliance lead which sector rules apply, and add custom tests for any gap the plugins do not cover.

Grading quality in your language

Graders may mislabel responses written in languages other than English, which can produce false passes or false failures. Before relying on results, take a sample of attack and response pairs in your target language and have a fluent reviewer label them. Compare those labels with the grader's verdicts, and adjust the language setting or grader guidance where they disagree.

Data handling and review considerations for plugin choices

The plugin set decides what attack content promptfoo generates and how results are graded, so security and privacy reviewers should see the final list before any scan starts. A plugin such as pii or medical produces prompts that touch sensitive data categories, and a harmful collection produces content that some review boards will want to know about in advance. Export the planned plugin list from the configuration and get sign-off on it as a document, not as a verbal agreement. Confirm with the team that owns the application which plugins can be lost or changed without losing coverage they depend on.

promptfoo runs locally: evals execute on the machine that runs the CLI and talk directly with the model under test. That means the target endpoint, its credentials and its responses stay within the path you have configured. Generation and grading for some plugins and strategies depend on hosted inference, so a plugin that needs remote generation creates a separate data flow that needs its own review. Before you choose such plugins, check which of them rely on the hosted API and whether your privacy and security reviewers accept that flow. The data-flow review covered in the sibling topic on hosted API data is the place to confirm the details for your version.

Secrets must not go into setup forms, configuration fields or prompt text used for plugin generation. Store provider keys and target credentials in environment variables or your secrets manager, and reference them from the configuration rather than pasting values into it. Then keep a versioned copy of the plugin list, the promptfoo version and the configuration file with each red team report, so a reviewer can see exactly which plugins ran when a finding was raised and reproduce the scan later. Recording the version matters because plugin names and behavior can change between releases, and the report is only evidence if the list it cites is the list that ran.

Questions teams ask before choosing plugins

Is a plugin collection enough, or do we need individual plugins?

A collection is a good starting point when your application is a general chat or assistant product and your risks match the common categories. promptfoo collections include harmful, pii, toxicity, bias and medical, so you can cover broad categories without listing each plugin. Individual plugins become necessary when your application has domain-specific risks, such as a claims assistant that must not give regulated advice, or a product with its own data types that a general collection does not probe. Most teams combine both: a collection for breadth, then named plugins for the risks their purpose statement calls out. Run the plugin list command in the promptfoo CLI to confirm which plugins your installed version provides before you write the config.

How much effort does a plugin review take, and what drives it?

Effort depends mainly on how many risks your application has, how clearly its purpose is written, and how many people must sign off on the results. A small assistant with one data source and a short plugin set is a much smaller review than an agent with tools, customer data and several regulated domains. The main drivers are the number of plugins, the number of distinct user roles and data types the purpose must describe, and whether your compliance or product owners need to approve each category. Ask any partner or internal team for a written scope that lists the plugins, the target endpoints and the review owners before agreeing an estimate.

Can our own team choose the plugins without outside help?

Yes, a team with application and security knowledge can choose plugins in-house, and promptfoo is available under the MIT license with a free Community edition that includes red teaming with 10k probes per month. The skills that matter are knowing your application's data flows, tools and user roles, and being able to judge whether a finding is real. Teams often find the harder part is deciding what to leave out and documenting why. An outside partner usually adds value when the scope spans several regulated domains, when independent review is required, or when internal staff are already committed to building the application. DeployOpen plans and runs this work under a written scope.

How long does selection take, and what inputs does it depend on?

Selection time depends on the inputs you can supply, not on a fixed duration. Before choosing plugins, you need a written purpose for the application, a description of the users, data and tools it can reach, the list of regulations or internal policies that apply, and the names of people who will decide which findings matter. When those inputs already exist and are current, selection is mostly a matter of reviewing the candidate list. When the purpose has to be written first or the data flows are unclear, that work comes before any plugin decision. Ask for a timeline that lists which inputs are complete and which are still open.

What does the work need from our team?

Three groups of input matter most. First, a purpose statement that describes the intended use, the users, the data the application can access and the tools it can call, because promptfoo uses this to generate attacks and grade results. Second, data flow information, including whether prompts or outputs leave your network for hosted generation or grading, which affects which plugins and strategies you can use. Third, named owners who accept or reject findings, usually from security, product and, for regulated systems, compliance. Ask any provider which of these they expect you to produce and which they will draft with you.

Does the plugin set change over time, and who decides when?

Yes. The plugin set should change when the application changes: a new tool, a new data source, a new user group, a new model or a new regulation that applies to it. It can also change when a repeated scan shows a category that needs deeper testing or one that adds no useful signal. Decide in advance who approves changes and record each change with its reason so the test history stays explainable. Repeated runs against a fixed set are useful for trend tracking, so avoid editing the set after every run. Confirm with your provider how they version configs and keep history.

Do plugins that generate test cases need hosted access?

Some do, and you should confirm which ones before you commit to a design. promptfoo's generation and grading use a hosted API by default, so plugins that rely on remote generation send prompts or outputs outside your network. If your data rules do not allow that, plan a local model for generation and grading and check which plugins still work with it. Confirm this with the promptfoo documentation for your installed version, and review data flows with your security team before the first scan.

How DeployOpen scopes and supports plugin selection

DeployOpen works on promptfoo plugin selection as part of a written, fixed-scope engagement. We start from the application's purpose and risk profile, agree which plugin collections and domain plugins belong in the scan, and document the configuration so your team can rerun it.

How we scope

  • The written scope names the target application, the plugin collections in play and any domain plugins for your sector.
  • Scope records which plugins need hosted generation and whether your data handling rules allow that.
  • Scope sets per-plugin numTests and severity expectations, and states what counts as a finding before the first run.

How we build

  • We write the promptfoo configuration with the selected plugins, numTests values and severity settings in version-controlled files.
  • We run a small pilot scan first to check that each chosen plugin produces relevant probes for your application.
  • We adjust plugin lists against pilot results and record each change and the reason for it.

How we hand over

  • You receive the plugin configuration, the rationale for each plugin choice and the list of plugins excluded and why.
  • Documentation covers how to list available plugins with the promptfoo CLI and how to add or remove plugins later.
  • We walk your engineers through the configuration so they can rerun and modify the scan without us.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers when plugin lists need revisiting.
  • Retainer work can cover re-selecting plugins after a change in the application's purpose, tools or data sources.
  • Confirm with us which promptfoo edition and hosting model your team uses before support begins, since this affects generation options.

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.