This project looks for signs of fraud in corporate wire payments. It catches fake vendor domains used in Business Email Compromise (BEC) scams, flags wires that were split up to get around approval limits, strips sensitive data out of payment memos, and keeps a tamper-proof SHA-256 audit log for SOX Section 404.
LAG() OVER, SUM() OVER, COUNT() OVER) to group related transactions and spot clusters. It also holds the hash-chained audit log.BigDecimal. It also verifies the audit ledger hasn’t been altered and exports CSV reports that open fine in Excel or Power BI.treasury-cyber-sentinel/
├── lib/ # External dependencies (SQLite JDBC driver)
├── sample_data/ # Exported CSV audit reports and compliance logs
├── schema.sql # Tables, views, and audit ledger schema
├── treasury_threat_collector.py # Python scraper, DLP filter, and database seeder
├── TreasurySoxAndFraudEngine.java # Java compliance runner and report generator
├── treasury_soc_report.html # Interactive SOC dashboard and attack simulator
└── README.md # You're reading it
You’ll need Python 3 and Java installed. Start by running the collector, which creates the SQLite database (treasury_sentinel.db):
python3 treasury_threat_collector.py
This compiles and runs the Java engine. It verifies the audit chain, applies the dollar-amount rules, exports the CSV reports, and generates the HTML workbench:
javac -cp ".:lib/sqlite-jdbc-3.46.1.0.jar" TreasurySoxAndFraudEngine.java
java --enable-native-access=ALL-UNNAMED -cp ".:lib/sqlite-jdbc-3.46.1.0.jar" TreasurySoxAndFraudEngine
Open the dashboard in your browser:
open treasury_soc_report.html
You can also try it online here: coreyied.github.io/treasury-cyber-sentinel/treasury_soc_report.html
sox_immutable_ledger, and each entry’s hash is built like this: curr_hash = SHA256(timestamp | category | ref_id | amount | actor | prev_hash). Since each hash depends on the one before it, changing any record breaks every hash after it.