A guide to turning CRA obligations into actionable practices
In the previous article in this series, we explained how the Cyber Resilience Act (CRA) shifts cybersecurity from a best practice to a legal obligation. In this blog, we will discuss in more detail how to start doing measurements for CRA compliance.
One of the things the Cyber Resilience Act enforces is the fact that vulnerabilities in your software must be actively managed and remediated. What exactly is being asked of software development teams in this regard? The CRA expects teams to:
The first step is to identify vulnerabilities, and for this, we can make the distinction between two types of vulnerabilities:
These two types of vulnerabilities each require a different approach to be found, so let’s discuss these two types of CRA compliance tools in detail.
The method to find vulnerabilities in your own code is by using Static Application Security Testing (SAST). SAST makes use of static analysis, which means that your application does not have to be executed or run to identify vulnerabilities. The vulnerabilities are derived from simply looking at the source. Using so-called “deep flow” techniques, these tools will construct a model of your application that contains all possible paths and values. Based on that model, it can tell whether certain routes through the programme can lead to security issues. For example, it can see that input is not sanitized in one place, and then passed as input to an important function. But also simpler things, like hardcoded passwords and sensitive data being exposed in logging, can be found. It is best to run these kinds of tools early and often during development, as this will drastically decrease your remediation costs.
One might argue, why not simply use the method above on all the external software you are using as well? There are multiple reasons why that is difficult, but the main reason is it is simply not feasible due to the sheer amount of dependencies. The average commercial software project has more than 1,068 of them. Imagine having to scan each one of those dependencies separately, with all the setup time it usually takes to set up a proper SAST tool. Luckily, there’s tools that can do the heavy lifting for us.
Software Composition Analysis (SCA) tools scan your code for all the dependencies that are present. This could be in the form of formal includes, but also parts of code copied from open source repositories. When this list of dependencies is created, it will then check the dependencies against a vulnerability database hosted by the SCA tool vendor. The idea is that the finding of vulnerabilities is outsourced to the tool vendor, so you only have to collect a list of dependencies and compare that to their findings.
The CRA is not just about finding security vulnerabilities. You will probably find thousands of vulnerabilities after your first scan with a SCA or SAST tool. The CRA forces you to think about how you are going to handle all these findings, but also how to categorize, prioritize and track them over time. Performing the scans is just the start, the real challenge comes with implementing them in such a way that the tools actually help you towards CRA compliance. Not just thousands of vulnerabilities, but prioritized, actionable insights that can be handed over to an auditor should the need arise. We will explore how to reach that state in our next blog.