Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1691579 - DISA STIG does not recognize options on removable partitions
Summary: DISA STIG does not recognize options on removable partitions
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: scap-security-guide
Version: 7.6
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Watson Yuuma Sato
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-22 00:36 UTC by Ryan Mullett
Modified: 2019-04-05 16:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Ryan Mullett 2019-03-22 00:36:24 UTC
Description of problem:
For the 
xccdf_org.ssgproject.content_rule_mount_option_nodev_removable_partitions
xccdf_org.ssgproject.content_rule_mount_option_noexec_removable_partitions
xccdf_org.ssgproject.content_rule_mount_option_nosuid_removable_partitions
rules from DISA STIG, the check does not appear to properly recognize when partitions are configured with the proper nodev,nosuid, and noexec options. It also does not properly remediate with the --remediate flag. 

Version-Release number of selected component (if applicable):
openscap-1.2.17-2.el7.x86_64
scap-security-guide-0.1.40-12.el7.noarch
openscap-scanner-1.2.17-2.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. have an fstab with a /dev/cdrom or some other removable media entry, like this:
/dev/cdrom /media/cdrom iso9660 ro,noauto,nosuid,noexec,nodev 0 0                                       

2. attempt to remediate with DISA STIG:
   # oscap xccdf eval --remediate --profile stig-rhel7-disa --results results.xml --report report.html /usr/share/xml/scap/ssg/content/ssg-rhel7-xccdf.xml 

Actual results:
The following three rule fail even when fstab has the proper flags in place:
xccdf_org.ssgproject.content_rule_mount_option_nodev_removable_partitions
xccdf_org.ssgproject.content_rule_mount_option_noexec_removable_partitions
xccdf_org.ssgproject.content_rule_mount_option_nosuid_removable_partitions

Expected results:
One of three things:

1. The scan will properly remediate if the options on the line are not correct for removable media and the --remediate flag is used

2. The scan will recognize that the nodev option is configured within fstab and will flag as a pass

3. The report.html will show proper remediation steps to resolve the issue 

Additional info:


Note You need to log in before you can comment on or make changes to this bug.