MCPcopy
hub / github.com/microsoft/PyRIT

github.com/microsoft/PyRIT @v0.14.0 sqlite

repository ↗ · DeepWiki ↗ · release v0.14.0 ↗
14,928 symbols 70,756 edges 1,265 files 9,479 documented · 63%
README

Python Risk Identification Tool for generative AI (PyRIT)

The Python Risk Identification Tool for generative AI (PyRIT) is an open source framework built to empower security professionals and engineers to proactively identify risks in generative AI systems.

  • Check out our website for more information about how to use, install, or contribute to PyRIT.
  • Visit our Discord server to chat with the team and community.

Trademarks and Citations

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

If you use PyRIT in your research, please cite the tool itself following the CITATION.cff file in the root of this repository.

Extension points exported contracts — how you extend this code

MockAttackSummary (Interface)
A single attack summary matching the AttackSummary type.
frontend/e2e/history.spec.ts
ImportMetaEnv (Interface)
(no doc)
frontend/src/vite-env.d.ts
TargetVariant (Interface)
Describes one target variant under test.
frontend/e2e/flows.spec.ts
ImportMeta (Interface)
(no doc)
frontend/src/vite-env.d.ts
SeededAttack (Interface)
(no doc)
frontend/e2e/flows.spec.ts
MessageAttachment (Interface)
(no doc)
frontend/src/types/index.ts
MessagePiece (Interface)
(no doc)
frontend/e2e/flows.spec.ts
Message (Interface)
(no doc)
frontend/src/types/index.ts

Core symbols most depended-on inside this repo

get
called by 971
pyrit/registry/object_registries/retrievable_instance_registry.py
get_value
called by 265
pyrit/models/score.py
get_registry_singleton
called by 192
pyrit/registry/base.py
get_identifier
called by 187
pyrit/score/scorer.py
score_text_async
called by 160
pyrit/score/scorer.py
print_deprecation_message
called by 160
pyrit/common/deprecation.py
write
called by 159
pyrit/memory/migration.py
reset_instance
called by 157
pyrit/registry/base.py

Shape

Method 7,849
Function 4,795
Class 1,848
Route 362
Interface 74

Languages

Python98%
TypeScript2%

Modules by API surface

tests/unit/backend/test_attack_service.py138 symbols
tests/unit/models/identifiers/test_component_identifier.py135 symbols
tests/unit/score/test_scorer.py134 symbols
tests/unit/setup/test_pyrit_initializer.py129 symbols
tests/unit/backend/test_mappers.py120 symbols
tests/unit/registry/test_base_instance_registry.py116 symbols
tests/unit/executor/attack/multi_turn/test_tree_of_attacks.py114 symbols
tests/unit/cli/test_pyrit_scan.py109 symbols
tests/unit/common/test_pyrit_default_value.py108 symbols
tests/unit/scenario/core/test_scenario.py104 symbols
tests/unit/prompt_converter/test_text_selection_strategy.py104 symbols
tests/unit/executor/attack/component/test_conversation_manager.py95 symbols

Dependencies from manifests, versioned

@azure/msal-browser5.11.0 · 1×
@azure/msal-react5.4.2 · 1×
@eslint/js10.0.1 · 1×
@fluentui/react-components9.74.1 · 1×
@fluentui/react-icons2.0.328 · 1×
@playwright/test1.60.0 · 1×
@testing-library/dom10.4.1 · 1×
@testing-library/jest-dom6.9.1 · 1×
@testing-library/react16.3.2 · 1×
@testing-library/user-event14.6.1 · 1×
@types/jest30.0.0 · 1×
@types/node25.9.1 · 1×

Datastores touched

(mongodb)Database · 1 repos
myappDatabase · 1 repos
mydbDatabase · 1 repos

For agents

$ claude mcp add PyRIT \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact