Back to Projects
ai-threat-intel-platform
AI-powered threat intelligence platform for automated IOC collection, malware campaign detection, and relationship mapping.
0
Stars
0
Forks
0
Watchers
0
Open Issues
README.md
# ๐ก๏ธ AI Threat Intelligence Platform





An **AI-powered threat intelligence platform** that automatically collects, analyzes, and correlates Indicators of Compromise (IOCs) from multiple open-source threat intelligence feeds. The platform uses artificial intelligence to identify malware campaigns, map relationships between threats, and generate comprehensive threat reports.
## ๐จโ๐ป Author
**Abdul Muqeet Tabraiz**
[](https://www.linkedin.com/in/abdul-muqeet-tabraiz/)
[](https://github.com/JuttSahib1999)
## โจ Features
- ๐ **Automated IOC Collection**: Gathers threat data from AlienVault OTX, URLhaus, MalwareBazaar, and ThreatFox
- ๐ง **AI-Powered Analysis**: Natural language processing for threat intelligence analysis
- ๐ **Relationship Mapping**: Graph-based analysis to identify connections between IOCs
- ๐ฏ **Campaign Detection**: Automatic identification of malware campaigns and attack patterns
- ๐ **Comprehensive Reports**: Generate detailed HTML, JSON, and text reports
- ๐พ **Persistent Storage**: SQLite database for storing and querying threat data
- ๐ **Threat Scoring**: Automatic risk scoring based on multiple factors
- ๐ **Cross-Platform**: Works on Windows, Linux, and macOS
## ๐ Prerequisites
- **Python 3.8 or higher**
- **Windows 10/11**, Linux, or macOS
- **Internet connection** (for collecting threat feeds)
- **4GB RAM minimum** (8GB recommended)
- **1GB free disk space**
## ๐ Quick Start (Windows 10/11)
### Method 1: Using run.bat (Easiest)
1. **Download and extract the project**
2. **Double-click `run.bat`**
3. The script will automatically:
- Create a virtual environment
- Install all dependencies
- Set up directory structure
- Run the threat intelligence platform
4. **Check `data/reports/` for generated reports**
### Method 2: Manual Installation
1. Open Command Prompt or PowerShell
2. Navigate to the project directory:
```bash
cd ai-threat-intel-platform
```
3. Create virtual environment:
```bash
python -m venv venv
```
4. Activate virtual environment:
```bash
venv\Scripts\activate
```
5. Install dependencies:
```bash
pip install -r requirements.txt
```
6. Run the platform:
```bash
python -m src.main
```
## ๐ Project Structure
```text
ai-threat-intel-platform/
โโโ src/
โ โโโ collectors/ # Threat feed collectors
โ โ โโโ alienvault_collector.py
โ โ โโโ urlhaus_collector.py
โ โ โโโ malwarebazaar_collector.py
โ โ โโโ threatfox_collector.py
โ โโโ analyzers/ # AI analysis engines
โ โ โโโ ai_analyzer.py
โ โ โโโ relationship_mapper.py
โ โ โโโ campaign_detector.py
โ โโโ reporters/ # Report generation
โ โ โโโ report_generator.py
โ โโโ database/ # Data persistence
โ โ โโโ db_manager.py
โ โโโ utils/ # Utilities
โ โ โโโ config.py
โ โ โโโ helpers.py
โ โโโ main.py # Main entry point
โโโ data/ # Output directory
โ โโโ iocs/ # Raw IOC data
โ โโโ reports/ # Generated reports
โ โโโ database/ # SQLite database
โโโ tests/ # Unit tests
โโโ templates/ # Report templates
โโโ requirements.txt # Python dependencies
โโโ setup.py # Package setup
โโโ run.bat # Windows launcher
โโโ README.md # Documentation
```
## ๐ง Usage
### Basic Usage
Run with default settings:
```bash
python -m src.main
```
### Programmatic Usage
```python
from src.main import ThreatIntelligencePlatform
# Initialize platform
platform = ThreatIntelligencePlatform()
# Run analysis
platform.run()
```
### Custom Integration
```python
from src.collectors.alienvault_collector import AlienVaultCollector
from src.analyzers.ai_analyzer import AIThreatAnalyzer
# Collect IOCs
collector = AlienVaultCollector()
iocs = collector.collect()
# Analyze threats
analyzer = AIThreatAnalyzer()
analysis = analyzer.analyze_ioc_correlations(iocs)
print(f"Analysis complete: {analysis}")
```
## ๐ Sample Output
```text
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ AI THREAT INTELLIGENCE PLATFORM v1.0.0 โ
โ Author: Abdul Muqeet Tabraiz โ
โ Date: July 20, 2026 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
[1/5] Collecting IOCs from free sources...
[+] Total IOCs collected: 847
[2/5] Storing IOCs in database...
[+] IOCs stored successfully
[3/5] Analyzing IOCs with AI...
[+] Analysis complete
- Malware families identified: 23
- IOC types: {'ip': 312, 'domain': 245, 'url': 190, 'hash': 100}
- Average threat score: 6.8/10
[4/5] Detecting threat campaigns...
[+] Campaigns detected: 7
- EMOTET_2026-07-04: emotet (89 IOCs)
- TRICKBOT_2026-07-03: trickbot (67 IOCs)
[5/5] Generating threat reports...
[+] Reports generated:
- HTML: data/reports/threat_report_20260720_120000.html
- JSON: data/reports/threat_report_20260720_120000.json
- TEXT: data/reports/threat_report_20260720_120000.txt
```
## ๐งช Running Tests
```bash
# Run all tests
python -m pytest tests/
# Run specific test file
python -m pytest tests/test_collectors.py
# Run with verbose output
python -m pytest tests/ -v
```
## ๐ ๏ธ Configuration
### API Keys (Optional but Recommended)
For real threat intelligence data, sign up for free API keys:
* AlienVault OTX: https://otx.alienvault.com/api/
* Abuse.ch: https://bazaar.abuse.ch/api/
Copy and edit the API keys file:
```bash
cp src/utils/api_keys.example.py src/utils/api_keys.py
```
Add your keys:
```python
ALIENVAULT_API_KEY = "your-64-character-key-here"
ABUSE_CH_API_KEY = "your-48-character-key-here"
```
Without API keys, the platform works with realistic sample data for demonstration.
## ๐ค Contributing
Contributions are welcome! This is version 1.0.0 and is considered complete for its initial release. However, you can:
1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Submit a pull request
## ๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
## โ ๏ธ Disclaimer
This platform is for educational and defensive purposes only. Always ensure you have proper authorization before monitoring or analyzing any networks or systems. The author is not responsible for any misuse of this software.
## ๐ฏ Key Features in Detail
### AI Analysis Capabilities
1. Natural language processing of threat descriptions
2. Automatic malware family identification
3. Industry sector targeting analysis
4. Attack vector classification
5. Threat sentiment analysis
### Relationship Mapping
1. Graph-based IOC correlation
2. Community detection for campaign identification
3. Central node analysis
4. Path finding between related threats
### Report Generation
1. **HTML Reports:** Interactive, styled reports with tables and statistics
2. **JSON Reports:** Machine-readable format for integration
3. **Text Reports:** Plain text summaries for quick review
## ๐ Performance
1. Processes 1000+ IOCs per run
2. Average execution time: 2-5 minutes
3. Database supports millions of records
4. Memory efficient design
## ๐ Security Notes
1. All API requests are rate-limited
2. No sensitive data is transmitted externally
3. Local database storage only
4. Input validation on all collected data
## ๐ Support
**For issues, questions, or suggestions:**
* GitHub Issues: [Create an issue](https://github.com/JuttSahib1999/ai-threat-intel-platform/issues)
* LinkedIn: [Connect with the author](https://www.linkedin.com/in/abdul-muqeet-tabraiz/)
## ๐ Changelog
### Version 1.0.0 (July 20, 2026)
* Initial release
* Four threat intelligence sources integrated
* AI-powered analysis engine
* Campaign detection system
* Multiple report formats
* Cross-platform support
---
**Built with โค๏ธ by Abdul Muqeet Tabraiz**
Last Updated: July 20, 2026
```
```