Upgraded SecurityUtil from salted SHA-256 to 120,000-iteration PBKDF2-HMAC-SHA256 with 16-byte SecureRandom salts and constant-time comparison.
Concurrency-Safe Atomic TransfersACID / JDBC
Hardened executeAtomicTransfer() with deterministic-order SELECT ... FOR UPDATE row locks and conditional atomic balance debits (WHERE balance >= ?) to prevent double-spend races.
Synchronizer-Token CSRF ProtectionServlets
Added 256-bit per-session CSRF tokens rotated on login and verified across every state-changing POST route (/login, /logout, /transaction/new, and /admin/*).
Fail-Closed Production Database SafetyReliability
Removed silent MySQL-to-H2 switching in production. Primary database outages now fail safely via DatabaseException instead of writing to temporary in-memory datasets.
Isolated Switchable Demo SandboxArchitecture
Separated Demo Mode (demo.fraudguard.rohanrastogi.in) into an isolated H2 sandbox with ephemeral per-boot passwords, keeping production free of predictable demo credentials.
Refined mobile hero actions, icons, and pipeline animations, and added concurrency, CSRF, session timeout, and fail-closed DB test suites (47/47 passing).
DEVELOPER & OPERATOR MANUAL
FraudGuard Documentation
Welcome to the official technical manual for FraudGuard — the AI-powered autonomous fraud prevention engine engineered by TeamRootOps at Galgotias University.
1. Overview & Purpose
FraudGuard is a real-time, low-latency transaction processing engine designed to autonomously detect and intercept fraudulent financial activity. Operating with an evaluation latency under 25 milliseconds, FraudGuard inspects transactions through stateful heuristic pipelines, behavioral anomaly detection, and composite scoring algorithms before committing balance mutations to persistent ACID storage.
Core Philosophy: Deterministic security, transparent risk scoring, strict isolation of sensitive personal identifiers (PII), and frictionless user experience for legitimate transactions.
Dynamic Risk Tiering: Automatic division into LOW, MEDIUM, HIGH, and CRITICAL risk tiers with adaptive enforcement.
Autonomous Triage & Alerting: Real-time incident dispatching notifying security analysts with full rule audit trails.
Enterprise RBAC: Role-based access control protecting executive dashboards, transaction telemetry, and account management.
2. Quickstart & Setup Guide
Follow these steps to deploy and run FraudGuard on your local development or staging environment.
Prerequisites
Component
Required Version
Purpose
Java Development Kit (JDK)
17 LTS or 21 LTS
Compiler & runtime environment
Apache Tomcat
10.1.x
Jakarta EE 10 Servlet Container
MySQL Database
8.0+
Relational transactional storage (InnoDB)
Apache Maven
3.8+
Build automation & dependency management
Step 1: Database Initialization
Create the database schema and seed default administrative and test customer accounts:
# Connect to MySQL 8.0 CLI
mysql -u root -p
# Execute initialization scripts from repository root
mysql> source database/schema.sql;
mysql> source database/seed.sql;
Step 2: Compile & Package via Maven
# Clean and compile war package (skips unit tests for quick packaging)
mvn clean package -DskipTests
Step 3: Deploy to Apache Tomcat
# Copy generated WAR to Tomcat webapps directory
cp target/fraudguard.war $CATALINA_HOME/webapps/
# Start Tomcat server
$CATALINA_HOME/bin/startup.sh # Linux/macOS
$CATALINA_HOME\bin\catalina.bat run # Windows
Navigate to http://localhost:8080/fraudguard/ to access the system.
3. Portal User Guides
FraudGuard features dedicated, role-tailored interfaces:
Customer Portal
Designed for end-users to send funds, monitor real-time wallet balances, review transaction status, and acknowledge security alerts.
Executive & Analyst Portal
Designed for fraud analysts and security officers to inspect global transaction streams, evaluate rule trigger breakdowns, and resolve alerts.
Role-Based Access Control (RBAC) Matrix
Access credentials are hashed with PBKDF2-HMAC-SHA256 and provisioned exclusively by system administrators; predictable demo accounts are disabled in production.
Role
Portal Scope
Authentication & Session Controls
Privileges
ADMIN
/admin/*
PBKDF2 + CSRF Token + HttpOnly/Secure Cookie
Executive Dashboard, User Status Management, Transaction Monitor, Audit Logs
Data Privacy Guarantee: Zero personal email addresses, student IDs, or sensitive customer PII are ever exposed in client-facing HTML views, network responses, or client payloads.
Cryptographic Password Salting: Passwords hashed with PBKDF2 / SHA-256 with cryptographically secure salts.
SQL Injection Immunity: 100% of database queries use JDBC PreparedStatement with strict parameter binding.
Session & Cookie Protection:HttpOnly cookies preventing cross-site scripting token theft, session rotation upon login.
HTTP Defense Headers:X-Content-Type-Options: nosniff, X-Frame-Options: DENY, and X-XSS-Protection injected on all responses.
7. Troubleshooting & FAQ
Q: Why does my transaction score 100 immediately?
The recipient account matches a blacklisted entity or sanction list in BlacklistAccountRule. Switch to a standard test recipient account to test lower risk tiers.
Q: How do I switch themes?
Use the celestial theme toggle switch in the top-right navigation bar to switch seamlessly between Obsidian Dark Mode and Refined Ivory Light Mode.
8. TeamRootOps Engineering Credits
FraudGuard was engineered as a core security research initiative by TeamRootOps at the School of Computing Science and Engineering (SCSE), Galgotias University.
Rohan Rastogi — Team Leader • Lead System Architect, Core Java Engine, Database & Frontend Engineer