TMAegis
iis のその他のルール

TMA-IIS-3.12

Ensure Server Header is removed

低レベル 2自動iis

説明

The server header headers specify the underlying technology used by the application. requestFiltering removeServerHeader must be true at server level (IIS 10 1709 or later). PowerShell 5.1 with the WebAdministration module; run elevated. CIS marks this recommendation Manual; the automated check implements its audit procedure.

チェック方法

監査方法: シェルコマンド

shell
Import-Module WebAdministration -ErrorAction Stop; $c = Get-WebConfiguration -Filter 'system.webServer/security/requestFiltering' -PSPath 'MACHINE/WEBROOT/APPHOST'; if ($c.removeServerHeader -eq $true) { 'compliant' } else { 'noncompliant' }
期待される出力
compliant

修正方法

修正方法: ガイダンスまたは IaC パッチ

Set-WebConfigurationProperty -PSPath 'MACHINE/WEBROOT/APPHOST' -Filter system.webServer/security/requestFiltering -Name removeServerHeader -Value True

プロパティ

オペレーティングシステム
すべて
タグ
iisinformation-disclosure
参照
CIS Microsoft IIS 10 Benchmark v1.2.1 - 3.12 Ensure Server Header is removed

このホストをチェック

監査が許可されているマシンで実行してください。スキャンは読み取り専用です。

shell
tmaegis scan --target iis --level 2