TMAegis
Thêm quy tắc cho exchange

Microsoft Exchange Server

TMA-EXCHANGE-2.3.4

Ensure 'Enable automatic forwards to remote domains' is set to 'False'

CaoCấp 1Tự độngexchange

Mô tả

This policy setting is used to determine if the server can send automatic forwards to remote domains. Prints the number of remote domains where AutoForwardEnabled is not False (expected 0). Automatic forwarding to external domains is a common exfiltration path. Every remote domain (including Default) is checked. Run on a Mailbox server (organization-wide objects are read from AD). Run from an Exchange Management Shell or after `Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn`; the audit loads the snap-in itself when Get-ExchangeServer is missing and fails if it cannot.

Cách kiểm tra

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

shell
$ErrorActionPreference = 'Stop'; if (-not (Get-Command Get-ExchangeServer -ErrorAction SilentlyContinue)) { Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn -ErrorAction Stop }; if (-not (Get-Command Get-ExchangeServer -ErrorAction SilentlyContinue)) { throw 'Exchange Management Shell cmdlets are not available' }; $bad = @(Get-RemoteDomain -ErrorAction Stop | Where-Object { $_.AutoForwardEnabled -ne $false }); $bad.Count
Đầu ra mong đợi
0

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

Set-RemoteDomain '<RemoteDomain>' -AutoForwardEnabled $false

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
exchangeremote-domains
Tham chiếu
CIS Microsoft Exchange Server 2019 Benchmark v1.0.1 - 2.3.4 Ensure 'Enable automatic forwards to remote domains' is set to 'False'

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 exchange