{"id":2430,"date":"2015-11-10T02:16:53","date_gmt":"2015-11-10T02:16:53","guid":{"rendered":"http:\/\/websecuritypatterns.com\/blogs\/?p=2430"},"modified":"2017-10-12T04:34:09","modified_gmt":"2017-10-12T04:34:09","slug":"automating-security-assessments-using-scap-demand-assessments-compliance-reporting-remediation","status":"publish","type":"post","link":"https:\/\/websecuritypatterns.com\/blogs\/2015\/11\/10\/automating-security-assessments-using-scap-demand-assessments-compliance-reporting-remediation\/","title":{"rendered":"Automating Security and Compliance Assessments using SCAP &#8211; On-demand Scanning and Compliance Reporting with Remediation"},"content":{"rendered":"<p><span style=\"color: #000000;\">Manually assessing security controls, host and application configuration, access control policies, software patch levels and creating on-demand compliance readiness reports has always been a daunting task, especially when it is critical to adhere standards and regulatory mandates. \u00a0Not only those processes are very time consuming and they are also highly prone to human errors. \u00a0It becomes even more complicated when Security professionals unfamiliar with the target resource often struggle to identify technical controls, particularly to find ways to answer the following questions:<\/span><\/p>\n<ol>\n<li><span style=\"color: #000000;\">Does the hosted system and applications meet the organization&#8217;s security policies?<\/span><\/li>\n<li><span style=\"color: #000000;\">Does the hosted\u00a0system and applications are configured right and patched to the appropriate levels addressing all known vulnerabilities?<\/span><\/li>\n<li><span style=\"color: #000000;\">How can we review default configuration settings, ports, protocols, and services are effective and in use?<\/span><\/li>\n<li><span style=\"color: #000000;\">How can we perform individual checks for critical security controls and report the results of each of those checks performed?<\/span><\/li>\n<li><span style=\"color: #000000;\">How to measure risks in terms of metrics for vulnerabilities assigning severity levels?<\/span><\/li>\n<\/ol>\n<p><span style=\"color: #000000;\">Answering those questions\u00a0becomes, even more, harder if those processes need to be repeated for periodic reviews and to sustain compliance mandates. Thus, it is extremely critical to automate using a standards-based approach that is easily repeatable to help on-demand evaluation and reviews. This will help quickly review system configurations, installation and presence of minimum required security policies, updates, patches, \u00a0system security configuration settings and all known vulnerabilities related to unnecessary ports and protocols and finally minimization of hosted applications in alignment with industry standards (such as PCI-DSS) and regulatory mandates such as HIPAA, FISMA and others.<\/span><\/p>\n<h3><span style=\"color: #000000;\">What is SCAP?<\/span><\/h3>\n<div class=\"page\" title=\"Page 4\">\n<div class=\"section\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p><span style=\"color: #000000;\">Based on the <a href=\"http:\/\/nvlpubs.nist.gov\/nistpubs\/SpecialPublications\/NIST.SP.800-53r4.pdf\">NIST Special Publication 800-53<\/a> (SP 800-53) controls framework, the &#8220;<a href=\"https:\/\/scap.nist.gov\/revision\/index.html\">Security Content Automation Protocol \u00a0(SCAP)<\/a>&#8221; is a NIST defined standard to enable automation of vulnerability management, vulnerability measurement, and security compliance assessment for systems. \u00a0The scripts follow standards using &#8220;Open Vulnerability and Assessment Language&#8221; (OVAL) and Extensible Configuration Checklist Description Format (XCCDF). A typical SCAP implementation will include the following components:<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\"><strong>Common Vulnerabilities and Exposures (CVE)<\/strong> &#8211; Industry standard for Enumeration for software vulnerabilities using Common name identifiers\u00a0<\/span><\/li>\n<li><span style=\"color: #000000;\"><strong>Common Platform Enumerations (CPE)<\/strong> &#8211; A structured naming convention used to identify IT systems (hardware), platforms (operating systems), and packages (applications).<\/span><\/li>\n<li><span style=\"color: #000000;\"><b>Common Configuration Enumeration (CCE)<\/b> &#8211; A stand for uniquely identifying security-relevant configuration elements for applications and operating systems.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">Additionally, it also includes components for Risk measurements:<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\"><b>Common Vulnerability Scoring System (CVSS)<\/b> &#8211; It\u00a0facilitates a standardized way to qualitatively assess and measure by capturing the characteristics of a known vulnerability and computes a numerical score specifying its level of severity (such as low, medium, high, and critical). The severity levels help to assign a score to a vulnerability and in turn, it helps security auditors to prioritize risk.<\/span><\/li>\n<li><span style=\"color: #000000;\"><b>Common Configuration Scoring System (CCSS) <\/b>&#8211; It provides a NIST standard framework for measuring the severity of software security configuration issues.<\/span><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><span style=\"color: #000000;\">Making all these components working together, \u00a0Redhat has delivered &#8220;OpenSCAP&#8221; an Open-source implementation of SCAP standard, which is available for performing\u00a0automated vulnerability management, measurement, and policy compliance evaluation on Linux, BSD, Solaris and several Web servers. Lately, there is an on-going effort for porting OpenSCAP on Microsoft Windows is available and final release\u00a0<a href=\"https:\/\/github.com\/OpenSCAP\/openscap\/blob\/maint-1.2\/docs\/manual\/manual.adoc#building-openscap-on-windows\">in progress.<\/a><\/span><\/p>\n<div class=\"page\" title=\"Page 22\">\n<div class=\"section\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p><span style=\"color: #000000;\">OpenSCAP provides a complete framework of libraries and tools to perform configuration (configuration scanner) and vulnerability scans (vulnerability scanner) of a local system by evaluating both XCCDF benchmarks and OVAL definitions,\u00a0 generate the appropriate results with a compliance score. If anomalies exist it will provide remediation guidance. The OpenSCAP implementation also includes pre-built assessment profiles for common configuration requirements, such as DoD STIG, PCI-DSS, CJIS, and meeting Redhat recommended security for Cloud Provider standards. \u00a0The pre-built assessment profiles can be modified\/tailored to create custom assessment profiles. \u00a0Once the assessment scanning is complete, OpenSCAP generates an HTML formatted report enumerating the results of the tests passed and failed to highlight the severity and the final compliance score for the system.<\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"attachment_2445\" style=\"width: 910px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2445\" class=\"wp-image-2445 size-full\" src=\"http:\/\/websecuritypatterns.com\/blogs\/wp-content\/uploads\/2016\/08\/scap1.png\" alt=\"\" width=\"900\" height=\"431\" srcset=\"https:\/\/websecuritypatterns.com\/blogs\/wp-content\/uploads\/2016\/08\/scap1.png 900w, https:\/\/websecuritypatterns.com\/blogs\/wp-content\/uploads\/2016\/08\/scap1-300x144.png 300w, https:\/\/websecuritypatterns.com\/blogs\/wp-content\/uploads\/2016\/08\/scap1-768x368.png 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><p id=\"caption-attachment-2445\" class=\"wp-caption-text\">OpenSCAP Report: Compliance score report<\/p><\/div>\n<div id=\"attachment_2446\" style=\"width: 760px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2446\" class=\"wp-image-2446 size-large\" src=\"http:\/\/websecuritypatterns.com\/blogs\/wp-content\/uploads\/2016\/08\/scap2-1024x406.png\" alt=\"\" width=\"750\" height=\"297\" srcset=\"https:\/\/websecuritypatterns.com\/blogs\/wp-content\/uploads\/2016\/08\/scap2-1024x406.png 1024w, https:\/\/websecuritypatterns.com\/blogs\/wp-content\/uploads\/2016\/08\/scap2-300x119.png 300w, https:\/\/websecuritypatterns.com\/blogs\/wp-content\/uploads\/2016\/08\/scap2-768x304.png 768w, https:\/\/websecuritypatterns.com\/blogs\/wp-content\/uploads\/2016\/08\/scap2.png 1047w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><p id=\"caption-attachment-2446\" class=\"wp-caption-text\">List of tests: Passed\/Failed and Severity levels<\/p><\/div>\n<div id=\"attachment_2447\" style=\"width: 760px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2447\" class=\"wp-image-2447 size-large\" src=\"http:\/\/websecuritypatterns.com\/blogs\/wp-content\/uploads\/2016\/08\/pngvIc11V1LG1-1024x622.png\" alt=\"\" width=\"750\" height=\"456\" srcset=\"https:\/\/websecuritypatterns.com\/blogs\/wp-content\/uploads\/2016\/08\/pngvIc11V1LG1-1024x622.png 1024w, https:\/\/websecuritypatterns.com\/blogs\/wp-content\/uploads\/2016\/08\/pngvIc11V1LG1-300x182.png 300w, https:\/\/websecuritypatterns.com\/blogs\/wp-content\/uploads\/2016\/08\/pngvIc11V1LG1-768x466.png 768w, https:\/\/websecuritypatterns.com\/blogs\/wp-content\/uploads\/2016\/08\/pngvIc11V1LG1.png 1052w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><p id=\"caption-attachment-2447\" class=\"wp-caption-text\">Remediation Script for Failure<\/p><\/div>\n<h3 style=\"text-align: left;\"><span style=\"color: #000000;\">How to install and use <\/span>OpenSCAP ?<\/h3>\n<p style=\"text-align: left;\"><span style=\"color: #000000;\">To install OpenSCAP on Linux OS, you are required to download and install OpenSCAP scanner and Security guide content:<\/span><\/p>\n<div class=\"page\" title=\"Page 32\">\n<div class=\"section\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p><span style=\"color: #000000;\"><em><strong># yum -y install openscap-scanner scap-security-guide <\/strong><\/em><\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"color: #000000;\">To customize and modify Security Assessment profiles to meet an Organizational policy, you may choose to tailor an existing profile to meet your needs. To download tailoring utility:<\/span><\/p>\n<div class=\"section\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p><span style=\"color: #000000;\"><em><strong># yum -y install scap-workbench<\/strong><\/em><\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p style=\"text-align: left;\"><span style=\"color: #000000;\">To list of assessment profiles for use on an RHEL 7 server:<\/span><\/p>\n<div class=\"section\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<div class=\"page\" title=\"Page 35\">\n<div class=\"section\">\n<div class=\"layoutArea\">\n<div class=\"column\"><span style=\"color: #000000;\"><em><strong># oscap info \/usr\/share\/xml\/scap\/ssg\/content\/ssg-rhel7-ds.xml<br \/>\n<span style=\"font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; white-space: normal;\">Document type: Source Data Stream Imported: 2015-10-02T06:17:44<\/span><\/strong><\/em><\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"section\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p><span style=\"color: #000000;\"><strong><em>Stream: scap_org.open-scap_datastream_from_xccdf_ssg-rhel7-xccdf-1.2.xml Generated: (null)<\/em><\/strong><\/span><br \/>\n<span style=\"color: #000000;\"> <strong><em> Version: 1.2<\/em><\/strong><\/span><br \/>\n<span style=\"color: #000000;\"> <strong><em> Checklists:<\/em><\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"><strong><em>Ref-Id: scap_org.open-scap_cref_ssg-rhel7-xccdf-1.2.xml Status: draft<\/em><\/strong><\/span><br \/>\n<span style=\"color: #000000;\"> <strong><em> Generated: 2015-10-02<\/em><\/strong><\/span><br \/>\n<span style=\"color: #000000;\"> <strong><em> Resolved: true<\/em><\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"><strong><em>Profiles:<\/em><\/strong><\/span><br \/>\n<span style=\"color: #ff0000;\"><strong><em> xccdf_org.ssgproject.content_profile_standard<\/em><\/strong><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong><em>xccdf_org.ssgproject.content_profile_pci-dss <\/em><\/strong><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong><em>xccdf_org.ssgproject.content_profile_rht-ccp <\/em><\/strong><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong><em>xccdf_org.ssgproject.content_profile_common <\/em><\/strong><\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong><em>xccdf_org.ssgproject.content_profile_stig-rhel7-server-upstream<\/em><\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\"><strong><em>Referenced check files: ssg-rhel7-oval.xml<\/em><\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000;\">To start an OpenSCAP assessment scan on a RHEL7 server (Run the following command in a single line):<\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"section\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p style=\"text-align: left;\"><span style=\"color: #000000;\"><em><strong># oscap xccdf eval \u00a0&#8211;profile xccdf_org.ssgproject.content_profile_rht-ccp<\/strong><\/em><\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"color: #000000;\"><em><strong>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &#8211;results-arf arf.xml &#8211;report report.html \/usr\/share\/xml\/scap\/ssg\/content\/ssg-rhel7-ds.xml<\/strong><\/em><\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"page\" title=\"Page 38\">\n<div class=\"section\">\n<div class=\"layoutArea\">\n<h4><span style=\"color: #000000;\">Reports<\/span><\/h4>\n<p><span style=\"color: #000000;\">The assessment process usually takes about 15 minutes on a latest Intel Xeon server, depending on the choice of assessment profile and number of rulesets included. Using SCAP Workbench will provide you a complete overview of the results and the final reports will be available in HTML for download or it can be streamed into a dashboard (like Redhat Satellite).<\/span><\/p>\n<h4><span style=\"color: #000000;\">Further References and Resources:<\/span><\/h4>\n<p><span style=\"color: #000000;\"><a href=\"https:\/\/www.open-scap.org\">OpenSCAP.org<\/a><\/span><\/p>\n<p><span style=\"color: #000000;\"><a href=\"https:\/\/scap.nist.gov\">NIST SCAP Standards<\/a><\/span><\/p>\n<p><span style=\"color: #000000;\"><a href=\"https:\/\/nvd.nist.gov\/ncp\/repository?scap\">SCAP Benchmarks for Operating Systems, Web Servers, and Applications<\/a><\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Choose Tier-III &#8220;Should work in SCAP Validated Tool&#8221;, \u00a0you should see benchmarks for Web servers, Databases, Operating Systems, and many popular software\u00a0utilities.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Manually assessing security controls, host and application configuration, access control policies, software patch levels and creating on-demand compliance readiness reports has always been a daunting task, especially when it is critical to adhere standards and regulatory mandates. \u00a0Not only those processes are very time consuming and they are also highly prone to human errors. \u00a0It becomes even more complicated when&#8230; <a href=\"https:\/\/websecuritypatterns.com\/blogs\/2015\/11\/10\/automating-security-assessments-using-scap-demand-assessments-compliance-reporting-remediation\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[15,4,16,84],"tags":[27,93,28,99,97,98,62],"class_list":["post-2430","post","type-post","status-publish","format-standard","hentry","category-cloud-security","category-compliance","category-compliance-main","category-web-security","tag-cloud","tag-cloud-security","tag-compliance-main","tag-nist","tag-openscap","tag-scap","tag-security"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/posts\/2430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/comments?post=2430"}],"version-history":[{"count":29,"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/posts\/2430\/revisions"}],"predecessor-version":[{"id":2480,"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/posts\/2430\/revisions\/2480"}],"wp:attachment":[{"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/media?parent=2430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/categories?post=2430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/websecuritypatterns.com\/blogs\/wp-json\/wp\/v2\/tags?post=2430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}