
jefraud
Ranks every journal entry by fraud risk from accounting red flags and the state of internal controls, and explains each alert in terms an auditor can check.
About
jefraud scores every journal entry in a ledger for fraud risk. It combines accounting red flags, such as abnormal amounts, duplicates, late-night postings and entries just before period end, with the state of internal controls: who posted the entry, who approved it and whether they were allowed to.
It is an applied research project in accounting and AI, built with an accounting researcher. A rule baseline traceable to ISA 240 and PCAOB AS 2401 sits beside learned models, and every feature is computed point in time, from earlier entries only, so nothing leaks from the future. The methods are evaluated on synthetic journal-entry ledgers with injected fraud scenarios.
jefraud is in development and not available for use yet. The models are written by hand in JavaScript and tested against worked examples, so every number can be audited, and the engine has a single dependency.
How it works
Ledger
Journal entries in date order, with users, approvals and counterparties.
Indicators
Accounting and internal-control scores, from earlier entries only.
Ranking
Rules and learned models rank every entry by risk.
Explanation
Claude explains the top alerts; each explanation is checked locally.
Review
A reviewer decides on each entry before seeing its score.
What it does
Accounting red flags
Abnormal amount for the account, exact and near duplicates, unusual posting time, period-end proximity, round amounts and Benford deviation, a new counterparty, an abnormal reversal and a narration that does not match its accounts.
Internal-control signals
Access above or below what the entry requires, segregation of duties (the same person posts and approves), missing or rubber-stamp approval, approval-limit breaches and payments split to stay under a limit.
Rules from the standards
A rule baseline where each rule is traced to ISA 240 or PCAOB AS 2401, scored beside learned models so the gain from learning is measured, not assumed.
Models written by hand
Logistic regression, gradient-boosted trees and Isolation Forest and LOF baselines, all in JavaScript. Features are point in time, and a test proves that no feature reads a later entry.
Measured the way auditors work
PR-AUC and alert burden (how many entries an auditor must open to catch most of the fraud) instead of accuracy, which looks excellent when fraud is rare and a model flags nothing.
Explanations that stay grounded
A language model (Claude) explains each alert from the entry's feature vector only, never the ledger or the narration, and never decides what is risky. Every explanation is checked locally against the indicators that actually fired.
Review without anchoring
A web interface with a dashboard, alerts, indicators and a review instrument that hides the risk score until the reviewer decides. Two AI reviewer personas judge the same entries, and agreement statistics compare them with human review.
Made for
Journal-entry testing
Rank a ledger so the riskiest entries are opened first, with a reason for every alert that points to the indicators behind it.
Internal-control review
See where controls give way in practice: self-approved entries, postings beyond a user's access and limits bypassed by splitting.
Research on AI in accounting
Compare rules, learned models and expert weights on the same ledgers, and study whether AI reviewers can stand in for a second human rater.
Fair play and privacy
- The AI never decides. Risk comes from the indicators and the models. The language model only explains an alert, and its explanation is checked against the indicators that fired.
- Ledger data stays out of the prompt. The explanation layer receives a feature vector, never the ledger, the narration or the label, and a test enforces it.
- Reviewers are not anchored. Neither the human reviewer nor the AI reviewers see the model's score before they decide, so their agreement with it means something.
Questions
Can I use jefraud?
Not yet. It is an applied research project in development, with no public release.
Does the AI decide which entries are fraud?
No. The indicators and models score the entries. The language model only explains an alert from its feature vector, and each explanation is checked against the indicators that fired.
What data is it evaluated on?
On synthetic journal-entry ledgers with injected fraud scenarios, such as a fictitious vendor, limit splitting, self-approval and a concealing reversal. Ordinary entries include honest versions of each pattern, so no single indicator gives the answer away.
Why not report accuracy?
When one entry in a hundred is fraud, a model that flags nothing is 99% accurate. PR-AUC and alert burden show how well the riskiest entries are found and how much work an auditor faces.




