<div dir="ltr">Right, I recently pushed a fix for this bug, it just hasn&#39;t made the current build yet. Good catch though, false positives stink.<div><br></div><div>Andrew</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Wed, Jul 31, 2013 at 9:15 AM, Stuart Green <span dir="ltr">&lt;<a href="mailto:stuart.green@doccentrics.com" target="_blank">stuart.green@doccentrics.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Greetings All,<br>
<br>
New to this list!<br>
<br>
I think I might have found an issue with the  SSG policy content.<br>
<br>
Summary:  If you do not have telnet installed on the system it causes Rule ID: disable_telnet_service to fail.<br>
<br>
<br>
<br>
In no place in this rule does it consider that telnet might not be installed at all, so it fails (rather than errors, or even better does a check as a precursor to see if its installed at all and if not passes!)<br>
<br>
<br>
grep &#39;id=&quot;oval:ssg:tst:231&quot;&#39; ssg-rhel6-oval.xml.result.xml<br>
      &lt;ind-def:textfilecontent54_<u></u>test id=&quot;oval:ssg:tst:231&quot; version=&quot;1&quot; check_existence=&quot;all_exist&quot; check=&quot;all&quot; comment=&quot;Disable Telnet Service&quot;&gt;<br>
        &lt;test test_id=&quot;oval:ssg:tst:231&quot; version=&quot;1&quot; check_existence=&quot;all_exist&quot; check=&quot;all&quot; result=&quot;false&quot;/&gt;<br>
<br>
<br>
        &lt;Rule id=&quot;disable_telnet_service&quot; selected=&quot;false&quot; severity=&quot;high&quot;&gt;<br>
          &lt;title xml:lang=&quot;en-US&quot;&gt;Disable telnet Service&lt;/title&gt;<br>
          &lt;description xmlns:xhtml=&quot;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.<u></u>org/1999/xhtml</a>&quot; xml:lang=&quot;en-US&quot;&gt;<br>
<br>
    The &lt;xhtml:code&gt;telnet&lt;/xhtml:<u></u>code&gt; service can be disabled with the following command:<br>
<br>
    &lt;xhtml:pre&gt;# chkconfig telnet off&lt;/xhtml:pre&gt;<br>
          &lt;/description&gt;<br>
          &lt;reference href=&quot;<a href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf" target="_blank">http://csrc.nist.gov/<u></u>publications/nistpubs/800-53-<u></u>Rev3/sp800-53-rev3-final.pdf</a>&quot;&gt;<u></u>AC-17(8)&lt;/reference&gt;<br>


          &lt;reference href=&quot;<a href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf" target="_blank">http://csrc.nist.gov/<u></u>publications/nistpubs/800-53-<u></u>Rev3/sp800-53-rev3-final.pdf</a>&quot;&gt;<u></u>CM-7&lt;/reference&gt;<br>


          &lt;reference href=&quot;<a href="http://csrc.nist.gov/publications/nistpubs/800-53-Rev3/sp800-53-rev3-final.pdf" target="_blank">http://csrc.nist.gov/<u></u>publications/nistpubs/800-53-<u></u>Rev3/sp800-53-rev3-final.pdf</a>&quot;&gt;<u></u>IA-5(1)(c)&lt;/reference&gt;<br>


          &lt;reference href=&quot;<a href="http://iase.disa.mil/cci/index.html" target="_blank">http://iase.disa.mil/<u></u>cci/index.html</a>&quot;&gt;68&lt;/reference&gt;<br>
          &lt;reference href=&quot;<a href="http://iase.disa.mil/cci/index.html" target="_blank">http://iase.disa.mil/<u></u>cci/index.html</a>&quot;&gt;1436&lt;/<u></u>reference&gt;<br>
          &lt;reference href=&quot;<a href="http://iase.disa.mil/cci/index.html" target="_blank">http://iase.disa.mil/<u></u>cci/index.html</a>&quot;&gt;197&lt;/<u></u>reference&gt;<br>
          &lt;reference href=&quot;<a href="http://iase.disa.mil/cci/index.html" target="_blank">http://iase.disa.mil/<u></u>cci/index.html</a>&quot;&gt;877&lt;/<u></u>reference&gt;<br>
          &lt;reference href=&quot;<a href="http://iase.disa.mil/cci/index.html" target="_blank">http://iase.disa.mil/<u></u>cci/index.html</a>&quot;&gt;888&lt;/<u></u>reference&gt;<br>
          &lt;reference xmlns:dc=&quot;<a href="http://purl.org/dc/elements/1.1/" target="_blank">http://purl.org/dc/<u></u>elements/1.1/</a>&quot; href=&quot;test_attestation&quot;&gt;<br>
            &lt;dc:contributor&gt;DS&lt;/dc:<u></u>contributor&gt;<br>
            &lt;dc:date&gt;20121026&lt;/dc:date&gt;<br>
          &lt;/reference&gt;<br>
