Fraud detection app for financial systems in Nigeria
# π‘οΈ FraudGuard NG
**Real-time Fraud Detection for Nigerian Financial Systems**
---
## π― What is FraudGuard NG?
FraudGuard NG is a production-ready, open-source fraud detection system designed specifically for **Nigerian banks and fintechs**. It detects malicious login attempts, VPN/proxy usage, impossible travel, and behavioral anomalies in real-time.
Built for the Nigerian financial ecosystem β integrated with **NIBSS**, **CBN reporting**, and **Nigerian mobile carriers** (MTN, Airtel, Glo, 9mobile).
## ποΈ Architecture
```
βββββββββββββββ ββββββββββββββββ βββββββββββββββ
β Go Engine ββββββΆβ Kafka ββββββΆβ ML Server β
β (Rule-based) β β login.events β β(ML Models) β
βββββββββββββββ ββββββββββββββββ βββββββββββββββ
β β
βΌ βΌ
βββββββββββββββ βββββββββββββββ
β Redis β β ClickHouse β
β (Cache) β β(Analytics) β
βββββββββββββββ βββββββββββββββ
```
| Component | Tech | Purpose |
|-----------|------|---------|
| **Fraud Engine** | Go 1.22 | Real-time rule-based detection (P99 < 50ms) |
| **ML Inference** | Python 3.11 + XGBoost | Deep pattern detection & anomaly scoring |
| **Event Bus** | Apache Kafka | Async communication between services |
| **Cache** | Redis | Session store, rate limiting, feature cache |
| **Analytics** | ClickHouse | OLAP fraud analytics & dashboards |
| **Monitoring** | Prometheus + Grafana | Metrics, alerts, observability |
## π Quick Start
### Prerequisites
- Docker & Docker Compose
- Git
- MaxMind GeoIP2 database (free registration)
- (Optional) IPQualityScore & AbuseIPDB API keys
### 1. Clone & Setup
```bash
git clone
github.com
cd fraudguard-ng
# Copy environment template
cp .env.example .env
# Edit .env with your API keys
```
### 2. Download MaxMind Database
```b β¦