Harden SSHD Crypto Policy
An XCCDF Rule
Description
Crypto Policies are means of enforcing certain cryptographic settings for selected applications including OpenSSH server.
The SSHD service is by default configured to modify its configuration based on currently configured Crypto-Policy. However, in certain cases it might be needed to override the Crypto Policy specific to OpenSSH Server and leave rest of the Crypto Policy intact.
This can be done by dropping a file named opensshserver-xxx.config
, replacing xxx
with arbitrary identifier, into /etc/crypto-policies/local.d
. This has to be followed by running update-crypto-policies
so that changes are applied.
Changes are propagated into /etc/crypto-policies/back-ends/opensshserver.config
. This rule checks if this file contains predefined CRYPTO_POLICY
environment variable configured with predefined value.
Rationale
The Common Criteria requirements specify that certain parameters for OpenSSH Server are configured e.g. supported ciphers, accepted host key algorithms, public key types, key exchange algorithms, HMACs and GSSAPI key exchange is disabled. Currently particular requirements specified by CC are stricter compared to any existing Crypto Policy.
- ID
- xccdf_org.ssgproject.content_rule_harden_sshd_crypto_policy
- Severity
- Medium
- References
- Updated