# aixploit
aixploit is a powerful tool designed for analyzing and exploiting vulnerabilities in AI systems.
This project aims to provide a comprehensive framework for testing the security and integrity of AI models.
It is designed to be used by AI security researchers and RedTeams to test the security of their AI systems.
![Alt text](https://github.com/AINTRUST-AI/AIxploit/blob/22422779d6fa5be2324c4cf6cb8ea66ebd46f992/readme/aixploit_features.png)
## Installation
To get started with AIxploit, follow these steps:
1. **Clone the repository:**
```bash
git clone https://github.com/AINTRUST-AI/AIxploit.git
cd AIxploit
```
2. **Set up a virtual environment:**
```bash
python -m venv .venv
```
3. **Activate the virtual environment:**
- On macOS/Linux:
```bash
source .venv/bin/activate
```
- On Windows:
```bash
.venv\Scripts\activate
```
4. **Add local variables:**
```bash
touch .env
OPENAI_KEY="sk-xxxxx"
OLLAMA_URL="hxxp:"
OLLAMA_API_KEY="ollama"
```
5. **Install the required dependencies:**
```bash
pip install -r requirements.txt
```
## Usage
To use AIxploit, follow these steps:
0. Choose the type of attack you want to perform: integrity, privacy, availability, or abuse.
The full list of attackers is in the plugins folder.
1. Choose a target: OpenAI, Ollama. More targets can be added easily.
2. Update the .env file with the correct API keys and endpoints.
3. Update the test/test.py file with the correct target and attackers.
4. Run the attack with the command:
```bash
python test/test.py
```
5. The attack results will be returned automatically and the conversation will be stored in the attack_responses folder.
## Contributing
We welcome contributions to AIxploit! If you would like to contribute, please follow these steps:
1. Fork the repository.
2. Create a new branch (`git checkout -b feature-branch`).
3. Make your changes and commit them (`git commit -m 'Add new feature'`).
4. Push to the branch (`git push origin feature-branch`).
5. Open a pull request.
Please ensure that your code adheres to the project's coding standards and includes appropriate tests.
## Contact
For any inquiries or feedback, please contact:
- **Contact AINTRUST AI** - [contact@aintrust.ai](mailto:contact@aintrust.ai)
- **Project Link**: [AIxploit GitHub Repository](https://github.com/AINTRUST-AI/AIxploit)
---
Thank you for your interest in AIxploit! We hope you find it useful.
Raw data
{
"_id": null,
"home_page": "https://github.com/AINTRUST-AI/AIxploit",
"name": "aixploit",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "AI, redteaming, AI redteaming, AI redteam, AI redteaming library, AI redteam library, LLM, LLMs",
"author": "aintrust",
"author_email": "aintrust <contact@aintrust.ai>",
"download_url": "https://files.pythonhosted.org/packages/43/31/b717fa6bf020a44ec4ee33511fb6abbca0c0b0256de210568c7fc405ff70/aixploit-1.1.0.tar.gz",
"platform": null,
"description": "# aixploit\n\naixploit is a powerful tool designed for analyzing and exploiting vulnerabilities in AI systems. \nThis project aims to provide a comprehensive framework for testing the security and integrity of AI models.\nIt is designed to be used by AI security researchers and RedTeams to test the security of their AI systems.\n\n![Alt text](https://github.com/AINTRUST-AI/AIxploit/blob/22422779d6fa5be2324c4cf6cb8ea66ebd46f992/readme/aixploit_features.png)\n\n## Installation\n\nTo get started with AIxploit, follow these steps:\n\n1. **Clone the repository:**\n ```bash\n git clone https://github.com/AINTRUST-AI/AIxploit.git\n cd AIxploit\n ```\n\n2. **Set up a virtual environment:**\n ```bash\n python -m venv .venv\n ```\n\n3. **Activate the virtual environment:**\n - On macOS/Linux:\n ```bash\n source .venv/bin/activate\n ```\n - On Windows:\n ```bash\n .venv\\Scripts\\activate\n ```\n\n4. **Add local variables:**\n ```bash\n touch .env\n OPENAI_KEY=\"sk-xxxxx\"\n OLLAMA_URL=\"hxxp:\"\n OLLAMA_API_KEY=\"ollama\"\n ```\n\n\n5. **Install the required dependencies:**\n ```bash\n pip install -r requirements.txt\n ```\n\n## Usage\n\nTo use AIxploit, follow these steps:\n\n0. Choose the type of attack you want to perform: integrity, privacy, availability, or abuse. \nThe full list of attackers is in the plugins folder.\n\n1. Choose a target: OpenAI, Ollama. More targets can be added easily.\n\n2. Update the .env file with the correct API keys and endpoints.\n\n3. Update the test/test.py file with the correct target and attackers.\n\n4. Run the attack with the command:\n ```bash\n python test/test.py\n ```\n5. The attack results will be returned automatically and the conversation will be stored in the attack_responses folder.\n\n## Contributing\n\nWe welcome contributions to AIxploit! If you would like to contribute, please follow these steps:\n\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Make your changes and commit them (`git commit -m 'Add new feature'`).\n4. Push to the branch (`git push origin feature-branch`).\n5. Open a pull request.\n\nPlease ensure that your code adheres to the project's coding standards and includes appropriate tests.\n\n\n## Contact\n\nFor any inquiries or feedback, please contact:\n\n- **Contact AINTRUST AI** - [contact@aintrust.ai](mailto:contact@aintrust.ai)\n- **Project Link**: [AIxploit GitHub Repository](https://github.com/AINTRUST-AI/AIxploit)\n\n---\n\nThank you for your interest in AIxploit! We hope you find it useful.\n",
"bugtrack_url": null,
"license": "GPL-3.0",
"summary": "An AI redTeaming Python library named Aixploit",
"version": "1.1.0",
"project_urls": {
"Homepage": "https://github.com/AINTRUST-AI/AIxploit"
},
"split_keywords": [
"ai",
" redteaming",
" ai redteaming",
" ai redteam",
" ai redteaming library",
" ai redteam library",
" llm",
" llms"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3b7cbe9ad7d86550c4438ffb1779a77b0fadfa5526c2ec10adf9eb8c2c185e08",
"md5": "19221167a680b0e005fb7145f56534fe",
"sha256": "cf23cf4851c941d9ec6c36ca0ca3e28951ad866b653b6ed2ecd71e2f62086539"
},
"downloads": -1,
"filename": "aixploit-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "19221167a680b0e005fb7145f56534fe",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 26343,
"upload_time": "2024-11-17T12:29:17",
"upload_time_iso_8601": "2024-11-17T12:29:17.087093Z",
"url": "https://files.pythonhosted.org/packages/3b/7c/be9ad7d86550c4438ffb1779a77b0fadfa5526c2ec10adf9eb8c2c185e08/aixploit-1.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4331b717fa6bf020a44ec4ee33511fb6abbca0c0b0256de210568c7fc405ff70",
"md5": "ae4f75b2c3780e0c72ec7d312644dbfd",
"sha256": "dfa1c112b06e302b12ec73270f99dab04b3a81bcef14c4e13ece771add3c7d47"
},
"downloads": -1,
"filename": "aixploit-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "ae4f75b2c3780e0c72ec7d312644dbfd",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 24925,
"upload_time": "2024-11-17T12:29:18",
"upload_time_iso_8601": "2024-11-17T12:29:18.089937Z",
"url": "https://files.pythonhosted.org/packages/43/31/b717fa6bf020a44ec4ee33511fb6abbca0c0b0256de210568c7fc405ff70/aixploit-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-17 12:29:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "AINTRUST-AI",
"github_project": "AIxploit",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "aixploit"
}