Skip to content

Latest commit

ย 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ก๏ธ Fraud Detection Engine (Rule-Based System)

๐Ÿค” The Problem

In Fintech, speed is everything. But speed without security is dangerous. I built this system to answer a critical question: How can we catch a thief before the money leaves the bank?

Instead of relying on AI black boxes, I wanted to understand the core logic of fraud detection by building a Rule-Based Engine from scratch. This script analyzes transaction batches and flags suspicious activity based on standard banking security protocols.

๐Ÿง  The "Brain" (Detection Logic)

The system scans every transaction against a set of strict security rules:

  1. Velocity Check (The "Stolen Card" Scenario):

    • Logic: If a single card is used 4 or more times in a short batch, it triggers an alert.
    • Why: Thieves often test stolen cards with small, rapid purchases.
  2. High-Value Shield:

    • Logic: Any transaction over 10,000โ‚ฌ is instantly flagged for manual review.
    • Why: To prevent massive capital loss in a single hit.
  3. Blacklist Protocol:

    • Logic: Cross-references email domains against a known list of scam providers (e.g., scam-domain.xyz).
    • Why: Fraudsters rarely use legitimate corporate emails.

๐Ÿ› ๏ธ Tech Stack

  • Python 3.10: Used for its speed in data processing.
  • JSON: For handling structured transaction data.
  • Algorithmic Logic: Custom-built filtering and aggregation loops (no external heavy libraries needed for this efficiency).

๐Ÿš€ Run the Audit

Want to see the detector in action?

  1. Clone the repo:
    git clone [https://github.com/Anguis400/fraud-detection-system.git](https://github.com/Anguis400/fraud-detection-system.git)
  2. Run the analysis:
    python main.py
  3. Check the logs: You will see a detailed report in the terminal showing exactly which transactions were rejected and why.

Developed by Anguis400 to demonstrate secure coding practices in Fintech.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages