Skip to content
Giovanni BiggioEspañol
← Back to projects

KRHO

Managing human risk against phishing

KRHO is my capstone project at UNAB. It is a platform that lets a security team measure how exposed their organization is to phishing and, above all, helps people learn something right when they make a mistake.

  • Django
  • Django REST Framework
  • React
  • PostgreSQL
  • Gophish
  • nginx
  • Docker Compose

The problem

Most incidents start with an email. Phishing simulations help measure that risk, but they often end up shaming whoever clicked, or in a report nobody reads.

KRHO aims for the opposite: measure by team without pointing at anyone, and turn every click into a chance to learn.

How it works

Security teambrowserWeb interfacenginx + ReactKRHO APIDjango + DRFDatabasePostgreSQLTraining capsulepart of KRHOGophishsending and trackingPeoplein the organizationcreates and closesHMAC webhooksimulated emailclickredirectsKRHO componentsExternal

Swipe to see the full diagram →

  1. The security team creates a campaign from an email scenario.
  2. KRHO sets up the campaign in Gophish, which sends the simulated emails.
  3. When someone opens the email or clicks, Gophish records it and notifies KRHO through a signed webhook.
  4. Whoever clicked does not get a "gotcha": they get a short training capsule about the signs they should have noticed.
  5. KRHO recalculates each team’s risk score on every event.
  6. When the campaign closes, KRHO deletes the groups and the campaign from Gophish, so no email lists are left behind.

Security decisions

Signed webhooks

Gophish signs every event with HMAC. KRHO drops any event without a valid signature.

k-anonymity

The risk score is calculated per team, never per person, and a team is only shown if it has at least k people (5 by default). Nobody is identified by a click.

Anonymous tracking

Tracking links use an opaque token: they do not carry the person’s name or email.

No leftover personal data

Recipient lists are deleted from Gophish when each campaign closes.

Production hardening

The app refuses to start without a configured secret key, uses HSTS, secure cookies, and HTTPS redirects, and sanitizes template HTML before rendering it.

Testing

The business rules have 90% automated test coverage.

What comes next

  • Rate limiting on login and public routes.
  • A visual email editor and more simulation scenarios.

By design, KRHO is not exposed to the internet: it runs on a virtual machine in my homelab. If you want to see it working, I can give you a live demo.

Want to know more about KRHO?

Write to me and I will walk you through the details or show you how it works.

Write to me
Next caseProxmox homelab