Secure architecture limits what an attacker can reach, what they can do and how far a compromise can spread.
What you will learn
- Allocate security controls across components and interfaces.
- Design secure defaults and useful containment boundaries.
- Evaluate recovery and administrative paths as part of the architecture.
The key ideas in brief
- Apply separation and least privilege to system components.
- Identify common dependencies between protective controls.
The key ideas
- Minimise attack surface: remove unnecessary services, interfaces and privileges.
- Separate trust: isolate components with different roles and access needs.
- Use secure defaults: the initial configuration should provide appropriate protection.
- Apply defence in depth: use complementary controls without assuming each is independent.
- Define failure behaviour: handle loss of identity, connectivity or validation in a way appropriate to the system’s use.
Review both normal operation and maintenance paths. A protected user interface is of limited value if a diagnostic interface bypasses the same controls.
A practical example
A gateway sends measurements to the cloud using a credential limited to uploads for that device. It cannot administer other devices or read every customer’s data. A compromise therefore has a more limited reach.
Architecture determines the damage a compromise can cause
A product’s architecture controls which identities and components can affect which resources. Separate normal measurement reporting from administration and update-signing authority. A compromised gateway should not automatically grant control of every customer or allow firmware signing for the whole fleet.
Use defence in depth to address credible failure paths. An account permission, customer-isolation check and constrained device identity can provide different protections, but three controls that all depend on the same unrestricted credential may share one failure. Explain what each layer accomplishes and which assumptions remain common.
Make secure operation the normal starting point
Default installation should expose only the services needed for the intended task and grant only required authority. Avoid shared administrative passwords and unused remote interfaces. Provision identity and configuration through a controlled process, and make the supported setup practical enough that users do not immediately bypass it.
Defaults are only the beginning. Define who may change them, what permissions and records apply and how configuration drift is detected. Document operational exceptions with owners and review conditions. A secure initial gateway can become exposed after a support engineer leaves a diagnostic service enabled, so service and maintenance workflows belong in the architectural review.
Specify failure, isolation and recovery
Define what happens when a dependency is unavailable or suspected compromised. A sensor may continue local measurement while the dashboard labels data stale; a revoked account may lose administrative authority while required reading access is maintained through another approved role. Select responses using the intended operation and risk assessment.
Recovery should restore a verified state without bypassing the controls that matter. Protect update trust anchors, restrict recovery authority and consider secrets restored from backups. Test the architecture with misuse cases: a malicious gateway, a stolen session, an altered update and an offline identity service. Record where containment succeeds and where additional measures are required.
Apply the ideas
A gateway credential can upload readings, create users and change destinations for every customer. Redesign the authority boundaries and describe two tests demonstrating that one compromised gateway has limited reach.
Compare your approach
Give the gateway a controlled identity restricted to its assigned device and customer reporting functions. Keep user administration and destination policy under separate authorised roles. Test attempts to create users and submit another customer’s readings with the gateway credential; verify rejection and unchanged state. Also test legitimate reporting so the restriction remains usable. Review credential provisioning and revocation, since an architecture that depends on correct scoping must preserve that scope during replacement and recovery.
Review your work
- Are high-authority operations separated from normal traffic?
- Do default and maintenance configurations support the same protection?
- Can recovery occur without bypassing authenticity or permissions?
Keep this output: An architecture decision record with authority boundaries and verification cases.
