There is a pattern in incident write-ups that becomes hard to unsee once you notice it. The proximate cause is usually a vulnerability — an exposed endpoint, a credential in the wrong place, a permission that was broader than anyone intended. But the reason the vulnerability mattered is almost always architectural. Something that should have been two systems was one. A boundary that should have existed was never drawn.
That distinction matters commercially, because the two problems have very different costs. Patching a vulnerability is a day of work. Changing a trust boundary in a system that is already in production is a quarter.
Where the decisions actually get made
By the time a security review happens, most of the consequential choices have already been made — often months earlier, in conversations that were not framed as security conversations at all.
- Service boundaries. Whether two capabilities share a process, a database or a credential determines what an attacker reaches after the first foothold.
- The data model. Whether tenant identity is a column or a schema determines whether a missing
WHEREclause is a bug or a breach. - The access model. Whether permissions are checked at the edge or at the resource determines whether a new endpoint inherits security or has to be given it.
- Secrets handling. Whether credentials are injected at runtime or baked into an image determines how far a leaked artefact travels.
None of these appear as findings on a penetration test report. All of them determine what that report will eventually say.
What applying security early actually looks like
It is less dramatic than it sounds. In practice it means three things happen during architecture rather than after it.
Threat modelling is part of the design session. Not a separate workshop with a different team. The same conversation that establishes what the system does also establishes who would want to attack it and what they would reach if they succeeded.
Trust boundaries are drawn on the architecture diagram. Explicitly, with the authentication and authorisation at each crossing named. A boundary that is not on the diagram does not exist in the implementation either.
Controls become pipeline checks. The output of a threat model should mostly be automation: dependency scanning, infrastructure policy, secret detection, authorisation tests. A control that depends on someone remembering is a control that degrades.
A security control that runs on every change outperforms a security review that runs every year, even when the review is better.
The blast radius question
If there is one question worth asking repeatedly during design, it is this: when this component is compromised, what else does the attacker get?
Note the when. Assuming eventual compromise of any individual component is not pessimism, it is the only assumption that produces a resilient design. Systems built on the assumption that each part will hold tend to fail completely when one does not.
The practical consequence is usually segmentation, scoped credentials and short-lived access — unglamorous work, decided in an afternoon during design, effectively impossible to retrofit cheaply.
Where reviews still belong
None of this makes security review redundant. Independent assessment finds implementation errors that the people who wrote the code cannot see, and it should happen.
The argument is narrower than that: a review is a verification mechanism, not a design mechanism. If the first substantive security conversation on a project happens at review stage, the review will find real problems and the answer to most of them will be "we would have to rebuild that".
The point of applying security thinking during architecture is to make the review boring. That is the goal — not a clean report, but a report where the findings are things that can actually be fixed in a sprint.