Be caution where you delpoy this application, it's Vulnerable lol... Go is my best friend
This project showcases four key modules demonstrating common security vulnerabilities and adversarial attack techniques:
- Prompt Injection
- Data Leakage
- Data Poisoning
- Supply Chain Attacks
Each module highlights specific attack vectors and provides opportunities for learning about exploitation and mitigation.
The project runs on a Go-based backend with SSL enabled for secure communication.
- Objective: Exploit an AI model by crafting malicious prompts to manipulate responses and extract sensitive information.
- Key Features:
- Enables interaction with the AI using crafted prompts.
- Demonstrates how adversarial prompts can bypass intended restrictions.
- Objective: Upload a malicious image containing SQL commands to expose sensitive database details.
- Key Features:
- Processes uploaded files without proper validation, leading to SQL injection.
- Demonstrates the exposure of database structures and potentially sensitive information.
- Objective: Corrupt the baseline dataset by injecting malicious data to alter the AI model's behavior.
- Key Features:
- Accepts CSV uploads to simulate data poisoning.
- Shows the impact of poisoned datasets on model predictions and integrity.
- Objective: Demonstrate the risks of compromised machine learning models.
- Key Features:
- Allows uploading of a backdoored model file (
malicious_chatbot.pth
). - Simulates interaction with the compromised model to highlight adversarial behavior.
- Allows uploading of a backdoored model file (
-
Programming Language: Go 1.20+
-
OPENAI API KEY
-
Python Requirements (for the Supply Chain module):
- Python 3.8+
- Dependencies:
torch
(install via pip)
- It's recommended to set up a virtual environment:
python3 -m venv venv source venv/bin/activate pip install torch
-
SSL Certificates:
- Generate
cert.pem
andkey.pem
files for SSL:openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out cert.pem
- Generate
-
SQLite:
- Ensure SQLite is installed for the database.
- Clone the Repository:
git clone https://github.com/In3x0rabl3/atd.git cd atd go mod init atd go mod tidy go run main.go
- Enjoy:
https://127.0.0.1:8443