Microsoft 365
TMA-M365-DKIM-ENABLED
Ensure DKIM signing is enabled for all Exchange Online domains
说明
DKIM signatures let receivers verify mail really came from your domains and are a prerequisite for an enforcing DMARC policy. Prints the number of domains whose DKIM signing configuration is not enabled (expected 0). Requires an already-connected Exchange Online session: Install-Module ExchangeOnlineManagement; Connect-ExchangeOnline (View-Only Organization Management is sufficient). The audit throws if no session exists.
检查方式
审计方法: Shell 命令
$ErrorActionPreference = 'Stop'; if (-not (Get-Command Get-ConnectionInformation -ErrorAction SilentlyContinue) -or -not (Get-ConnectionInformation)) { throw 'Not connected: run Connect-ExchangeOnline first' }; $bad = @(Get-DkimSigningConfig -ErrorAction Stop | Where-Object { $_.Enabled -ne $true }); $bad.Count- 预期输出
0
修复方式
修复方法: 操作指南或基础设施补丁
Publish the selector1/selector2 CNAME records shown by Get-DkimSigningConfig -Identity <domain> | Format-List Selector*CNAME, then New-DkimSigningConfig -DomainName <domain> -Enabled $true or Set-DkimSigningConfig -Identity <domain> -Enabled $true.
属性
- 操作系统
- 任意
- 标签
- m365mail-auth
- 参考
- CIS Microsoft 365 Foundations Benchmark v7.0.0 - Exchange Online / DKIM (verify section number for your release)
检查本机
请在您有权审计的机器上运行此命令。扫描为只读操作。
tmaegis scan --target m365