Multi-Source Threat Intelligence MCP Server
by ugurrates
README.md
# š”ļø Multi-Source Threat Intelligence MCP Server v2.2
[](https://www.python.org/downloads/)
[](https://opensource.org/licenses/MIT)
[](https://modelcontextprotocol.io)
[](https://github.com/ugurrates/MCP-For-SOC)
**Threat intelligence platform for critical infrastructure** with **multi-platform detection rule generation**, **C2 infrastructure detection**, **sandbox analysis**, **normalized IOC scoring**, and **MITRE ATT&CK mapping**.
## š What's New in v2.2
### š Multi-Platform Detection Rule Generation
**Ready-to-Use Detection Rules for 5 Platforms:**
1. **KQL** (Microsoft Defender EDR) - Hunt queries for endpoints and network
2. **SPL** (Splunk) - Search queries for SIEM analysis
3. **SIGMA** (Universal SIEM) - Platform-agnostic detection rules
4. **XQL** (Cortex XDR) - Palo Alto Cortex hunting queries
5. **YARA** (Malware Detection) - File and memory scanning rules
**Usage:** Copy/paste generated rules directly into your security tools - no modification needed!
## š What's New in v2.1
### š C2 Infrastructure Detection
**1. C2 Tracker Integration (3 Sources)**
- š **Daily Dose of Malware** - Real-time IOC tracking
- šÆ **JMousqueton C2-Tracker** - Active C2 server database
- ā” **C2Live** - Live C2 IP tracking
- Automatic cross-referencing with 3 major C2 tracker repositories
**2. Malware/C2 Signature Detection (80+ Keywords)**
- **C2 Frameworks** (23): Cobalt Strike, Sliver, Metasploit, Covenant, Mythic, Brute Ratel C4, etc.
- **Malware Families** (50+): Stealers, RATs, Trojans, Loaders
- Stealers: Lumma, Vidar, Mystic, Gotham, Meduza, RisePro, etc.
- RATs: AsyncRAT, Quasar, njRAT, VenomRAT, DcRat, etc.
- **Attack Tools**: XMRig, GoPhish, BeEF, EvilGinx, etc.
- **Botnets**: 7777, Mozi, Kaiji, BlackNET, etc.
**3. Enhanced Shodan C2 Detection**
- Automatic keyword matching in Shodan banners
- Pattern-based C2 framework identification
- Confidence scoring (high/medium/low)
- Identifies 23+ C2 frameworks in infrastructure
**4. Advanced C2 Scoring**
- Confirmed C2 infrastructure: +30 threat score, +20 impact score
- High confidence detection: +25 threat score, +15 impact score
- Automatic severity escalation for C2 indicators
### ⨠Previous Features (v2.0)
**1. Normalized IOC Scoring (0-100)**
- Industry-standard scoring framework
- Multi-factor analysis: Threat (40%) + Confidence (30%) + Impact (20%) + Freshness (10%)
- Automated severity classification: CRITICAL / HIGH / MEDIUM / LOW / MINIMAL
**2. Sandbox Integration (5 Platforms)**
- š¬ **Hybrid Analysis** - Comprehensive malware analysis
- š® **ANY.RUN** - Interactive sandbox
- š **Tria.ge** - Automated malware detection
- ā” **Threat.Zone** - Behavioral analysis + IOC extraction
- š¤ **VirusTotal** - File upload support (NEW!)
**3. MITRE ATT&CK Mapping**
- Automatic tactic/technique extraction from sandbox results
- Maps behaviors to ATT&CK framework
- Identifies attack patterns
**4. Network IOC Extraction**
- Extracts IPs, domains, URLs from sandbox analysis
- Generates additional hunting queries for related IOCs
- Comprehensive network behavior analysis
## š Intelligence Sources (15+)
| Source | Type | Free Tier | Coverage |
|--------|------|-----------|----------|
| **C2-Trackers (3)** | **C2 Infrastructure** | **ā
Unlimited** | **Active C2 servers, IOCs** |
| **VirusTotal** | Multi-AV + Sandbox | ā
500/day | Files, URLs, domains, IPs |
| **Hybrid Analysis** | Sandbox | ā
100/month | Windows/Linux/Android malware |
| **ANY.RUN** | Interactive Sandbox | ā
Public submissions | Real-time analysis |
| **Tria.ge** | Automated Sandbox | ā
20/day | Family detection, config extraction |
| **Threat.Zone** | Behavioral Analysis | ā
Available | IOC extraction, YARA matching |
| **AbuseIPDB** | IP Reputation | ā
1000/day | Abuse reports, confidence scoring |
| **Shodan** | Infrastructure + C2 | ā
100/month | Ports, vulns, C2 detection |
| **AlienVault OTX** | Threat Intel | ā
Unlimited | Pulses, indicators, APT tracking |
| **URLhaus** | Malicious URLs | ā
Unlimited | Malware distribution sites |
| **MalwareBazaar** | Malware Samples | ā
Unlimited | Hash-based malware intel |
| **ThreatFox** | IOC Database | ā
Unlimited | Fresh IOCs |
| **FeodoTracker** | Botnet C2 | ā
Unlimited | Feodo/Emotet infrastructure |
## šÆ Key Capabilities
### Supported IOC Types
- ā
**File Hashes**: MD5, SHA1, SHA256
- ā
**IP Addresses**: IPv4 with geolocation, reputation, vulnerabilities
- ā
**Domains**: DNS, WHOIS, SSL certificate analysis
- ā
**URLs**: Link reputation, phishing detection
### Analysis Output
**1. Normalized IOC Score**
```json
{
"final_score": 87.5,
"severity": "HIGH",
"priority": "P2",
"breakdown": {
"threat_score": 35.2,
"confidence_score": 30.0,
"impact_score": 15.3,
"freshness_score": 10.0
}
}
```
**2. MITRE ATT&CK Mapping**
- Automatic tactic/technique identification
- Maps to ATT&CK framework (TA####, T####)
- Source attribution
**3. Network IOCs**
- Extracted IPs, domains, URLs from sandbox
- Total IOC count
- Ready for additional hunting
**4. KQL Hunting Queries**
- Microsoft Defender EDR queries
- Automated based on IOC type
- Severity-adjusted complexity
- Includes queries for related IOCs
**5. Actionable Recommendations**
- Severity-based response playbook
- Immediate actions for CRITICAL/HIGH
- Investigation steps
- Containment strategies
## š¦ Installation
### Prerequisites
- Python 3.8+
- API keys for threat intelligence sources
### Quick Start
```bash
# Clone repository
git clone https://github.com/ugurrates/MCP-For-SOC.git
cd MCP-For-SOC
# Install dependencies
pip install -r requirements.txt
# Configure API keys (see Configuration section)
cp config.yaml.example config.yaml
# Edit config.yaml with your API keys
# Run server
python server.py
```
## āļø Configuration
### API Keys Setup
Create `.env` file or set environment variables:
```bash
# Core Sources
export VIRUSTOTAL_API_KEY="your_key"
export ABUSEIPDB_API_KEY="your_key"
export SHODAN_API_KEY="your_key"
export ALIENVAULT_OTX_API_KEY="your_key"
# Sandbox Platforms (v2.0)
export HYBRID_ANALYSIS_API_KEY="your_key"
export ANYRUN_API_KEY="your_key"
export TRIAGE_API_KEY="your_key"
export THREAT_ZONE_API_KEY="your_key"
```
### Getting Free API Keys
| Service | Signup Link | Free Tier |
|---------|-------------|-----------|
| VirusTotal | [virustotal.com/gui/join-us](https://www.virustotal.com/gui/join-us) | 500 requests/day |
| AbuseIPDB | [abuseipdb.com](https://www.abuseipdb.com/) | 1,000/day |
| Shodan | [account.shodan.io](https://account.shodan.io/) | 100/month |
| AlienVault OTX | [otx.alienvault.com](https://otx.alienvault.com/) | Unlimited |
| Hybrid Analysis | [hybrid-analysis.com/apikeys/info](https://www.hybrid-analysis.com/apikeys/info) | 100/month |
| ANY.RUN | [any.run/api-documentation](https://any.run/api-documentation/) | Public submissions |
| Tria.ge | [tria.ge/account](https://tria.ge/account) | 20/day |
| Threat.Zone | [app.threat.zone](https://app.threat.zone/public-api/docs) | Free tier available |
## š® Usage
### Open Source Or Claude etc. Integration
Add to `*****_config.json`:
```json
{
"mcpServers": {
"threat-intelligence-v2": {
"command": "python",
"args": ["/path/to/MCP-For-SOC/server.py"],
"env": {
"VIRUSTOTAL_API_KEY": "your_key",
"HYBRID_ANALYSIS_API_KEY": "your_key",
"ANYRUN_API_KEY": "your_key",
"TRIAGE_API_KEY": "your_key",
"THREAT_ZONE_API_KEY": "your_key"
}
}
}
}
```
### Example Queries
**Analyze a suspicious file hash:**
```
Analyze this hash for threats: 44d88612fea8a8f36de82e1278abb02f
```
**Check a potentially malicious IP:**
```
Is 192.0.2.1 malicious? Run full threat intelligence.
```
**Investigate a phishing domain:**
```
Analyze suspicious-domain.com for threats
```
## š Sample Output
```json
{
"ioc": "44d88612fea8a8f36de82e1278abb02f",
"ioc_type": "hash_md5",
"normalized_score": {
"final_score": 92.3,
"severity": "CRITICAL",
"priority": "P1",
"breakdown": {
"threat_score": 38.5,
"confidence_score": 30.0,
"impact_score": 18.8,
"freshness_score": 10.0
},
"contributing_factors": [
"VirusTotal: 45/70 engines detected malware (64%)",
"Hybrid Analysis: Threat score 95/100",
"Strong consensus across multiple sources",
"MITRE ATT&CK: 8 tactics identified"
]
},
"intelligence_sources": {
"VirusTotal": { "malicious": 45, "total_vendors": 70 },
"Hybrid-Analysis": { "threat_score": 95, "verdict": "malicious" },
"ANY.RUN": { "verdict": "malicious", "malware_families": ["emotet"] },
"Tria.ge": { "score": 9, "family": "Emotet" }
},
"network_iocs": {
"ips": ["198.51.100.1", "203.0.113.5"],
"domains": ["malicious-c2.com"],
"total_iocs": 3
},
"mitre_attck": [
{
"tactic": "execution",
"technique": "PowerShell",
"technique_id": "T1059.001",
"source": "Hybrid Analysis"
}
],
"kql_hunting_queries": [
"// Hunt for file by hash\nDeviceFileEvents\n| where MD5 == \"44d88612fea8a8f36de82e1278abb02f\"",
"// Hunt for related malicious IPs\nDeviceNetworkEvents\n| where RemoteIP in (\"198.51.100.1\", \"203.0.113.5\")"
],
"recommendations": [
"šØ CRITICAL THREAT DETECTED - Immediate action required",
"1. BLOCK hash across all security controls",
"2. HUNT for existing activity using KQL queries",
"3. ISOLATE affected systems immediately"
]
}
```
## šļø Architecture
```
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Claude Desktop / API Client ā
āāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāāāā
ā MCP Protocol
āāāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Threat Intelligence MCP Server v2.0 ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
ā ā IOC Detection & Validation ā ā
ā āāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāā ā
ā ā ā
ā āāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāā ā
ā ā Multi-Source Query Orchestrator ā ā
ā ā 12+ Sources (Concurrent Async) ā ā
ā āāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāā ā
ā ā ā
ā āāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāā ā
ā ā Sandbox Analysis Integration ā ā NEW!
ā ā (Hybrid, ANY.RUN, Triage, etc.) ā ā
ā āāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāā ā
ā ā ā
ā āāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāā ā
ā ā Network IOC Extraction ā ā NEW!
ā āāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāā ā
ā ā ā
ā āāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāā ā
ā ā MITRE ATT&CK Mapping ā ā NEW!
ā āāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāā ā
ā ā ā
ā āāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāā ā
ā ā Normalized IOC Scoring Engine ā ā NEW!
ā ā (0-100 Industry Standard) ā ā
ā āāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāā ā
ā ā ā
ā āāāāāāāāāāāāāāāāāāā¼āāāāāāāāāāāāāāāāāāāā ā
ā ā KQL Query + Recommendations ā ā
ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
```
## š¤ Contributing
Contributions welcome! Please:
1. Fork the repository
2. Create feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit changes (`git commit -m 'Add AmazingFeature'`)
4. Push to branch (`git push origin feature/AmazingFeature`)
5. Open Pull Request
## š Changelog
### v2.2 (Current)
- ā
**Multi-Platform Detection Rules**
- KQL (Microsoft Defender EDR)
- SPL (Splunk)
- SIGMA (Universal SIEM)
- XQL (Cortex XDR)
- YARA (Malware Detection)
- ā
**USOM Integration** (Turkish National Threat Intel)
- ā
**VirusTotal Community Intelligence** (Researcher comments & votes)
- ā
**Domain Entropy Analysis** (DNS Tunneling/DGA Detection)
- ā
**Malware Family Identification** (Auto-extraction from sandbox)
- ā
**JARM/JA3 Known C2 Database** (Cobalt Strike, Metasploit, Sliver, etc.)
- ā
Enhanced threat scoring with USOM, community insights, and entropy analysis
### v2.1
- ā
C2 Infrastructure Detection
- 3 C2 tracker repositories integration
- 80+ C2/Malware/Botnet keyword signatures
- Enhanced Shodan C2 detection
- Automatic C2 scoring escalation
- ā
Malware family identification from Shodan banners
- ā
Confidence-based C2 detection (high/medium/low)
### v2.0
- ā
Normalized IOC scoring system (0-100)
- ā
5 sandbox platform integrations
- ā
MITRE ATT&CK mapping
- ā
Network IOC extraction
- ā
Enhanced KQL query generation
- ā
Severity-based recommendations
### v1.0
- Initial release
- 9 threat intelligence sources
- Basic risk assessment
- KQL query generation
## š License
MIT License - see [LICENSE](LICENSE) file
## š¤ Author
**Ugur Ates**
- SOC Team Lead
- Critical Infrastructure Security Specialist
- LinkedIn: [linkedin.com/in/ugurcanates](https://linkedin.com/in/ugurcanates)
- Medium: [@ugur.can.ates](https://medium.com/@ugur.can.ates)
- GitHub: [@ugurrates](https://github.com/ugurrates)
## ā ļø Disclaimer
For **legitimate security research and defense purposes only**. Users are responsible for complying with all applicable laws and ToS of intelligence platforms.
---
**Made with ā¤ļø for Critical Infrastructure Security**
**MCP For SOC Teams** | Empowering security operations with automated threat intelligence
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo recent community issues