TMAegis
More rules for gitlab

TMA-GITLAB-2.2.4

Ensure build workers have minimal network connectivity

MediumLevel 1Manual reviewgitlab

Description

Ensure that build workers have minimal network connectivity. Restricting the network connectivity of build workers decreases the possibility that an attacker would be capable of entering the organization from the outside. If the build workers are connected to the public internet without any restriction, it is far simpler for attackers to compromise them. Limiting network connectivity between build workers also protects the organization in case an attacker was successful and subsequently attempts to spread the attack to other components of the environment.

How it is checked

Audit method: Manual review

This recommendation cannot be checked automatically. A scan lists it with these instructions when you pass --include-manual.

Verify that build workers, environment, and any other components have only the required minimum of network connectivity. Review these configuration measures for your self-managed runners: - 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

How it is fixed

Fix method: Guidance or infrastructure patch

Limit the network connectivity of build workers, environment, and any other components to the necessary minimum. Ensure these configuration measures are in place for your self-managed runners: - 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

Properties

Operating systems
Any
Tags
devsecopsgitlabnetwork
Reference
CIS GitLab Benchmark v1.0.1 - 2.2.4 Ensure build workers have minimal network connectivity