Microsoft IIS
TMA-IIS-6.1
Ensure FTP requests are encrypted
Mô tả
FTP Publishing Service for IIS supports adding an SSL certificate to an FTP site. Using an SSL certificate with an FTP site is also known as FTP-S or FTP over Secure Socket Layers (SSL). FTP-S is an RFC standard (RFC 4217) where an SSL certificate is added to an FTP site and thereby making it possible to perform secure file transfers. siteDefaults FTP ssl controlChannelPolicy and dataChannelPolicy must both be SslRequire. Not applicable when the FTP service is not installed. PowerShell 5.1 with the WebAdministration module; run elevated. CIS marks this recommendation Manual; the automated check implements its audit procedure.
Cách kiểm tra
Phương pháp kiểm tra: Lệnh shell
Import-Module WebAdministration -ErrorAction Stop; $c = Get-WebConfiguration -Filter 'system.applicationHost/sites/siteDefaults/ftpServer/security/ssl' -PSPath 'MACHINE/WEBROOT/APPHOST'; if ([string]$c.controlChannelPolicy -eq 'SslRequire' -and [string]$c.dataChannelPolicy -eq 'SslRequire') { '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
Set-WebConfigurationProperty -PSPath 'MACHINE/WEBROOT/APPHOST' -Filter system.applicationHost/sites/siteDefaults/ftpServer/security/ssl -Name controlChannelPolicy -Value SslRequire; same for dataChannelPolicy (and assign an SSL certificate)
Thuộc tính
- Hệ điều hành
- Bất kỳ
- Thẻ
- iisftp
- Tham chiếu
- CIS Microsoft IIS 10 Benchmark v1.2.1 - 6.1 Ensure FTP requests are encrypted
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.
tmaegis scan --target iis