Home
%3CLINGO-SUB%20id%3D%22lingo-sub-329979%22%20slang%3D%22en-US%22%3EWindows%20Server%20101%3A%20Hardening%20IIS%20via%20Security%20Control%20Configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-329979%22%20slang%3D%22en-US%22%3E%3CP%3EIIS%2C%20the%20web%20server%20that%E2%80%99s%20available%20as%20a%20role%20in%20Windows%20Server%2C%20is%20also%20one%20of%20the%20most%20used%20web%20server%20platforms%20on%20the%20internet.%20Hardening%20IIS%20involves%20applying%20a%20certain%20configuration%20steps%20above%20and%20beyond%20the%20default%20settings.%20The%20default%20settings%20on%20IIS%20provide%20a%20mix%20of%20functionality%20and%20security.%20As%20with%20any%20hardening%20operation%2C%20the%20harder%20you%20make%20a%20configuration%2C%20the%20more%20you%20reduce%20functionality%20and%20compatibility.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20two%20important%20third%20party%20guides%20for%20hardening%20IIS%20are%20the%20OWASP%20guide%20and%20the%20Center%20for%20Internet%20Security%20guide.%20You%20can%20access%20these%20guides%20here%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EOWASP%20guide%20to%20hardening%20IIS.%20%3CA%20href%3D%22https%3A%2F%2Fwww.owasp.org%2Findex.php%2FHardening_IIS%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttps%3A%2F%2Fwww.owasp.org%2Findex.php%2FHardening_IIS%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3ECenter%20for%20Internet%20Security%20IIS%2010%20Benchmark.%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.cisecurity.org%2Fcis-benchmarks%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.cisecurity.org%2Fcis-benchmarks%2F%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThe%20CIS%20IIS%2010%20benchmark%20is%20more%20fleshed%20out%20at%20the%20time%20of%20writing%20and%20is%20an%20approximately%20140%20page%20PDF%20with%2055%20separate%20security%20recommendations.%20The%20OWASP%20guide%20is%20shorter%20and%20provides%20approximately%2023%20separate%20security%20recommendations.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETable%201.1%20provides%20a%20high%20level%20list%20of%20the%20CIS%20IIS%2010%20benchmarks.%20For%20more%20detail%20on%20how%20to%20implement%20and%20check%20each%20security%20control%2C%20download%20the%20CIS%20IIS%2010%20benchmark%20file%20from%20the%20above%20website.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ETable%201.1%3A%20High%20Level%20Center%20for%20Internet%20Security%20IIS%2010%20Security%20Controls%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CTABLE%20style%3D%22height%3A%201746px%3B%22%3E%0A%3CTBODY%3E%0A%3CTR%20style%3D%22height%3A%20222px%3B%22%3E%0A%3CTD%20style%3D%22height%3A%20222px%3B%20width%3A%20801px%3B%22%3E%3CP%3E1.%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Basic%20Configurations%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.1.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20web%20content%20is%20on%20non-system%20partition%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.2.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'host%20headers'%20are%20on%20all%20sites%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.3.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'directory%20browsing'%20is%20set%20to%20disabled%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.4.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'Application%20pool%20identity'%20is%20configured%20for%20all%20application%20pools%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.5.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'unique%20application%20pools'%20is%20set%20for%20sites%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.6.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'application%20pool%20identity'%20is%20configured%20for%20anonymous%20user%26nbsp%3B%20identity%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.7.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20WebDav%20feature%20is%20disabled%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%20277px%3B%22%3E%0A%3CTD%20style%3D%22height%3A%20277px%3B%20width%3A%20801px%3B%22%3E%3CP%3E2.%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Configure%20Authentication%20and%20Authorization%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%202.1.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'global%20authorization%20rule'%20is%20set%20to%20restrict%20access%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%202.2.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20access%20to%20sensitive%20site%20features%20is%20restricted%20to%20authenticated%20principals%20only%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%202.3.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'forms%20authentication'%20requires%20SSL%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%202.4.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'forms%20authentication'%20is%20set%20to%20use%20cookies%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%202.5.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'cookie%20protection%20mode'%20is%20configured%20for%20forms%20authentication%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%202.6.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20transport%20layer%20security%20for%20'basic%20authentication'%20is%20configured%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%202.7.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'passwordFormat'%20is%20not%20set%20to%20clear%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%202.8.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'credentials'%20are%20not%20stored%20in%20configuration%20files%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%20359px%3B%22%3E%0A%3CTD%20style%3D%22height%3A%20359px%3B%20width%3A%20801px%3B%22%3E%3CP%3E3.%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ASP.NET%20Configuration%20Recommendations%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%203.1.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'deployment%20method%20retail'%20is%20set%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%203.2.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'debug'%20is%20turned%20off%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%203.3.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20custom%20error%20messages%20are%20not%20off%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%203.4.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20IIS%20HTTP%20detailed%20errors%20are%20hidden%20from%20displaying%20remotely%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%203.5.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20ASP.NET%20stack%20tracing%20is%20not%20enabled%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%203.6.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'httpcookie'%20mode%20is%20configured%20for%20session%20state%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%203.7.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'cookies'%20are%20set%20with%20HttpOnly%20attribute%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%203.8.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'MachineKey%20validation%20method%20-%20.Net%203.5'%20is%20configured%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%203.9.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'MachineKey%20validation%20method%20-%20.Net%204.5'%20is%20configured%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%203.10.%26nbsp%3B%20Ensure%20global%20.NET%20trust%20level%20is%20configured%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%203.11.%26nbsp%3B%20Ensure%20X-Powered-By%20Header%20is%20removed%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%203.12.%26nbsp%3B%20Ensure%20Server%20Header%20is%20removed%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%20332px%3B%22%3E%0A%3CTD%20style%3D%22height%3A%20332px%3B%20width%3A%20801px%3B%22%3E%3CP%3E4.%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Request%20Filtering%20and%20other%20Restriction%20Modules%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%204.1.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'maxAllowedContentLength'%20is%20configured%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%204.2.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'maxURL%20request%20filter'%20is%20configured%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%204.3.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'MaxQueryString%20request%20filter'%20is%20configured%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%204.4.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20non-ASCII%20characters%20in%20URLs%20are%20not%20allowed%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%204.5.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20Double-Encoded%20requests%20will%20be%20rejected%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%204.6.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20'HTTP%20Trace%20Method'%20is%20disabled%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%204.7.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20Unlisted%20File%20Extensions%20are%20not%20allowed%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%204.8.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20Handler%20is%20not%20granted%20Write%20and%20Script%2FExecute%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%204.9.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20%E2%80%98notListedIsapisAllowed%E2%80%99%20is%20set%20to%20false%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%204.10.%26nbsp%3B%20Ensure%20%E2%80%98notListedCgisAllowed%E2%80%99%20is%20set%20to%20false%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%204.11.%26nbsp%3B%20Ensure%20%E2%80%98Dynamic%20IP%20Address%20Restrictions%E2%80%99%20is%20enabled%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%20112px%3B%22%3E%0A%3CTD%20style%3D%22height%3A%20112px%3B%20width%3A%20801px%3B%22%3E%3CP%3E5.%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20IIS%20Logging%20Recommendations%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%205.1.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20Default%20IIS%20web%20log%20location%20is%20moved%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%205.2.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20Advanced%20IIS%20logging%20is%20enabled%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%205.3.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20%E2%80%98ETW%20Logging%E2%80%99%20is%20enabled%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2085px%3B%22%3E%0A%3CTD%20style%3D%22height%3A%2085px%3B%20width%3A%20801px%3B%22%3E%3CP%3E6.%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20FTP%20Requests%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%206.1.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20FTP%20requests%20are%20encrypted%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%206.2.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20FTP%20Logon%20attempt%20restrictions%20is%20enabled%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%20359px%3B%22%3E%0A%3CTD%20style%3D%22height%3A%20359px%3B%20width%3A%20801px%3B%22%3E%3CP%3E7.%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Transport%20Encryption%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%207.1.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20HSTS%20Header%20is%20set%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%207.2.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20SSLv2%20is%20Disabled%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%207.3.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20SSLv3%20is%20Disabled%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%207.4.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20TLS%201.0%20is%20Disabled%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%207.5.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20TLS%201.1%20is%20Disabled%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%207.6.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20TLS%201.2%20is%20Enabled%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%207.7.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20NULL%20Cipher%20Suites%20is%20Disabled%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%207.8.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20DES%20Cipher%20Suites%20is%20Disabled%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%207.9.%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20RC4%20Cipher%20Suites%20is%20Disabled%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%207.10.%26nbsp%3B%20Ensure%20AES%20128%2F128%20Cipher%20Suite%20is%20Disabled%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%207.11.%26nbsp%3B%20Ensure%20AES%20256%2F256%20Cipher%20Suite%20is%20Enabled%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%207.12.%26nbsp%3B%20Ensure%20TLS%20Cipher%20Suite%20Ordering%20is%20Configured%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETable%201.2%20provides%20a%20high%20level%20overview%20of%20the%20OWASP%20benchmarks%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ETable%201.2%3A%20OWASP%20IIS%2010%20Security%20Configuration%20Controls%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CTABLE%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22801%22%3E%3CP%3E1.1%26nbsp%3B%26nbsp%3B%20Basic%20Configuration%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.1.1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Disable%20directoryBrowsing%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.1.2%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Avoid%20wildcard%20host%20headers%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.1.3%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20applicationPoolIdentity%20is%20configured%20for%20all%20application%20ppols%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.1.4%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Use%20an%20unique%20applicationPool%20per%20site%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.1.5%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Disable%20IIS%20detailed%20error%20page%20from%20displaying%20remotely%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22801%22%3E%3CP%3E1.2%26nbsp%3B%26nbsp%3B%20Request%20Filtering%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.2.1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Configure%20maxAllowedContentLength%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.2.2%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Configure%20maxURL%20request%20filter%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.2.3%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Configure%20maxQueryString%20request%20filter%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.2.4%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Reject%20non-ASCII%20characters%20in%20URLs%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.2.5%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Reject%20double-encoded%20requests%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.2.6%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Disable%20HTTP%20trace%20requests%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.2.7%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Disallow%20unlisted%20file%20extensions%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.2.8%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Enable%20Dynamic%20IP%20Address%20Restrictions%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22801%22%3E%3CP%3E1.3%26nbsp%3B%26nbsp%3B%20Transport%20Encryption%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.3.1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20SSL%2FTLS%20settings%20are%20controlled%20at%20the%20SChannel%20level.%20They%20are%20set%20machine%20wide%20and%20IIS%20respects%20these%20values%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.3.2%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20A%20list%20of%20recommendations%20for%20IIS%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201.3.2.1%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Disable%20SSL%20v2%2Fv3%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201.3.2.2%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Disable%20TLS%201.0%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201.3.2.3%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Disable%20TLS%201.1%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201.3.2.4%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20TLS%201.2%20is%20enabled%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201.3.2.5%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Disable%20weak%20cipher%20suites%20(NULL%20cipher%20suites%2C%20DES%20cipher%20suites%2C%20RC4%20cipher%20suites%2C%20Triple%20DES%2C%20etc)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201.3.2.6%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Ensure%20TLS%20cipher%20suites%20are%20correctly%20ordered%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22801%22%3E%3CP%3E1.4%26nbsp%3B%26nbsp%3B%20HSTS%20support%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.4.1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20IIS%20recently%20(Windows%20Server%201709%2B)%20added%20turnkey%20support%20for%20HSTS%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22801%22%3E%3CP%3E1.5%26nbsp%3B%26nbsp%3B%20CORS%20support%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%201.5.1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Implement%20OWASP%20IIS%20CORS%20configuration%20module%20if%20your%20application%20does%20not%20natively%20handle%20CORS.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20hardening%20IIS%2C%20review%20each%20control%20and%20determine%20its%20appropriateness%20to%20your%20existing%20deployment.%20With%20any%20hardening%20strategy%2C%20you%20need%20to%20be%20incremental%20in%20your%20approach%2C%20applying%20and%20testing%20each%20new%20security%20control%20in%20a%20development%20or%20test%20environment%20before%20deploying%20it%20into%20a%20production%20environment.%20As%20wonderful%20as%20it%20is%20to%20have%20a%20secure%20deployment%2C%20it%E2%80%99s%20not%20so%20wonderful%20if%20the%20web%20application%20your%20IIS%20server%20is%20hosting%20no%20longer%20works%20because%20you%20made%20everything%20a%20little%20too%20secure.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-329979%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20this%20article%20you'll%20learn%20about%20the%20various%20guides%20to%20hardening%20IIS%2C%20the%20default%20web%20server%20built%20into%20Windows%20Server.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F71983iC390E6702DB6E1CE%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Windows_Server_101.jpg%22%20title%3D%22Windows_Server_101.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-329979%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-401404%22%20slang%3D%22en-US%22%3ERe%3A%20Windows%20Server%20101%3A%20Hardening%20IIS%20via%20Security%20Control%20Configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-401404%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20it%20comes%20to%20Exchange%2C%20I'd%20be%20careful%20and%20ensure%20that%20I%20implemented%20each%20security%20control%20one%20at%20a%20time%2C%20as%20I'm%20not%20sure%20that%20there%20is%20any%20official%20guidance%20on%20using%20the%203rd%20party%20hardening%20guidelines%20with%20OWA.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-400772%22%20slang%3D%22en-US%22%3ERe%3A%20Windows%20Server%20101%3A%20Hardening%20IIS%20via%20Security%20Control%20Configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-400772%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251291%22%20target%3D%22_blank%22%3E%40OrinThomas%3C%2FA%3E%26nbsp%3BWould%20one%20use%20the%20CIS%20or%20OWASP%20guidance%20to%20harden%20IIS%20as%20installed%20by%20an%20Exchange%20Server%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%2C%20turning%20off%20Trace%2FTrack%20by%20disabling%20this%20verbs%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOr%20would%20any%20side%20changes%20like%20that%20merely%20get%20reset%20on%20a%20CU%20upgrade%20as%20Exchange%20manages%20IIS%20from%20top%20to%20bottom%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20the%20newer%20exchange%20versions%20(2016%2F2019)%20align%20closer%20to%20the%20CIS%20recommendations%20in%20their%20IIS%20implementation%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-332319%22%20slang%3D%22en-US%22%3ERe%3A%20Windows%20Server%20101%3A%20Hardening%20IIS%20via%20Security%20Control%20Configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-332319%22%20slang%3D%22en-US%22%3E%3CP%3EFixed!%20Cheers%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-332213%22%20slang%3D%22en-US%22%3ERe%3A%20Windows%20Server%20101%3A%20Hardening%20IIS%20via%20Security%20Control%20Configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-332213%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3ECIS%20Security%20Control%207.6.%20should%20be%20%22Ensure%20TLS%201.2%20is%20%3CSTRONG%3EEnabled%3C%2FSTRONG%3E%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E(quote%3A%20%3CEM%3E7.6%20(L1)%20Ensure%20TLS%201.2%20is%20Enabled%20(Scored)%3C%2FEM%3E)%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-418435%22%20slang%3D%22en-US%22%3ERe%3A%20Windows%20Server%20101%3A%20Hardening%20IIS%20via%20Security%20Control%20Configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-418435%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F251291%22%20target%3D%22_blank%22%3E%40OrinThomas%3C%2FA%3E%26nbsp%3BIs%20there%20any%20Microsoft%20provided%20guidance%20on%20hardening%20OWA%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-510775%22%20slang%3D%22en-US%22%3ERe%3A%20Windows%20Server%20101%3A%20Hardening%20IIS%20via%20Security%20Control%20Configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-510775%22%20slang%3D%22en-US%22%3E%3CP%3EWe're%20currently%20evaluating%20hardening%20procedures%2C%20and%20are%20having%20trouble%20with%22%3CSPAN%3E%26nbsp%3BEnsure%20Unlisted%20File%20Extensions%20are%20not%20allowed%22.%20When%20we%20turn%20it%20on%2C%20all%20of%20our%20servlet%20URLs%20are%20being%20blocked%20by%20IIS%20(we%20are%20running%20IIS8.5%20connected%20to%20WebSphere%208.5).%20We've%20already%20added%20the%20period%20%22.%22%20in%20the%20whitelist%2C%20as%20in%20the%20other%20suggestions%20we've%20seen%20in%20the%20net%2C%20but%20still%20no%20luck.%20Any%20advice%20here%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-683304%22%20slang%3D%22en-US%22%3ERe%3A%20Windows%20Server%20101%3A%20Hardening%20IIS%20via%20Security%20Control%20Configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-683304%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F331783%22%20target%3D%22_blank%22%3E%40Renan_Galang%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20an%20extensionless-URL%20request%20arrives%20and%20you're%20getting%20the%20404.7%20(File%20extension%20denied)%20status%2C%20even%20when%20you've%20added%20the%20'.'%2C%20then%20it%20most%20likely%20means%20under-the-hood%20that%20request%20was%20transferred%20to%20a%20file%20with%20an%20extension.%20This%20could%20happen%20with%20the%20DefaultDocument%2C%20for%20example.%20Your%20best%20bet%20to%20find%20the%20extension%20you%20need%20to%20allow%20is%20to%20enable%20Failed%20Request%20Tracing%20for%20the%20404%20status%20code%2C%20then%20inspect%20the%20traces%20to%20see%20the%20appropriate%20extension.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

IIS, the web server that’s available as a role in Windows Server, is also one of the most used web server platforms on the internet. Hardening IIS involves applying a certain configuration steps above and beyond the default settings. The default settings on IIS provide a mix of functionality and security. As with any hardening operation, the harder you make a configuration, the more you reduce functionality and compatibility.

 

The two important third party guides for hardening IIS are the OWASP guide and the Center for Internet Security guide. You can access these guides here:

 

The CIS IIS 10 benchmark is more fleshed out at the time of writing and is an approximately 140 page PDF with 55 separate security recommendations. The OWASP guide is shorter and provides approximately 23 separate security recommendations.

 

Table 1.1 provides a high level list of the CIS IIS 10 benchmarks. For more detail on how to implement and check each security control, download the CIS IIS 10 benchmark file from the above website.

 

Table 1.1: High Level Center for Internet Security IIS 10 Security Controls

1.       Basic Configurations

   1.1.    Ensure web content is on non-system partition

   1.2.    Ensure 'host headers' are on all sites

   1.3.    Ensure 'directory browsing' is set to disabled

   1.4.    Ensure 'Application pool identity' is configured for all application pools

   1.5.    Ensure 'unique application pools' is set for sites

   1.6.    Ensure 'application pool identity' is configured for anonymous user  identity

   1.7.    Ensure WebDav feature is disabled

