> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aintrust.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Tutorial

> Learn how to use Aixploit for LLM security testing

## Introduction

<Frame>
  <video controls className="w-full aspect-video" src="https://mintlify.s3.us-west-1.amazonaws.com/aintrust/videos/aixploit-intro.mp4">
    Your browser does not support the video tag.
  </video>
</Frame>

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

## Basic Setup

<Frame>
  <video controls className="w-full aspect-video" src="https://mintlify.s3.us-west-1.amazonaws.com/aintrust/videos/basic-setup.mp4">
    Your browser does not support the video tag.
  </video>
</Frame>

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

## Your First Attack

<Frame>
  <video controls className="w-full aspect-video" src="https://mintlify.s3.us-west-1.amazonaws.com/aintrust/videos/first-attack.mp4">
    Your browser does not support the video tag.
  </video>
</Frame>

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

## Advanced Techniques

<Frame>
  <video controls className="w-full aspect-video" src="https://mintlify.s3.us-west-1.amazonaws.com/aintrust/videos/advanced-techniques.mp4">
    Your browser does not support the video tag.
  </video>
</Frame>

Explore advanced attack vectors and customization options.

## Results Analysis

<Frame>
  <video controls className="w-full aspect-video" src="https://mintlify.s3.us-west-1.amazonaws.com/aintrust/videos/results-analysis.mp4">
    Your browser does not support the video tag.
  </video>
</Frame>

Deep dive into interpreting test results and generating reports.

## Best Practices

<Frame>
  <video controls className="w-full aspect-video" src="https://mintlify.s3.us-west-1.amazonaws.com/aintrust/videos/best-practices.mp4">
    Your browser does not support the video tag.
  </video>
</Frame>

Learn recommended practices for effective LLM security testing.

## Hands-on Examples

<AccordionGroup>
  <Accordion title="Example 1: Basic Prompt Injection">
    ```python theme={null}
    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"))
    ```
  </Accordion>

  <Accordion title="Example 2: Custom Attack Patterns">
    ```python theme={null}
    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"))
    ```
  </Accordion>

  <Accordion title="Example 3: Advanced Configuration">
    ```python theme={null}
    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"))
    ```
  </Accordion>
</AccordionGroup>

## Troubleshooting

<CardGroup cols={2}>
  <Card title="Common Issues" icon="bug">
    Solutions to frequently encountered problems
  </Card>

  <Card title="Performance Tips" icon="bolt">
    Optimization strategies for better results
  </Card>
</CardGroup>

## Next Steps

<CardGroup cols={3}>
  <Card title="Advanced Topics" icon="book">
    Explore more complex testing scenarios
  </Card>

  <Card title="Community Projects" icon="users">
    Discover community-created extensions
  </Card>

  <Card title="Contribute" icon="code">
    Help improve Aixploit
  </Card>
</CardGroup>
