GithubHelp home page GithubHelp logo

thepiratehub / ascii-art-prompt-injection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anthenamatrix/ascii-art-prompt-injection

1.0 0.0 0.0 7 KB

ASCII Art Prompt Injection is a novel approach to hacking AI assistants using ASCII art. This project leverages the distracting nature of ASCII art to bypass security measures and inject prompts into large language models, such as GPT-4, leading them to provide unintended or harmful responses.

Home Page: https://anthenamatrix.com

License: MIT License

ascii-art-prompt-injection's Introduction

ASCII Art Prompt Injection

ASCII Art Prompt Injection is a novel approach to hacking AI assistants using ASCII art. This project leverages the distracting nature of ASCII art to bypass security measures and inject prompts into large language models, such as GPT-4, leading them to provide unintended or harmful responses.

How it Works

The process involves hiding prompts within ASCII art representations, strategically designed to confuse AI assistants. When presented with ASCII art containing embedded prompts, AI systems become preoccupied with processing the art, overlooking rules that block harmful responses. As a result, the injected prompts influence the behavior of AI systems, leading to unexpected outcomes.

Purpose

The primary purpose of ASCII Art Prompt Injection is to demonstrate the potential vulnerabilities of AI systems when processing ASCII art. By showcasing this concept, we aim to raise awareness about the importance of robust security measures in AI systems, particularly in scenarios involving unconventional input formats like ASCII art.

Implementation

To implement ASCII Art Prompt Injection:

  1. Create ASCII art representations with embedded prompts using provided examples.
  2. Submit the ASCII art to AI assistants and observe their responses.
  3. Analyze the effectiveness of prompt injection techniques and iterate as necessary.

Injection Examples

  • Example 1: ASCII art with hidden prompts using character placement and formatting tricks.
  • Example 2: ASCII art with prompts cleverly disguised within the artwork.
  • Example 3: ASCII art with prompts embedded using ASCII control characters for obfuscation.

Disclaimer

ASCII Art Prompt Injection is a proof-of-concept demonstration and should only be used for educational and research purposes. Engaging in unauthorized access or manipulation of AI systems without proper authorization is illegal and unethical. We do not condone the use of this technique for malicious purposes.

License

This project is licensed under the MIT License.

Support AnthenaMatrix

If you find our work valuable and would like to support AnthenaMatrix, you can contribute to our efforts by donating cryptocurrency:

  • Bitcoin: bc1qxvvtgz0vf3n2cuxt0suvf39jleegpt9wawxazn
  • Ethereum: 0xE73E90779B3e8F6D65306B40E02878f437408b4E
  • BNB: 0xE73E90779B3e8F6D65306B40E02878f437408b4E
  • Dogecoin: D827LpfJu9pcVc3Kky82sTrNnsE7pLGqeV
  • Solana: AJtGEJvoVoS2eeqeHQvf7usRs2nSQM1yLtBSdKp1KBY5

Website: https://anthenamatrix.com

ascii-art-prompt-injection's People

Contributors

anthenamatrix avatar

Stargazers

TheCatwoman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.