TMAegis
ibmcloud 관련 규칙 더 보기

TMA-IBMCLOUD-ACCOUNT-MFA

Ensure multi-factor authentication is enabled for all users in the account

높음레벨 1자동ibmcloud

설명

Account-level MFA forces a second factor for every login. The account setting mfa must not be NONE / NONE_NO_ROPC (TOTP4ALL or a LEVEL setting covers federated users as well). Read-only ibmcloud CLI calls using the current CLI session and targeted region (ibmcloud login, or IBMCLOUD_API_KEY); JSON output is parsed with grep/sed/awk. A missing CLI, plugin or session fails the check.

점검 방법

감사 방식: 셸 명령

shell
out=$(ibmcloud iam account-settings --output json 2>/dev/null) || exit 1
v=$(printf '%s\n' "$out" | sed -n 's/.*"mfa"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -n 1)
case "$v" in
  ''|NONE|NONE_NO_ROPC) exit 1 ;;
  *) echo compliant ;;
esac
예상 출력
compliant

조치 방법

조치 방식: 가이드 또는 인프라 패치

ibmcloud iam account-settings-update --mfa TOTP4ALL (or LEVEL1-3 for IBMid/App ID users), or Manage > Access (IAM) > Settings > Authentication.

속성

운영 체제
모두
태그
ibmcloudiam
참고 자료
CIS IBM Cloud Foundations Benchmark v2.0.0 - Identity and Access Management - account-level MFA (verify section number for your release)

이 호스트 점검하기

감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.

shell
tmaegis scan --target ibmcloud