Evaluate AI Model Safety Without Exposing Prompts
Evaluate an AI model’s safety by testing it with carefully controlled prompts while keeping sensitive wording and data out of logs, reports, and third-party tools. You’ll need an approved test environment, a clear scope, and a way to record results using redacted or synthetic examples.
What You’ll Need
- Written authorization to test the model, plus the approved environment and rules for testing.
- A list of safety behaviors to assess, such as refusing harmful requests, protecting private information, and resisting prompt injection.
- A secure place to store test materials and results, with access limited to authorized reviewers.
- A method for using synthetic prompts or locally held test cases instead of sending confidential prompts to external services.
- A reporting template that captures outcomes without reproducing sensitive prompt text.
Step-by-Step
- Define scope and permissions. Identify the exact model, version, interface, and deployment configuration you are allowed to evaluate. Set boundaries for topics, tools, data, request volume, and testing time. Do not probe systems or accounts outside that scope. Confirm whether requests and outputs are retained, reviewed, or used for model improvement; ask the system owner before entering any confidential material.
- Choose measurable safety goals. Turn broad expectations into observable checks. For example: the model should decline a request for disallowed assistance, avoid revealing a supplied secret, distinguish quoted instructions from trusted instructions, and avoid claiming it completed an action it did not perform. Define what counts as a pass, a failure, or an uncertain result before testing. This prevents judgments from shifting after you see an answer.
- Classify prompts by sensitivity. Mark test cases as public, synthetic, sanitized, or restricted. Treat passwords, access tokens, personal data, internal documents, unreleased product information, and confidential examples as restricted unless the owner explicitly approves their use in that environment. Keep the original sensitive wording in its approved secure location; do not paste it into a public chat, shared issue tracker, or unapproved evaluation service.
- Create safe test substitutes. Replace real people, organizations, identifiers, and secrets with fictional placeholders. For privacy checks, use a fabricated record with invented details. For confidential policies, write a generic scenario that tests the same behavior without copying the policy. Preserve the feature relevant to the test, such as an instruction conflict or an attempted request to reveal a secret, but remove unnecessary identifying context. Synthetic cases can reveal broad weaknesses, though they cannot prove how the model handles every real document.
- Use a controlled test interface. Prefer an approved local or private evaluation environment when available. If using a hosted service, verify its data-handling terms and configuration with the responsible administrator, including retention, access, and deletion options. Disable optional history, sharing, or telemetry only when authorized and when those controls exist. Never assume that a private-looking chat is excluded from provider logs.
- Run a small pilot first. Test a few low-sensitivity cases to confirm that the interface, logging, and scoring work as expected. Check whether prompts or outputs appear in session history, analytics, or exported files. If the environment behaves differently from the approved setup, stop and resolve that discrepancy before continuing. Use consistent settings and record the model identifier, date, and relevant configuration, not confidential prompt content.
- Evaluate responses against the rubric. Submit the approved cases one at a time or in a controlled batch. Record a case ID, safety category, expected behavior, observed outcome, severity, and confidence. Use labels such as “refused,” “complied,” “partially complied,” or “unclear,” then explain the judgment in general terms. Avoid copying a sensitive request or answer into notes; a short redacted excerpt may be used only if policy permits it.
- Check consistency and context. Repeat important tests with equivalent wording and, where relevant, a fresh session. A single refusal does not establish reliable safety, and a single failure does not explain its cause. Keep tests within scope and avoid escalating into real-world harmful instructions or attempts to access systems. Compare outcomes across approved configurations only when that comparison is part of the evaluation plan.
- Review findings securely. Have an authorized reviewer inspect high-severity or ambiguous results. Share reports through approved channels, using case IDs and summaries rather than prompt dumps. Keep any mapping between case IDs and restricted source material separately, with tighter access. Set a retention period and securely remove temporary exports when they are no longer required, following organizational policy.
- Report limitations and next steps. State what was tested, what was excluded, the model and configuration, the scoring criteria, and any uncertainty. Do not describe a limited test as proof that a model is safe. Recommend targeted follow-up tests, mitigations, or review by the system owner. Re-run the relevant cases after a material model or configuration change, using the same approved safeguards.
Common Mistakes
- Pasting real secrets “just to see what happens.” This creates exposure even if the model refuses. Use invented secrets and approved test data.
- Assuming deletion means no retention. Removing a chat from your view may not remove provider-side records. Confirm handling with the administrator or provider documentation.
- Recording too much detail. Prompt and response dumps can recreate the very risk the test was meant to assess. Store only what the report needs.
- Using vague pass criteria. Agree on expected behavior and severity levels before testing, including how to score partial or uncertain answers.
- Overgeneralizing from a small sample. Results apply to the cases, model version, and setup tested—not every user, prompt, or deployment.
- Ignoring configuration changes. System instructions, connected tools, filters, and model versions can change results. Record relevant settings without including restricted content.
Tips
- Use unique case IDs so reviewers can discuss findings without repeating prompt text.
- Keep a separate, access-controlled key if a test case must be linked back to a restricted source.
- Test both direct requests and realistic variations, but keep examples synthetic and within the approved scope.
- Separate model behavior from interface behavior. A leak may come from conversation history, a connected tool, or logging rather than the model’s answer alone.
- Use a second reviewer for high-impact judgments and document disagreements rather than forcing a false consensus.
Troubleshooting
- You discover a real secret in a prompt or output: Stop testing. Do not copy or circulate it. Follow your organization’s incident process, notify the designated owner, and request approved containment or deletion steps. Preserve only the minimum evidence required by that process.
- You cannot confirm how the service handles data: Do not submit restricted material. Ask the administrator to verify the applicable configuration and terms, or switch to an approved environment.
- The model’s result changes between runs: Check that the model, system instructions, tools, and other settings are unchanged. Repeat a limited number of controlled cases and report variability instead of selecting only the most favorable answer.
- Reviewers disagree on a score: Return to the written rubric, compare the response with the expected behavior, and mark the case uncertain if the criteria do not settle it. Update the rubric before scoring similar cases.
- Reports are still exposing too much: Remove prompt quotations, identifiers, and unnecessary output excerpts. Replace them with case IDs, categories, and concise behavioral summaries, then recheck file permissions.
Frequently Asked Questions
Can I evaluate safety without using real prompts?
Often, yes. Synthetic prompts can test many behaviors while reducing exposure. For findings tied to a specific confidential workflow, use only an approved environment and the minimum necessary data.
Are synthetic tests enough to prove a model is safe?
No. They provide useful evidence about selected scenarios, but cannot establish safety across every prompt, user, context, or model update.
Should I use an external prompt-testing service?
Only if the service and its data handling are approved for the material you plan to submit. Otherwise, keep testing in an authorized environment and use non-sensitive cases.
What should I include in a finding?
Include a case ID, test category, expected and observed behavior, severity, confidence, model configuration, and a redacted explanation. Avoid sensitive prompt text unless explicitly required and approved.
What if a model repeats a secret I supplied?
Stop the test, avoid sharing the output, and follow the organization’s incident procedure. A refusal or later deletion should not be treated as proof that the data was never retained.
How often should safety tests be repeated?
Repeat relevant tests after material changes to the model, configuration, connected tools, or deployment context, and according to the organization’s review schedule.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.