How promptfoo red teaming supports DoD AI ethical principles testing
A defense or public sector team that must show test evidence against the five DoD AI ethical principles needs a way to turn those principles into concrete probes. The Department of Defense adopted the principles in 2020: Responsible, Equitable, Traceable, Reliable and Governable. promptfoo maps each of them to red team plugins under the dod:ai:ethics framework ID, so a scan can be run against the application under test and its results sorted by principle. Treat the output as input to engineering review. The preset shows where a system behaves well or badly against probes written for each principle. It does not establish that the system complies with DoD policy, and no scan result should be presented to an accreditor as a compliance determination.
Before you configure the preset, confirm which plugins it activates in your promptfoo version, because the mapping is the part an assessor will ask about. Record the version you ran, the target configuration, the plugins and strategies enabled, and the grading criteria used for each principle. Then decide who owns the gaps. Plugins that probe Responsible, Equitable or Traceable behavior often produce results that need a human reviewer, such as an AI ethics board member, a legal adviser or a data steward, rather than a pass or fail from a model grader. Write down that review step as part of the evidence trail.
Several requirements that often arrive alongside these principles sit outside what this preset covers. NIST SP 800-53 control baselines, FedRAMP scope for cloud services, the FBI CJIS Security Policy and CMMC assessment requirements each define their own controls, boundaries and evidence. A red team preset tests model and application behavior. It does not test your encryption configuration, hosting boundary, access reviews or contractor scope. Ask your security and contracting teams to list those obligations separately, and confirm with the relevant authority which of them apply to your system before you rely on this scan for any of them.
Mapping each DoD AI ethical principle to promptfoo plugins and configuration
This table pairs each of the five DoD AI ethical principles with the dod:ai:ethics capability in promptfoo, the configuration it needs, and what a reviewer must still check by hand. Confirm each plugin's current name and scope in the promptfoo DoD AI ethics documentation before you rely on a row. Read the last column as the boundary of the evidence: automated probes produce results, but people decide whether a principle is met.
| DoD principle | promptfoo capability under dod:ai:ethics | Configuration needed | What the reviewer must still review |
|---|---|---|---|
| Responsible | Plugins mapped to the Responsible principle that probe for harmful, unsafe or out-of-scope outputs and whether the system refuses misuse | Select the dod:ai:ethics framework, set the target to the deployed application or a staging copy, and write grading rules that name the mission-specific harms to flag | Whether the system's intended uses, human accountability and escalation paths are defined and approved by the responsible owner |
| Equitable | Plugins mapped to the Equitable principle that probe for biased or unequal treatment of people and groups in model responses | Build test cases that vary protected and non-protected attributes in otherwise identical requests, and grade outputs with a rubric agreed by the fairness reviewer | Whether the chosen groups and attributes match the population the system serves, and whether a probe pass shows fair outcomes in real workflows |
| Traceable | Plugins mapped to the Traceable principle that check whether the system exposes its sources, reasoning limits and data handling in responses | Enable result storage and keep the framework, plugin list, configuration file and version of promptfoo with each run so a scan can be reproduced | Whether logs, prompts, model versions and data sources are retained under the organization's own records policy and can be produced for an assessor |
| Reliable | Plugins mapped to the Reliable principle that probe for hallucination, inconsistent answers and failures under adversarial or unusual input | Set repeat runs and pass-rate thresholds in CI/CD, and use the same suite for every model or prompt change so results are comparable | Whether the tested inputs reflect real operational tasks, and whether failure rates are acceptable for the decision the system supports |
| Governable | Plugins mapped to the Governable principle that probe whether the system can be stopped, overridden or constrained by its operators | Test with the actual tools, permissions and kill switches of the deployment, and include scenarios where a user asks the system to bypass controls | Whether operators can disable the system, whether the control design is documented, and whether the change process and ownership are approved |
How the dod:ai:ethics preset runs against your system
promptfoo runs on your own machine and talks directly to the model or application under test. According to the promptfoo documentation, evals run locally and send requests straight to the LLM, so the dod:ai:ethics preset does not route your prompts or responses through a promptfoo-hosted service. For a defense or public sector team, that is the first thing to confirm with your security office: check where the machine running the scan sits, which network segment it can reach, and whether the target endpoint is one your approved boundary allows it to call. Red team probes are sent to the system under test, and the responses are graded against the plugins mapped to the five principles: Responsible, Equitable, Traceable, Reliable and Governable.
Plan scan size before you schedule anything. The Community edition is free, includes red teaming, and is limited to 10k probes per month according to the promptfoo pricing page, with community support. Treat that figure as a planning input: count the plugins you enable under dod:ai:ethics, the number of probes each generates, and how many target configurations you test, then compare the total with the monthly allowance. If your planned coverage exceeds it, confirm current limits and paid options directly with promptfoo before the test window opens, because the Enterprise and On-Premise editions are priced on request.
The CLI, the library and CI/CD pipelines are three ways to repeat the same run. The CLI suits a one-off assessment on a workstation, the library suits teams that wrap the scan in their own test harness, and a pipeline suits scheduled re-testing after each model or prompt change. Whichever you choose, keep the configuration file and the preset version under change control, so an auditor can see which probes ran against which system build. The self-hosted server is a separate option for storing results centrally, but its documentation says it is not recommended for production use, so confirm whether your results store can live in a local SQLite database before depending on it.
Choosing between local CLI runs and a self-hosted promptfoo server
The promptfoo CLI runs on the evaluator's own machine and talks directly to the model or application under test. The documentation states that the software runs completely locally, so evals and red team runs do not depend on a shared service. This suits an individual testing one system during design, or a security engineer reproducing a finding before filing it.
- Setup: Install the package from npm, which requires Node.js 22.22.0 or newer, and run scans from a repository you control.
- Sharing: Results stay as local output files, so teams must export and distribute them by hand.
- Access control: Access is whatever the workstation and repository already enforce, with no per-user permissions inside promptfoo.
- Retention: Keeping a record of each DoD ethics run, with its configuration and date, depends on your own storage and naming conventions.
- Cost: The Community edition is free and includes red teaming with 10k probes per month, with community support.
Before relying on local runs as evidence, confirm with your assessors how output files will be stored, signed or versioned, and who may modify them.
The self-hosted promptfoo app is an Express server that serves the web UI and API. It can be deployed with Docker, Docker Compose or Kubernetes with Helm, which gives a team one shared place to view evaluations. The trade-off is that the open-source self-hosted deployment has limits that matter for a regulated program, so it should be treated as a team viewing tool rather than a system of record.
- Storage: Data sits in a local SQLite database that cannot be shared across replicas, so horizontal scaling is not available.
- Access control: The self-hosted version has no RBAC, and no built-in authentication or SSO.
- Production status: The documentation does not recommend it for production use.
- Workable pattern: Restrict network access to the server and place it behind an identity-aware proxy or reverse proxy you operate, with logging you control.
- Backups: Plan backups of the SQLite file and confirm restore steps before any results are treated as evidence.
Confirm with the promptfoo documentation and your security team exactly which access controls will sit in front of the server before storing results from any DoD-related program.
promptfoo Enterprise adds team sharing, teams-based access control and SSO, custom roles and permissions, continuous monitoring, a centralized guardrail dashboard, remediation recommendations and priority support with SLAs. promptfoo On-Premise runs that Enterprise functionality on the customer's own infrastructure with complete data isolation and a dedicated deployment engineer. Pricing is custom and is not published, so the decision is usually made through a quote tied to a written scope.
- Access control: Teams-based access control, SSO and custom roles address the gaps in the self-hosted edition.
- Data isolation: On-Premise keeps test data inside your environment, which matters when prompts or outputs contain sensitive information.
- Monitoring: Continuous monitoring supports repeated testing after each model or prompt change.
- Support: Priority support and SLAs are contract terms, so compare the stated SLA against your review schedule.
- Cost drivers: Expect fees for licensing, deployment engineering and ongoing support, and ask which parts recur annually.
Ask the vendor to confirm in writing which Enterprise features are included in your quote and how audit logs are retained.
What test evidence promptfoo produces for an assessor
A promptfoo red team run leaves several artifacts, each answering a different question an assessor will ask: what was tested, what failed, what was fixed, and whether the result still applies to the system in production. The cards below cover the artifacts to collect, and the checks that tie them to a specific system version so the evidence can be reproduced.
Run configurations and preset version
The promptfoo config file records the target, the dod:ai:ethics framework selection, plugins, strategies and grading settings used for each scan. Store it with the promptfoo version used, since the set of probes and grading behavior can change between releases. Check that the config names the target system version, not only a label such as "production". Keep every config file that produced a reported result.
Result exports per principle
Export results grouped by each of the five DoD principles: Responsible, Equitable, Traceable, Reliable and Governable. Per-principle exports let an assessor follow one principle from requirement to test outcome without reading the full run. Confirm the export format your assessor accepts, and confirm that the export includes the probe prompts and model responses needed to judge each failure.
Pass and fail records by plugin
Each plugin reports how many probes passed and failed, which gives the assessor a count to check against the scan size. A zero-failure result is weaker evidence when the number of probes is small or the grader is weak, so record probe counts alongside pass rates. Note any plugin where grading relied on an LLM judge, since the assessor may ask how that judge was validated.
Run history under version control
Commit configs, exported results and a short changelog to a Git repository the assessor can read. Version control shows when each scan ran, which changes preceded it, and whether earlier failures were retested. Use one folder per tested system version so that a result can be matched to the exact build, model and prompt set it describes.
CI pipeline logs
When scans run in a pipeline, the job logs show the trigger, the commit, the runner and the pass-rate gate applied. Retain these logs for the period your assessment requires, because the platform's default log retention may be shorter than the review cycle. Confirm with your CI system administrator how long logs are kept and whether they can be exported.
Remediation tickets
Every failed probe that led to a change should have a ticket that links the failing result, the fix, the retest and the person who approved closure. Assessors often sample tickets to confirm that failures were fixed rather than accepted silently. Record any risk accepted without a fix, with the owner and review date, so that open items are visible.
Configuring a dod:ai:ethics red team step by step
This sequence takes a defense or public sector AI system from a stated purpose to a repeatable dod:ai:ethics scan, with graded results stored against the exact system version that was tested. The output is a set of findings each owner has reviewed, ready to be used as evidence for the five DoD AI ethical principles.
Define the system purpose and target boundary
The system owner writes down what the AI system is for, who uses it, what data it touches and which components are in scope, including any retrieval sources, tools or agents behind the interface. The red team lead uses this statement to decide which findings matter and which plugins apply. The step is done when the owner signs off a one-page scope note that names the exact deployment under test, such as a staging environment with a fixed model and prompt version.
Connect the target provider or endpoint
The engineer configures promptfoo to call the system under test through its provider or HTTP endpoint, using a dedicated test account with the same permissions and guardrails production users have. Credentials are kept in environment variables or the organization's secrets store, not in the configuration file. The step is done when a single benign test prompt returns a response through the same path users take, and the run log shows which model or endpoint answered.
Select the dod:ai:ethics preset
The engineer points the red team configuration at the dod:ai:ethics framework so the scan includes the plugins mapped to the five principles: Responsible, Equitable, Traceable, Reliable and Governable. The lead reviews the generated plugin list against the scope note and removes or adds plugins only with a written reason. The step is done when the configuration file lists the framework ID and the chosen plugins are recorded alongside the scope note, so a later reviewer can see what was and was not tested.
Set grading and scan size
The engineer decides how responses are graded, whether by promptfoo's default grader or a grader model the organization has approved, and sets the number of probes per plugin. The lead confirms that the grader model's location and data handling meet the organization's rules for sensitive material. Scan volume and provider access should be confirmed against the Community or Enterprise terms on promptfoo's pricing page before the first full run. The step is done when the config records the grader, probe count and any custom rubric, so the scan can be repeated with the same settings.
Run the scan locally or in CI
The engineer runs the red team scan from a workstation with the promptfoo CLI or from a pipeline job, depending on whether the team wants a one-off assessment or a repeatable gate. Node.js must meet the version promptfoo requires, and the run should be pinned to a specific promptfoo release. The step is done when the run completes without errors, the output file is saved, and the log shows the promptfoo version, the target version and the timestamp.
Store results with the system version
The engineer saves the scan output, configuration and grader settings in a repository or evidence store, tagged with the model version, prompt version, application build and promptfoo release used for the run. Results without a version tag cannot show whether a later change fixed or reintroduced a failure. The step is done when a reviewer can open any stored result and identify exactly which system it describes. Teams running promptfoo self-hosted should note that the self-hosted server uses a local SQLite database and is not recommended for production, so results are best kept in a version-controlled location outside that database.
Review failures with the system owner
The red team lead walks through each failed probe with the system owner, classifies it by principle and severity, and records whether it is a fix, an accepted risk or a false positive from grading. Where a failure traces to a design decision, such as missing human review or unclear accountability, the owner logs it for architecture review instead of a prompt change. The step is done when every failure has a named owner, a disposition and a retest date set by the organization, and the review record is linked to the stored results.
Why NIST 800-53, FedRAMP and CMMC still need their own evidence
The five DoD AI ethical principles are ethics guidance, and a promptfoo run mapped to them does not establish that a system may be authorized or that CUI may be stored in it. System authorization runs on a separate track, governed by control catalogs and cloud authorization rules. NIST SP 800-53 Rev. 5 is the federal control catalog, and SP 800-53B selects 149 controls and enhancements for a low baseline, 287 for moderate and 370 for high. Which baseline applies is set by the authorizing official for the system, not by the red team. Ask your authorizing official which baseline the AI system falls under before you decide what its test evidence needs to show.
FedRAMP adds a second boundary. Under OMB memo M-24-15, FedRAMP covers cloud products and services that create, collect, process, store or maintain federal information on behalf of an agency. A system used only for one agency's operations on cloud infrastructure, and not offered as a shared service, falls outside that scope. Whether a promptfoo test target, a hosted model endpoint or a self-hosted deployment sits inside FedRAMP scope depends on who operates it and for whom, so confirm that classification in writing with the agency before relying on any test result for an authorization package.
For defense contractors, 32 CFR 170.17(c)(5) sets the cloud rule for CMMC Level 2. A contractor may store or process CUI in a cloud service only if that service is FedRAMP Authorized at the Moderate baseline or higher, or meets equivalent requirements. Non-cloud service providers are assessed within the contractor's own scope. Confirm with your CMMC assessor and contracting officer whether your AI workload handles CUI, which cloud services it touches, and whether each one carries the required FedRAMP status. Test results can show how the system behaves under attack, but they cannot establish any of those facts for you.
Questions buyers ask before hiring help with DoD AI ethics testing
Does promptfoo alone satisfy the DoD AI ethical principles?
No. promptfoo can run tests that probe an AI system against the five DoD AI ethical principles, Responsible, Equitable, Traceable, Reliable and Governable, using the dod:ai:ethics framework ID. The results are test evidence for those principles, not a determination that a system meets them. Some principles depend on design decisions, data governance, human oversight processes and documented accountability that automated probes cannot observe. Ask your reviewers which evidence they expect for each principle before you scope the test.
What drives the effort of a DoD AI ethics test?
Four factors shape most of the work:
- System scope: how many capabilities, workflows and data sources the AI system touches.
- Number of target endpoints: each model, gateway route or application interface under test is configured and run separately.
- Plugin tuning: default plugins often need adjusting to your use cases, data and mission context, and each adjustment needs review.
- Evidence format: the layout your assessors, authorizing officials or contracting officers require for results.
Ask any provider to state which of these assumptions their quote rests on.
Can our own team run the DoD AI ethics tests without a partner?
Yes, if your team has the skills to install and configure promptfoo, connect it to the system under test, and interpret results against each principle. The open-source project is MIT licensed and can run as a command line tool in your own environment. Teams without red teaming experience usually underestimate plugin configuration, grading review and the documentation needed to show how results were produced. A partner can run the work alongside your staff so that knowledge stays in your organization.
What does the work need from our team?
Expect to provide access and named owners. Typical needs include a test environment that resembles production, credentials for the target endpoints with appropriate permissions, documentation of intended use and data sources, and an accountable owner for each principle. Sign-off is needed on the test plan before runs begin and on findings before they are reported. Confirm with your security office where test traffic may originate and what logging the environment requires.
How long does it take to repeat the tests after a change?
The duration of a repeat run depends on the number of endpoints, the size of the scan and any grading that needs human review. Once the configuration is in place, rerunning a scan is usually much shorter than the first build, because the plugin setup, targets and evidence templates already exist. Ask whether the engagement includes retesting after fixes, and whether the evidence pack must be regenerated for each release. Timelines should come from the written scope, not from general estimates.
What does a fixed-scope DeployOpen engagement cover?
Most DeployOpen engagements are fixed scope, with scope, deliverables and timelines agreed in writing before work starts. For this topic, that typically means defining the systems and endpoints in scope, configuring the dod:ai:ethics run, executing the tests, reviewing results against each principle, and delivering findings with recommended fixes and evidence in an agreed format. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Ongoing testing is available as a retainer.
Which DoD or federal rules apply to the system we are testing?
The applicable rules depend on the system's data, owner and deployment. Federal systems often fall under NIST SP 800-53 Rev. 5 control baselines, while cloud services that handle federal information may need FedRAMP authorization. Controlled unclassified information on contractor systems may bring in NIST SP 800-171 and CMMC requirements. Confirm the classification of the data, the authorizing body and the contracting terms before testing, because the answer determines which evidence is required. promptfoo results do not replace those authorization processes.
How DeployOpen scopes and delivers DoD AI ethics test evidence
DeployOpen runs promptfoo red teaming for DoD AI ethical principles as a fixed-scope engagement inside the client's own infrastructure, so the test setup, results and evidence stay under the client's control. Scope, deliverables and timelines are agreed in writing before work starts, and the output is written for the security, compliance and acquisition teams who will review it.
How we scope
- Confirm which of the five DoD AI ethical principles apply to the system and its intended use.
- Define the application, endpoints and data the red team will test, and the environments it will run in.
- Agree in writing which dod:ai:ethics plugins run, which are excluded, and why each exclusion is recorded.
How we build
- Install and configure promptfoo in the client's environment, with the target application connected through its own endpoints.
- Tune plugins, strategies and grading criteria so each principle maps to documented test cases.
- Run scans, review failing results manually, and record what the automated grading could not judge.
How we hand over
- Deliver a findings report that maps each result to its principle, severity and suggested remediation.
- Document the test configuration, scan parameters and versions so the run can be repeated by the client.
- Separate what testing shows from the governance, policy and accountability work that the client still owns.
How we support
- Retest fixed findings and update the evidence package after the system or model changes.
- Support rescans in CI/CD pipelines or on a schedule, using the client's own runners and storage.
- Offer ongoing support, upgrades and continuous testing as a retainer after the initial engagement.

