Skip to content

About

An enterprise-grade SQL analytics suite designed for Microsoft Fabric and relational databases. Analyzes real-time fintech transactions to detect Account Takeover (ATO) fraud, identify automated bot attacks, and perform customer financial health segmentation

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Fintech SQL Analytics Banner

💳 Fintech Fraud & Risk Analytics Engine

An Industrial-Grade SQL Solution for Real-Time Fraud Detection & Financial Intelligence


📌 Executive Summary

Modern fintech platforms require continuous monitoring to protect customer accounts from Account Takeover (ATO) attacks, automated bot activities, and unusual balance depletions.

This project delivers an enterprise SQL analytical framework deployed on Microsoft Fabric (SQL Analytics Endpoint) to audit transaction feeds, isolate malicious activity patterns, and segment high-value customer portfolios.

Data Flow Animation

🛠️ Architecture & Tech Stack

  [ Raw CSV / API Data ] 
            │
            ▼
┌──────────────────────────────┐
│  Microsoft Fabric Lakehouse   │
└──────────────┬───────────────┘
               │
               ▼
┌──────────────────────────────┐
│  SQL Analytics Engine (Delta)│
└──────────────┬───────────────┘
               │
               ▼
┌──────────────────────────────┐
│  Fraud Alerts & Insights     │
└──────────────────────────────┘

  • Storage Engine: Microsoft Fabric Lakehouse (Delta Tables)
  • Query Engine: SQL Analytics Endpoint / PostgreSQL / T-SQL
  • Data Domain: Banking, Payments, & Risk Intelligence

🚀 Key Modules & Analytical Queries

1️⃣ Account Takeover (ATO) Fraud Detection

Identifies transactions over $500 preceded by more than 3 failed login attempts.

SELECT 
    AccountID, 
    TransactionID, 
    TransactionAmount, 
    LoginAttempts, 
    Location, 
    Channel
FROM Fintech
WHERE LoginAttempts > 3 
  AND TransactionAmount > 500
ORDER BY TransactionAmount DESC;

2️⃣ Bot-Scripted Transaction Detection

Flags high-value online transactions completed in under 40 seconds (bot execution pattern).

SELECT 
    AccountID, 
    TransactionID, 
    Location, 
    TransactionDuration,
    TransactionAmount
FROM Fintech    
WHERE TransactionDuration < 40 
  AND Channel = 'Online'
  AND TransactionAmount > 1000
ORDER BY TransactionDuration ASC;

3️⃣ High-Velocity Balance Depletion

Detects accounts draining over 50% of their total balance in a single transaction.

SELECT 
    AccountID, 
    TransactionID, 
    TransactionAmount, 
    AccountBalance,
    ROUND((TransactionAmount / AccountBalance) * 100, 2) AS BalanceImpactPercentage
FROM Fintech
WHERE AccountBalance > 0 
  AND (TransactionAmount / AccountBalance) > 0.50
ORDER BY BalanceImpactPercentage DESC;

📊 Sample Findings & Business Impact

Metric / Scenario Flagged Count Risk Level Operational Action
ATO Attempts High 🔴 Critical Trigger 2FA / Temporary Account Lock
Bot Automation Medium 🟠 High Enable CAPTCHA Verification
HVLR Customers Segmented 🟢 Low Offer Premium Wealth Products

📁 Repository Structure

.
├── 📁 data/
│   ├── Fintech.csv           # Raw Transaction Dataset
│   └── Employees.csv         # Internal HR & Department Dataset
├── 📁 sql/
│   ├── schema.sql            # Table DDL Definitions
│   └── analytical_queries.sql# Production Fraud & Segmentation Scripts
└── 📄 README.md              # Project Documentation


About

An enterprise-grade SQL analytics suite designed for Microsoft Fabric and relational databases. Analyzes real-time fintech transactions to detect Account Takeover (ATO) fraud, identify automated bot attacks, and perform customer financial health segmentation

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages