Skip to content

Commit

Permalink
Updated Our Prompt Injection Playground Has Gone Open Source
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldykes authored and Siteleaf committed Dec 15, 2023
1 parent c84f779 commit b3c587b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ The browser-based app lets you assume the role of a hacker, tasked with extracti
<img src="/uploads/level%201.PNG" title="Level 1" alt="Level 1"/>
</div>

[level 1.PNG](/uploads/level%201.PNG)

At any time, you can switch into ‘sandbox mode’. Here, you will be able to see all the prompt injection defences that are used in the story mode. Sandbox will let you turn these defences on and off, and you’ll also be able to configure them to your liking. Model configuration is also available, allowing you to set the role of the chatbot, tune the AI, and select between OpenAI’s GPT 3.5 and GPT 4, if available. This playground is a great space to make your own challenges. Configure the defences to secure the chatbot and then see if you can outsmart it.

[sandbox.PNG](/uploads/sandbox.PNG)
<div align="center">
<img src="/uploads/sandbox.PNG" title="Sandbox" alt="Sandbox"/>
</div>

## What’s new?

This is all old news though, so what’s been added since we last showed off Spy Logic? Well we’ve been hard at work on giving the app a complete UI overhaul. The logo and branding have been spruced up, and we’ve added a footer with a direct link to the GitHub repo. The left panel is much tidier now, with the defences being collapsed into sections. Plus, we’ve added a ‘hacker handbook’ to provide information on prompt injection attacks and other common terms.
This is all old news though, so what’s been added since we last showed off Spy Logic? Well, we’ve been hard at work on giving the app a complete UI overhaul. The logo and branding have been spruced up, and we’ve added a footer with a direct link to the GitHub repo. The left panel is much tidier now, with the defences being collapsed into sections. Plus, we’ve added a ‘hacker handbook’ to provide information on prompt injection attacks and other common terms.

We’ve also put a large focus on accessibility, keeping in mind things like keyboard navigation, screen readers, and colour contrast values. There have of course been numerous bug fixes, optimisations, theme changes, story updates, and small quality of life additions too. Beyond all that, we’ve been prepping the project to go open source.
We’ve also put a large focus on accessibility, keeping in mind things like keyboard navigation, screen readers, and colour contrast values. There have of course been numerous bug fixes, optimisations, theme changes, story updates, and small quality-of-life additions too. Beyond all that, we’ve been prepping the project to go open source.

## Available to all

Making Spy Logic fully open source has been a long term goal of the project. Now, anyone can head on over to the [GitHub repository](https://github.com/ScottLogic/prompt-injection) and start contributing! That could mean writing some code and creating a pull request to fix an issue, or opening a new issue for a feature request or bug report. Even adding your thoughts to the discussion threads on open issues is very much appreciated.
Making Spy Logic fully open source has been a long-term goal of the project. Now, anyone can head on over to the [GitHub repository](https://github.com/ScottLogic/prompt-injection) and start contributing! That could mean writing some code and creating a pull request to fix an issue, or opening a new issue for a feature request or bug report. Even adding your thoughts to the discussion threads on open issues is very much appreciated.

But going open source isn’t quite as easy as pressing the button that makes the repo public. [Contributing](https://github.com/ScottLogic/prompt-injection/blob/dev/CONTRIBUTING.md) and [code of conduct](https://github.com/ScottLogic/prompt-injection/blob/dev/CODE_OF_CONDUCT.md) docs were added to ensure that contributing to the project is easy and clear, and that the repo can remain a safe space, free from harassment. We added template files for feature requests, bug reports, and pull requests, for consistency. The ever-expanding list of [existing issues](https://github.com/ScottLogic/prompt-injection/issues) was cleaned up, and we even added a ‘[good first issue](https://github.com/ScottLogic/prompt-injection/issues?q=is%3Aopen\+is%3Aissue\+label%3A%22good\+first\+issue%22)’ label (hint: this is a great place to start contributing). Choosing the right licence is super important too. We decided on the [MIT licence](https://github.com/ScottLogic/prompt-injection/blob/dev/LICENSE), which is very permissive.

Expand Down

0 comments on commit b3c587b

Please sign in to comment.