Work(09)

Fintech and AI safety tools, research and side projects, with the numbers I measured, misses included.

Tabular

Bank statements checked to the penny

Turns a bank statement PDF into a clean CSV, Excel or OFX file.

It checks every row against the balance printed on the statement and tells you which ones don't match.

Text PDFs go through a rule-based parser with a YAML profile for each bank, and only scans go to Gemini's vision model. Each row is reconciled against the statement's running balance in integer pence, so a figure that doesn't add up gets flagged. An accuracy harness runs in CI, and I patched React2Shell (CVE-2025-55182) on the live deployment.

Next.js 15, React 19, FastAPI, Gemini, Turborepo, pytest

MCP Guard

A measured security gateway for AI agent tools

A security gateway in Go that sits between an AI agent and its tools, with an evaluation that lists what it fails to stop.

It blocks anything its policy doesn't allow, asks a person before risky actions, scans what tools send back for hidden instructions and logs every call. Across 82 attack and normal scenarios it blocked 45 of 60 attacks and kept 20 of 22 normal tasks working.

A YAML policy per agent says which tools it may use with which arguments, and anything not listed is refused. Tool results are scanned for prompt injection, and tool definitions are pinned so a tool that changes gets blocked. The policy rules blocked every path and permission attack, including ones they were never tuned on. The scanner caught every phrasing I wrote it with and none of the held-out rewordings.

Go, MCP, SQLite, Prometheus, Docker, Helm, Python

Agent Spend Guard

Payment guardrails for AI agents

A safety layer that stops an AI shopping agent overspending, even when a web page tries to trick it.

The agent can only propose a payment, and fixed rules, a human and an idempotent ledger decide whether it goes through. Against 50 prompt-injection attacks, 14 got through with no guard and none got through behind it. Payments are simulated.

The agent can browse a shop and call one tool, propose_payment. A policy engine checks each proposal against the user's mandate (budget, item limits, merchant categories, catalogue prices, split purchases and a kill switch) and ignores the text the model writes. Large payments go to a human, and the Postgres ledger locks the balance row, so a retry can't charge twice. The red-team ran on IBM Granite 4, a small model on my laptop.

TypeScript, NestJS, Next.js, Postgres, Drizzle, Vitest, Turborepo, Ollama

Scam Second Opinion

A second opinion before you send money

Paste a text, email or payment request and get a second opinion before you send money.

It shows how risky the message looks, which UK scam type it matches and the exact words that are red flags, then tells you what to do next, like calling 159. It never calls a message safe. I tested it on 200 real messages, and the results list what it got wrong.

Rules find red flags with exact character spans, and an LLM names the scam type using the UK Finance categories. The model can raise the risk but can't clear a rule hit. I collected 200 messages from public warning pages and a public SMS dataset, had a script check each quote against its source, and froze the set before testing. The local Granite model caught 29 of 40 scams, and recall fell from 0.725 to 0.667 when an LLM rewrote them to dodge detection. Its weak spot is false alarms on genuine bank and NHS alerts. The live site uses Gemini, which hasn't been through the same test yet.

Next.js 15, React 19, Tailwind, FastAPI, IBM Granite, Ollama, Gemini, pytest, Playwright, Vercel

ClearPass

Security testing for AI assistants

A tool that attacks AI assistants and tells you which attacks worked.

It tries prompt injection, data leaks and tool abuse, then gives every attack a pass, fail or unsure and explains how it got there. When I ran it on Google's gemini-3.1-flash-lite, the model read out its own system prompt and repeated a fact poisoned into a document.

Each attack is a YAML file mapped to the OWASP LLM Top 10. Rules look for direct evidence first, and if there isn't any, a second model reads the exchange and decides. A bad API key once produced a clean 100/100, so a system that couldn't be tested now gets unsure and no score. I also found and fixed a stored XSS in the report.

Python, Pydantic, FastAPI, SQLAlchemy, Next.js, TypeScript, Tailwind, Gemini, pytest

Oil supply chain resilience under geopolitical shock

MSc dissertation on oil supply under a Hormuz closure

For my MSc dissertation I built a simulation of the oil supply chain, calibrated it to 2026 prices and tested it against the Strait of Hormuz closing.

I wanted to know if a field's position in the supply chain matters more than its geology. The field with the best rock and the cheapest barrels came last because all of its oil goes through the Gulf.

