Skip to content
INFRAGIG

// Engineering

Seven practices that make custom software safer to run

Security is built through ordinary engineering decisions repeated consistently. These seven practices have outsized impact.

Security is built through ordinary engineering decisions repeated consistently. These seven practices have outsized impact.

1. Threat model the design, not only the code

Before implementation, ask where valuable data lives, who can reach it and what happens if a component is compromised. A short, recorded threat model makes later design choices much easier to defend.

2. Treat secrets as a first-class problem

Keep credentials out of source code, provide rotation procedures and use a managed secret store. Build a habit of checking repositories and logs for accidental exposure during code review.

For teams running multiple environments, separate credentials by environment and enforce least privilege by default.

3. Centralise authorisation decisions

When every endpoint implements its own access rules, gaps are almost inevitable. Use a consistent authorisation layer, deny by default and add tests that verify access boundaries for each role.

4. Review the dependency chain

Modern applications rely heavily on third-party packages. Track what you use, remove unused dependencies and automate advisory checks in continuous integration so known vulnerabilities surface before release.

5. Log events that answer questions

Authentication failures, permission changes, exports and administrative actions should be recorded with enough context to reconstruct events. Protect logs from tampering and decide retention based on your actual investigative needs.

6. Test failure and recovery paths

Automated tests should cover unauthorised access, malformed input and service failures as well as normal behaviour. Periodically restore from backup to verify that the recovery plan works in practice.

7. Make security review routine

A short security checklist in pull requests is more effective than an annual audit alone. Combine it with periodic independent testing to catch assumptions that internal teams may miss.

Need help applying this?

Our team can review your specific situation and suggest a proportionate next step.

Talk to a specialist

// Let's work together

Turn reading into a working plan

We can help assess where you are today, prioritise the gaps and implement what matters most.