OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Security & Safety

Promptinject

PromptInject is a Python research framework that assembles prompts modularly and composes iterative adversarial inputs to analyze language-model robustness. It examines goal hijacking, where an input redirects a model toward a new target, and prompt leaking, where an input seeks to reveal the application prompt. The repository provides a notebook usage example and describes research on GPT-3.

Independent OpenViST project profile, based on linked sources.

Promptinject — Research on iterative adversarial prompt composition
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use PromptInject when investigating model behavior under goal-hijacking and prompt-leaking attacks, particularly in research workflows using its documented notebook example.

Who it is for

  • Researchers studying language-model robustness to adversarial user input.
  • Developers examining how prompt-based applications respond to goal-hijacking or prompt-leaking attempts.

Documented uses

  • Compose adversarial prompts for robustness research.
  • Examine whether a model follows an attacker’s redirected goal instead of its application task.
  • Study whether a prompt-leaking input can elicit the application prompt.
Before you choose

Requirements & limits

The repository identifies the project as open source under the MIT license.

  • The README documents installation through pip from the GitHub repository and directs users to a Jupyter notebook example.
  • The described research examines GPT-3; support for additional models is not specified.
  • The project is a research framework for evaluating responses, not a documented production prevention layer.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install PromptInject and open its example notebook

Set up the Python framework and locate the repository’s documented usage example.

Before you start

  • Python environment with pip
  • Access to the PromptInject GitHub repository

Steps

  1. Install the framework with the command below.

    Documented command
    pip install git+https://github.com/agencyenterprise/PromptInject
  2. Open notebooks/Example.ipynb in the repository to view the usage example.

Expected outcome

The package installation command and notebook-based example are available for beginning a PromptInject workflow.

Guide limitations

  • The README points to an example notebook but does not describe its execution steps or expected outputs.
  • The documented research focuses on GPT-3; broader model compatibility is not specified.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
11 November 2026
Original website title
agencyenterprise/PromptInject · Official homepage title · retained in its source language