| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <Benchmark xmlns="http://checklists.nist.gov/xccdf/1.2" id="xccdf_moc.elpmaxe.www_benchmark_test"> |
| 3 | <status>incomplete</status> |
| 4 | <title>Security Benchmark</title> |
| 5 | <description xml:lang="en-US">A sample benchmark</description> |
| 6 | <version>1.0</version> |
| 7 | <model system="urn:xccdf:scoring:default"/> |
| 8 | <model system="urn:xccdf:scoring:flat"/> |
| 9 | <model system="urn:xccdf:scoring:flat-unweighted"/> |
| 10 | <model system="urn:xccdf:scoring:absolute"/> |
| 11 | <Profile id="xccdf_moc.elpmaxe.www_profile_standard"> |
| 12 | <title xml:lang="en-US">Standard System Security Profile</title> |
| 13 | <description xml:lang="en-US">This profile contains rules to ensure standard security baseline of your system.</description> |
| 14 | <select idref="xccdf_moc.elpmaxe.www_rule_1" selected="true"/> |
| 15 | <select idref="xccdf_moc.elpmaxe.www_rule_2" selected="true"/> |
| 16 | </Profile> |
| 17 | <Rule selected="false" id="xccdf_moc.elpmaxe.www_rule_1"> |
| 18 | <title>Passing rule</title> |
| 19 | <fix id="bash_fix_for_passing_rule" system="urn:xccdf:fix:script:sh">echo this_is_ok</fix> |
| 20 | <fix id="ansible_fix_for_passing_rule" system="urn:xccdf:fix:script:ansible">- name: ensure everything passes |
| 21 | shell: /bin/true</fix> |
| 22 | <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 23 | <check-content-ref href="oval/pass/oval.xml" name="oval:moc.elpmaxe.www:def:1"/> |
| 24 | </check> |
| 25 | </Rule> |
| 26 | <Rule selected="false" id="xccdf_moc.elpmaxe.www_rule_2"> |
| 27 | <title>Failing rule</title> |
| 28 | <fix id="fix_for_failing_rule" system="urn:xccdf:fix:script:sh">echo fix_me_please</fix> |
| 29 | <fix id="ansible_fix_for_failing_rule" system="urn:xccdf:fix:script:ansible">- name: correct the failing case |
| 30 | shell: /bin/false</fix> |
| 31 | <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 32 | <check-content-ref href="oval/fail/oval.xml" name="oval:moc.elpmaxe.www:def:1"/> |
| 33 | </check> |
| 34 | </Rule> |
| 35 | </Benchmark> |