Why continuous software maintenance is essential to building secure and sustainable software.
The cost of neglecting software maintenance
As software engineers, we spend much of our time building new features, improving existing functionality and delivering value to our customers. However, something that is often overlooked is the maintenance of the software we have already built.
Many engineering teams rely on outdated programming languages, frameworks, third-party packages and operating systems, some of which are no longer officially supported.
There is often more incentive to deliver a new feature than to maintain something that appears to be working perfectly well.
However, software does not need to change to become vulnerable. An application considered secure today may become vulnerable tomorrow simply because a new security issue has been discovered in one of its dependencies.
When a technology reaches its end of life (EOL), we can no longer rely on regular security patches from its maintainers, increasing the risk of continuing to use it.
The longer we neglect software maintenance, the more expensive and complicated it becomes. What could have been a simple dependency update can eventually turn into a major engineering project involving breaking changes and extensive testing.
Throughout my career as a software engineer, I've experienced this first-hand. On several occasions, I've inherited software that was significantly outdated, whether it was the programming language, the framework or the dependencies it relied on.
Whilst bringing these systems up to date has not always been a straightforward task, it's a responsibility I've always gladly taken on. There is something particularly rewarding about taking an existing system, bringing it back to a supported and maintainable state, and leaving it in a better condition than when you inherited it.
These experiences have also reinforced my understanding of how much engineering effort could have been saved if maintenance had been prioritised consistently from the beginning.
This is where technical debt becomes security debt.
Software maintenance should be part of our everyday engineering practices, not something we only prioritise after a security incident.
Making software maintenance part of our daily routine
Software maintenance does not always need to be a dedicated engineering task or a separate project. In many cases, it can simply become part of our daily development routine.
Imagine if, every time an engineer started working on a new feature branch, they spent a few minutes reviewing the project's existing dependencies before writing any new code.
Regardless of the programming language or framework being used, the process could be relatively simple:
- Identify outdated dependencies.
- Review and apply appropriate minor and patch updates.
- Check dependencies for known security vulnerabilities.
- Run the automated test suite to identify potential regressions.
- Review and commit the dependency changes separately from the feature implementation, or raise a dedicated pull request where appropriate.
Most modern programming ecosystems already provide tools to help engineers with this process.
| Ecosystem | Identify outdated dependencies | Apply updates | Security Scanning |
|---|---|---|---|
| Python | pip list --outdated | pip install --upgrade <package> | pip-audit |
| JavaScript | npm outdated | npm update | npm audit |
| Rust | cargo outdated | cargo update | cargo audit |
| PHP | composer outdated | composer update | composer audit |
These are just examples, and the tools and update strategies will vary depending on the technology being used. Some commands require additional tooling, and updates should be applied within the intended version constraints.
Where dependencies follow Semantic Versioning (SemVer), minor and patch updates to stable releases are generally intended to maintain backwards compatibility, making regular maintenance more manageable. Updates should still be reviewed and tested for regressions and supply chain risks.
Whilst major version upgrades may require dedicated engineering time, keeping up with smaller updates can make those future upgrades considerably easier.
Imagine the cumulative benefit of an entire engineering team consistently applying small dependency updates throughout the year. This could reduce security risks, minimise technical debt, simplify future upgrades and reduce the need for emergency patches.
Tools such as Dependabot and Renovate can help automate this process, but automation should complement good engineering habits, not replace them.
The idea is simple: little and often. Spending a few minutes today could save us days or even weeks of engineering work in the future.
Software maintenance should be a habit, not an event.
Next: Security Doesn't Need to Be Expensive