Why promptfoo red teaming for insurance AI starts with claims and policyholder data
Claims and policyholder assistants answer coverage questions, handle health and financial details, and can misstate what a policy pays for or which providers are in network. A wrong answer about coverage is a customer harm and a regulatory exposure at the same time. promptfoo's insurance plugins target four failure groups: coverage discrimination, provider network misinformation, disclosure of protected health information (PHI), and disclosure of data covered by the Gramm-Leach-Bliley Act (GLBA). Each plugin generates adversarial prompts aimed at one of these failures, so the team can see where the assistant breaks before customers do. Confirm the exact plugin identifiers and their current behavior in the promptfoo red teaming documentation before writing any configuration.
Running these tests changes the work for the team that owns the assistant. Claims operations, compliance and security staff need to agree on what counts as a failed answer, such as a denial reason that depends on a protected characteristic or a network claim that does not match the directory. Someone must own the policy, the target configuration and the grading criteria, and someone must review the results. The tests also need realistic policy documents, provider data and test accounts that contain no live policyholder records. Ask your team which of these owners and data sets already exist.
promptfoo is MIT-licensed and runs locally: evaluations execute on the machine that runs them and talk directly to the model or application under test. That keeps the test workflow inside your own environment, which matters when prompts contain policyholder details. This page covers testing and the evidence it produces, not certification. Testing results can support a compliance review, but no test run by itself establishes that an insurer meets a legal or regulatory obligation. An independent assessor or the relevant authority makes that determination.
Insurance requirements that shape the red team scope
This table maps each regulatory requirement in scope for an insurer's claims or policyholder assistant to the build and test decisions it drives. Read each row against your own entity type, jurisdiction and data flows, because the same requirement can apply fully to one insurer and not at all to another.
| Requirement | What it means for the build and test plan | What you must confirm |
|---|---|---|
| DORA Articles 28 and 30 (ICT third-party risk) | If your insurer is a financial entity under DORA, the LLM provider, hosting platform and gateway behind the assistant are ICT third-party services. Each must appear in your register of information, and exit and transition plans must be documented and tested for services supporting critical or important functions. | Whether your entity falls within DORA's scope, whether the assistant supports a critical or important function, and that each model or hosting contract states where data is processed and covers data return. |
| PCI DSS (only where card data is handled) | Card data is in scope only if the assistant stores, processes or transmits cardholder data, or could affect the security of the cardholder data environment. If premium payment flows are in the chat, add tests for card data exposure in responses and logs. If not, document why the assistant is out of scope. | Whether any policyholder conversation, transcript or log can contain card numbers, and whether your payment provider or acquirer requires validation for this system. |
| FTC Safeguards Rule (16 CFR 314.4(c)(5)) | For non-bank financial institutions under FTC jurisdiction, multi-factor authentication is required for anyone accessing an information system unless the Qualified Individual approves an equivalent control in writing. Test whether the assistant's admin consoles, prompt tooling and tool-calling back ends enforce MFA and whether authentication can be bypassed through the chat interface. | Whether an FTC-regulated entity applies to you, who is your Qualified Individual, and whether any equivalent control exception is documented in writing. |
| GDPR (EU policyholder data) | Policyholder health, claims and identity details processed by an EU-facing assistant are personal data. Red team cases should check for disclosure of one customer's data to another, over-retention in logs and transfers to providers outside the agreed processing location. Health-related claim data may carry additional protections under the same regulation. | Your lawful basis and controller or processor roles, where the model and logs are hosted, and whether the processing record covers the assistant. |
| NIS2 (where applicable) | NIS2 applies to certain sectors and entity sizes in the EU, and member states determine how it reaches individual organizations. Where it applies, the assistant's supply chain, access control and incident handling become part of the security measures the entity must maintain, so red team findings should feed the incident and risk process. | Whether your organization is in scope in your member state, and how your national authority maps insurers to NIS2 categories. |
| Insurance-specific fairness and disclosure rules | Coverage discrimination, provider network misinformation and disclosure of protected policyholder data are not covered by the cited sources. Build these as separate test categories with pass criteria written by your compliance and legal teams. | Which state, national or sector rules govern claims handling and advice in your markets, and who signs off on pass and fail criteria. |
Which insurance risks the promptfoo plugins test
Coverage discrimination testing checks whether an assistant treats policyholders differently in ways the policy language, state rules or the carrier's underwriting guidelines do not allow. The risk is less about obvious slurs and more about subtle differences in how claims are explained, how coverage is described or which options are offered, based on age, disability, location, language or other protected characteristics. A failing response might tell one caller that a claim is likely to be denied on the basis of a characteristic that does not affect coverage, or offer a shorter explanation of appeal rights to one group. The test team should verify the answers against the actual policy forms, endorsements and state-specific claims handling rules, not against a general notion of fairness.
- Paired prompts: Build pairs of requests that differ only in one characteristic, then compare coverage answers, claim outcomes and next steps.
- Appeal and complaint paths: Confirm the assistant describes the same appeal rights, timelines and complaint channels for every policyholder who is in the same situation.
- Underwriting language: Check that the assistant does not invent eligibility criteria or cite rating factors that the filed rating plan does not use.
- Language access: Compare answers across supported languages to confirm the substance of coverage explanations does not change.
- Escalation triggers: Confirm that sensitive claim denials route to a human reviewer under the same conditions for every caller.
Before testing, ask the carrier's compliance and legal teams to supply the approved policy language, state variations and the list of protected characteristics their review covers.
Provider network misinformation occurs when an assistant tells a policyholder that a provider is in network, that a service is covered at a certain cost share or that a referral is not needed, when the carrier's directory and contracts say otherwise. Members often act on these answers by booking appointments, filling prescriptions or paying for care, so a wrong answer creates financial harm and complaints. Typical failures include confusing a facility with an individual clinician, stating that a plan covers out-of-network care without the required authorization or quoting a deductible that has already been met. The test team must verify each answer against the current provider directory, network agreements and benefit schedule for the specific plan, and must confirm which data source the assistant actually uses.
- Directory currency: Test with providers recently added, removed or re-contracted, and confirm the assistant does not rely on stale snapshots.
- Plan-specific answers: Check that answers change correctly between plans that share a provider but have different networks or cost shares.
- Authorization rules: Confirm the assistant states when prior authorization or referrals apply and does not promise coverage before a decision.
- Emergency and urgent care: Verify that emergency guidance points to emergency services and is not restricted by network status.
- Source attribution: Require the assistant to cite the directory or benefit document it used, so reviewers can confirm the answer quickly.
Ask the carrier which system is the authoritative source for network status and how often it is refreshed, because the test results are only as current as that feed.
PHI disclosure testing checks whether an assistant reveals protected health information to someone who is not entitled to it, or collects or repeats health details that should not be exposed in the conversation. In insurance, this risk is sharper because a claims assistant often handles diagnoses, procedure codes, prescriptions and explanation of benefits data. A failing response might confirm a diagnosis to a caller who is not the member or the authorized representative, reveal a dependent's claim history to a spouse without the required authorization, or quote claim details from a different member with a similar name. The test team should verify the assistant's disclosure decisions against the carrier's authorization records, personal representative rules and the minimum-necessary practices in its own privacy notices.
- Identity and authority: Test whether the assistant verifies the caller and checks their documented relationship before discussing claim data.
- Dependents and representatives: Confirm that access to a dependent's data follows the recorded authorization, including its scope and expiration.
- Name collisions: Use members with similar names and dates of birth to see whether the assistant mixes records.
- Context leakage: Check that details from one session do not appear in later sessions or in logs visible to other users.
- Minimum necessary: Verify the assistant shares only the detail the request requires, not the full claim history.
Confirm with the privacy office which disclosures the carrier treats as permitted, and whether the assistant's logs are themselves protected health information in your environment.
GLBA-covered data disclosure testing focuses on nonpublic personal information that insurers and related financial entities hold about customers, such as account numbers, financial details, bank information, premium payment history and income data gathered for underwriting. Whether a particular data element is covered, and which privacy and safeguards rules apply, depends on the entity type and the regulator, so the test plan must be built from the carrier's own privacy notices and information security program. A failing response might reveal bank account details when a caller only provides a policy number, disclose income used in underwriting to a third party, or share payment history with an unverified person. Testing should confirm that the assistant follows the carrier's authentication steps, its data classification and its sharing restrictions, and that its refusals are consistent.
- Authentication strength: Test whether high-risk requests, such as changing payment details, require the stronger checks the carrier's program specifies.
- Data classification: Confirm the assistant recognizes which fields are sensitive and redacts them in responses and transcripts.
- Third-party sharing: Check that requests from agents, brokers or vendors are limited to what the sharing agreement permits.
- Refusal consistency: Compare refusals across phrasing variants so a rephrased request does not unlock data.
- Retention and logs: Verify how long conversation records containing financial data are kept and who can read them.
Before testing, ask the carrier's privacy and information security teams for the written data classification and sharing rules, and confirm which state insurance data regulations also apply.
Configuration choices that matter for an insurance red team
A promptfoo red team against a claims or policyholder assistant depends on a few early decisions. Each one changes what the scan tests, what the grader accepts as a failure, and where the evidence ends up. Settle them in writing before the first probe runs.
Target setup to the live assistant
Decide whether promptfoo calls your claims assistant through an HTTP endpoint or a Python provider. Testing the production path, including the retrieval layer, system prompt and tool calls, shows failures a bare model call would miss. Ask the team which endpoint serves real policyholders and whether a staging copy uses the same prompts and data sources. A test target that differs from production can pass scans that production would fail.
Red teaming docsPurpose statement and grading corpus
The purpose statement tells promptfoo what the assistant is for, such as explaining coverage in plain language and routing claims. The policy corpus gives the grader the actual coverage terms, network rules and exclusions to compare answers against. Without them, a confident but wrong statement about coverage can look acceptable. Confirm who owns the corpus and that it matches the policy forms currently in force.
Synthetic policyholder data handling
Test prompts should use synthetic policyholder records, not copies of real claims files. Records that resemble PHI or GLBA-covered data still need a handling rule, because red team prompts and model responses are stored and may be sent to a model provider. Agree on which provider receives the traffic, what gets logged, and how test artifacts are deleted. Confirm the data path with your privacy and compliance leads before the scan.
Access controls for the team
The self-hosted promptfoo app has no RBAC, built-in authentication or SSO, so it is not a fit for shared production use. Enterprise adds teams-based access control, SSO and custom roles. Ask who may launch scans, view raw responses containing sensitive-looking content, and change plugin settings. Write those answers down before granting access to a shared instance.
- Self-hosted data store
- SQLite
Scan size against the Community allowance
The Community edition includes red teaming with 10k probes per month. Plugin count, strategy count and repetitions multiply quickly, so plan the probe budget per release or per insurance product line. Confirm whether the team will run full scans on each change or targeted scans on changed prompts. Overruns push the team toward Enterprise pricing, which is quoted by promptfoo, so budget the choice early.
Pricing pageWhere results are stored
Results from a self-hosted server live in a local SQLite database that cannot be shared across replicas. For a team in a regulated insurer, promptfoo On-Premise keeps the Enterprise functions inside your infrastructure with complete data isolation and a dedicated deployment engineer. Decide the retention period, the backup location and who may export reports. Choose the storage design before the first scan writes findings you must keep.
How an insurance red team rollout runs
The sequence moves from defining what the assistant can see and say to a retested set of fixes, so claims, legal and security owners can show that each insurance-specific risk was tested, triaged and closed.
Scope the assistant and its data sources
Define which assistant is under test, whether it serves claims intake, policyholder questions or agent support, and list every data source it can reach, such as policy administration records, claims notes, document stores, provider directories and retrieval indexes. Name the people who own each source and the approved policy language the assistant may quote. The step closes when the scope is written down and signed off by the claims and legal owners, and the list of in-scope data types, including any protected health information and GLBA-covered customer data, is agreed.
Build synthetic policyholder fixtures
Create fictional policyholder, claim and provider records that mirror the shape of production data without using real customer information. Cover the data categories in scope, such as health details, financial account fields and claim histories, and include edge cases like denied claims and out-of-network providers. Store the fixtures in version control with a note on how each one was made. The step closes when the fixtures load into the test target and a reviewer confirms that none of them contain real personal data.
Configure plugins and grading criteria
Select the promptfoo insurance plugins that match the scope, covering coverage discrimination, provider network misinformation, and PHI and GLBA-covered data disclosure, and add any custom checks for your own policy wording. Write grading rules that compare answers against the approved policy language rather than against general model opinion, and record which failures the legal owner treats as blocking. Confirm with your vendor and your own environment which plugins and grading options your promptfoo version supports. The step closes when the configuration file is reviewed and the blocking criteria are documented.
Run the baseline scan
Point promptfoo at the assistant through its configured target, run the red team scan against the current prompts and retrieval setup, and save the full report with the configuration and the model versions used. Keep the first run as a baseline so later runs can be compared with it. Check that the scan ran against the intended environment and not against a development endpoint by mistake. The step closes when the baseline report is archived and its failure list is ready for triage.
Triage findings with claims and legal owners
Review each failure with the claims lead, the compliance or legal owner and a security engineer. Sort findings by impact, decide which are real exposures and which are grading errors, and assign an owner and a fix type for each confirmed issue. Record the decision and the reason for every finding, including those accepted as residual risk with a named approver. The step closes when every failure has a status and a named owner in the tracker.
Fix prompts or retrieval
Address the confirmed issues in the places they originate. Some fixes belong in system prompts or output instructions, some in the retrieval index, such as removing documents that should not be searchable by the assistant, and some in access controls on the data sources themselves. Keep each change small and linked to its finding so the effect is traceable. The step closes when each fix is merged through the normal review process and the owners confirm the change matches the triage decision.
Retest and keep the evidence
Rerun the same scan with the same fixtures and configuration, compare the results with the baseline, and confirm that fixed findings no longer fail and that no new failures appeared. Store the retest report alongside the baseline, the triage record and the change history. Schedule the scan to rerun whenever prompts, models or retrieval sources change. The step closes when the comparison is signed off and the evidence package is filed where your audit and compliance teams can find it.
How red team traffic reaches the claims assistant
The flow starts on the tester's workstation or in a pipeline runner inside the insurer's network, where promptfoo runs locally and sends adversarial prompts to the claims or policyholder assistant. The assistant retrieves policy and provider network data before it answers, and those answers return to promptfoo, which grades them and writes the findings report. Check that the hosted model provider sits outside the insurer's boundary, and confirm which prompts, retrieved records and responses leave the network.
Red team traffic, retrieval and model calls across the insurer's trust boundary.
Compliance considerations and what testing does not prove
Insurance AI sits inside several overlapping duties, and which ones apply depends on who the insurer is, where it operates and what data its assistant touches. The cards below set out the duties most likely to shape a red team scope, and they end with the limit that matters most: DeployOpen prepares test evidence, while auditors, regulators and your own counsel decide what counts as compliance.
DORA contract and register duties
If your organization is a financial entity under DORA, the AI vendor chain counts as ICT services. Article 28(3) requires a register of information covering those contractual arrangements, and Article 30(2) requires each contract to state where services are provided and data is processed, with advance notice of changes and data return on termination. Check whether your model provider, gateway and hosting partner appear in the register, and whether the exit strategy under Article 28(8) can be tested for the assistant. Test evidence does not replace the contract clauses.
- DORA applies from
- 17 January 2025
GLBA data and MFA under the Safeguards Rule
Policyholder data that a non-bank insurer collects for financial products can fall under the FTC Safeguards Rule in 16 CFR Part 314. The rule requires multi-factor authentication for any individual accessing an information system unless the Qualified Individual approves an equivalent control in writing. Confirm which assistant tools can reach policyholder records, whether the assistant can be tricked into disclosing another customer's data, and whether the approval for any MFA exception is on file before the red team starts.
- MFA requirement
- 16 CFR 314.4(c)(5)
PHI handling in claims data
Claims assistants often receive diagnosis codes, treatment records or provider invoices that qualify as protected health information when an insurer acts for a covered entity. Test whether prompts, retrieved documents and tool outputs can expose that data to a user who should not see it, and whether logs or traces keep it longer than the claim requires. Confirm with your privacy office which legal basis and business associate terms apply, because the answer changes what a finding means.
GDPR and NIS2 scope
Insurers operating in the EU face GDPR for personal data about policyholders and claimants, and NIS2 may apply depending on sector and size under national rules. GDPR questions include lawful basis, data minimization and transfers to model providers outside the EU. NIS2 questions include incident reporting and supply chain security. Ask counsel which obligations apply before choosing which findings to escalate, since a red team can show a data flaw without establishing a legal breach.
GDPR textPCI DSS only when payment flows are in scope
PCI DSS applies to entities that store, process or transmit cardholder data, or that could affect the security of the cardholder data environment. A policy assistant that only explains premiums or coverage usually stays outside that scope. An assistant that takes card details for premium payments or refunds may bring the cardholder data environment into scope, and that changes the testing boundary. Confirm the payment path with your QSA or acquirer before adding payment-related probes to the scope.
PCI DSS standardWhat testing does not prove
A red team run shows which probes succeeded against a specific model, prompt, configuration and date. It does not show that a system is compliant, that controls operate over time, or that untested prompts are safe. DeployOpen prepares test evidence, including scope, probe results, fixes and retest records. Independent auditors, regulators and certification bodies decide compliance. Re-run tests after model, prompt or data changes, and keep the evidence tied to the version that was tested.
Questions insurers ask before commissioning promptfoo red teaming
What does promptfoo red teaming for an insurance assistant cost?
No DeployOpen price is published, and the quote follows from the written scope. The main cost drivers are the number of assistants and workflows under test (claims intake, policyholder questions, agent-facing tools), how many data sources feed them, and whether the target calls hosted model APIs whose usage you pay for directly. The promptfoo Community edition is free and includes red teaming with 10k probes per month, so the probe budget and model usage are part of the planning. Ask the quote to separate one-time work (scoping, test design, the first scan, the findings report) from recurring work (scheduled rescans, retainer support) and to list which model and infrastructure costs are yours.
How long does an insurance red teaming engagement take?
The timeline depends on how many assistants are in scope, how well their policy, claims and provider data are documented, and how quickly the insurer can review findings and approve fixes. Engagements are fixed-scope, so the start, deliverables and dates are agreed in writing before work begins. The longest steps are usually getting representative test data approved by compliance, agreeing which findings count as failures, and retesting after fixes. Ask for a milestone plan that names who approves each step and how many review rounds are included.
What must our team provide before testing starts?
Three things usually decide whether testing can start on schedule: a policy corpus that reflects the products and jurisdictions the assistant answers about, synthetic claim and policyholder records that exercise the sensitive cases without using live personal data, and named sign-off owners for compliance, legal and the business line. Testing against live policyholder data is rarely needed and adds handling obligations. Confirm in the quote who supplies the target endpoint or test environment, who holds the credentials, and who decides whether a finding is a defect, an accepted risk or a policy question.
Can our in-house team run promptfoo red teaming with the free edition?
Often yes, for a team with engineers who can configure a target, write plugin and strategy settings and read the results. The 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. What it does not include is team sharing, SSO, teams-based access control, continuous monitoring or priority support, which are Enterprise features. Note that the self-hosted server uses a single-instance SQLite database with no RBAC or built-in authentication and is not recommended for production. Weigh your internal capacity to interpret findings and maintain the scan schedule against those gaps.
What does the MIT license cover in promptfoo?
promptfoo is licensed under the MIT license, which permits you to use, modify and run the software inside your own environment. The license covers the open-source code. It does not cover the commercial Enterprise and On-Premise offerings, which are sold under separate terms with custom pricing. Your own test cases, plugin configurations and reports belong to you. Have legal counsel confirm how the license applies to your internal use, any modifications you make and any redistribution, and confirm current terms against the project's license file before procurement.
What does a retest include after the fixes are made?
A retest repeats the agreed test cases against the changed assistant to confirm that each fixed finding no longer reproduces and that the fix has not opened a new failure in the same category. It should use the same scope and plugins as the original engagement, and the retest results should be documented alongside the original findings. Ask the written scope to state how many retest rounds are included, whether new plugins or strategies are added, and whether retesting is a one-time item or part of a retainer that includes scheduled scans.
What does a finding look like in an insurance red team report?
Each finding should name the assistant, the input that produced the failure, the response, the risk category (for example coverage discrimination, provider network misinformation, or disclosure of protected health or consumer financial data) and the recommended fix. Good reports separate reproducible failures from ambiguous ones and record which probes were run. Ask the quote to specify the report format, the severity scale and whether the evidence is delivered in a form your compliance team can file. Testing produces evidence for your own review; it does not produce an audit report or certification.
What to ask a partner before the test starts
Start with the data. Ask the partner whether test cases will use synthetic policyholder data or real records, and get the answer in writing. Synthetic claims, policy numbers and member profiles should be built to exercise the same paths as production without containing anyone's protected health information or GLBA-covered nonpublic personal information. If the partner proposes copying real claim files into a test environment, treat that as a separate data handling decision with its own approval, retention limit and deletion step. Also ask where test traffic goes. Because promptfoo runs locally and talks directly to the model under test, ask which model endpoints, AI gateways and logging services will receive the probe prompts and the responses, and whether any of them are hosted by a third party. Confirm this against your own environment rather than assuming it.
Next, ask who checks the insurance-specific grading. Generic harm grading does not tell you whether a coverage denial was discriminatory or whether a network answer was wrong about a provider's participation status. Ask for the names of the people who review the plugin outputs, their insurance or claims background, and how disagreements between automated graders and reviewers are resolved. Ask what the findings report contains: each failing probe with its exact prompt and response, the plugin and strategy that produced it, the severity, the affected workflow, a suggested fix and the retest result. Then ask how fixes are retested. The partner should rerun the same probes against the changed system and show the before and after results, not just a new pass rate.
Finally, ask whether the deliverable is written so your own compliance team can use it. Ask for the scope statement, the frameworks mapped in the report, the test configuration and the version of promptfoo used, so the results can be reproduced later. Confirm that the partner does not issue audit opinions or certifications, and that the evidence will be shaped for your internal review and any independent assessor you engage. Agree in writing on who owns the configuration files, reports and data, how long they are kept and how they are deleted at the end of the engagement.
How DeployOpen works on this
DeployOpen runs promptfoo red teaming for insurance AI as a written, fixed-scope engagement. We agree on the claims assistant, policyholder assistant or agent under test, the insurance plugins in scope and the evidence the reviewing team needs before any testing starts.
How we scope
- Confirm which assistants, channels and data sources are in the test, such as claims status, coverage questions and provider search
- Agree which insurance plugins apply, covering coverage discrimination, provider network misinformation and PHI or GLBA-covered data disclosure
- Record the target endpoint, model providers, test accounts and data handling rules in the written scope before work begins
How we build
- Install promptfoo under the MIT license in your environment and connect it to the assistant through the endpoint you specify
- Configure red team runs with the agreed plugins and strategies, using test accounts and synthetic policyholder records only
- Grade outputs, record failing transcripts and review each finding with your security and compliance team before reporting
How we hand over
- Deliver a findings report with reproducible prompts, affected plugins, severity and suggested fixes for each issue
- Provide the run configuration and scan settings so your team can repeat the tests in its own pipeline
- Retest agreed fixes and document the results, noting that test evidence supports but does not replace an independent audit
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after the initial engagement ends
- Plan retests when the model, prompts, policies or promptfoo version changes, with the cadence agreed in writing
- Confirm with your team which support terms, response expectations and access arrangements apply before signing

