TMAegis
iis のその他のルール

TMA-IIS-1.5

Ensure 'unique application pools' is set for sites

中レベル 1自動iis

説明

Application Pool Identities allows Application Pools to be run under unique accounts without the need to create and manage local or domain accounts. It is recommended that all Sites run under unique, dedicated Application Pools. Fails when two or more sites share the same application pool. PowerShell 5.1 with the WebAdministration module; run elevated.

チェック方法

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

shell
Import-Module WebAdministration -ErrorAction Stop; $bad = @(Get-Website | Group-Object applicationPool | Where-Object { $_.Count -gt 1 }); if ($bad.Count -eq 0) { 'compliant' } else { 'noncompliant' }
期待される出力
compliant

修正方法

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

Create a dedicated pool per site and assign it: Set-ItemProperty -Path 'IIS:\Sites\<site>' -Name applicationPool -Value <pool>.

プロパティ

オペレーティングシステム
すべて
タグ
iisisolation
参照
CIS Microsoft IIS 10 Benchmark v1.2.1 - 1.5 Ensure 'unique application pools' is set for sites

このホストをチェック

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

shell
tmaegis scan --target iis