TMAegisBêta
Plus de règles pour gitlab

GitLab

TMA-GITLAB-3.1.1

Ensure third-party artifacts and open-source libraries are verified

MoyenneNiveau 1Automatiséegitlab

Description

Ensure third-party artifacts and open-source libraries in use are trusted and verified. Verify third-party artifacts used in code are trusted and have not been infected by a malicious actor before use. This can be accomplished, for example, by comparing the checksum of the dependency to its checksum in a trusted source. If a difference arises, this may be a sign that someone interfered and added malicious code. If this dependency is used, it will infect the environment and could end in a massive breach, leaving the organization exposed to data leaks and more.

Méthode de vérification

Méthode d'audit: Commande shell

shell
command -v glab >/dev/null 2>&1 || exit 1
glab auth status >/dev/null 2>&1 || exit 1
proj=$(glab repo view -F json 2>/dev/null) || exit 1
printf "%s" "$proj" | grep -q '"id":' && echo compliant || echo non-compliant
Sortie attendue
compliant

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

Set third-party artifacts and open-source libraries to be verified.

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
devsecopsgitlab
Référence
CIS GitLab Benchmark v1.0.1 - 3.1.1 Ensure third-party artifacts and open-source libraries are verified

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target gitlab