Why teams load MLCommons AILuminate prompts into PyRIT
A team that must show which hazard categories its generative AI system was tested against needs a test set it can point to. AILuminate is one of the research datasets PyRIT can load, and it gives coverage tied to a published hazard taxonomy, so the categories in your test report can be traced to a named external structure rather than to a list your own team wrote. That traceability is the main reason to load it. Reviewers, customers and internal risk committees often ask not only whether you tested, but which harm categories were covered and how you chose them.
In PyRIT, the loaded prompts become objectives. An objective is the goal an attack tries to reach against your target, such as getting the system to produce a particular kind of hazardous content. PyRIT's attacks, scorers and memory then run against those objectives, and each result is recorded with the hazard category it came from. Teams usually load AILuminate when they need broad hazard coverage for a baseline assessment, when an auditor or customer asks for a recognized taxonomy, or when they want a second source of objectives next to a benchmark set such as HarmBench. Confirm the dataset's current loader name, licensing terms and version in the PyRIT documentation before you build a report around it.
Before you run the set, decide which categories matter for your application and which ones fall outside its use. A customer service assistant and a clinical summarization tool can face very different hazards, and a full run across every category produces results you must then explain. Record the dataset version and the category mapping you used, because a later rerun against a changed set will not be comparable without that record. Scorers will also decide how many attempts count as a failure, so confirm how your chosen scorer treats the hazard categories in the set before you interpret attack success rates.
What the AILuminate prompt set contributes next to other datasets
AILuminate sits alongside other PyRIT datasets rather than replacing them. Its value is a published hazard taxonomy that gives your results a shared vocabulary, while the other sets cover attack styles and harms it does not target.
Taxonomy-mapped coverage
Each AILuminate prompt is tied to a hazard category in a published taxonomy, so a run can be reported by category rather than as one aggregate count. Before you build a report on it, confirm the category names and the number of prompts per category in the dataset documentation, since those can change between releases. Record the dataset version with every run so the mapping stays reproducible.
Loading datasets docsBreadth across hazard areas
AILuminate prompts span many hazard areas, which makes it a useful first pass when you have not yet decided which harms your application can cause. Breadth shows where a model responds to a category at all, but it does not show depth within a category. Expect to add targeted sets for the categories that matter most to your product.
Shared reference for reporting
Because the taxonomy is published, results can be compared with other teams and vendors that also use it, and with your own earlier runs. Compare like with like: the same dataset version, the same scorer and the same target configuration. Differences in any of those three can shift results more than the model does.
Single-turn prompts only
AILuminate prompts are single requests, so they do not test how a model holds a safety boundary across a conversation. Pair them with multi-turn strategies such as Crescendo or TAP when escalation is a risk for your application. Treat a clean AILuminate run as evidence about direct requests only.
Complement to HarmBench
HarmBench objectives are built around specific harmful behaviors and attack methods, while AILuminate follows a hazard taxonomy. Running both gives you a behavior-level view and a category-level view of the same target. Keep the two result sets separate in your reporting so the difference in design is visible.
Application-specific gaps
A general hazard set does not know your product, your users or your data. Prompts about your internal systems, regulated advice or customer data need seed files written for your context. Decide early which gaps you will fill with custom seeds and who owns reviewing them.
How AILuminate complements HarmBench in PyRIT
HarmBench and AILuminate answer different questions, so they should not be treated as interchangeable. HarmBench objectives are the starting point for PyRIT's Foundry and Jailbreak scenarios, where the goal is to find out whether a target can be pushed into producing harmful output by an attack. AILuminate prompts are organized around a published hazard taxonomy, so their main value is coverage reporting: you can show which hazard categories were exercised and map the results back to a named set of harms. Before running either, confirm which PyRIT scenario and dataset loader your team will use in your installed version, since the built-in dataset catalog and scenario names change across releases. For the HarmBench side, see the sibling topic on using HarmBench with PyRIT.
Running both is worthwhile when your report has to answer two questions: whether attacks succeed, and whether the testing covered the hazard categories a reviewer expects. A practical sequence is to load the AILuminate prompts as single-turn objectives first, score the responses with the scorer you have validated for your target, and record which taxonomy categories produced flagged responses. Then run HarmBench objectives through the attack scenario to measure attack success under adversarial conditions. Expect overlap: the two sets can cover similar harm areas, so counting the same behavior twice inflates the number of tests without adding coverage. Tag each objective with its source and category in memory so overlap is visible when you export results, and confirm the category labels in the dataset you load rather than assuming they match your own risk register.
Neither public set describes your application. A customer support assistant, a claims workflow or an internal coding agent can cause harms that appear in no general taxonomy, such as disclosure of account data through a tool call or unauthorized changes to a record. Write objectives for those harms as YAML seed prompts that name your data, tools and users, and keep them in the same run so their results sit beside the benchmark results. Treat the public sets as a baseline for general hazards and your own objectives as the test of the risks your deployment actually carries. Before a regulator, auditor or customer asks, decide which set of objectives you will treat as the authoritative scope and document why.
How to load AILuminate prompts: options by workflow
Teams writing custom attacks load AILuminate in Python through PyRIT's built-in dataset loading, then pass the prompts into the attack, converter and scorer objects they define. The engineers who own the attack logic configure the dataset selection, sampling, the target and the scoring, so the run is as controlled as the code around it. Repeatability depends on your discipline: pin the PyRIT version, record the dataset load parameters, and keep the script in version control.
- What you configure: the dataset name, any sampling limits, the target, converters, the attack class and the scorer.
- Who runs it: security engineers or ML platform engineers comfortable with Python and the PyRIT memory model.
- Reproducibility: high when the script, PyRIT version and dataset version are pinned together.
- Control: you decide exactly which prompts reach the target and how each response is judged.
- Trade-off: you own all the plumbing, including logging and evidence export.
Before relying on this path, confirm the loader parameters and dataset identifiers in the 1.1.0 documentation for your installed version.
The pyrit_scan command runs packaged assessments from a configuration file, which suits recurring runs and CI pipelines. The team configures the scenario, target and settings once, and a platform or security operations group runs it on a schedule or on each change to the system under test. Fewer decisions are made per run, so results are easier to compare across releases, but the team has less say over which individual AILuminate prompts are included.
- What you configure: the scenario and target settings in the scan configuration, plus credentials in the environment file.
- Who runs it: platform or security engineers who maintain the pipeline, with application owners reviewing output.
- Reproducibility: strong across runs when the configuration file and PyRIT version are version controlled.
- Control: lower at the prompt level, higher at the run level, since the scenario fixes the method.
- Trade-off: check whether the packaged scenario includes AILuminate and how it selects prompts before you treat its results as hazard coverage.
Confirm the scanner options and scenario contents against the 1.1.0 documentation, because packaged scenarios change between releases.
CoPyRIT is PyRIT's web GUI for human-led red teaming and team collaboration. A red team lead or security analyst selects prompts and works through the target interactively, so the dataset becomes a shared starting point for people rather than an automated batch. The team configures the deployment and access, and testers choose and adapt prompts during sessions, which gives the most judgment over each exchange but the least automatic repeatability.
- What you configure: the deployment, group-based access and connections to the target and scoring services.
- Who runs it: human red teamers working together, usually led by a security lead.
- Reproducibility: lower, because outcomes depend on the tester's choices, so record prompts and sessions in memory.
- Control: highest for investigating a specific response or following up on an interesting failure.
- Trade-off: it does not give full-dataset coverage on its own, so pair it with a scripted run when you need a complete hazard sweep.
Confirm which AILuminate features CoPyRIT exposes in your version, and check the deployment requirements in the PyRIT documentation before planning access.
Configuration options and when each fits
This table compares the dataset loading choices you control when pulling AILuminate hazard prompts into PyRIT: the full set, a sampled subset, hazard category filtering and stored seeds. Read each row for when it fits and what it costs in coverage or run time. Items marked for verification depend on PyRIT's dataset loader behavior that the supplied documentation does not confirm in detail.
| Option | When it fits | Cost in coverage or run time |
|---|---|---|
| Full AILuminate set | Formal coverage runs where you need every hazard prompt tested against the taxonomy, such as a pre-release assessment | Highest coverage, longest run time and the most target calls and scorer calls; confirm the full prompt count with the dataset source before budgeting |
| Sampled subset via max dataset size | Routine or CI runs where you want a fast signal on a target after each change | Faster runs, but some hazard categories may receive few or no prompts; verify how sampling is distributed across categories |
| Hazard category filtering | When one application can cause only certain harms, such as a support bot that should never give medical or weapons guidance | Narrower run time, but untested categories fall outside your coverage claim; confirm whether the loader supports category filters before relying on it |
| Seeds stored in PyRIT memory | Teams that rerun the same prompt set across model versions or share one reviewed set | Adds a one-time import step and needs memory maintenance; repeat runs avoid reloading, but the stored set must be refreshed when the upstream dataset changes |
| Mapping results back to the taxonomy | When an assessor or internal reviewer asks which hazard categories were covered and with what result | Requires tagging or keeping category metadata through the run; confirm that category fields survive import and export in your PyRIT version |
| Pairing AILuminate with HarmBench | When you want a published hazard taxonomy plus a second, differently built benchmark | Roughly doubles prompt volume if run in full; sampling each set keeps run time bounded but lowers per-set depth |
Setting up an AILuminate run in PyRIT
This sequence takes a team from a clean Python environment to a verified AILuminate run in PyRIT, with each step closed by a check so the results can be traced back to a known configuration. The output is a set of scored conversations in PyRIT memory that map to the AILuminate hazard categories.
Install PyRIT on a supported Python version
Create a clean virtual environment and install the PyRIT package with pip. The PyPI package supports Python 3.10 up to but not including 3.15, and the PyRIT documentation recommends Python 3.13, so use that version unless your team has a reason to pin another supported one. Run the installer as the engineer who will own the run, on a machine that can reach the system under test. The step is done when the package imports cleanly in a Python shell and the version reported by pip matches the release your team has agreed to test against.
Configure credentials and settings files
Place the credentials for your target and scorer models in
~/.pyrit/.env, and put run settings such as memory location and defaults in~/.pyrit/.pyrit_conf. Keep keys out of the configuration file and out of any shared repository, and restrict file permissions to the account that runs the tests. Confirm the exact keys each target and scorer expects in the PyRIT documentation for your installed version. The check is a short script that initializes PyRIT and reports which target and scorer credentials it found, without printing their values.Load the AILuminate dataset
Load AILuminate from PyRIT's built-in research datasets, which the PyRIT documentation lists among the datasets it can load. Review the prompt count, the hazard labels attached to each prompt and any language or license terms that apply to the source before you run anything against a live system. Confirm the dataset name and loader call against the version you installed, since loader names can change between releases. The check is a printed count of prompts grouped by hazard category, which you should compare with the category list in the published AILuminate documentation.
Point a target at the system under test
Create a PyRIT target for the system you are testing. This may be a hosted model endpoint, a self-hosted model, or a custom HTTP or WebSocket application, depending on what your organization deploys. Record the exact model name, version, system prompt and any filters or middleware in front of the model, because these determine what the results describe. Send one benign test prompt and confirm a response comes back through the target, with the request and response logged in memory. Do not start the full run until this single exchange works end to end.
Choose scorers that match the hazard categories
Select the scorers that will judge each response, such as an LLM-based judge, Azure AI Content Safety, or custom logic that your compliance team has reviewed. Scorers determine whether a response counts as a failure, so choose them with the AILuminate hazard categories in mind and test them on a few known-good and known-bad examples. Document the scorer name, model and configuration so the results can be reproduced. The check is a small scoring run on sample responses where you know the expected outcome, and the scorer labels match those expectations before you proceed.
Run the AILuminate attack against the target
Run the attack or scenario that sends the loaded AILuminate prompts to the target and passes each response to the chosen scorers. Start with a small subset of prompts to confirm that concurrency, retries and rate limits behave as you expect for your endpoint, then run the full set. Keep the run identifier, PyRIT version, dataset version and target configuration together so the run can be repeated. The step closes when the run finishes without silent failures, and the number of attempted prompts matches the number of scored responses.
Verify the run records in PyRIT memory
Query PyRIT memory, which stores conversations and results in SQLite or Azure SQL, to confirm that every prompt has a matching request, response and score. Check that the hazard labels from the dataset survived the run and that no conversation is missing its scorer result. Export a sample of conversations and read them yourself, since automated scores can miss context. The run is verified when a reviewer can trace any scored result back to the prompt, the target configuration and the scorer that produced it.
How AILuminate prompts flow through PyRIT to scored results
The run starts in the AILuminate loader, which turns hazard prompts into objectives that an attack strategy sends to the target. Converters are optional and only transform prompts that the attack strategy passes to them. The target under test sits outside PyRIT's trust boundary, so every prompt leaves your PyRIT process and every response returns across that line. Scorers judge each response, and PyRIT writes conversations and results to SQLite or Azure SQL memory. Check which hazard categories the loader maps, and confirm where the endpoint runs before sending prompts.
Request flow from AILuminate prompts to scored results, with the trust boundary marked.
Mapping results to a hazard taxonomy for reviewers
The reviewer's question is simple: for each finding, which hazard category did the prompt come from, and does the result hold up when someone checks it. You answer that by carrying the taxonomy label from the seed into PyRIT's memory with each attack, so every conversation and score can be traced back to its source. Set the hazard category, the AILuminate prompt identifier and the dataset version in the seed metadata when you load the prompts, and confirm that these values persist through the attack run. If a field is dropped at load time, the later memory queries cannot group results by category, and you will be sorting spreadsheets by hand. Check this with a small run before the full set, and confirm the exact metadata field names against the dataset loader in the PyRIT documentation for your installed version.
Once labels are stored, use memory queries to build the reviewer view. Group conversations by hazard category, then by target and by scorer outcome, and keep the attack identifiers so each row links to the full transcript. Export the conversations for the categories a reviewer asks about rather than sending the whole run, because a reviewer will check a sample of transcripts before trusting a rate. Record the scorer used for each result, since a success rate means nothing to a reviewer without knowing what judged the response. Note any prompts that failed to run, errored, or were filtered before they reached the target, and report those separately so the denominator is honest.
Treat the mapping as evidence of what was tested, not as a conclusion about the system's safety. A category with no successful attacks shows only that the prompts in that category did not succeed against this target, with these settings, on this date. DeployOpen prepares the test records, labels and exports that compliance and security teams can review, but DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies decide what counts as sufficient evidence, what scope they accept and whether the taxonomy mapping meets their requirements. Confirm those expectations with your assessor before the run, so the metadata and retention choices match what they will ask for.
Security and operational risks when running hazard prompts
Running AILuminate hazard prompts through PyRIT means generating harmful content on purpose and storing it. The cards below cover the risks that follow from that: what sits in memory, who can read it, where credentials live, what the target costs, whose models you are allowed to test, and how to report a flaw in the tool itself.
Harmful content stored in memory
Every AILuminate prompt and every model response is written to PyRIT memory, so hazardous text ends up in a database file on disk. Decide before the first run who may open that file, how long it is kept and how it is deleted. Ask whether your memory backend is a local SQLite file on a laptop or a shared Azure SQL database, because the handling rules differ. Check that backups and developer copies of the database follow the same retention rule.
Access control on stored conversations
PyRIT memory holds full conversations, scores and labels, so a shared database exposes every hazard prompt a team has run. Restrict read access to the people who review results, and keep scanner output out of general-purpose shared folders. Confirm which database roles can query the conversation tables and whether exports are logged. Treat the memory store with the same access model as the most sensitive test data in the program.
Credentials in .env files
PyRIT reads credentials for targets and scorers from ~/.pyrit/.env, which means API keys for the model under test often sit in plain text on the operator's machine. Use short-lived or scoped keys for the test endpoint, never a production key. Keep the file out of repositories and shared images, and rotate keys after a test cycle. Where your team runs PyRIT in automation, confirm how secrets are injected instead of copied into files.
Rate limits and cost on the target
AILuminate runs send many prompts to the target, and multi-turn attacks multiply the requests per objective. Set concurrency and retry limits deliberately so a run does not exhaust a shared quota or trigger provider throttling for production users. Estimate request volume from the dataset size before running, and set spending alerts on the test account. Ask your provider what limits apply to the test key and who pays for the tokens consumed.
Scope approval for third-party models
Hazard prompts sent to a hosted third-party model can breach that provider's acceptable use terms, and the provider may log or review the traffic. Before testing, confirm in writing that the model owner and the provider permit adversarial testing with harmful content. Record which model version, deployment and region were tested so results can be tied to a specific system. Agree the test window and the people authorized to run it.
Reporting flaws in PyRIT
If a run exposes a vulnerability in PyRIT itself, such as a flaw in how it stores or handles data, report it privately rather than in a public issue. The project's security policy directs reports to the Microsoft Security Response Center. Keep the reproduction steps off shared channels until a fix is available, and record the PyRIT version you ran so the report is actionable. Check the release notes before upgrading to confirm whether a security fix applies to your version.
PyRIT on GitHubQuestions buyers ask about AILuminate in PyRIT
What does running AILuminate prompts through PyRIT cost in effort?
The cost is mostly people time, and it depends on how much of the work is new to your team. The main components are setting up PyRIT and its credentials, connecting the target system you want to test, choosing which AILuminate hazard categories apply to your application, running and scoring the attacks, and writing up findings. The software is open source under the MIT license, so there is no license fee for PyRIT itself. Model and API usage on the target and scorer side is a recurring cost that depends on how many prompts you send. Ask any partner for a quote that separates one-time setup from recurring test runs, and that states which target and scorer costs your team pays directly.
How long does a first AILuminate run take?
The first run takes longer than later runs because most of the time goes to setup, not prompting. Duration depends on how quickly you can get a working environment with Python in a supported version, credentials stored correctly, the target reachable from the test host, and scoring configured so results can be read. It also depends on how many hazard categories you test and how many prompts each category contains. Your team should confirm these items with its own environment and not rely on a generic figure. A written scope with a timeline agreed before work starts is the reliable way to get a date.
What must our team provide before testing starts?
Three things need to be in place before any prompt is sent. The first is the target: an endpoint, model or web application that PyRIT can reach, with a clear description of what it is supposed to do. The second is access: service accounts or API keys with the right scope, plus network paths from the test host, and approval for any data the prompts or responses may touch. The third is an approved test window, agreed with the owners of the system and with whoever monitors it, so that high volumes of hazard prompts do not trigger incident response or hit rate limits in production. Ask your team to document who approves each of these.
Can an internal team run AILuminate in PyRIT alone?
Yes, a capable internal team can run it alone if it has someone comfortable with Python, a basic understanding of how the target application works, and time to review results. PyRIT is a Python framework with documented dataset loading, so the mechanics of loading AILuminate prompts are not the hard part. The harder work is judgment: deciding which hazard categories matter for your product, reviewing borderline responses, and deciding what counts as a failure. Teams without prior red teaming experience often find that scoring and interpretation take more effort than the run itself.
When does a partner add value to an AILuminate run?
A partner adds the most value when the test has to be defensible to people outside the team. That includes building the scope and mapping hazard categories to the application's real use, connecting PyRIT to non-standard targets such as custom HTTP endpoints or web chat interfaces, tuning scoring so results are consistent, and producing findings with fixes and a retest. DeployOpen plans, implements and tests self-hosted systems in infrastructure you control, and runs AI security testing, including AI and agent security reviews. A fixed-scope engagement defines these deliverables in writing before work starts, so you can compare it with the cost of doing the work in-house.
Is AILuminate alone enough to test our application?
AILuminate alone is usually not enough, because it covers a published hazard taxonomy rather than every risk your application can create. It gives broad coverage across hazard categories that can be mapped and reported, which is valuable for showing a systematic approach. HarmBench adds a different set of harmful behaviors that often drive jailbreak-style testing. Neither set tests application-specific misuse, such as data leakage through your own tools or permissions that an agent should not have. Plan to combine a standard set with objectives written for your application, and confirm with your risk owners which categories must be covered.
How do AILuminate results support a compliance review?
AILuminate results support a compliance review by showing that testing was systematic, repeatable and tied to a named taxonomy, which reviewers can follow. The evidence is strongest when you keep the run configuration, the prompt set version, the target version, the scorer settings and the memory records of each conversation, so an auditor can trace a finding back to its input and output. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations, so ask your assessor early which evidence format they expect.
How DeployOpen scopes AI red teaming with PyRIT
DeployOpen agrees the scope of an AI red teaming engagement in writing before any testing starts. For an AILuminate-based run, the written scope should name the AI system under test (the model endpoint, the application wrapped around it, any retrieval layer and the agent tools it can call), the AILuminate hazard categories in play, the PyRIT targets and scorers that will be used, and which controls are in bounds. Scope also settles who receives the raw conversations stored in PyRIT memory, where that memory lives, and how long it is kept. Because these decisions shape the evidence later, they are easier to settle at the start than to reconstruct after findings are written. DeployOpen is a Chainscore Labs company, and engagements are typically fixed-scope with deliverables and timelines confirmed in the agreement.
Testing covers the AI system and the controls around it, not only the model's answers to hazard prompts. DeployOpen runs AILuminate prompts through PyRIT against the agreed target, then checks the parts that a prompt set cannot show on its own: system prompt handling, content filters and safety layers, refusal behavior on legitimate requests, access control for the application and its tools, SSO and admin settings, and how logs and stored conversations are protected. Each finding is recorded with the prompt, the response, the scorer result and the reproduction steps, so that a reader can see what was tested and what happened. Findings are delivered with recommended fixes, and the affected tests are rerun after the fixes land so the report shows the retested result.
Results are packaged as evidence that a compliance or security team can review. DeployOpen prepares the test records, scope documents, configuration of the PyRIT run and the retest results so that an internal reviewer or an independent auditor can follow them. DeployOpen does not issue audit reports, attestations or certifications, and it does not claim that AILuminate or PyRIT results carry any formal endorsement. Organizations that re-run AILuminate as models or prompts change often want continuous testing, which DeployOpen offers as a retainer with the retest and reporting cadence agreed in advance. DeployOpen has no partner relationship with Microsoft or MLCommons for this work.

