pyrit


Namepyrit JSON
Version 0.2.1 PyPI version JSON
download
home_pageNone
SummaryThe Python Risk Identification Tool for LLMs (PyRIT) is a library used to assess the robustness of LLMs
upload_time2024-05-01 22:47:31
maintainerNone
docs_urlNone
authordlmgary, amandajean119, microsiska, rdheekonda, rlundeen2, romanlutz, jbolor21, nina-msft
requires_python<3.12,>=3.10
licenseMIT
keywords llm ai-safety ai-security ai-red-team ai-red-teaming ai-robustness ai-robustness-testing ai-risk-assessment
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python Risk Identification Tool for generative AI (PyRIT)

The Python Risk Identification Tool for generative AI (PyRIT) is an open
access automation framework to empower security professionals and ML
engineers to red team foundation models and their applications.

## Introduction

PyRIT is a library developed by the AI Red Team for researchers and engineers
to help them assess the robustness of their LLM endpoints against different
harm categories such as fabrication/ungrounded content (e.g., hallucination),
misuse (e.g., bias), and prohibited content (e.g., harassment).

PyRIT automates AI Red Teaming tasks to allow operators to focus on more
complicated and time-consuming tasks and can also identify security harms such
as misuse (e.g., malware generation, jailbreaking), and privacy harms
(e.g., identity theft).​

The goal is to allow researchers to have a baseline of how well their model
and entire inference pipeline is doing against different harm categories and
to be able to compare that baseline to future iterations of their model.
This allows them to have empirical data on how well their model is doing
today, and detect any degradation of performance based on future improvements.

Additionally, this tool allows researchers to iterate and improve their
mitigations against different harms.
For example, at Microsoft we are using this tool to iterate on different
versions of a product (and its metaprompt) so that we can more effectively
protect against prompt injection attacks.

