TMA-IIS-1.5
Ensure 'unique application pools' is set for sites
Trung bìnhCấp 1Tự độngiis
Mô tả
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.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
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' }- Đầu ra mong đợi
compliant
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
Create a dedicated pool per site and assign it: Set-ItemProperty -Path 'IIS:\Sites\<site>' -Name applicationPool -Value <pool>.
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- iisisolation
- Tham chiếu
- CIS Microsoft IIS 10 Benchmark v1.2.1 - 1.5 Ensure 'unique application pools' is set for sites
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 iis