Skip to main content
Back to projects

SecureBank

Fraud detection

AI / ML Interactive
Python pandas SQL

SQLi defense

Interactive demo prototype scoring model

Adjust a transaction's details to see its fraud-risk score. This is a simplified rule-based scorer — the real system joins three data sources behind injection-hardened SQL.

Fraud risk

Low

Example transaction payload

what the detection workflow receives
 

How it works

Fraud signals were spread across three separate sources — customer records, transactions, and fraud labels — that could not simply be joined together. SecureBank brings them into one detection workflow while keeping sensitive data safe.

Three data sources customer · transactions · fraud Secure ETL and join injection-hardened SQL Fraud detection features + model Flagged cases access-controlled

Design decisions

Building it, step by step

1. Ingest three siloed sources

Customer, transaction, and fraud labels each lived behind a separate “gatekeeper”. The first step is loading all three consistently.

Example: a flagged transaction only means something once the customer record and the fraud label are joined to it.

2. Join without leaking data

Instead of dumping everything into one open table, the join uses hardened SQL and keeps raw files out of git.

3. Detect fraud across the join

With the data joined safely, the workflow surfaces suspicious activity under access controls.

What I evaluated

AspectResult
Sourcescustomer · transactions · fraud
DefenceSQL-injection hardening
Hygieneraw sources kept out of git

What I learned

Privacy and security are not bolted on at the end — they are design constraints that shape the pipeline, the queries, and where data is allowed to live.