Automated code review is not a new topic, but AI models are giving it a new reach. A current real-world example: in the development process of FritzOS, AI is used to specifically search for vulnerabilities in its own code. Around 5000 findings have already accumulated in the process – however, by no means are all of them actual security vulnerabilities.

Taken together, these two pieces of information give a realistic picture of what AI-supported analysis achieves today: it significantly increases the coverage of the review, but shifts the effort towards assessment and prioritisation.

Why the number alone says little

A four-digit number of findings sounds alarming at first. In itself, however, it says nothing about the quality of the software reviewed or about the actual risk. What matters is how many of these hints prove to be relevant after review.

In static code analysis – that is, the review of source code without executing the program – a high proportion of so-called false positives is common. This refers to reports that formally match a pattern but do not represent an exploitable problem in the specific context, for example because an input is already validated elsewhere or the affected code path is not reachable at all.

AI models do not automatically shift this ratio for the better. They recognise patterns that rule-based tools overlook, but they also generate hints that can only be assessed in conjunction with the architecture, the threat model and the actual usage scenario.

The work begins after the scan

For development organisations, this means a change of perspective: finding is not the bottleneck, but classifying. Anyone who introduces an AI-supported analysis tool without simultaneously setting up an assessment process mainly produces a long list.

A multi-stage approach has proven effective:

  • Pre-sorting: findings are grouped by component, criticality and reachability before a human looks at them.
  • Technical assessment: developers with contextual knowledge decide whether a hint is at all exploitable in the specific system.
  • Documented decision: even a deliberately rejected finding is recorded so that the same hint is not discussed again in every run.
  • Feedback into the tooling: recurring false alarms are stored as a rule or exception so that the signal quality increases.

Without the last point, a typical pattern emerges: the list grows faster than it can be worked through, and the team gets used to ignoring warnings. That is the actual risk factor – not the individual false report.

What AI actually improves in review

The benefit lies primarily in the breadth. Manual code reviews are excellent in their depth, but limited in their coverage: as a rule, what has just been changed is reviewed. Large, historically grown codebases are only examined selectively.

Automated analysis can run continuously and across the entire codebase here. It finds things that have stood unchanged in the code for years and therefore have never been noticed again. The fact that a large number of hints arises in this way in an extensive operating system such as FritzOS is therefore to be expected – and speaks more for the thoroughness of the review than against the code.

There is also an effect that is difficult to quantify: anyone who regularly sees which patterns the tool flags writes different code over time. Automated review thus also acts as a learning loop within the team.

The limits remain

Three limitations should be kept in mind during planning.

First: AI analysis does not replace architecture assessment. Errors in the permission concept or in the business logic are not code patterns but design decisions. They are typically not recognised by tools based on pattern recognition.

Second: The responsibility remains with humans. A model provides a hint with an assessment, not certainty. Anyone who couples the approval of a release to an automated assessment shifts a decision to where it cannot be made.

Third: The capacity for follow-up work must be planned for. A scan is quick to start, but assessing findings ties up real development time. If this budget is not planned, the result remains a report without effect.

Transferable to mid-sized projects

The example comes from the development of a device operating system, but the mechanics can be transferred to web applications and custom software. There, too, there are grown codebases, dependencies on third-party libraries and areas that no one has read for years.

A pragmatic start makes sense: initially limit the analysis to particularly exposed areas – external interfaces, authentication, file uploads, form processing. There, the ratio of effort to insight is most favourable. Only once the assessment process is established does it pay off to extend it to the entire codebase.

An equally realistic expectation towards clients and management is just as important: a high number of findings is not a quality judgement. It is the result of a measurement whose significance only emerges through the subsequent assessment.

Classification for web and software projects

AI-assisted code analysis shifts the bottleneck in quality assurance: it is no longer the detection of potential vulnerabilities that is scarce, but the time and expertise to correctly assess findings. Anyone introducing such tools into projects should budget for the triage process from the outset and clearly define who decides on relevance and remediation. Then a long list of findings becomes a robust contribution to security – otherwise it remains a metric that helps no one.

Sources