I built five agent types in Mesa 3 and calibrated the price mechanism against EIA Brent and WTI data. Under the supply shocks, a LASSO analysis found route exposure was the biggest driver of vulnerability, ahead of any geological property. The ranking stayed the same across five seeds, three onset dates and over a thousand changes to the scoring weights.

Python, Mesa 3, Monte Carlo, LASSO, Next.js

Sound × AI

A techno groove machine in the browser

A techno groove machine in the browser. It writes a track, plays it through recordings of real drum machines and rooms, and gives you the loop, stems, MIDI or a whole Ableton Live set to finish it in your DAW.

Pick one of eight styles and it writes a full track, up to about six minutes. You can mute, lock or rewrite each part, click notes in or out, and export WAV, AIFF or FLAC, stems, MIDI or an Ableton Live 12 set.

Groove, the main style, is written by rules I drew from measuring the structure of twelve reference records. In the other seven styles the sequence line comes from a GRU I trained from scratch in NumPy, with backprop through time and Adam written by hand. I split 13,502 MIDI riffs by artist and trained on 9,248, so it's tested on artists it never saw, and it beats an n-gram baseline picked on validation (1.24 vs 1.56 nats, lower is better). My first version had memorised 20 hand-written motifs, so I rebuilt it. The forward pass runs in TypeScript in the browser. The sound comes from my own Web Audio engine, CC0 recordings and two measured rooms, with the mix matched to commercial records by measurement. The WAV, AIFF, FLAC, zip and Live set writers have no dependencies.

React 19, TypeScript, NumPy, Web Audio API, Vitest

Gradaro

Property search that starts from what you can afford

A property search for first-time buyers that starts from what you can actually afford.

It works out your buying power, stamp duty and monthly cost before it shows you any listings, then flags things like short leases and flood risk.

The affordability, stamp duty and valuation maths is in TypeScript, the maps use Leaflet and accounts use Supabase. I built it under ILP Solutions and I'm still working on it. The listings in the demo are sample data.

React 18, TypeScript, Tailwind, Leaflet, Supabase

Exposing security vulnerabilities in open-source AI

BSc dissertation on backdoor attacks

For my BSc dissertation I tried backdoor attacks on eight open-source models from Hugging Face, across audio, image and text.

None of the attacks worked reliably. One looked like it had, but it was a bug in my test harness.

Single-shot poisoning didn't reliably work on any of the eight, and only four left saved outputs I could check. I later rebuilt the code as a Python package with tests and a CLI.

Python, PyTorch, Transformers, pytest

In progress

  • Scam Radar: A public service that tracks which scams are circulating in the UK, built from messages people choose to share. It extends Scam Second Opinion. Node.js · Express · MongoDB · AWS Lambda · API Gateway · SQS · Terraform. Started November 2026. It runs end to end on my laptop: each message is redacted before it's stored, a queue hands it to Scam Second Opinion for a verdict, and a weekly job builds the trends page. The Terraform for AWS is written, but it isn't deployed yet, so there are no real-traffic numbers.
  • Ledgerline: An event-driven payments ledger in Go. The goal is to kill parts of it under load and show that no payment is lost or duplicated. Go · Kafka · Postgres · Kubernetes · Helm · Prometheus · Grafana. Started November 2026. Four Go services run on a local Kubernetes cluster. In load tests on my laptop at up to 1,000 payments a second, every accepted payment was settled or rejected exactly once and all 13 reconcile checks passed. The chaos runs, killing pods, the broker and the database under load, come next.
  • Hormuz Watch: A streaming data platform on public ship-tracking data for oil tankers. It tests the predictions of my MSc simulation against live traffic through the Strait of Hormuz. Python · Kafka · PostGIS · SQLAlchemy · Alembic · dbt. Started November 2026. Tanker positions stream through Kafka into PostGIS, with detectors for loitering, AIS gaps, ship-to-ship meetings and strait transits. Before opening the data I wrote down four of my dissertation's route predictions: two held, one failed and one can't be tested yet. Low-traffic days through Hormuz didn't significantly lead Brent price moves.
  • Hardening the AI security toolkit: The dissertation only used two poisoned examples per model. Next step is a proper poisoned set and a backdoor success rate measured on held-out triggers. Python · PyTorch · Transformers.

Coursework

Carbon footprint analysis and predictive modelling: I cleaned a messy survey in R, then built regression and classification models for footprint and recycling behaviour.

Contact

tangeni.idhenga@gmail.com

LinkedIn · GitHub