

<def-group>
  <definition class="compliance" id="sshd_use_strong_rng" version="1">
    <metadata>
        <title>SSH server uses strong entropy to seed</title>
        
    <affected family="unix">
    <platform>Ubuntu 22.04</platform>
    </affected>
        <description>Ensure 'SSH_USE_STRONG_RNG' is configured with value '32' in /etc/sysconfig/sshd</description>
    </metadata>
    <criteria comment="The respective application or service is configured correctly"
    operator="OR"><criterion comment="Check the SSH_USE_STRONG_RNG in /etc/sysconfig/sshd"
  test_ref="test_sshd_use_strong_rng" />
    </criteria>
  </definition>

  

  
<ind:textfilecontent54_test check="all" check_existence="all_exist"
  comment="tests the value of SSH_USE_STRONG_RNG setting in the /etc/sysconfig/sshd file"
  id="test_sshd_use_strong_rng" version="1">
  <ind:object object_ref="obj_sshd_use_strong_rng" />
  <ind:state state_ref="state_sshd_use_strong_rng" />
</ind:textfilecontent54_test>
  
<ind:textfilecontent54_object id="obj_sshd_use_strong_rng" version="1">
  <ind:filepath>/etc/sysconfig/sshd</ind:filepath>
  <ind:pattern operation="pattern match">^[ \t]*SSH_USE_STRONG_RNG=(.+?)[ \t]*(?:$|#)</ind:pattern>
  <ind:instance operation="greater than or equal" datatype="int">1</ind:instance>
</ind:textfilecontent54_object>
<ind:textfilecontent54_state id="state_sshd_use_strong_rng" version="1">
  <ind:subexpression datatype="string" operation="pattern match">^32$</ind:subexpression>
</ind:textfilecontent54_state>

</def-group>
