Image Prompt Injection is a Python script that demonstrates how to embed a secret prompt within an image using steganography techniques. This hidden prompt can be later extracted by an AI system for analysis, enabling covert communication with AI models through images. This allows for users to add malicious prompts into images and feed them to AI/LLM systems.
The script works by embedding the binary representation of the secret prompt into the least significant bits of the image pixels. This modification is imperceptible to the human eye but can be detected and extracted by AI systems during image analysis.
- Clone the Repository:
git clone https://github.com/your-username/image-prompt-injection.git
- Install Dependencies:
pip install opencv-python
- Edit Script:
Define the path to the original image file that you want to embed the prompt into.
Change the prompt in the script to your prompt.
- Run the Script: python image_prompt_injection.py
Image 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.
This project is licensed under the MIT License.
Bitcoin: bc1qxvvtgz0vf3n2cuxt0suvf39jleegpt9wawxazn
Ethereum: 0xE73E90779B3e8F6D65306B40E02878f437408b4E
BNB: 0xE73E90779B3e8F6D65306B40E02878f437408b4E
Dogecoin: D827LpfJu9pcVc3Kky82sTrNnsE7pLGqeV
Solana: AJtGEJvoVoS2eeqeHQvf7usRs2nSQM1yLtBSdKp1KBY5
Website: https://anthenamatrix.com