We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e182740 + 893eeb4 commit da8aab0Copy full SHA for da8aab0
controls/sshd_spec.rb
@@ -503,3 +503,19 @@
503
its('stderr') { should eq '' }
504
end
505
506
+
507
+control 'sshd-49' do
508
+ impact 1.0
509
+ title 'Server: CRYPTO_POLICY'
510
+ desc 'Verifies, that we are not running CRYPTO_POLICY and our settings from sshd_config are effective'
511
+ only_if('OS is RHEL 8+ or compatible') do
512
+ os[:family] == 'redhat' && ::Gem::Version.new(os.release) > ::Gem::Version.new('8')
513
+ end
514
515
+ describe bash("pgrep -af 'sshd -D'") do
516
+ its('exit_status') { should eq 0 }
517
+ its('stdout') { should_not match('-oCiphers') }
518
+ its('stdout') { should_not match('-oKexAlgorithms') }
519
+ its('stdout') { should_not match('-oHostKeyAlgorithms') }
520
521
+end
0 commit comments