|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<ds:data-stream-collection xmlns:ds="http://scap.nist.gov/schema/scap/source/1.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:cat="urn:oasis:names:tc:entity:xmlns:xml:catalog" id="scap_org.open-scap_collection_from_xccdf_test_single_rule.xccdf.xml" schematron-version="1.3"> |
| 3 | +<ds:data-stream id="scap_org.open-scap_datastream_from_xccdf_test_single_rule.xccdf.xml" scap-version="1.3" use-case="OTHER"> |
| 4 | + <ds:checklists> |
| 5 | + <ds:component-ref id="scap_org.open-scap_cref_test_single_rule.xccdf.xml" xlink:href="#scap_org.open-scap_comp_test_single_rule.xccdf.xml"> |
| 6 | + <cat:catalog> |
| 7 | + <cat:uri name="test_single_rule.oval.xml" uri="#scap_org.open-scap_cref_test_single_rule.oval.xml"/> |
| 8 | + <cat:uri name="security-data-oval.xml.bz2" uri="#scap_org.open-scap_cref_security-data-oval.xml.bz2"/> |
| 9 | + </cat:catalog> |
| 10 | + </ds:component-ref> |
| 11 | + </ds:checklists> |
| 12 | + <ds:checks> |
| 13 | + <ds:component-ref id="scap_org.open-scap_cref_test_single_rule.oval.xml" xlink:href="#scap_org.open-scap_comp_test_single_rule.oval.xml"/> |
| 14 | + <ds:component-ref id="scap_org.open-scap_cref_security-data-oval.xml.bz2" xlink:href="https://www.example.com/security/data/oval/oval.xml.bz2"/> |
| 15 | + </ds:checks> |
| 16 | +</ds:data-stream> |
| 17 | + |
| 18 | +<ds:component id="scap_org.open-scap_comp_test_single_rule.oval.xml" timestamp="2017-06-09T07:07:38"> |
| 19 | +<oval_definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:win-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#windows" xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#windows windows-definitions-schema.xsd"> |
| 20 | + <generator> |
| 21 | + <oval:schema_version>5.11</oval:schema_version> |
| 22 | + <oval:timestamp>2009-01-12T10:41:00-05:00</oval:timestamp> |
| 23 | + </generator> |
| 24 | + |
| 25 | + <definitions> |
| 26 | + <definition class="compliance" id="oval:test-pass:def:1" version="1"> |
| 27 | + <metadata> |
| 28 | + <title>PASS</title> |
| 29 | + <description>pass</description> |
| 30 | + </metadata> |
| 31 | + <criteria> |
| 32 | + <criterion comment="PASS test" test_ref="oval:x:tst:1"/> |
| 33 | + </criteria> |
| 34 | + </definition> |
| 35 | + </definitions> |
| 36 | + |
| 37 | + <tests> |
| 38 | + <variable_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" id="oval:x:tst:1" check="all" comment="always pass" version="1"> |
| 39 | + <object object_ref="oval:x:obj:1"/> |
| 40 | + </variable_test> |
| 41 | + </tests> |
| 42 | + |
| 43 | + <objects> |
| 44 | + <variable_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" id="oval:x:obj:1" version="1" comment="x"> |
| 45 | + <var_ref>oval:x:var:1</var_ref> |
| 46 | + </variable_object> |
| 47 | + </objects> |
| 48 | +</oval_definitions> |
| 49 | +</ds:component> |
| 50 | + |
| 51 | +<ds:component id="scap_org.open-scap_comp_test_single_rule.xccdf.xml" timestamp="2017-06-09T09:15:45"> |
| 52 | +<Benchmark xmlns="http://checklists.nist.gov/xccdf/1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="xccdf_com.example.www_benchmark_dummy" xml:lang="en-US"> |
| 53 | + <status>accepted</status> |
| 54 | + <version>1.0</version> |
| 55 | + |
| 56 | + <Profile id="xccdf_com.example.www_profile_test_remote_res"> |
| 57 | + <title>xccdf_test_profile</title> |
| 58 | + <description>This profile is for testing.</description> |
| 59 | + <select idref="xccdf_com.example.www_rule_test-pass" selected="true"/> |
| 60 | + <select idref="xccdf_com.example.www_rule_test-remote_res" selected="true"/> |
| 61 | + </Profile> |
| 62 | + |
| 63 | + <Value id="xccdf_com.example.www_value_val1" type="number" operator="equals" interactive="0"> |
| 64 | + <title>test value</title> |
| 65 | + <description>foo</description> |
| 66 | + <value selector="bar_1">50</value> |
| 67 | + <value selector="bar_2">100</value> |
| 68 | + </Value> |
| 69 | + <Rule selected="true" id="xccdf_com.example.www_rule_test-pass"> |
| 70 | + <title>This rule always pass</title> |
| 71 | + <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 72 | + <check-content-ref href="test_single_rule.oval.xml" name="oval:test-pass:def:1"/> |
| 73 | + </check> |
| 74 | + </Rule> |
| 75 | + <Rule selected="true" id="xccdf_com.example.www_rule_test-remote_res"> |
| 76 | + <title>This rule checks remote resource</title> |
| 77 | + <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" multi-check="true"> |
| 78 | + <check-content-ref href="security-data-oval.xml.bz2"/> |
| 79 | + </check> |
| 80 | + </Rule> |
| 81 | + <Rule selected="true" id="xccdf_com.example.www_rule_test-pass2"> |
| 82 | + <title>This rule always pass</title> |
| 83 | + <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 84 | + <check-content-ref href="test_single_rule.oval.xml" name="oval:test-pass:def:1"/> |
| 85 | + </check> |
| 86 | + </Rule> |
| 87 | +</Benchmark> |
| 88 | +</ds:component> |
| 89 | +</ds:data-stream-collection> |
0 commit comments