Building a phishing-explaining ghost, spec-first with Kiro
Written for the Kiroween 2026 hackathon. Scam emails look real, and most tools just say "spam" without explaining why. So I built Ghost Mail: a scam checker with a 90s desktop look. You paste an email or text, and Boo t
Written for the Kiroween 2026 hackathon.
Scam emails look real, and most tools just say "spam" without explaining why. So I built Ghost Mail: a scam checker with a 90s desktop look. You paste an email or text, and Boo the ghost says SAFE, SUSPICIOUS or POSSESSED, and explains every red flag, like lookalike domains (paypa1.com), failed SPF/DKIM/DMARC checks, or fake attachments (invoice.pdf.exe). Everything runs in your browser.
What Kiro changed for me
I built it spec-first. Before any code, I wrote requirements, a design and a list of tasks, and Kiro built from that plan. When a test failed, Kiro fixed the code to match the plan instead of changing the test.
Steering docs kept my security rules (like "never use innerHTML") active whenever Kiro wrote code, and hooks ran my tests every time I saved a file.
Property-based tests even caught a real bug: a Cyrillic "ัhase.com" was slipping past my lookalike check.
What I learned
Testing with emails from my own spam folder taught me more than perfect samples. And writing the plan first made working with AI much more predictable.
๐ฎ Try it: https://peri2505.github.io/ghost-mail/
๐ป Code: https://github.com/Peri2505/ghost-mail
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.