TMAegisBeta
Thêm quy tắc cho m365

Microsoft 365

TMA-M365-APP-REGISTRATION

Ensure third-party integrated applications cannot be registered by users

Trung bìnhCấp 1Tự độngm365

Mô tả

Allowing every user to register applications enables persistence and phishing through attacker-controlled app registrations. 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.

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

shell
$ErrorActionPreference = 'Stop'; if (-not (Get-Command Get-MgContext -ErrorAction SilentlyContinue) -or -not (Get-MgContext)) { throw 'Not connected: run Connect-MgGraph first' }; $p = Get-MgPolicyAuthorizationPolicy -ErrorAction Stop; if ($p.DefaultUserRolePermissions.AllowedToCreateApps -eq $false) { 'compliant' } else { 'noncompliant' }
Đầu ra mong đợi
compliant

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

Entra admin center > Identity > Users > User settings > Users can register applications = No (or Update-MgPolicyAuthorizationPolicy with DefaultUserRolePermissions.AllowedToCreateApps = $false).

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
m365identity
Tham chiếu
CIS Microsoft 365 Foundations Benchmark v7.0.0 - Microsoft Entra ID / Users can register applications (verify section number for your release)

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target m365