<def-group>
  <definition class="compliance" id="banner_etc_issue_net_cis" version="1">
    <metadata>
        <title>Ensure Remote Login Warning Banner Is Configured Properly</title>
        
    <affected family="unix">
    <platform>Ubuntu 22.04</platform>
    </affected>
        <description>Check that /etc/issue.net does not contain OS and version information</description>
    </metadata>
    <criteria operator="AND" comment="check">
      
      <criterion comment="Check /etc/issue.net contains a banner" test_ref="test_banner_etc_issue_net_cis_file_nonempty" />
      
      <criterion comment="Check /etc/issue.net does not contain OS and version information" test_ref="test_banner_etc_issue_net_cis" />
    </criteria>
  </definition>


  <ind:textfilecontent54_test check="all" check_existence="at_least_one_exists"
  comment="Check that the given object does not exist"
  id="test_banner_etc_issue_net_cis_file_nonempty" version="1">
    <ind:object object_ref="obj_banner_etc_issue_net_cis_file_nonempty" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="obj_banner_etc_issue_net_cis_file_nonempty" version="1">
    <ind:filepath>/etc/issue.net</ind:filepath>
    <ind:pattern operation="pattern match">^.+$</ind:pattern>
    <ind:instance operation="greater than or equal" datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>


  <ind:textfilecontent54_test check="all" check_existence="none_exist"
  comment="Check that the given object does not exist"
  id="test_banner_etc_issue_net_cis" version="1">
    <ind:object object_ref="obj_banner_etc_issue_net_cis" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="obj_banner_etc_issue_net_cis" version="1">
    <ind:filepath>/etc/issue.net</ind:filepath>
    <ind:pattern operation="pattern match">(\\v|\\r|\\m|\\s|ubuntu2204)</ind:pattern>
    <ind:instance operation="greater than or equal" datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>