<def-group>
  <definition class="compliance" id="sshd_use_approved_ciphers" version="1">
    <metadata>
      <title>Use Only Approved Ciphers</title>
      <affected family="unix">
        <platform>multi_platform_rhel</platform>
      </affected>
      <description>Limit the ciphers to those which are FIPS-approved and only
      use ciphers in counter (CTR) mode.</description>
      <reference source="JL" ref_id="20140414" ref_url="test_attestation" />
    </metadata>
    <criteria comment="SSH is not being used or conditions are met"
    operator="OR">
      <extend_definition comment="sshd service is disabled"
      definition_ref="service_sshd_disabled" />
      <criterion comment="Check ClientAliveInterval in /etc/ssh/sshd_config"
      test_ref="test_sshd_use_approved_ciphers" />
    </criteria>
  </definition>
  <ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="tests the value of Ciphers setting in the /etc/ssh/sshd_config file"
  id="test_sshd_use_approved_ciphers" version="1">
    <ind:object object_ref="obj_sshd_use_approved_ciphers" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="obj_sshd_use_approved_ciphers" version="2">
    <ind:filepath>/etc/ssh/sshd_config</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*(?i)Ciphers(?-i)[\s]+aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc[\s]*(?:|(?:#.*))?$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