2.       Configure Authentication and Authorization

   2.1.    Ensure 'global authorization rule' is set to restrict access

   2.2.    Ensure access to sensitive site features is restricted to authenticated principals only

   2.3.    Ensure 'forms authentication' requires SSL

   2.4.    Ensure 'forms authentication' is set to use cookies

   2.5.    Ensure 'cookie protection mode' is configured for forms authentication

   2.6.    Ensure transport layer security for 'basic authentication' is configured

   2.7.    Ensure 'passwordFormat' is not set to clear

   2.8.    Ensure 'credentials' are not stored in configuration files

3.       ASP.NET Configuration Recommendations

   3.1.    Ensure 'deployment method retail' is set

   3.2.    Ensure 'debug' is turned off

   3.3.    Ensure custom error messages are not off

   3.4.    Ensure IIS HTTP detailed errors are hidden from displaying remotely

   3.5.    Ensure ASP.NET stack tracing is not enabled

   3.6.    Ensure 'httpcookie' mode is configured for session state

   3.7.    Ensure 'cookies' are set with HttpOnly attribute

   3.8.    Ensure 'MachineKey validation method - .Net 3.5' is configured

   3.9.    Ensure 'MachineKey validation method - .Net 4.5' is configured

   3.10.  Ensure global .NET trust level is configured

   3.11.  Ensure X-Powered-By Header is removed

   3.12.  Ensure Server Header is removed

4.       Request Filtering and other Restriction Modules

   4.1.    Ensure 'maxAllowedContentLength' is configured

   4.2.    Ensure 'maxURL request filter' is configured

   4.3.    Ensure 'MaxQueryString request filter' is configured

   4.4.    Ensure non-ASCII characters in URLs are not allowed

   4.5.    Ensure Double-Encoded requests will be rejected

   4.6.    Ensure 'HTTP Trace Method' is disabled

   4.7.    Ensure Unlisted File Extensions are not allowed

   4.8.    Ensure Handler is not granted Write and Script/Execute

   4.9.    Ensure ‘notListedIsapisAllowed’ is set to false

   4.10.  Ensure ‘notListedCgisAllowed’ is set to false

   4.11.  Ensure ‘Dynamic IP Address Restrictions’ is enabled

5.       IIS Logging Recommendations

   5.1.    Ensure Default IIS web log location is moved

   5.2.    Ensure Advanced IIS logging is enabled

   5.3.    Ensure ‘ETW Logging’ is enabled

6.       FTP Requests

   6.1.    Ensure FTP requests are encrypted

   6.2.    Ensure FTP Logon attempt restrictions is enabled

7.       Transport Encryption

   7.1.    Ensure HSTS Header is set

   7.2.    Ensure SSLv2 is Disabled

   7.3.    Ensure SSLv3 is Disabled

   7.4.    Ensure TLS 1.0 is Disabled

   7.5.    Ensure TLS 1.1 is Disabled

   7.6.    Ensure TLS 1.2 is Enabled

   7.7.    Ensure NULL Cipher Suites is Disabled

   7.8.    Ensure DES Cipher Suites is Disabled

   7.9.    Ensure RC4 Cipher Suites is Disabled

   7.10.  Ensure AES 128/128 Cipher Suite is Disabled

   7.11.  Ensure AES 256/256 Cipher Suite is Enabled

   7.12.  Ensure TLS Cipher Suite Ordering is Configured

 

