TMAegis
Plus de règles pour iis

TMA-IIS-3.1

Ensure 'deployment method retail' is set

MoyenneNiveau 1Automatiséeiis

Description

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.

Méthode de vérification

Méthode d'audit: Commande shell

shell
Import-Module WebAdministration -ErrorAction Stop; $c = Get-WebConfiguration -Filter 'system.web/deployment' -PSPath 'MACHINE'; if ($c.retail -eq $true) { 'compliant' } else { 'noncompliant' }
Sortie attendue
compliant

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

In %windir%\Microsoft.NET\Framework64\<version>\Config\machine.config add <deployment retail="true" /> inside <system.web> (also in the 32-bit Framework copy).

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
iisaspnet
Référence
CIS Microsoft IIS 10 Benchmark v1.2.1 - 3.1 Ensure 'deployment method retail' is set

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target iis