Phishing Simulator 2000

An inbox simulator for phishing detection

Stack Vanilla HTML, CSS, JavaScript
Source GitHub

TL;DR

  • Gmail-clone web app where users process a mixed inbox of phishing and legitimate emails
  • Click any element to flag it as suspicious, report or clear each email, get scored on detection accuracy
  • 51 emails across 7 scenarios, 57 phishing techniques, adaptive difficulty that adjusts based on performance
  • No build step, no backend, no dependencies — static HTML/CSS/JS

Phishing Simulator 2000 logo

Where this came from

At Chia Network, I built their first cybersecurity training program. The password lesson on this portfolio is one piece of that. The training worked, but one thing always bothered me: phishing was the hardest topic to teach through reading alone.

You can explain what a lookalike domain is. You can show examples. But recognizing meridian-c0rp.com instead of the real domain meridian-corp.com in a wall of text while you're busy and distracted is a different skill than reading about it in a lesson. Phishing detection is pattern recognition under realistic conditions. The only way to build that is practice.

Phishing Simulator 2000 inbox view showing a Gmail-style interface with a mix of legitimate and phishing emails

How it works

You get a backstory: your name, company, role, manager, domain. Then you open your inbox. Some emails are phishing. Some are legitimate. You don't know which.

Open an email. Read it. Click on anything suspicious: the sender address, a link, a phrase in the body, an attachment. Each click asks "Flag this as evidence of phishing?" Flag as many elements as you want, or none. When you're done, report the email as phishing through the three-dot menu (the way you would in real Gmail) or mark it as safe.

After each email, you get a review. Which flags were correct, which were false positives, which red flags you missed entirely. Each one comes with an explanation of why it was suspicious and what to look for next time.

After all emails, an aggregate report breaks down your performance by category. You see where you're strong and where you're missing things.

The Gmail clone

The interface is a read-only Gmail replica. Inbox list view with sender avatars, bold unread subjects, timestamps, body preview snippets. Email detail view with sender info blocks, expandable headers showing reply-to and CC fields, attachment chips. The three-dot overflow menu. The "this message is from outside your organization" banner. When you hover a link, a bar at the bottom of the screen shows the actual URL, the same way real browsers do.

If the training interface looks nothing like the place where phishing actually happens, you're training people to spot phishing in the wrong context. Recognition skills are tied to the environment where you practice them. A fake-looking tool doesn't transfer well to a real inbox.

Difficulty and adaptation

LevelEmailsPhishing ratioRed flags per emailWhat it tests
Beginner580/203–5Obvious tells: misspellings, wrong domains, broken grammar
Intermediate860/402–3Moderate: lookalike domains, URL mismatches, social engineering
Advanced1040/601–2Subtle: one-character swaps, perfect grammar, context-only clues

Everyone starts at Intermediate. Score 80%+ and the next round gets harder. Score 40% or below and it gets easier. Scoring weighs four things: correctly identifying phishing, correctly leaving legitimate emails alone, percentage of red flags found, and false positive rate.

The phishing-to-legitimate ratio shifts with difficulty. Beginners see mostly phishing (80%) so they get practice on obvious red flags. Advanced users see mostly legitimate email, which is closer to reality and forces you to resist over-flagging.

57 phishing techniques across 7 categories

Each scenario draws from a catalog of 57 documented phishing techniques organized into seven categories:

  • Sender — lookalike domains, display name spoofing, reply-to mismatches, free email providers, subdomain tricks
  • URL — href/display text mismatches, URL shorteners, IP addresses, subdomain deception, typosquatted domains
  • Content — urgency, threats, generic greetings, credential requests, grammar errors, branding mismatches
  • Attachment — double extensions, dangerous file types, password-protected archives, macro-enabled docs
  • Context — CEO fraud, breaking process, secrecy requests, out-of-role requests, authority pressure
  • Header — suspicious timestamps, unusual CC/BCC, external sender indicators
  • Visual — image-based email bodies, fake buttons, fabricated reply chains, lookalike button styling

Most phishing training focuses on bad grammar and suspicious links. Real attacks use social engineering, context manipulation, and visual tricks that have nothing to do with spelling. The catalog covers all of it.

Learning design

A few decisions about how this teaches, and why.

Practice in context

The Gmail clone isn't a gimmick. If you train people to spot phishing in a multiple-choice quiz, they get good at multiple-choice quizzes. Train them inside something that looks and feels like their actual inbox, and the skill transfers. The research calls this transfer-appropriate processing: retrieval practice works best when the practice context matches the real context.

Immediate, specific feedback

After each email, the review tells you exactly what you got right, what you got wrong, and what you missed. With explanations. "You flagged the sender address correctly because the domain uses a zero instead of an O, but you missed that the reply-to goes to a different domain entirely." That's instruction, not assessment. The learning happens in the review, not the test.

Desirable difficulty

The adaptive system keeps users in the productive struggle zone. Too easy and you're not learning. Too hard and you're guessing. Difficulty adjusts based on demonstrated skill, not self-reported confidence. This comes from research on desirable difficulties: learning that feels harder in the moment produces better long-term retention than learning that feels easy.

At advanced difficulty, 60% of emails are legitimate. You have to resist the urge to flag everything. Trusting a legitimate email when you're in detection mode is harder than catching an obvious phish, and it's the skill that matters in practice. In your actual inbox most of the emails are real.

False positive awareness

Most phishing training only teaches you to catch bad emails. This simulator also scores you on false positives: flagging legitimate elements as suspicious. Someone who reports every email as phishing is a problem. The review addresses this directly: "You flagged the display name 'Dana Chen' but this matches your real manager. Display names alone aren't suspicious. Always check the actual email address." This is training judgement instead of reflexes.

Technical decisions

There is no build step and no backend. Vanilla HTML, CSS, and JavaScript. Scenarios are JSON files loaded at runtime. The whole app runs from a static file server that's deployable anywhere. Anyone can fork it, add scenarios, and run it without installing anything.

Scenario-driven architecture. The backstory, all the emails, every red flag with explanations, every false positive explanation are all contained JSON files. The app is a rendering engine. Adding a new scenario means writing a JSON file, not touching application code. The people who write content shouldn't need to understand the nuts and bolts of the system that displays it.

Everything is clickable. Sender name, sender email, reply-to, subject, links (both the visible text and the revealed URL), attachment chips, body text spans, CC/BCC, the external sender banner, images. The entire email is an investigation surface. Most training tools only let you flag pre-designated "suspicious" elements, which teaches users to look for the UI cue in the testing tool instead of the red flag.


This project connects to the security training I built at Chia Network and the knowledge base at Precision Nutrition. The training taught people what phishing is. This tool lets them practice spotting it.

→ Try the demo