TMAegisБета
Више правила за iis

Microsoft 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

Како се исправља

Метод исправке: Смерница или закрпа инфраструктуре

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