Table 1.2 provides a high level overview of the OWASP benchmarks

 

Table 1.2: OWASP IIS 10 Security Configuration Controls

1.1   Basic Configuration

   1.1.1         Disable directoryBrowsing

   1.1.2         Avoid wildcard host headers

   1.1.3         Ensure applicationPoolIdentity is configured for all application ppols

   1.1.4         Use an unique applicationPool per site

   1.1.5         Disable IIS detailed error page from displaying remotely

1.2   Request Filtering

   1.2.1         Configure maxAllowedContentLength

   1.2.2         Configure maxURL request filter

   1.2.3         Configure maxQueryString request filter

   1.2.4         Reject non-ASCII characters in URLs

   1.2.5         Reject double-encoded requests

   1.2.6         Disable HTTP trace requests

   1.2.7         Disallow unlisted file extensions

   1.2.8         Enable Dynamic IP Address Restrictions

1.3   Transport Encryption

   1.3.1         SSL/TLS settings are controlled at the SChannel level. They are set machine wide and IIS respects these values

   1.3.2         A list of recommendations for IIS

      1.3.2.1    Disable SSL v2/v3

      1.3.2.2    Disable TLS 1.0

      1.3.2.3    Disable TLS 1.1

      1.3.2.4    Ensure TLS 1.2 is enabled

      1.3.2.5    Disable weak cipher suites (NULL cipher suites, DES cipher suites, RC4 cipher suites, Triple DES, etc)

      1.3.2.6    Ensure TLS cipher suites are correctly ordered

1.4   HSTS support

   1.4.1         IIS recently (Windows Server 1709+) added turnkey support for HSTS

1.5   CORS support

   1.5.1         Implement OWASP IIS CORS configuration module if your application does not natively handle CORS.

 

When hardening IIS, review each control and determine its appropriateness to your existing deployment. With any hardening strategy, you need to be incremental in your approach, applying and testing each new security control in a development or test environment before deploying it into a production environment. As wonderful as it is to have a secure deployment, it’s not so wonderful if the web application your IIS server is hosting no longer works because you made everything a little too secure.

7 Comments
Occasional Visitor

CIS Security Control 7.6. should be "Ensure TLS 1.2 is Enabled"

(quote: 7.6 (L1) Ensure TLS 1.2 is Enabled (Scored))

Microsoft

Fixed! Cheers

New Contributor

@OrinThomas Would one use the CIS or OWASP guidance to harden IIS as installed by an Exchange Server?

 

For example, turning off Trace/Track by disabling this verbs?

 

Or would any side changes like that merely get reset on a CU upgrade as Exchange manages IIS from top to bottom?

 

Do the newer exchange versions (2016/2019) align closer to the CIS recommendations in their IIS implementation?

Microsoft

When it comes to Exchange, I'd be careful and ensure that I implemented each security control one at a time, as I'm not sure that there is any official guidance on using the 3rd party hardening guidelines with OWA.

New Contributor

@OrinThomas Is there any Microsoft provided guidance on hardening OWA?

Occasional Visitor

We're currently evaluating hardening procedures, and are having trouble with" Ensure Unlisted File Extensions are not allowed". When we turn it on, all of our servlet URLs are being blocked by IIS (we are running IIS8.5 connected to WebSphere 8.5). We've already added the period "." in the whitelist, as in the other suggestions we've seen in the net, but still no luck. Any advice here?

Microsoft

@Renan_Galang 

If an extensionless-URL request arrives and you're getting the 404.7 (File extension denied) status, even when you've added the '.', then it most likely means under-the-hood that request was transferred to a file with an extension. This could happen with the DefaultDocument, for example. Your best bet to find the extension you need to allow is to enable Failed Request Tracing for the 404 status code, then inspect the traces to see the appropriate extension.