![PyRIT architecture](https://raw.githubusercontent.com/Azure/PyRIT/releases/v0.2.1/assets/pyrit_architecture.png)


## Where can I learn more?

Microsoft Learn has a
[dedicated page on AI Red Teaming](https://learn.microsoft.com/en-us/security/ai-red-team).

Check out our [docs](https://github.com/Azure/PyRIT/blob/releases/v0.2.1/doc/README.md) for more information
on how to [install PyRIT](https://github.com/Azure/PyRIT/blob/releases/v0.2.1/doc/setup/install_pyrit.md),
our [How to Guide](https://github.com/Azure/PyRIT/blob/releases/v0.2.1/doc/how_to_guide.ipynb),
and more, as well as our [demos](https://github.com/Azure/PyRIT/tree/releases/v0.2.1/doc/demo) folder.

## Trademarks

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](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
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.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pyrit",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.12,>=3.10",
    "maintainer_email": null,
    "keywords": "llm, ai-safety, ai-security, ai-red-team, ai-red-teaming, ai-robustness, ai-robustness-testing, ai-risk-assessment",
    "author": "dlmgary, amandajean119, microsiska, rdheekonda, rlundeen2, romanlutz, jbolor21, nina-msft",
    "author_email": "Microsoft AI Red Team <airedteam@microsoft.com>",
    "download_url": "https://files.pythonhosted.org/packages/68/74/8990d284a31f39c66cbf538107368f2e0411eb7ca91bee4e866e6bdd1e61/pyrit-0.2.1.tar.gz",
    "platform": null,
    "description": "# Python Risk Identification Tool for generative AI (PyRIT)\r\n\r\nThe Python Risk Identification Tool for generative AI (PyRIT) is an open\r\naccess automation framework to empower security professionals and ML\r\nengineers to red team foundation models and their applications.\r\n\r\n## Introduction\r\n\r\nPyRIT is a library developed by the AI Red Team for researchers and engineers\r\nto help them assess the robustness of their LLM endpoints against different\r\nharm categories such as fabrication/ungrounded content (e.g., hallucination),\r\nmisuse (e.g., bias), and prohibited content (e.g., harassment).\r\n\r\nPyRIT automates AI Red Teaming tasks to allow operators to focus on more\r\ncomplicated and time-consuming tasks and can also identify security harms such\r\nas misuse (e.g., malware generation, jailbreaking), and privacy harms\r\n(e.g., identity theft).\u200b\r\n\r\nThe goal is to allow researchers to have a baseline of how well their model\r\nand entire inference pipeline is doing against different harm categories and\r\nto be able to compare that baseline to future iterations of their model.\r\nThis allows them to have empirical data on how well their model is doing\r\ntoday, and detect any degradation of performance based on future improvements.\r\n\r\nAdditionally, this tool allows researchers to iterate and improve their\r\nmitigations against different harms.\r\nFor example, at Microsoft we are using this tool to iterate on different\r\nversions of a product (and its metaprompt) so that we can more effectively\r\nprotect against prompt injection attacks.\r\n\r\n![PyRIT architecture](https://raw.githubusercontent.com/Azure/PyRIT/releases/v0.2.1/assets/pyrit_architecture.png)\r\n\r\n\r\n## Where can I learn more?\r\n\r\nMicrosoft Learn has a\r\n[dedicated page on AI Red Teaming](https://learn.microsoft.com/en-us/security/ai-red-team).\r\n\r\nCheck out our [docs](https://github.com/Azure/PyRIT/blob/releases/v0.2.1/doc/README.md) for more information\r\non how to [install PyRIT](https://github.com/Azure/PyRIT/blob/releases/v0.2.1/doc/setup/install_pyrit.md),\r\nour [How to Guide](https://github.com/Azure/PyRIT/blob/releases/v0.2.1/doc/how_to_guide.ipynb),\r\nand more, as well as our [demos](https://github.com/Azure/PyRIT/tree/releases/v0.2.1/doc/demo) folder.\r\n\r\n## Trademarks\r\n\r\nThis project may contain trademarks or logos for projects, products, or services.\r\nAuthorized use of Microsoft trademarks or logos is subject to and must follow\r\n[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).\r\nUse of Microsoft trademarks or logos in modified versions of this project must\r\nnot cause confusion or imply Microsoft sponsorship.\r\nAny use of third-party trademarks or logos are subject to those third-party's\r\npolicies.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "The Python Risk Identification Tool for LLMs (PyRIT) is a library used to assess the robustness of LLMs",
    "version": "0.2.1",
    "project_urls": null,
    "split_keywords": [
        "llm",
        " ai-safety",
        " ai-security",
        " ai-red-team",
        " ai-red-teaming",
        " ai-robustness",
        " ai-robustness-testing",
        " ai-risk-assessment"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5373628744e97c803d3e5f80ac339c1193e24b3e4ccf31ab3d97f80579c17c8a",
                "md5": "b23abab2e27a73b2474bf22888f4725d",
                "sha256": "4963203f05216a5fc62963bf8e85ff1f851757232becf9d5fcd22ce3867217e5"
            },
            "downloads": -1,
            "filename": "pyrit-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b23abab2e27a73b2474bf22888f4725d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.10",
            "size": 250220,
            "upload_time": "2024-05-01T22:47:30",
            "upload_time_iso_8601": "2024-05-01T22:47:30.385479Z",
            "url": "https://files.pythonhosted.org/packages/53/73/628744e97c803d3e5f80ac339c1193e24b3e4ccf31ab3d97f80579c17c8a/pyrit-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "68748990d284a31f39c66cbf538107368f2e0411eb7ca91bee4e866e6bdd1e61",
                "md5": "171971e4d6482a0223e4874fb1411900",
                "sha256": "14b88fa10ed3b4f4dcda1321c17277e48a2a5b5da53a2d6daaa3e33f479cd74b"
            },
            "downloads": -1,
            "filename": "pyrit-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "171971e4d6482a0223e4874fb1411900",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.12,>=3.10",
            "size": 167194,
            "upload_time": "2024-05-01T22:47:31",
            "upload_time_iso_8601": "2024-05-01T22:47:31.894055Z",
            "url": "https://files.pythonhosted.org/packages/68/74/8990d284a31f39c66cbf538107368f2e0411eb7ca91bee4e866e6bdd1e61/pyrit-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-01 22:47:31",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pyrit"
}
        
Elapsed time: 0.27555s