TMAegis
Другие правила для gitlab

TMA-GITLAB-1.3.4

Ensure Multi-Factor Authentication (MFA) is required for contributors of new code

ВысокийУровень 2Автоматическаяgitlab

Описание

Require collaborators from outside the organization to use Multi-Factor Authentication (MFA) in addition to a standard user name and password when authenticating to the source code management platform. By default every user authenticates within the system by password only. If the password of a user is compromised, however, the user account and every repository to which they have access are in danger of data loss, malicious code commits, and data theft. It is therefore recommended that each user has Multi-Factor Authentication enabled. This adds an additional layer of protection to ensure the account remains secure even if the user's password is compromised.

Как проверяется

Метод проверки: Команда оболочки

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
Ожидаемый вывод
compliant

Как исправляется

Метод исправления: Рекомендация или патч инфраструктуры

For your top-level group, enforce that Multi-Factor Authentication is enforced for contributors and is the only way to authenticate, by doing the following: - On the left sidebar, at the bottom, select Admin Area. - Select Settings > General. - Expand Sign-in restrictions: - Select Enforce two-factor authentication to enable this feature.

Свойства

Операционные системы
Любая
Теги
authdevsecopsgitlabmfa
Источник
CIS GitLab Benchmark v1.0.1 - 1.3.4 Ensure Multi-Factor Authentication (MFA) is required for contributors of new code

Проверить этот хост

Выполните команду на компьютере, аудит которого вам разрешён. Сканирование работает только на чтение.

shell
tmaegis scan --target gitlab --level 2