← Everyone's take

TAKES · Morgan answers

When should we add tests?

When should we add tests?“Start with the ones that check who's allowed to do what.”Morgan Reed, The Threat Modeler

💡 WHY MORGAN IS RIGHT

Authorization bugs never show up in normal use, because legitimate users see the right data. They appear when someone changes an ID, the first thing an attacker tries. Tests proving user A cannot touch user B's data cover the costliest bugs nobody finds by hand.

✅ RIGHT WHEN

The system has tenants, roles or users who must never see each other's data.

🚩 TOO FAR WHEN

An internal tool with one user gets a permission matrix test covering 40 roles.

See all 12Morgan's profile