TMAegis
Mais regras para gitlab

TMA-GITLAB-2.1.8

Ensure the build infrastructure is automatically scanned for vulnerabilities

MédiaNível 1Revisão manualgitlab

Descrição

Scan the build infrastructure and its dependencies for vulnerabilities. It is recommended that this be done automatically. Automatic scanning for vulnerabilities detects known vulnerabilities in the tooling used by the build infrastructure and its dependencies. These vulnerabilities can lead to a potentially massive breach if not handled as fast as possible, as attackers might also be aware of such vulnerabilities.

Como é verificado

Método de auditoria: Revisão manual

Esta recomendação não pode ser verificada automaticamente. Uma varredura a lista com estas instruções quando você passa --include-manual.

Verify that your build infrastructure is reviewed for vulnerabilities. GitLab Runner is designed to run user-controlled scripts. To reduce the attack surface if a job is malicious, you can consider running them in their own network segment. This would provide network separation from other infrastructure and services.

Como é corrigido

Método de correção: Orientação ou patch de infraestrutura

Ensure security hardening for your build infrastructure. For a cloud environment, this could include: - Configuring runner virtual machines in their own network segment - Blocking SSH access from the Internet to runner virtual machines - Restricting traffic between runner virtual machines - Filtering access to cloud provider metadata endpoints For static host runner, whether bare-metal or virtual machine, you should implement security best practices for the host operating system: Malicious code executed in the context of a CI job could compromise the host, so security protocols can help mitigate the impact. Other points to keep in mind include securing or removing files such as SSH keys from the host system that may enable an attacker to access other endpoints in the environment.

Propriedades

Sistemas operacionais
Qualquer
Tags
devsecopsgitlab
Referência
CIS GitLab Benchmark v1.0.1 - 2.1.8 Ensure the build infrastructure is automatically scanned for vulnerabilities