Microsoft 365
TMA-M365-GLOBAL-ADMIN-COUNT
Ensure between two and four Global Administrators are designated
높음레벨 1자동m365
설명
At least two Global Administrators avoid lock-out; more than four widens the attack surface. Counts active members of the Global Administrator role. Requires an already-connected Microsoft Graph session: Install-Module Microsoft.Graph; Connect-MgGraph -Scopes Policy.Read.All,Directory.Read.All,RoleManagement.Read.Directory (read-only scopes). The audit throws if no session exists.
점검 방법
감사 방식: 셸 명령
shell
$ErrorActionPreference = 'Stop'; if (-not (Get-Command Get-MgContext -ErrorAction SilentlyContinue) -or -not (Get-MgContext)) { throw 'Not connected: run Connect-MgGraph first' }; $r = Get-MgDirectoryRole -Filter "roleTemplateId eq '62e90394-69f5-4237-9190-012177145e10'" -ErrorAction Stop; if (-not $r) { throw 'Global Administrator role not found' }; $n = @(Get-MgDirectoryRoleMember -DirectoryRoleId $r.Id -All -ErrorAction Stop).Count; if ($n -ge 2 -and $n -le 4) { 'compliant' } else { 'noncompliant' }- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
Microsoft 365 admin center > Roles > Global Administrator: keep 2-4 dedicated cloud-only admin accounts (including break-glass accounts); assign least-privileged roles to everyone else, preferably via PIM.
속성
- 운영 체제
- 모두
- 태그
- m365identity
- 참고 자료
- CIS Microsoft 365 Foundations Benchmark v7.0.0 - Microsoft 365 admin center / Global administrators count (verify section number for your release)
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
shell
tmaegis scan --target m365