Windows Server 2025 OpenSSH must display the Standard Mandatory DOD Notice and Consent Banner before granting remote access to the system via an OpenSSH logon.
DISA Rule
SV-285314r1211170_rule
Vulnerability Number
V-285314
Group Title
SRG-OS-000023-GPOS-00006
Rule Version
WN25-SH-000020
Severity
CAT II
CCI(s)
- CCI-000048 - Display an organization-defined system use notification message or banner to users before granting access to the system that provides privacy and security notices consistent with applicable federal laws, Executive Orders, directives, policies, regulations, standards, and guidelines.
- CCI-001384 - For publicly accessible systems, display system use information with organization-defined conditions before granting further access to the publicly accessible system.
- CCI-001385 - For publicly accessible systems, displays references, if any, to monitoring that are consistent with privacy accommodations for such systems that generally prohibit those activities.
- CCI-001386 - For publicly accessible systems, displays references, if any, to recording that are consistent with privacy accommodations for such systems that generally prohibit those activities.
- CCI-001387 - For publicly accessible systems, displays references, if any, to auditing that are consistent with privacy accommodations for such systems that generally prohibit those activities.
- CCI-001388 - For publicly accessible systems, includes a description of the authorized uses of the system.
Weight
10
Fix Recommendation
To configure the system, add or modify the following line in the "$env:ProgramData/ssh/sshd_config" file.
An example configuration line is:
Banner C:\ProgramData\ssh\Banner.txt
Restart the OpenSSH service for the settings to take effect.
Check Contents
If OpenSSH is not installed on the system, this requirement is not applicable.
Verify any SSH connection to the system displays the Standard Mandatory DOD Notice and Consent Banner before granting access to the system.
Check for the location of the banner file being used with the following command:
C:\ > Get-Content "$env:ProgramData\ssh\sshd_config" | Select-String -Pattern '^\s*Banner'
Banner C:\ProgramData\ssh\Banner.txt
If "Banner" is set to "none", the line is commented out, or the line is missing, this is a finding.
Vulnerability Number
V-285314
Documentable
False
Rule Version
WN25-SH-000020
Severity Override Guidance
If OpenSSH is not installed on the system, this requirement is not applicable.
Verify any SSH connection to the system displays the Standard Mandatory DOD Notice and Consent Banner before granting access to the system.
Check for the location of the banner file being used with the following command:
C:\ > Get-Content "$env:ProgramData\ssh\sshd_config" | Select-String -Pattern '^\s*Banner'
Banner C:\ProgramData\ssh\Banner.txt
If "Banner" is set to "none", the line is commented out, or the line is missing, this is a finding.
Check Content Reference
M
Target Key
5719