Skip to content

False-positive with banner_etc_issue Rule #4387

@dmason-tesla

Description

@dmason-tesla

Description of problem:

System login banner is defined correctly in /etc/issue,
but oscap still reports the rule as failed.

OpenSCAP Version:

Name        : openscap
Version     : 1.2.17
Release     : 2.el7
Architecture: x86_64
Install Date: Wed 05 Jun 2019 02:13:49 PM UTC
Group       : System Environment/Libraries
Size        : 64536323
License     : LGPLv2+
Signature   : RSA/SHA256, Thu 23 Aug 2018 09:13:47 AM UTC, Key ID 199e2f91fd431d51
Source RPM  : openscap-1.2.17-2.el7.src.rpm
Build Date  : Thu 23 Aug 2018 08:46:27 AM UTC
Build Host  : x86-039.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor      : Red Hat, Inc.

SCAP Security Guide Version:

Name        : scap-security-guide
Version     : 0.1.40
Release     : 13.el7_6
Architecture: noarch
Install Date: Wed 05 Jun 2019 02:13:51 PM UTC
Group       : System Environment/Base
Size        : 74773210
License     : BSD-3-Clause
Signature   : RSA/SHA256, Thu 11 Apr 2019 01:20:26 PM UTC, Key ID 199e2f91fd431d51
Source RPM  : scap-security-guide-0.1.40-13.el7_6.src.rpm
Build Date  : Thu 11 Apr 2019 01:15:35 PM UTC
Build Host  : ppc-055.build.eng.bos.redhat.com
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor      : Red Hat, Inc.

Operating System Version:

Red Hat Enterprise Linux Server release 7.6 (Maipo)

Steps to Reproduce:

  1. Add the DoD-approved banner language to /etc/issue
cat << EOF | sed 's/^[[:space:]]*//g' > /etc/issue
        You are accessing a U.S. Government (USG) Information System (IS) that is
        provided for USG-authorized use only. By using this IS (which includes any
        device attached to this IS), you consent to the following conditions:

        * The USG routinely intercepts and monitors communications on this IS for
        purposes including, but not limited to, penetration testing, COMSEC
        monitoring, network operations and defense, personnel misconduct (PM),
        law enforcement (LE), and counterintelligence (CI) investigations.

        * At any time, the USG may inspect and seize data stored on this IS.

        * Communications using, or data stored on, this IS are not private, are
        subject to routine monitoring, interception, and search, and may be
        disclosed or used for any USG authorized purpose.

        * This IS includes security measures (e.g., authentication and access
        controls) to protect USG interests--not for your personal benefit or privacy.

        * Notwithstanding the above, using this IS does not constitute consent to
        PM, LE or CI investigative searching or monitoring of the content of
        privileged communications, or work product, related to personal
        representation or services by attorneys, psychotherapists, or clergy, and
        their assistants. Such communications and work product are private and
        confidential. See User Agreement for details.
EOF
  1. Run oscap
date=$(/bin/date +%Y-%m%d) ; profile='stig-rhel7-disa' ; oscap xccdf eval --fetch-remote-resources --oval-results --profile ${profile} --export-variables --report report.${profile}.${date}.html --results results.${profile}.${date}.xml /usr/share/xml/scap/ssg/content/ssg-rhel7-xccdf.xml

Actual Results:

Title   Modify the System Login Banner
Rule    banner_etc_issue
Ident   CCE-27303-7
Result  fail

Expected Results:

Title   Modify the System Login Banner
Rule    banner_etc_issue
Ident   CCE-27303-7
Result  pass

Addition Information/Debugging Steps:

Screen Shot 2019-06-05 at 1 09 38 PM

Screen Shot 2019-06-05 at 1 01 22 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions