Inspiration

Fake delivery notices, "your account will be suspended" alerts, prize messages and wallet-recovery requests reach almost everyone, and most people cannot tell them apart from real ones in the moment. Many checkers just show a number, or sit behind a sign-up. We wanted a tool that is free, needs no account, and explains in plain words what looks wrong, wrapped in something people actually enjoy opening.

Above all, we wanted to help people protect themselves from phishing and hacking.

What it does

ThreatPeek is a free scam and phishing message checker for emails, SMS and links. You paste a message and press Peek. You get a 0-100 risk estimate, plain-English red-flag cards, and Chithi, an envelope ghost with a monocle whose mood reacts: Pookie (0-30), Skeptical (31-69) and Poltergeist (70-100), which haunts the whole screen. It is an estimate, not a guarantee, and the app says so on every result. For the Costume Contest, the haunted interface is the costume and the scam checker is the body underneath.

  • Scores a pasted message from 0 to 100 and names the verdict: Pookie, Skeptical or Poltergeist.
  • Shows red-flag cards, each with a plain-English reason. The engine has 33 named signals, for example look-alike link domains, requests for passwords, one-time codes or wallet recovery phrases, delivery and fine scams, fake job offers with upfront fees, tech-support scares and remote-access requests.
  • Reacts like a character. Chithi changes expression, speaks a short recorded line for each verdict, and a Poltergeist result flickers the whole screen and sends bats flying (it respects the reduced-motion setting and stays under three flashes a second). On phones the page scrolls to the result by itself.
  • Stays private by design. No accounts, no database, and the history lives only in your browser. Optional AI and Safe Browsing checks exist in the server code but are switched off on the live demo.

How we built it

The scoring engine is a pure JavaScript module, score(text), shared by the browser and the server. Each of the 33 signals has a weight and a plain-English explanation. Signals are capped per category and blended into one number, and a few numbered floors lift a message to at least 50 or 70 when a combination is unmistakable, such as a request for a recovery phrase. The frontend is React with Vite; the server is Express with zod validation; everything deploys as one free Render web service.

The engine has 397 tests, the server 208 and the frontend 36, plus a benchmark harness that scores labelled message sets (see below). Chithi's voice is the author's own voice, recorded and pitch-shifted, so only fixed lines are ever played and nothing derived from your message is spoken or sent anywhere. Shadab built the engine, server, deployment and documentation; mashru04 built the Chithi interface.

How we used Kiro

Most of the implementation was written with Kiro. The main parts were made by KIRO

What Kiro does in this repository:

  • Steering. Four files in .kiro/steering: product.md (what ThreatPeek is and must never claim), tech.md, security.md and honesty.md. In the last session we had Kiro bring tech.md and security.md up to date with the real project and write honesty.md, which sets evaluation rules: mark a test set as seen once its misses have been used for tuning, keep one fully unseen set, quote results exactly as measured, and state what the engine misses. Kiro loads these as workspace rules.
  • Hooks. Two hooks in .kiro/hooks: run the engine tests when a file in backend/engine/src is saved, and run the benchmark when a dataset file changes. I wrote the first draft of the hook files; Kiro detected them as legacy format and migrated them to its own format. We confirmed that Kiro loads both hooks, but we did not see either one run automatically on save.
  • Spec. .kiro/specs/threat-scoring holds requirements, design and tasks for the scoring engine. It was kept in step with the engine as signals were added and measured. The first version of the spec was created in Kiro.
  • Not shipped. We started a second spec for a "Try an example" feature, stopped before the design and tasks, and left it out of the repository.

Our honest summary: Kiro gave the project memory, guardrails and automation around the code, and it was the part we used to keep our own claims honest. It did not write most of the code.

What we measured, and what it misses

On scam types the rules were not written for, ThreatPeek flagged 13% and then 40% of scams in our two clean tests, and raised one false alarm across the 30 legitimate messages in them. It is a transparent rule engine, not a classifier, and it misses a lot. All sets are small, synthetic and English-only, written by us or by an AI model, so none of this is a guarantee.

Set Origin Status Scams flagged (31+) Scams 70+ False alarms
dev written by us tuned on 33/35 (94.3%) 8/35 0/35
heldout, heldout2 written by us partly seen during tuning 15/20 and 8/15 3/20 and 1/15 0/20 and 1/15
heldout3 AI model seen, used for tuning 14/15 (93.3%) 9/15 0/15
heldout4, first contact AI model fully unseen 2/15 (13.3%) 0/15 1/15
heldout4, after fixes AI model seen, used for tuning 9/15 (60.0%) 3/15 0/15
heldout5 AI model fully unseen 6/15 (40.0%) 0/15 0/15

Only the two "fully unseen" rows say how it does on new scams. The one false alarm in heldout4 was a real bank notice that said a password had been changed; we fixed that rule so notices no longer count as requests.

What it misses: scams with no link and no telltale phrase, such as rental-deposit requests, wrong-number openers, fake-check job offers, ticket resale and pet-deposit messages; non-English text, including romanized Bengali; and any scam worded in a way our signals do not know. A low score is not a clearance.

Challenges

  • Measuring honestly. Our first rules caught almost everything we had written them for, which proved little. Testing on messages we had not seen showed real gaps (one-time-code requests, delivery scams, wallet phrases, look-alike links), so we added rules and then labelled every set we had learned from as seen and kept asking for fresh ones.
  • Detection versus false alarms. Words like "password" appear in real notices too. We taught the engine the difference between asking for a credential and informing you about one, and negations like "never share your code" no longer count.
  • Making it feel alive without making it unsafe. The first text-to-speech voice sounded wrong, so we recorded real clips and synced them to the intro. The Poltergeist effect keeps to three flashes a second or fewer and switches off for people who prefer reduced motion.
  • Free hosting. The free Render tier sleeps when idle, so the first visit can be slow; a small scheduled ping keeps it warm.

What we learned and what is next

We learned that an explainable rule engine is easy to trust and hard to generalize: it shows exactly why it fired, and it misses wording it has never seen. A smaller honest number taught us more than a large flattering one.

Next steps we would take, in order: more scam families and fresh unseen test sets each round; Bengali and romanized-Bengali support, since our users read it; and an optional, rate-limited AI second opinion for messages the rules score low but that look odd. These are plans, not shipped features.

Team and links

Team: Shadab (engine, server, deployment, documentation) and mashru04 (Chithi interface).

Live demo: https://threatpeek-7pw7.onrender.com ยท Repository: https://github.com/S-Arshad032/threatpeek (MIT licence, .kiro folder included)

Built With

Share this project:

Updates

Submission history