concept vulnerability in category microservice

appears as: vulnerabilities, vulnerability, vulnerabilities
Microservices Security in Action

This is an excerpt from Manning's book Microservices Security in Action.

Whenever a Docker image gets updated at the client side, DCT will download the latest timestamp.json file from the corresponding repository. Then it will validate the signature of the downloaded file (which was replayed by the attacker in this case) and will check whether the version in the downloaded timestamp file is greater than the one in the current timestamp file. If the downloaded file, which is replayed by the attacker, has an older version, DCT will abort the update operation, and will protect the system from the replay attack, which tries to downgrade your Docker image to an older version with vulnerabilities.

Software systems or websites shouldn’t expose the technology or versions of the technologies they run on. It’s quite common to find technologies used in websites by viewing the HTML page source. If the website runs on a particular platform, often the JavaScript libraries or CSS that appear in the HTML source contain the names and versions of the technology platform. This isn’t a good practice because it allows attackers to mine for vulnerabilities of the mentioned technologies and attack the system by using that information.

Jenkins is an open source automation server. It provides plugins to support many build, deployment, and automation processes. At this point, we need to integrate security testing of our code with our build pipelines. A build pipeline is a sequence of steps that happens in your build process (figure 13.3). The primary idea here is that we scan our code for vulnerabilities before the actual build happens.

Figure 13.3 In this Jenkins build pipeline, the first step is to perform a code scan by using SonarQube and then to start the build process.

You learned how to scan your code for vulnerabilities by using SonarQube, and now you’ll learn how to automate this process by using Jenkins and why it’s important to do so. This is part of CI/CD: we scan our code before each build step to ensure that our code is free from vulnerabilities.

In most situations, we work as teams and collaboratively work on projects in which several people contribute code to a shared repository. In such situations, it’s not practical for us to depend on each individual to contribute bug- and vulnerability-free code. We need mechanisms to verify the code being contributed and to alert us when someone checks in code with vulnerabilities. Identifying and preventing vulnerabilities as early as possible in our development life cycle helps us more easily fix them.