<br>
          &lt;rationale xmlns:xhtml=&quot;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.<u></u>org/1999/xhtml</a>&quot; xml:lang=&quot;en-US&quot;&gt;<br>
<br>
The telnet protocol uses unencrypted network communication, which<br>
means that data from the login session, including passwords and<br>
all other information transmitted during the session, can be<br>
stolen by eavesdroppers on the network. The telnet protocol is also<br>
subject to man-in-the-middle attacks.<br>
<br>
&lt;/rationale&gt;<br>
<br>
          &lt;ident system=&quot;<a href="http://cce.mitre.org" target="_blank">http://cce.mitre.org</a>&quot;&gt;<u></u>CCE-26836-7&lt;/ident&gt;<br>
          &lt;check system=&quot;<a href="http://oval.mitre.org/XMLSchema/oval-definitions-5" target="_blank">http://oval.mitre.org/<u></u>XMLSchema/oval-definitions-5</a>&quot;&gt;<br>
            &lt;check-content-ref name=&quot;oval:ssg:def:230&quot; href=&quot;ssg-rhel6-oval.xml&quot;/&gt;<br>
          &lt;/check&gt;<br>
<br>
          &lt;check system=&quot;ocil-transitional&quot;&gt;<br>
            &lt;check-export export-name=&quot;the service is running&quot; value-id=&quot;conditional_clause&quot;/<u></u>&gt;<br>
            &lt;check-content xmlns:xhtml=&quot;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.<u></u>org/1999/xhtml</a>&quot;&gt;<br>
<br>
    To check that the &lt;xhtml:code&gt;telnet&lt;/xhtml:<u></u>code&gt; service is disabled in system boot configuration, run the following command:<br>
    &lt;xhtml:pre&gt;# chkconfig &lt;xhtml:code&gt;telnet&lt;/xhtml:<u></u>code&gt; --list&lt;/xhtml:pre&gt;<br>
    Output should indicate the &lt;xhtml:code&gt;telnet&lt;/xhtml:<u></u>code&gt; service has either not been installed,<br>
    or has been disabled at all runlevels, as shown in the example below:<br>
    &lt;xhtml:pre&gt;# chkconfig &lt;xhtml:code&gt;telnet&lt;/xhtml:<u></u>code&gt; --list<br>
&lt;xhtml:code&gt;telnet&lt;/xhtml:<u></u>code&gt;       0:off   1:off 2:off   3:off   4:off   5:off   6:off&lt;/xhtml:pre&gt;<br>
<br>
<br>
    Run the following command to verify &lt;xhtml:code&gt;telnet&lt;/xhtml:<u></u>code&gt; is disabled through current runtime configuration:<br>
<br>
    &lt;xhtml:pre&gt;# service telnet status&lt;/xhtml:pre&gt;<br>
<br>
    If the service is disabled the command will return the following output:<br>
<br>
    &lt;xhtml:pre&gt;telnet is stopped&lt;/xhtml:pre&gt;<br>
          &lt;/check-content&gt;<br>
          &lt;/check&gt;<br>
        &lt;/Rule&gt;<br>
<br>
<br>
<br>
Cheers,<br>
Stu<br>
<br>
______________________________<u></u>_________________<br>
scap-security-guide mailing list<br>
<a href="mailto:scap-security-guide@lists.fedorahosted.org" target="_blank">scap-security-guide@lists.<u></u>fedorahosted.org</a><br>
<a href="https://lists.fedorahosted.org/mailman/listinfo/scap-security-guide" target="_blank">https://lists.fedorahosted.<u></u>org/mailman/listinfo/scap-<u></u>security-guide</a><br>
</blockquote></div><br></div>