| 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 |
|
| 15 |
|
| 16 |
|
| 17 |
<ds:component-ref id="scap_org.open-scap_cref_security-data-oval.xml.bz2" xlink:href="https://github.com/"/> |
| 18 |
</ds:checks> |
| 19 |
</ds:data-stream> |
| 20 |
|
| 21 |
<ds:component id="scap_org.open-scap_comp_test_single_rule.oval.xml" timestamp="2017-06-09T07:07:38"> |
| 22 |
<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"> |
| 23 |
<generator> |
| 24 |
<oval:schema_version>5.11</oval:schema_version> |
| 25 |
<oval:timestamp>2009-01-12T10:41:00-05:00</oval:timestamp> |
| 26 |
</generator> |
| 27 |
|
| 28 |
<definitions> |
| 29 |
<definition class="compliance" id="oval:test-pass:def:1" version="1"> |
| 30 |
<metadata> |
| 31 |
<title>PASS</title> |
| 32 |
<description>pass</description> |
| 33 |
</metadata> |
| 34 |
<criteria> |
| 35 |
<criterion comment="PASS test" test_ref="oval:x:tst:1"/> |
| 36 |
</criteria> |
| 37 |
</definition> |
| 38 |
</definitions> |
| 39 |
|
| 40 |
<tests> |
| 41 |
<variable_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" id="oval:x:tst:1" check="all" comment="always pass" version="1"> |
| 42 |
<object object_ref="oval:x:obj:1"/> |
| 43 |
</variable_test> |
| 44 |
</tests> |
| 45 |
|
| 46 |
<objects> |
| 47 |
<variable_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" id="oval:x:obj:1" version="1" comment="x"> |
| 48 |
<var_ref>oval:x:var:1</var_ref> |
| 49 |
</variable_object> |
| 50 |
</objects> |
| 51 |
|
| 52 |
<variables> |
| 53 |
<constant_variable id="oval:x:var:1" version="1" comment="x" datatype="int"> |
| 54 |
<value>100</value> |
| 55 |
</constant_variable> |
| 56 |
</variables> |
| 57 |
|
| 58 |
</oval_definitions> |
| 59 |
</ds:component> |
| 60 |
|
| 61 |
<ds:component id="scap_org.open-scap_comp_test_single_rule.xccdf.xml" timestamp="2017-06-09T09:15:45"> |
| 62 |
<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"> |
| 63 |
<status>accepted</status> |
| 64 |
<version>1.0</version> |
| 65 |
|
| 66 |
<Profile id="xccdf_com.example.www_profile_test_remote_res"> |
| 67 |
<title>xccdf_test_profile</title> |
| 68 |
<description>This profile is for testing.</description> |
| 69 |
<select idref="xccdf_com.example.www_rule_test-pass" selected="true"/> |
| 70 |
<select idref="xccdf_com.example.www_rule_test-remote_res" selected="true"/> |
| 71 |
</Profile> |
| 72 |
|
| 73 |
<Value id="xccdf_com.example.www_value_val1" type="number" operator="equals" interactive="0"> |
| 74 |
<title>test value</title> |
| 75 |
<description>foo</description> |
| 76 |
<value selector="bar_1">50</value> |
| 77 |
<value selector="bar_2">100</value> |
| 78 |
</Value> |
| 79 |
<Rule selected="true" id="xccdf_com.example.www_rule_test-pass"> |
| 80 |
<title>This rule always pass</title> |
| 81 |
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 82 |
<check-content-ref href="test_single_rule.oval.xml" name="oval:test-pass:def:1"/> |
| 83 |
</check> |
| 84 |
</Rule> |
| 85 |
<Rule selected="true" id="xccdf_com.example.www_rule_test-remote_res"> |
| 86 |
<title>This rule checks remote resource</title> |
| 87 |
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5" multi-check="true"> |
| 88 |
<check-content-ref href="security-data-oval.xml.bz2"/> |
| 89 |
</check> |
| 90 |
</Rule> |
| 91 |
<Rule selected="true" id="xccdf_com.example.www_rule_test-pass2"> |
| 92 |
<title>This rule always pass</title> |
| 93 |
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 94 |
<check-content-ref href="test_single_rule.oval.xml" name="oval:test-pass:def:1"/> |
| 95 |
</check> |
| 96 |
</Rule> |
| 97 |
</Benchmark> |
| 98 |
</ds:component> |
| 99 |
</ds:data-stream-collection> |