Why PyRIT security hardening matters before the first red team run
Before your team runs PyRIT against a model or application, decide how you will protect three things: the credentials that call model APIs, the harmful prompts and outputs the tool generates, and the systems under test. PyRIT reads credentials from ~/.pyrit/.env and settings from ~/.pyrit/.pyrit_conf, and its memory stores conversations and results in SQLite or Azure SQL. In a default setup, a single workstation can therefore hold model keys, a library of attack prompts and every finding from the test. Treat that machine as a sensitive system from the first run, not as a developer laptop that happens to have a tool installed.
Three things make this harder than it looks. First, PyRIT is built to produce harmful content, so the stored outputs are sensitive data in their own right, and retention and access rules for them need to be agreed before anyone starts. Second, the same host often calls paid model APIs, so a leaked key can cost money and expose the tested model, not just the tool. Third, the original Azure/PyRIT repository was archived on 27 March 2026 and is read-only. Confirm that your installs, forks and pinned dependencies come from the maintained microsoft/PyRIT project, and check the version you run against the PyRIT releases page before you trust its output.
Settle these points with the people who own the models, the data and the test scope: where the .env file lives and who can read it, which host runs the attacks, who may open stored results, and how much load or harmful traffic the target can absorb. Write those answers down before the first run. Confirm the specifics of each control against the PyRIT documentation for the version you deploy, because the defaults and file locations are what an attacker or an auditor will check first.
Which PyRIT parts carry risk: credentials, memory, targets and scorers
A PyRIT environment holds model credentials, stored prompts and harmful outputs, and connections into the systems under test. Each component below carries a different exposure, so hardening starts with knowing what each one stores or can reach.
Credential file in ~/.pyrit/.env
PyRIT reads credentials for model providers from ~/.pyrit/.env. Anyone who can read that file can call the same model APIs under your account, and the spend and logs land on your side. Check that the file is readable only by the account that runs PyRIT, that it is never committed to a repository or copied into shared images, and that keys are scoped and rotated when a tester leaves the team.
Settings file in ~/.pyrit/.pyrit_conf
The ~/.pyrit/.pyrit_conf file sets how PyRIT runs, including which memory backend and targets a session uses. Settings can point a run at a different database or endpoint than the team expects, so a changed file can quietly redirect results. Keep it under version control or configuration review, and confirm which keys your release reads before you rely on defaults.
Memory holding prompts and outputs
PyRIT memory stores conversations and results in SQLite or Azure SQL. These stores can contain the harmful prompts and model outputs produced during testing, which may themselves be sensitive. Decide who can query the database, where it lives, how long it is kept, and how it is backed up and deleted at the end of an engagement.
Targets that reach live systems
Targets include hosted model APIs, custom HTTP or WebSocket endpoints, and web apps driven through Playwright. Each one is a route from the test host into a system that may hold customer data or act on real accounts. Limit each target to a test tenant or staging copy, use test identities with minimal permissions, and confirm which network paths the host can reach before a run starts.
Scorers and converters sending content out
Scorers evaluate responses with LLMs, Azure AI Content Safety or custom logic, and converters transform prompts before they are sent. An LLM scorer sends model output to another service, so tested content can leave your boundary. Confirm which external services each scorer calls, what data they receive, and whether custom scoring code runs with access to the same credentials and memory as the rest of the run.
CoPyRIT web GUI for shared review
CoPyRIT is the web interface for human-led red teaming and team collaboration, so it exposes stored results and the ability to launch attacks to several people. Its access controls, authentication and session handling are the main protection for the data behind it. Before exposing it beyond one workstation, check how users sign in, who can start runs, and where the service is reachable on the network.
Which hardening decisions to make first and what each costs
This table compares four hardening decisions for a PyRIT environment: where credentials live, where memory is stored, how the team shares CoPyRIT, and where the tests run. Read each row for when the option fits and what it adds to ongoing operations. The main takeaway is that the cheapest option at setup is often the one that costs the most in rotation, access reviews and exposure later.
| Decision | Option | When it fits | Operational cost |
|---|---|---|---|
| Credentials | Plaintext ~/.pyrit/.env file on the test host | Single operator, isolated host, short-lived test work | Manual rotation, risk that copies of the file spread to backups, notebooks or shared drives |
| Credentials | Secrets manager injected at run time | Teams running recurring scans or shared runners | Setup of injection into the run environment, dependency on secrets service availability, runs fail if the service is unreachable |
| Memory storage | SQLite on local disk | Individual red teamers working offline on one host | Results are only as protected as the host, backups and disk encryption must be handled by your team |
| Memory storage | Azure SQL with managed access | Teams that need central storage with identity-based access control | Access reviews for database roles, network and firewall setup, service costs that recur with use |
| Team access | Per-analyst PyRIT installs | Small teams with independent test scopes and separate targets | Each install needs its own credentials and patching, findings must be merged by hand |
| Team access | Shared CoPyRIT instance | Teams doing human-led testing that need shared results | Central hosting, user access management, and a review of who can see harmful outputs |
| Test host | Dedicated, isolated test host | Any engagement that sends attack traffic to production or sensitive systems | Build and maintenance of a separate host, network rules, and separate patching cycle |
| Test host | Developer workstation | Early experiments against a lab target with no sensitive data | Credentials, harmful outputs and attack traffic share a machine with personal and development data, which is hard to review |
How to harden a PyRIT host step by step
This sequence takes a PyRIT host from a fresh install to a controlled test environment, where credentials, network paths, stored results and the tested system are each limited on purpose. Each step closes with a check so the team can confirm the control works before the next one begins.
Install PyRIT from the maintained repository
The platform engineer installs PyRIT with pip from the PyPI package, which tracks the microsoft/PyRIT repository. Confirm the interpreter version first: the package supports Python 3.10 up to but not including 3.15, and the PyRIT documentation recommends Python 3.13. Use the 1.x release line and record the exact version in your host inventory. Do not install from the archived Azure/PyRIT repository, which is read-only. Check:
pyrit --versionor the equivalent import check reports the expected version, and the host inventory records the interpreter version and package hash or version pin.Create a dedicated operating system user
The platform engineer creates a separate, non-administrative OS account used only for PyRIT runs. It should not be a shared login, a developer's personal account or a user with sudo rights. Run PyRIT, its virtual environment and its scheduled jobs under this account only. Check: the account has no administrative group membership, cannot read other users' home directories, and running
idas that user shows only the expected groups.Lock down the PyRIT configuration directory
The platform engineer restricts the ~/.pyrit directory and its files so that only the dedicated user can read or write them. PyRIT reads credentials from ~/.pyrit/.env and settings from ~/.pyrit/.pyrit_conf, so both files hold sensitive configuration. Set the directory to owner-only access and the .env file to owner read and write only. Keep backups of these files out of shared storage. Check:
ls -ld ~/.pyritandls -l ~/.pyritshow owner-only permissions, and a second local account receives a permission error when it tries to read the .env file.Move secrets out of plain files where policy requires
The security lead decides with the platform team whether the model API keys in the .env file may stay on disk. Where the organization's secrets policy requires it, load keys from a managed secrets store or inject them as environment variables at run time, and keep the .env file free of values. Rotate keys that were ever copied into shared notes or repositories. Ask the vendor or your secrets platform team to confirm the supported injection method for your environment. Check: a search of the host and any repositories for the key prefixes returns no matches, and a test run authenticates with the injected value.
Isolate the test host network and egress
The network engineer places the PyRIT host in a segment that can reach only the approved model endpoints, the tested system and the memory or result store. Block other outbound traffic by default, and log DNS and HTTP egress from the host. This limits the damage if a prompt or converter causes unexpected network calls, and it makes the traffic record useful for review. Check: from the host, connections to the approved endpoints succeed, a connection to an unapproved external address fails, and the egress log shows both attempts.
Restrict where memory and exports are written
PyRIT memory stores conversations and results in SQLite or Azure SQL, so the database file and any exported results can contain harmful model outputs. Point memory and export paths to a dedicated, access-controlled location with the same owner-only rules as the configuration directory, and exclude that location from general backups unless your retention policy requires them. Decide the retention period with the risk owner before the first run. Check: the memory file and export folder are owned by the PyRIT user with no group or world access, and a test export lands only in the approved path.
Set scorer and target scopes
The red team lead writes a short scope file that lists which targets PyRIT may call, which scorers it may use, and which attack strategies are approved for each engagement. Targets can include hosted model APIs, custom HTTP or WebSocket endpoints and web apps driven through Playwright, so each entry needs an owner and an endpoint. Remove unused targets from the configuration. Check: a run against a target that is not on the list is refused or fails, and the approved scope document is stored with the engagement record.
Set rules for the tested system
The engagement owner agrees with the system owner on request rate limits, approved test windows, a stop contact and the categories of prompts allowed. Configure the rate limit in PyRIT settings or in the target configuration, and schedule runs only inside the approved window. Multi-turn strategies such as Crescendo, TAP and Skeleton Key generate many requests per conversation, so set limits before enabling them. Confirm the exact limit names with the PyRIT documentation for your release. Check: a dry run stays under the agreed rate, a scheduled job outside the window does not start, and the stop contact has confirmed receipt of the rules in writing.
How to isolate the test host from production and corporate networks
The host that runs PyRIT should sit outside the networks that hold production data, because it combines three things that rarely belong together: stored API credentials, a large store of harmful prompts and model outputs, and outbound connections to systems under test. A PyRIT host reaches model endpoints, custom HTTP or WebSocket targets and, for web app targets, a Playwright-driven browser. If that host also sits on a flat corporate network, a compromised dependency, a malicious target response or a misconfigured converter could turn a red teaming box into a route to internal services. Architecture should assume the host may misbehave and limit what it can reach regardless of how careful the operators are.
Egress is the control that matters most. Allow outbound traffic only to the model APIs the team has approved, the specific target systems in scope and the package sources needed to install PyRIT, and deny everything else by default. Be specific about the destinations: a wildcard to a cloud provider's whole address space or to a broad content delivery network is rarely needed. Inbound access should be limited to the administrators who operate the host, ideally through a bastion or jump point. Test whether a shell on the host can reach internal DNS names, metadata services, file shares, databases and management interfaces, because those are the paths an attacker or a faulty test would use.
Plan for the targets that answer back. A system under test that returns unexpected content can cause PyRIT to fetch or follow links, so confirm that the host cannot reach internal addresses through redirects or proxy settings. Keep test targets in a staging or dedicated test segment, not the production one, and record which network rules apply to each target. Confirm every control in your own environment with your network and cloud security teams: firewall and security group rules, DNS resolution, proxy configuration, and whether the test segment can be seen from corporate networks. Document the allowed destinations as an approved list, and review it whenever a target or model provider is added.
Where PyRIT's trust boundaries sit
The diagram starts with the analyst, who works either in a terminal or in CoPyRIT, the web GUI for human-led testing. Requests then pass to the PyRIT host, which holds the credential boundary (~/.pyrit/.env), the settings file (~/.pyrit/.pyrit_conf) and memory storage for prompts and harmful outputs. From the host, traffic crosses a network boundary to model API and scorer endpoints outside the trust zone, and attack traffic reaches the tested system inside an approved test zone. Check that the host can reach only the endpoints you have approved, that the .env file is readable only by the operator account, and that memory storage sits under the same access controls as the findings it holds.
Credential, data and network boundaries around a PyRIT host and its test targets.
What drives hardening effort and how to keep it down
This table compares the factors that raise or lower the effort of hardening a PyRIT environment, with a practical way to reduce each one. Read each row against your own setup to see which factors apply most, then use the reduction column to scope the work before asking for a quote.
| Driver | What raises effort | How to keep it down |
|---|---|---|
| Users and shared access | Many operators sharing one host or one memory database, with unclear roles for who can run attacks or read results | Limit the number of accounts, separate operator and reviewer roles, and give each person only the access their workflow needs |
| Number of targets and endpoint types | Many targets across OpenAI, Azure, custom HTTP or WebSocket endpoints, and Playwright-driven web apps, each with its own credentials and network path | Start with the targets in scope for the current test, and add new endpoint types only after each one has its own access and logging rules |
| Memory storage choice (SQLite or Azure SQL) | A shared SQLite file on a general-purpose host, or Azure SQL with broad database roles and unclear backup ownership | Pick the store that matches your team model, restrict file or database permissions, and document who owns backups and retention |
| Secrets management maturity | Plain-text values in ~/.pyrit/.env copied across machines, shared credentials, and no rotation process | Move keys into your existing secrets manager where possible, use individual keys per target, and rotate them on a schedule you can name |
| Network segmentation | Test hosts with direct access to production systems, internal networks and the internet at the same time | Place the test host in its own network zone with egress allowed only to the targets under test and to the model APIs in use |
| Customization of custom targets and converters | Custom HTTP or WebSocket targets, converters or scorers that handle credentials, session tokens or sensitive data in their own code | Keep custom code small, review it like any internal tool, and test it for credential handling before each release upgrade |
| Compliance evidence needs | Assessors who expect logged access, retention rules, and proof of who reviewed harmful outputs | Agree the evidence list before build, such as access records, retention settings and review logs, and collect it as part of normal operation |
How hardening changes for a single analyst, a team, or an air-gapped lab
On a personal laptop, PyRIT usually runs under one operator who holds every credential and stores every result locally. The main risk is that the .env file in ~/.pyrit/ sits in plaintext next to the operator's other tools, and that the SQLite memory database collects harmful outputs on a disk that may sync to cloud backup. The controls here are mostly about the operator's own machine, and the trade-off is convenience against exposure if the laptop is lost or shared.
- Restrict the
.envfile: Set file permissions so only the operator account can read~/.pyrit/.env, and keep model keys scoped to the test project only. - Keep memory off synced folders: Confirm the SQLite memory location is excluded from cloud sync and backup tools, since stored prompts and outputs can contain harmful content.
- Purge results on a schedule: Delete or archive conversation records after a review cycle so harmful outputs do not accumulate indefinitely.
- Use disk encryption: Full-disk encryption protects stored memory and credentials if the device is stolen.
- Limit outbound access: Allow the laptop to reach only the endpoints in the test plan, and block other destinations at the local firewall where policy permits.
Before testing, confirm which of these steps your endpoint policy already enforces and which the operator must set by hand.
When a team runs PyRIT on a shared host with CoPyRIT, the host becomes a multi-user system holding several sets of model credentials and a single memory store that all analysts read. The controls shift from protecting one operator's files to separating identities, restricting who can see which results, and controlling what the host can reach. The trade-off is that tighter access slows collaboration and adds administration work for the team.
- Separate credentials per user or role: Avoid one shared
.envwith a common key. Where the target platform supports it, issue individual keys so revocation and spend tracking are per person. - Control access to memory: Place the memory database on a path only the service account and approved reviewers can read, and confirm how CoPyRIT authenticates its users.
- Protect the CoPyRIT interface: Put the web GUI behind the organization's identity provider or a reverse proxy with access logging, and avoid exposing it to the wider network.
- Restrict egress by target: Allow outbound connections only to the model providers and custom endpoints the team has approved, and log denied attempts.
- Back up memory under the same rules: Backups hold the same harmful outputs, so apply the same access and retention limits to them.
Confirm with your platform team how CoPyRIT handles user accounts and session management in the version you deploy.
In an isolated network, PyRIT tests model endpoints hosted inside the organization, so the test host has no need for general internet access. The controls focus on blocking unintended outbound paths, keeping package and dependency sources inside the boundary, and keeping the test traffic from reaching systems outside the lab. The trade-off is that installing updates and reaching cloud-hosted targets becomes a managed process rather than a routine one.
- Default-deny egress: Block all outbound traffic from the lab host, then open only the internal model endpoints and the internal package mirror.
- Stage packages internally: Install PyRIT and its dependencies from an approved internal repository, and verify the versions against the release notes before each update.
- Keep credentials out of the image: Inject model keys at run time from the internal secrets store instead of writing them into a
.envfile baked into a template. - Scope the test target: Confirm which internal systems the lab may hit, so a misconfigured target does not disrupt production services.
- Confirm internet-dependent targets: Some PyRIT targets and scorers may require internet access. Check each one in your environment before deployment, and document any exception through change control.
Verify that an egress test from the lab host fails for destinations outside the approved list before any red team run begins.
Controls that protect credentials, stored prompts and harmful outputs
A PyRIT environment holds model API keys, attack prompts and records of harmful model output, so it needs the same care as a production system with sensitive data. The six controls below cover the credential file, the keys it holds, the memory store, the stored outputs, the load placed on tested systems and how vulnerabilities in PyRIT itself are reported.
Lock down the credential file
PyRIT reads credentials from ~/.pyrit/.env, so anyone with read access to that file on the test host can use your model API keys. Restrict the file and its directory to the account that runs PyRIT, and keep .env files out of version control and container images. Check that no copy of the file ends up in shared drives, CI logs or chat exchanges. Confirm the file mode and ignore rules on every host, not only the first one.
Scope API keys to least privilege
Red teaming needs model access for attacks and scoring, not administrative rights on the provider account. Issue a separate key or token for each PyRIT environment, limit it to the models and endpoints the campaign uses, and set spend limits where the provider offers them. Rotate keys when a team member leaves or a host is retired. Ask each provider which permissions a key carries before you issue it.
Control access to the memory database
PyRIT memory stores conversations and results in SQLite or Azure SQL, which means the database holds every attack prompt and model response in plain form. Set file permissions on a SQLite file or database roles on Azure SQL so only the red team can read it. Record who can query or copy the store, and review that list when team membership changes. Confirm the access model with your data owner before you share a database across projects.
Encrypt and expire harmful outputs
Stored responses from a red teaming run can contain the harmful content you were trying to find, so they should be treated as sensitive records. Encrypt exports and backups at rest and in transit, and define how long results are kept before deletion. Set the retention period in your own policy, since PyRIT does not impose one. Ask your security and legal teams whether any output category needs a shorter period or a restricted location.
Limit load and approve targets
Automated attacks can send high volumes of requests to a live system, which can degrade service or trip abuse controls. Agree on the approved target list, request rate, concurrency and time window with the system owner before a run starts. Use a non-production or staging endpoint where one exists, and stop the run if error rates climb. Keep a record of the settings used so a result can be reproduced and the load explained later.
Report PyRIT vulnerabilities privately
If your testing uncovers a flaw in PyRIT itself, report it through the private process in the project's security policy rather than opening a public issue. The project README directs reports to the Microsoft Security Response Center. Keep the proof of concept out of shared channels until a fix is available, and track the report in your own incident log. Confirm the current reporting route in the README before you rely on it.
PyRIT READMEHow to confirm the hardening works and fails safely
Hardening is only real once you can show it works, so the first job is to test each control the way an auditor or an attacker would. Start with the two local configuration files PyRIT reads: ~/.pyrit/.env, which holds credentials, and ~/.pyrit/.pyrit_conf, which holds settings. Confirm that both are readable only by the account that runs PyRIT, for example by listing their permissions on every test host and in any shared runner image. Then search the host, the memory store and the repositories for the key values themselves, not just for the variable names. Any key found in a log, a memory file, a notebook output or a commit is a failed test, even if the file permissions are correct.
Next, test the network boundary. From the test host, attempt connections to destinations that are not on your approved list of model endpoints, target applications and logging services, and record which ones succeed. A host that can reach arbitrary internet addresses can send harmful prompts or stored results somewhere you did not intend. Then revoke a test key at the provider and run a short attack scenario. The run should stop with an authentication failure and should not fall back to another credential stored on the host. Confirm the failure in the run output and in the memory store, and confirm that no retry loop keeps calling the provider.
Finally, force failures on purpose. Point a scorer at an unavailable service and a target at a dead endpoint, then check where the prompt, the model response and any partial result end up. Output should not be written to a shared directory, an unencrypted export or a team channel because an error handler wrote a traceback with the full exchange. Keep a dated record for each test: the command, the host, the expected result, the observed result and the person who checked it. Store these records with the change request for the environment, because they are the evidence that the controls were tested, not just configured. Ask your security team to confirm the test scope and retention period before you run tests against production targets.
What to monitor, back up, upgrade and document after hardening
This table lists the recurring controls that keep a hardened PyRIT environment secure after go-live, with what to record and who owns each item. Read it as a starting checklist: the intervals and thresholds should be set by your security and platform teams, not copied from this page.
| Control | What to record | Owner |
|---|---|---|
| Key rotation schedule | Provider keys in ~/.pyrit/.env, date issued, date rotated, systems that use each key, and revocation steps | Platform or security engineering |
| Access reviews for memory and results | Who can read the memory database and exported findings, review date, reviewer name, and access changes made | Red team lead with the data owner |
| Egress and API usage monitoring | Outbound destinations from test hosts, model API call volumes by key, and any unexpected target or domain traffic | Platform operations with the security team |
| Backup of memory storage | Backup location, encryption status, access list, restore test date, and confirmation that backups match the protection level of the source data | Infrastructure operations |
| Retention and secure deletion of harmful outputs | Retention period set by policy, deletion method, deletion date, and evidence that copies in backups and exports were also removed | Data governance with the red team lead |
| Upgrade checks against microsoft/PyRIT releases | Release version reviewed, dependency and Python version changes, results of retesting custom targets, converters and scorers, and approval date | Engineering owner of the PyRIT install |
| Hardening runbook | Host build steps, credential locations, network rules, access model, monitoring settings, and the last review date | Platform engineering, reviewed by security |
Questions buyers ask about PyRIT security hardening
Can our team harden PyRIT ourselves without a partner?
Yes, if your engineers already run Python tooling in production and have someone who owns secrets management and network controls. The work is mostly configuration and process: moving credentials out of ~/.pyrit/.env into your secrets manager, pinning the environment, placing the test host on a restricted network segment, and deciding who can read the SQLite or Azure SQL memory and the stored outputs. A partner adds value when the team lacks time, when the target list spans several environments, or when you need an independent record of the controls for a compliance review. Confirm your team's capacity against the full list of hosts, targets and stores before deciding.
What does outside hardening help cost, and what drives it?
The cost depends on the written scope, not on PyRIT itself, because PyRIT is MIT licensed and has no paid edition. The main drivers are the number of PyRIT hosts and user groups, the number of targets and their authentication methods, whether memory is SQLite on a workstation or Azure SQL with shared access, how many environments (cloud, on-premises or air-gapped) must be covered, and how much evidence you need for assessors. Ask any provider for a quote that lists each host, store and target in scope, the deliverables, and whether a retest is included. Ongoing items such as reviewing configuration after each release recur, so ask for them as a separate line.
How long does PyRIT hardening take?
Duration depends on scope and environment. Timing is driven by how many hosts and stores exist, how credentials are currently handled, whether your identity and network teams must approve changes, and whether the hardened setup must be reviewed by an internal or external assessor. A single developer workstation with a small target list is a much smaller task than a shared red team environment that tests several production-like systems. Ask the provider to break the schedule into discovery, build, verification and handover, and to state which steps depend on your teams' response times.
What must we provide before hardening starts?
Gather the inputs that let the work be scoped accurately:
- An architecture diagram showing where PyRIT runs, where memory is stored and which targets it reaches
- Current network rules for the test host, including outbound paths to model APIs and custom endpoints
- Your secrets policy, including the approved vault, rotation rules and who may hold API keys
- A target list with owners, authentication methods and permitted test windows
- Data handling rules for stored prompts and harmful outputs, including retention and access groups
Missing items usually show up as delays in the middle of the work, so collect them before quoting.
Is PyRIT itself safe to run when it generates harmful content?
PyRIT is a testing framework, and its safety depends on how you run it. It sends adversarial prompts to systems you own or are authorized to test, and it stores the responses, which can include harmful content and sensitive data. Protect the environment by restricting who can launch attacks, limiting outbound destinations to approved targets, storing outputs with access controls and retention limits, and reviewing scorer results before they are shared. Limit impact on tested systems by setting request rates, using test accounts and running against non-production endpoints where possible. Confirm these controls with your legal and safety owners, since the rules for handling harmful outputs vary by organization.
How should we handle the archived Azure/PyRIT repository during hardening?
The original Azure/PyRIT repository was archived on 27 March 2026 and is read-only, so it should not be the source for new installs or patches. Development continues at microsoft/PyRIT, and the latest release at the time of your work should be pinned and verified. If forks or internal tooling still reference the archived repository, record those dependencies during hardening and plan their move, because a hardened configuration built on an unmaintained source will drift. Hardening should also confirm that any custom targets, converters and scorers still work after the switch. Check the PyRIT releases page for the current version before pinning.
Who reports a vulnerability found in PyRIT itself?
Report vulnerabilities in PyRIT privately through the Microsoft Security Response Center, following the project's security policy in the microsoft/PyRIT README. Do not open a public issue for a suspected flaw. Your own hardening process should record which PyRIT version is deployed, subscribe to release notices, and define who reviews a new release before it reaches the red team host. Confirm the reporting channel and process with your security team before an incident occurs.
How DeployOpen scopes, hardens and hands over PyRIT environments
DeployOpen approaches PyRIT security hardening as a fixed-scope piece of work that starts with a written list of hosts, credentials, stored results and tested systems. We build the controls around that scope, document them for your security and compliance teams, and hand over a environment your team can run and review.
How we scope
- Inventory the hosts, Python environments and ~/.pyrit configuration files that will run PyRIT
- Map which model APIs, web apps and custom endpoints PyRIT is allowed to reach and with which credentials
- Agree in writing where prompts, conversation memory and harmful outputs are stored and who may read them
How we build
- Move credentials out of plain ~/.pyrit/.env files and restrict file permissions on the host and any shared storage
- Isolate test hosts with network egress rules so attack traffic reaches only the systems named in the scope
- Set rate limits and attack scope controls so tests cannot overwhelm or disrupt the systems under test
How we hand over
- Deliver a hardening runbook covering configuration, credential rotation and access review steps for your team
- Provide test evidence showing each control was checked, including retests of the egress and permission settings
- Walk your engineers through the setup and record open items with owners and dates agreed in the written scope
How we support
- Offer ongoing support and upgrades as a retainer, including rechecking controls after each PyRIT release
- Retest hardening after changes to targets, converters, scorers or storage such as moving from SQLite to Azure SQL
- Confirm current support options and response expectations with DeployOpen in writing before work begins

