Skip to main content

Introduction

Learn the basics of Aixploit and understand its core concepts for LLM security testing.

Basic Setup

Step-by-step guide to install and configure Aixploit in your environment.

Your First Attack

Learn how to execute your first prompt injection attack and analyze the results.

Advanced Techniques

Explore advanced attack vectors and customization options.

Results Analysis

Deep dive into interpreting test results and generating reports.

Best Practices

Learn recommended practices for effective LLM security testing.

Hands-on Examples

from aixploit.plugins import PromptInjection
from aixploit.core import run

# Setup basic prompt injection
target = ["Openai", "", "gpt-3.5-turbo"]
attackers = [PromptInjection("quick")]

# Execute attack
results = run(attackers, target, os.getenv("OPENAI_KEY"))
from aixploit.plugins import CustomAttack
from aixploit.core import run

# Define custom attack pattern
custom_pattern = {
    "prompt": "Your custom prompt here",
    "target": "Expected vulnerable response"
}

# Execute custom attack
attacker = CustomAttack(custom_pattern)
results = run([attacker], target, os.getenv("OPENAI_KEY"))
from aixploit.plugins import AdvancedAttack
from aixploit.core import run

# Configure advanced settings
config = {
    "max_tokens": 1000,
    "temperature": 0.7,
    "retry_count": 3
}

# Execute with advanced configuration
attacker = AdvancedAttack(config)
results = run([attacker], target, os.getenv("OPENAI_KEY"))

Troubleshooting

Common Issues

Solutions to frequently encountered problems

Performance Tips

Optimization strategies for better results

Next Steps

Advanced Topics

Explore more complex testing scenarios

Community Projects

Discover community-created extensions

Contribute

Help improve Aixploit