Enhanced iOS Forensics with Artificial Intelligence
Learn how to install and configure iLEAPP AI for your first investigation
Welcome to iLEAPP AI, an enhanced version of the iOS Logs, Events, And Plists Parser (iLEAPP) that integrates advanced AI capabilities to transform your digital forensics workflow. This guide will help you get started with installing, configuring, and using iLEAPP AI for your first investigation.
iLEAPP AI extends the original iLEAPP tool with the following capabilities:
Note: iLEAPP AI is built on top of the original iLEAPP project by Alexis Brignoni. All core functionality of iLEAPP is preserved and enhanced, not replaced.
Before installing iLEAPP AI, ensure your system meets the following requirements:
To use the AI capabilities, you'll need at least one of the following API keys:
Alternatively, you can use local models which don't require API keys but have higher system requirements.
cd path\to\ileapp_ai
pip install -r requirements.txt
python setup.py install
cd path/to/ileapp_ai
pip3 install -r requirements.txt
python3 setup.py install
unzip ileapp_ai_complete.zip -d /path/to/destination
cd /path/to/destination/ileapp_ai
pip3 install -r requirements.txt
python3 setup.py install
To configure your API keys, you have two options:
Set the following environment variables according to the AI provider you want to use:
# For OpenRouter (recommended)
OPENROUTER_API_KEY=your_openrouter_api_key
# For Anthropic Claude
ANTHROPIC_API_KEY=your_anthropic_api_key
# For OpenAI
OPENAI_API_KEY=your_openai_api_key
Create a file named config.json in the iLEAPP AI directory with the following structure:
{
"api_keys": {
"openrouter": "your_openrouter_api_key",
"anthropic": "your_anthropic_api_key",
"openai": "your_openai_api_key"
},
"default_provider": "openrouter",
"default_model": "anthropic/claude-3-opus-20240229"
}
iLEAPP AI supports multiple AI models through different providers. You can configure your preferred model in the config.json file or through the GUI/CLI interface.
| Provider | Model | Strengths |
|---|---|---|
| Anthropic | claude-3-opus | Highest accuracy, best for complex analysis |
| Anthropic | claude-3-sonnet | Good balance of speed and accuracy |
| OpenAI | gpt-4o | Excellent pattern recognition |
| Local | llama-3-70b | Privacy-focused, no data leaves your system |
iLEAPP AI includes several security features that can be configured:
These settings can be configured in the config.json file:
{
"security": {
"encrypt_data": true,
"chain_of_custody": true,
"log_api_requests": true,
"data_retention_days": 90
}
}
Now that you have installed and configured iLEAPP AI, you're ready to perform your first analysis:
python ileapp_ai_gui.py
For command-line usage:
python ileapp_ai_cli.py -i /path/to/input -o /path/to/output --ai-enabled --ai-provider openrouter --ai-model anthropic/claude-3-opus-20240229 --artifacts messages,app_usage,browser_history
Tip: For your first analysis, you can use the sample data provided in the downloads section to test the functionality without using your own data.
After completing your first analysis, here are some next steps to explore:
Important: Always follow proper forensic procedures and legal requirements when analyzing real case data. iLEAPP AI is a tool to assist investigators, not replace proper forensic methodology.