Why AI makes software modernisation more important
In this context, a prediction by Scott Guthrie, who heads Microsoft’s cloud and AI business, is particularly interesting. In an interview with the Handelsblatt, he anticipates many more IT outages in the coming months. [1] One of the reasons for this is, of all things, a development that is actually intended to make software more secure: with the help of artificial intelligence, more and more errors and security vulnerabilities are being detected in programme code. Consequently, pressure is mounting on companies to release or install updates more quickly.
AI is therefore not only changing the possibilities in programming, but also the requirements for maintaining existing software. And this also affects companies that have no intention of integrating AI functions into their own software products.
AI is transforming software maintenance
Do you remember the report from 17 November that parts of the US National Security Agency’s (NSA) internal communications network had gone down? [2] Security researchers had managed, with the help of AI, to exploit vulnerabilities in the PHP programming language that had been known for years but were previously considered difficult to exploit. And then something happened that really shouldn’t have happened, but which isn’t entirely unlikely either: of all organisations, the NSA encountered problems whilst installing a security update.
It seems that a discovered vulnerability is not necessarily a fixed one. The first step is to clarify whether, and to what extent, one’s own software is affected. In theory, this often sounds easier than it actually is in practice. Next, a snippet of code (or two) must be amended, or an updated software component integrated. The changes must, of course, be tested, approved and rolled out – and as quickly as possible.
Figure: Software maintenance is coming under pressure
AI can now be of great help with some of these steps. It can analyse code, suggest corrections and write tests. However, not everything that happens between the discovery and the rectification of a vulnerability can be accelerated to the same extent. For example, anyone developing software for medical devices must take regulatory requirements into account. And anyone supplying machines with embedded software cannot simply expect their customers to install an update in the middle of production.
So, if we are discovering more and more vulnerabilities in ever shorter periods of time, we also have to assess and, where necessary, fix more and more vulnerabilities. How well we manage this depends, amongst other things, on how well we know our own software and how easily it can be modified.
How well do companies know their own software?
In his interview, Scott Guthrie highlights an aspect that many companies are probably completely unaware of: the number of software libraries that their applications use indirectly.
When developing software, we draw on numerous existing building blocks, for example for database access, encryption or the processing of file formats. Why should we develop functions ourselves when there are already tried-and-tested solutions available? However, many of these building blocks, in turn, use further libraries. In software development, we refer to these as transitive dependencies. Thus, an application into which we have deliberately integrated twenty libraries may indirectly utilise several hundred components.
How, then, do we know whether any of these components are included in our software, and if so, which version? This is where a Software Bill of Materials (SBOM) comes in – essentially a digital bill of materials for software. [3] In many projects, it can be generated automatically when a software version is created and cross-referenced against databases of known vulnerabilities.
However useful such a bill of materials may be, it does not answer two questions that are essential to us:
- Is the vulnerability even exploitable in the context of our application?
- And how much effort does updating the affected component entail?
The second question, in particular, can be quite a challenge. If we have not updated a library for years, we may have to deal with several version jumps and the corresponding changes to the interfaces. Perhaps the library is no longer being developed at all and we’ll have to look for an alternative. Or the person who had good reasons for using a particular version back then may have long since left the company.
What starts out as a seemingly minor security update can very quickly turn into a highly extensive development project.
How quickly can software be modified safely?
Software can run reliably for years and still be difficult to modify. Functionality and maintainability are two different characteristics. As long as few changes are made, the difference is hardly noticeable. However, as the number of necessary changes increases, it becomes crucial.
For example, how much effort is required to determine, after updating a library, whether the software still functions as intended? Are there automated tests that can handle some of this work, or does someone have to work through the application manually? Can a new version of the software be created at any time, or does this require a specific computer and someone who knows what to look out for? And how much effort does it take to put the new version into operation and, if problems arise, revert to the previous version if necessary?
The architecture of a software system also has a significant influence on how labour-intensive changes are. The more clearly the individual parts of a software system are separated from one another, the easier it is to estimate what impact a change might have. Provided, of course, that there are people within the company who understand the architecture and know why certain technical decisions were made at the time.
With software that has evolved over many years, new features often take precedence over maintaining what already works. This is entirely understandable from an economic perspective. An additional feature might help attract a new customer. Updating a library or improving test coverage is far more difficult. At some point, however, a stage may be reached where neglected maintenance makes the development of new features more difficult and even minor corrections require a disproportionate amount of effort.
Targeted software modernisation can reduce the effort required for the future maintenance and further development of an application. [4] It may initially be sufficient to safeguard particularly critical functions through automated testing. For another application, it makes more sense to replace outdated components step by step or to automate the creation and deployment of new software versions. Where modernisation should begin depends largely on what is currently making the further development of the software so labour-intensive.
Sometimes it also makes sense to redevelop an application from scratch. This by no means implies that everything created over the past few years must be discarded. Particularly in the case of long-lasting software products, such as those in medical technology or mechanical engineering, existing applications often contain a wealth of specialist knowledge. Harnessing this knowledge and transferring proven business logic into new, more maintainable software is an essential part of modernisation.
Software modernisation is gaining in importance
It is often only when changes become necessary that it becomes clear how easily a piece of software can be maintained. As long as an application functions reliably and fulfils its purpose, many companies see little reason to invest in its maintainability. And that can work well for many years.
However, with the use of AI in the search for vulnerabilities, the frequency with which companies have to respond to new findings is likely to change. In future, it may even be necessary to adapt software where, for years, nobody has seen any reason to touch the programme code.
Companies have little influence over how quickly software vulnerabilities can be detected in future. However, they do have control over how quickly and securely they can modify their own software.
Notes:
Would you like to improve the maintainability of existing software? Would you like to improve the maintainability of your existing software? Until 18 December, we are offering you an introduction to software modernisation on special terms.
[1] Interview with Scott Guthrie in the Handelsblatt: Microsoft’s cloud chief expects more IT outages
[2] CBS News: National Security Agency network outage linked to software vulnerability
[3] How is an SBOM created and what should be included in the software bill of materials?
[4] What types of software modernisation are there?
Would you like to support Michael Schenkel and discuss the challenges of software modernisation? Then share this post on social media or within your organisation.
Michael Schenkel has published more posts on the t2informatik Blog, including:

Michael Schenkel
Head of Marketing, t2informatik GmbH
On the t2informatik Blog, we share knowledge and experience with people in organisations. We have been developing and modernising software for them since 2012. Pragmatically. ✔️ Personal. ✔️ Professional. ✔️ Get to know t2informatik as your development partner.



