TMA-IIS-3.1
Ensure 'deployment method retail' is set
설명
The <deployment retail> switch is intended for use by production IIS servers. This switch is used to help applications run with the best possible performance and least possible security information leakages by disabling the application's ability to generate trace output on a page, disabling the ability to display detailed error messages to end users, and disabling the debug switch. machine.config must contain <deployment retail="true" />. PowerShell 5.1 with the WebAdministration module; run elevated. CIS marks this recommendation Manual; the automated check implements its audit procedure.
점검 방법
감사 방식: 셸 명령
Import-Module WebAdministration -ErrorAction Stop; $c = Get-WebConfiguration -Filter 'system.web/deployment' -PSPath 'MACHINE'; if ($c.retail -eq $true) { 'compliant' } else { 'noncompliant' }- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
In %windir%\Microsoft.NET\Framework64\<version>\Config\machine.config add <deployment retail="true" /> inside <system.web> (also in the 32-bit Framework copy).
속성
- 운영 체제
- 모두
- 태그
- iisaspnet
- 참고 자료
- CIS Microsoft IIS 10 Benchmark v1.2.1 - 3.1 Ensure 'deployment method retail' is set
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
tmaegis scan --target iis