| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <oval_definitions 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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 3 | <generator> |
| 4 | <oval:schema_version>5.10.1</oval:schema_version> |
| 5 | <oval:timestamp>2009-01-12T10:41:00-05:00</oval:timestamp> |
| 6 | <terms_of_use>Copyright (c) 2002-2012, The MITRE Corporation. All rights reserved. The contents of this file are subject to the license described in terms.txt.</terms_of_use> |
| 7 | </generator> |
| 8 | <definitions> |
| 9 | <definition id="oval:org.mitre.oval.test:def:779" version="1" class="miscellaneous"> |
| 10 | <metadata> |
| 11 | <title>Evaluate to true if the win-def:filehash_test is properly supported</title> |
| 12 | <description>This definition is intended to evalutate to true if the interpreter properly supports the win-def:filehash_test.</description> |
| 13 | </metadata> |
| 14 | <notes> |
| 15 | <note>It is important to note that the values used in this test definition are specific to a particular machine, and may not necessarily apply to your system. As a result, in order to have the definition return a result of 'true', you must either change these values to the ones found on your particular system, or you must configure your system to use these values.</note> |
| 16 | </notes> |
| 17 | <criteria operator="AND"> |
| 18 | <criterion comment="Test that the filehash_object is supported with the path entity equal to some value and the filename entity equal to some value." test_ref="oval:org.mitre.oval.test:tst:904"/> |
| 19 | <criterion comment="Test that the filehash_object is supported with the path entity matching some regular expression and the filename equal to some value." test_ref="oval:org.mitre.oval.test:tst:200"/> |
| 20 | <criterion comment="Test that the filehash_object is supported with the path entity equal to some value and the filename matching some regular expression." test_ref="oval:org.mitre.oval.test:tst:190"/> |
| 21 | <criterion comment="Test that the filehash_object is supported with the path entity equal to some value and the filename entity not equal to some value." test_ref="oval:org.mitre.oval.test:tst:329"/> |
| 22 | <criterion comment="Test that the max_depth behavior is supported for a limited depth of recursion." test_ref="oval:org.mitre.oval.test:tst:867"/> |
| 23 | <criterion comment="Test that the max_depth behavior is supported for an unlimited depth of recursion." test_ref="oval:org.mitre.oval.test:tst:102"/> |
| 24 | <criterion comment="Test that the recurse_direction behavior is supported." test_ref="oval:org.mitre.oval.test:tst:508"/> |
| 25 | </criteria> |
| 26 | </definition> |
| 27 | </definitions> |
| 28 | <tests> |
| 29 | <filehash_test id="oval:org.mitre.oval.test:tst:904" version="1" comment="Test that the filehash_object is supported with the path entity equal to some value and the filename entity equal to some value." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 30 | <object object_ref="oval:org.mitre.oval.test:obj:131"/> |
| 31 | <state state_ref="oval:org.mitre.oval.test:ste:654"/> |
| 32 | </filehash_test> |
| 33 | <filehash_test id="oval:org.mitre.oval.test:tst:200" version="1" comment="Test that the filehash_object is supported with the path entity matching some regular expression and the filename equal to some value." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 34 | <object object_ref="oval:org.mitre.oval.test:obj:813"/> |
| 35 | <state state_ref="oval:org.mitre.oval.test:ste:520"/> |
| 36 | </filehash_test> |
| 37 | <filehash_test id="oval:org.mitre.oval.test:tst:190" version="1" comment="Test that the filehash_object is supported with the path entity equal to some value and the filename matching some regular expression." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 38 | <object object_ref="oval:org.mitre.oval.test:obj:281"/> |
| 39 | <state state_ref="oval:org.mitre.oval.test:ste:922"/> |
| 40 | </filehash_test> |
| 41 | <filehash_test id="oval:org.mitre.oval.test:tst:329" version="1" comment="Test that the filehash_object is supported with the path entity equal to some value and the filename entity not equal to some value." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 42 | <object object_ref="oval:org.mitre.oval.test:obj:97"/> |
| 43 | <state state_ref="oval:org.mitre.oval.test:ste:689"/> |
| 44 | </filehash_test> |
| 45 | <filehash_test id="oval:org.mitre.oval.test:tst:867" version="1" comment="Test that the max_depth behavior is supported for a limited depth of recursion." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 46 | <object object_ref="oval:org.mitre.oval.test:obj:13"/> |
| 47 | <state state_ref="oval:org.mitre.oval.test:ste:654"/> |
| 48 | </filehash_test> |
| 49 | <filehash_test id="oval:org.mitre.oval.test:tst:102" version="1" comment="Test that the max_depth behavior is supported for an unlimited depth of recursion." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 50 | <object object_ref="oval:org.mitre.oval.test:obj:444"/> |
| 51 | <state state_ref="oval:org.mitre.oval.test:ste:951"/> |
| 52 | </filehash_test> |
| 53 | <filehash_test id="oval:org.mitre.oval.test:tst:508" version="1" comment="Test that the recurse_direction behavior is supported." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 54 | <object object_ref="oval:org.mitre.oval.test:obj:562"/> |
| 55 | <state state_ref="oval:org.mitre.oval.test:ste:373"/> |
| 56 | </filehash_test> |
| 57 | </tests> |
| 58 | <objects> |
| 59 | <filehash_object id="oval:org.mitre.oval.test:obj:131" version="1" comment="This object represents a filehash_item with a path equal to '/bin' and a filename equal to 'ls'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 60 | <path>/bin</path> |
| 61 | <filename>ls</filename> |
| 62 | </filehash_object> |
| 63 | <filehash_object id="oval:org.mitre.oval.test:obj:813" version="1" comment="This object represents a filehash_item with a path that matches the regular expression '^bin$' and a filename equal to 'ls'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 64 | <path operation="pattern match">^/bin$</path> |
| 65 | <filename>ls</filename> |
| 66 | </filehash_object> |
| 67 | <filehash_object id="oval:org.mitre.oval.test:obj:281" version="1" comment="This object represents a filehash_item with a path equal to '/bin' and a filename that matches the regular expression '^l'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 68 | <path>/bin</path> |
| 69 | <filename operation="pattern match">^l</filename> |
| 70 | </filehash_object> |
| 71 | <filehash_object id="oval:org.mitre.oval.test:obj:97" version="1" comment="This object represents a filehash_item with path equal to '/bin', and a filename that is not equal to 'ls'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 72 | <path>/bin</path> |
| 73 | <filename operation="not equal">ls</filename> |
| 74 | </filehash_object> |
| 75 | <filehash_object id="oval:org.mitre.oval.test:obj:13" version="1" comment="This object represents a filehash_item with path starting at 'C:\Program Files', recursing down 1 level, and filename equals 'iexplore.exe'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 76 | <behaviors max_depth="1" recurse_direction="down"/> |
| 77 | <path>/bin</path> |
| 78 | <filename>ls</filename> |
| 79 | </filehash_object> |
| 80 | <filehash_object id="oval:org.mitre.oval.test:obj:444" version="1" comment="This object represents a filehash_item with path starting at '/etc', recursing down infinitely, and filename equals 'rc'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 81 | <behaviors max_depth="-1" recurse_direction="down"/> |
| 82 | <path>/etc</path> |
| 83 | <filename>rc</filename> |
| 84 | </filehash_object> |
| 85 | <filehash_object id="oval:org.mitre.oval.test:obj:562" version="1" comment="This object represents a filehash_item with path starting at '/etc/rc.d', recursing up 1 level, and filename equals 'profile'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 86 | <behaviors max_depth="1" recurse_direction="up"/> |
| 87 | <path>/etc/rc.d</path> |
| 88 | <filename>profile</filename> |
| 89 | </filehash_object> |
| 90 | </objects> |
| 91 | <states> |
| 92 | <filehash_state id="oval:org.mitre.oval.test:ste:654" version="1" comment="This filehash_state represents a filehash_item which has a path equal to '/bin', a filename equal to 'ls', a md5 hash that matches the regular expression '.*', and a sha1 hash that matches the regular expression '.*'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 93 | <path>/bin</path> |
| 94 | <filename>ls</filename> |
| 95 | <md5 operation="pattern match">.*</md5> |
| 96 | <sha1 operation="pattern match">.*</sha1> |
| 97 | </filehash_state> |
| 98 | <filehash_state id="oval:org.mitre.oval.test:ste:520" version="1" comment="This filehash_state represents a filehash_item which has a path that matches the regular expression '^b.n$', a filename that equals 'ls', a md5 hash that matches the regular expression '.*', and a sha1 hash that matches the regular expression '.*'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 99 | <path operation="pattern match">^/b.n$</path> |
| 100 | <filename>ls</filename> |
| 101 | <md5 operation="pattern match">.*</md5> |
| 102 | <sha1 operation="pattern match">.*</sha1> |
| 103 | </filehash_state> |
| 104 | <filehash_state id="oval:org.mitre.oval.test:ste:922" version="1" comment="This filehash_state represents a filehash_item which has a path equal to '/bin', a filename that matches the regular expression '^l', a md5 hash that matches the regular expression '.*', and a sha1 hash that matches the regular expression '.*'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 105 | <path>/bin</path> |
| 106 | <filename operation="pattern match">^l</filename> |
| 107 | <md5 operation="pattern match">.*</md5> |
| 108 | <sha1 operation="pattern match">.*</sha1> |
| 109 | </filehash_state> |
| 110 | <filehash_state id="oval:org.mitre.oval.test:ste:689" version="1" comment="This filehash_state represents a filehash_item which has a path of '/bin', a filename that is not equal to 'ls', a md5 hash that matches the regular expression '.*', and a sha1 hash that matches the regular expression '.*'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 111 | <path>/bin</path> |
| 112 | <filename operation="not equal">ls</filename> |
| 113 | <md5 operation="pattern match">.*</md5> |
| 114 | <sha1 operation="pattern match">.*</sha1> |
| 115 | </filehash_state> |
| 116 | <filehash_state id="oval:org.mitre.oval.test:ste:951" version="1" comment="This filehash_state represents a filehash_item which has a path that equals '/etc/rc.d', a filename that equals 'rc', a md5 hash that matches the regular expression '.*', and a sha1 hash that matches the regular expression '.*'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 117 | <path>/etc/rc.d</path> |
| 118 | <filename>rc</filename> |
| 119 | <md5 operation="pattern match">.*</md5> |
| 120 | <sha1 operation="pattern match">.*</sha1> |
| 121 | </filehash_state> |
| 122 | <filehash_state id="oval:org.mitre.oval.test:ste:373" version="1" comment="This filehash_state represents a filehash_item which has a path that equals '/etc/', a filename that equals 'profile', a md5 hash that matches the regular expression '.*', and a sha1 hash that matches the regular expression '.*'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 123 | <path operation="pattern match">/etc</path> |
| 124 | <filename>profile</filename> |
| 125 | <md5 operation="pattern match">.*</md5> |
| 126 | <sha1 operation="pattern match">.*</sha1> |
| 127 | </filehash_state> |
| 128 | </states> |
| 129 | </oval_definitions> |