SecureBank is an open-source cybersecurity research and engineering framework demonstrating a financially-aware zero-trust architecture for banking systems.
This repository serves as public research evidence, open-source contribution, and a simulation platform for academic and industry use.
This repository powers SecureBank Copilot, an AI-driven decision-support system created for the Gemini 3 Hackathon.
The project demonstrates how generative AI can translate cyber incidents into quantified financial loss, regulatory exposure, and executive decision paths — before real damage occurs.
https://www.biaotech.dev/securebank-copilot
SecureBank: A Financially-Aware Zero-Trust Architecture for High-Assurance Banking Systems
- DOI: https://doi.org/10.5281/zenodo.18071268
- Version: v1.0
- Author: Paulo Fernandes Biao
- Indexed in: OpenAIRE (Zenodo)
This repository contains the companion implementation and simulation artifacts supporting the publication.
Detect suspicious financial activity and identity abuse in simulated banking and fintech environments:
- Real-time risk evaluation via secure APIs
- Explainable scoring with explicit reason codes
- Quantitative validation through Monte Carlo simulation
- Architecture suitable for academic review and expert evaluation
- FastAPI-based secu re transaction scoring API
- Rule-based threat detection:
- Velocity anomalies
- Geo-IP changes
- Device mismatches
- High-risk transaction patterns
- Threat intelligence blocklists
- Explainable output (score + reasons + flags)
- Batch CSV evaluation for offline analysis
- Reproducible Monte Carlo simulation module
- Dockerized execution environment
- MIT open-source license
The SecureBank™ framework is supported by a full Monte Carlo–based statistical validation module, including hypothesis testing, effect size analysis, and publication-ready visualizations.
See: sim/securebank-sim/README.md
flowchart LR
A["Client / Ingest"] -->|/api/v1/score| B["FastAPI Application"]
B --> C["Rule Engine (rules.py)"]
B --> D["Threat Intelligence (Blocklists)"]
B --> E["Data Storage (CSV / SQLite)"]
B --> F["Monitoring (Prometheus / Grafana - optional)"]
docker compose up --buildAPI available at: http://localhost:8000/docs
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn securebank.main:app --reload --port 8000curl -X POST http://localhost:8000/api/v1/score -H "Content-Type: application/json" -d '{
"user_id": "dev001",
"amount": 999.99,
"merchant": "ELC",
"ip": "198.51.100.20",
"device_id": "dev001"
}'{
"score": 80,
"reasons": ["High amount", "Suspicious IP range"],
"flags": { "high_risk": true }
}Run tests with:
pytest -qsrc/
securebank/
main.py
rules.py
models.py
utils.py
tests/
test_rules.py
data/
sample_transactions.csv
threat_intel_blocklist.txt
sim/
securebank-sim/
docs/
roadmap.md
.github/workflows/
Dockerfile
docker-compose.yml
requirements.txt
LICENSE
README.md
cd sim/securebank-sim
python runner.pyThis project demonstrates:
- National Importance: financial system resilience and fraud detection
- Well Positioned: secure APIs, detection logic, CI, documentation
- On Balance: open-source contribution enabling adoption and reuse
MIT License