stix_schema_spy 1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (482) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +24 -0
  5. data/README.md +41 -0
  6. data/Rakefile +3 -0
  7. data/config/1.0.1/stix/README.md +20 -0
  8. data/config/1.0.1/stix/campaign.xsd +210 -0
  9. data/config/1.0.1/stix/course_of_action.xsd +166 -0
  10. data/config/1.0.1/stix/cybox/README.md +13 -0
  11. data/config/1.0.1/stix/cybox/cybox_common.xsd +2319 -0
  12. data/config/1.0.1/stix/cybox/cybox_core.xsd +1095 -0
  13. data/config/1.0.1/stix/cybox/cybox_default_vocabularies.xsd +3326 -0
  14. data/config/1.0.1/stix/cybox/extensions/platform/README.txt +1 -0
  15. data/config/1.0.1/stix/cybox/extensions/platform/cpe-language_2.3.xsd +234 -0
  16. data/config/1.0.1/stix/cybox/extensions/platform/cpe-naming_2.3.xsd +45 -0
  17. data/config/1.0.1/stix/cybox/extensions/platform/cpe2.3.xsd +40 -0
  18. data/config/1.0.1/stix/cybox/extensions/platform/xml.xsd +145 -0
  19. data/config/1.0.1/stix/cybox/objects/API_Object.xsd +55 -0
  20. data/config/1.0.1/stix/cybox/objects/Account_Object.xsd +50 -0
  21. data/config/1.0.1/stix/cybox/objects/Address_Object.xsd +122 -0
  22. data/config/1.0.1/stix/cybox/objects/Artifact_Object.xsd +206 -0
  23. data/config/1.0.1/stix/cybox/objects/Code_Object.xsd +417 -0
  24. data/config/1.0.1/stix/cybox/objects/Custom_Object.xsd +43 -0
  25. data/config/1.0.1/stix/cybox/objects/DNS_Cache_Object.xsd +53 -0
  26. data/config/1.0.1/stix/cybox/objects/DNS_Query_Object.xsd +159 -0
  27. data/config/1.0.1/stix/cybox/objects/DNS_Record_Object.xsd +87 -0
  28. data/config/1.0.1/stix/cybox/objects/Device_Object.xsd +55 -0
  29. data/config/1.0.1/stix/cybox/objects/Disk_Object.xsd +117 -0
  30. data/config/1.0.1/stix/cybox/objects/Disk_Partition_Object.xsd +199 -0
  31. data/config/1.0.1/stix/cybox/objects/Email_Message_Object.xsd +273 -0
  32. data/config/1.0.1/stix/cybox/objects/File_Object.xsd +359 -0
  33. data/config/1.0.1/stix/cybox/objects/GUI_Dialogbox_Object.xsd +41 -0
  34. data/config/1.0.1/stix/cybox/objects/GUI_Object.xsd +40 -0
  35. data/config/1.0.1/stix/cybox/objects/GUI_Window_Object.xsd +46 -0
  36. data/config/1.0.1/stix/cybox/objects/HTTP_Session_Object.xsd +623 -0
  37. data/config/1.0.1/stix/cybox/objects/Library_Object.xsd +114 -0
  38. data/config/1.0.1/stix/cybox/objects/Link_Object.xsd +36 -0
  39. data/config/1.0.1/stix/cybox/objects/Linux_Package_Object.xsd +119 -0
  40. data/config/1.0.1/stix/cybox/objects/Memory_Object.xsd +70 -0
  41. data/config/1.0.1/stix/cybox/objects/Mutex_Object.xsd +40 -0
  42. data/config/1.0.1/stix/cybox/objects/Network_Connection_Object.xsd +609 -0
  43. data/config/1.0.1/stix/cybox/objects/Network_Flow_Object.xsd +1559 -0
  44. data/config/1.0.1/stix/cybox/objects/Network_Packet_Object.xsd +2948 -0
  45. data/config/1.0.1/stix/cybox/objects/Network_Route_Entry_Object.xsd +155 -0
  46. data/config/1.0.1/stix/cybox/objects/Network_Route_Object.xsd +93 -0
  47. data/config/1.0.1/stix/cybox/objects/Network_Socket_Object.xsd +524 -0
  48. data/config/1.0.1/stix/cybox/objects/Network_Subnet_Object.xsd +64 -0
  49. data/config/1.0.1/stix/cybox/objects/PDF_File_Object.xsd +601 -0
  50. data/config/1.0.1/stix/cybox/objects/Pipe_Object.xsd +40 -0
  51. data/config/1.0.1/stix/cybox/objects/Port_Object.xsd +74 -0
  52. data/config/1.0.1/stix/cybox/objects/Process_Object.xsd +197 -0
  53. data/config/1.0.1/stix/cybox/objects/Product_Object.xsd +60 -0
  54. data/config/1.0.1/stix/cybox/objects/Semaphore_Object.xsd +50 -0
  55. data/config/1.0.1/stix/cybox/objects/Socket_Address_Object.xsd +42 -0
  56. data/config/1.0.1/stix/cybox/objects/System_Object.xsd +409 -0
  57. data/config/1.0.1/stix/cybox/objects/URI_Object.xsd +62 -0
  58. data/config/1.0.1/stix/cybox/objects/Unix_File_Object.xsd +164 -0
  59. data/config/1.0.1/stix/cybox/objects/Unix_Network_Route_Entry_Object.xsd +56 -0
  60. data/config/1.0.1/stix/cybox/objects/Unix_Pipe_Object.xsd +36 -0
  61. data/config/1.0.1/stix/cybox/objects/Unix_Process_Object.xsd +143 -0
  62. data/config/1.0.1/stix/cybox/objects/Unix_User_Account_Object.xsd +78 -0
  63. data/config/1.0.1/stix/cybox/objects/Unix_Volume_Object.xsd +41 -0
  64. data/config/1.0.1/stix/cybox/objects/User_Account_Object.xsd +110 -0
  65. data/config/1.0.1/stix/cybox/objects/User_Session_Object.xsd +60 -0
  66. data/config/1.0.1/stix/cybox/objects/Volume_Object.xsd +235 -0
  67. data/config/1.0.1/stix/cybox/objects/Whois_Object.xsd +456 -0
  68. data/config/1.0.1/stix/cybox/objects/Win_Computer_Account_Object.xsd +135 -0
  69. data/config/1.0.1/stix/cybox/objects/Win_Critical_Section_Object.xsd +40 -0
  70. data/config/1.0.1/stix/cybox/objects/Win_Driver_Object.xsd +269 -0
  71. data/config/1.0.1/stix/cybox/objects/Win_Event_Log_Object.xsd +137 -0
  72. data/config/1.0.1/stix/cybox/objects/Win_Event_Object.xsd +80 -0
  73. data/config/1.0.1/stix/cybox/objects/Win_Executable_File_Object.xsd +1333 -0
  74. data/config/1.0.1/stix/cybox/objects/Win_File_Object.xsd +269 -0
  75. data/config/1.0.1/stix/cybox/objects/Win_Handle_Object.xsd +186 -0
  76. data/config/1.0.1/stix/cybox/objects/Win_Kernel_Hook_Object.xsd +109 -0
  77. data/config/1.0.1/stix/cybox/objects/Win_Kernel_Object.xsd +128 -0
  78. data/config/1.0.1/stix/cybox/objects/Win_Mailslot_Object.xsd +56 -0
  79. data/config/1.0.1/stix/cybox/objects/Win_Memory_Page_Region_Object.xsd +198 -0
  80. data/config/1.0.1/stix/cybox/objects/Win_Mutex_Object.xsd +42 -0
  81. data/config/1.0.1/stix/cybox/objects/Win_Network_Route_Entry_Object.xsd +200 -0
  82. data/config/1.0.1/stix/cybox/objects/Win_Network_Share_Object.xsd +205 -0
  83. data/config/1.0.1/stix/cybox/objects/Win_Pipe_Object.xsd +73 -0
  84. data/config/1.0.1/stix/cybox/objects/Win_Prefetch_Object.xsd +113 -0
  85. data/config/1.0.1/stix/cybox/objects/Win_Process_Object.xsd +167 -0
  86. data/config/1.0.1/stix/cybox/objects/Win_Registry_Key_Object.xsd +290 -0
  87. data/config/1.0.1/stix/cybox/objects/Win_Semaphore_Object.xsd +42 -0
  88. data/config/1.0.1/stix/cybox/objects/Win_Service_Object.xsd +287 -0
  89. data/config/1.0.1/stix/cybox/objects/Win_System_Object.xsd +126 -0
  90. data/config/1.0.1/stix/cybox/objects/Win_System_Restore_Object.xsd +199 -0
  91. data/config/1.0.1/stix/cybox/objects/Win_Task_Object.xsd +755 -0
  92. data/config/1.0.1/stix/cybox/objects/Win_Thread_Object.xsd +146 -0
  93. data/config/1.0.1/stix/cybox/objects/Win_User_Account_Object.xsd +73 -0
  94. data/config/1.0.1/stix/cybox/objects/Win_Volume_Object.xsd +161 -0
  95. data/config/1.0.1/stix/cybox/objects/Win_Waitable_Timer_Object.xsd +90 -0
  96. data/config/1.0.1/stix/cybox/objects/X509_Certificate_Object.xsd +270 -0
  97. data/config/1.0.1/stix/data_marking.xsd +92 -0
  98. data/config/1.0.1/stix/exploit_target.xsd +224 -0
  99. data/config/1.0.1/stix/extensions/address/ciq_address_3.0.xsd +27 -0
  100. data/config/1.0.1/stix/extensions/address/readme.txt +1 -0
  101. data/config/1.0.1/stix/extensions/attack_pattern/capec_2.6.1.xsd +31 -0
  102. data/config/1.0.1/stix/extensions/attack_pattern/readme.txt +1 -0
  103. data/config/1.0.1/stix/extensions/identity/ciq_identity_3.0.xsd +108 -0
  104. data/config/1.0.1/stix/extensions/identity/readme.txt +1 -0
  105. data/config/1.0.1/stix/extensions/malware/maec_4.0.1.xsd +31 -0
  106. data/config/1.0.1/stix/extensions/malware/readme.txt +1 -0
  107. data/config/1.0.1/stix/extensions/marking/simple_marking.xsd +30 -0
  108. data/config/1.0.1/stix/extensions/marking/tlp.xsd +39 -0
  109. data/config/1.0.1/stix/extensions/structured_coa/generic.xsd +46 -0
  110. data/config/1.0.1/stix/extensions/test_mechanism/generic.xsd +46 -0
  111. data/config/1.0.1/stix/extensions/test_mechanism/open_ioc_2010.xsd +32 -0
  112. data/config/1.0.1/stix/extensions/test_mechanism/oval_5.10.xsd +37 -0
  113. data/config/1.0.1/stix/extensions/test_mechanism/snort.xsd +36 -0
  114. data/config/1.0.1/stix/extensions/test_mechanism/yara.xsd +36 -0
  115. data/config/1.0.1/stix/extensions/vulnerability/cvrf_1.1.xsd +33 -0
  116. data/config/1.0.1/stix/extensions/vulnerability/readme.txt +1 -0
  117. data/config/1.0.1/stix/external/capec_2.6.1/ap_schema_v2.6.1.xsd +3618 -0
  118. data/config/1.0.1/stix/external/cvrf_1.1/common.xsd +176 -0
  119. data/config/1.0.1/stix/external/cvrf_1.1/cpe-language_2.2a.xsd +182 -0
  120. data/config/1.0.1/stix/external/cvrf_1.1/cvrf.xsd +487 -0
  121. data/config/1.0.1/stix/external/cvrf_1.1/cvss-v2_0.9.xsd +415 -0
  122. data/config/1.0.1/stix/external/cvrf_1.1/dc.xsd +118 -0
  123. data/config/1.0.1/stix/external/cvrf_1.1/prod.xsd +292 -0
  124. data/config/1.0.1/stix/external/cvrf_1.1/scap-core_0.9.xsd +170 -0
  125. data/config/1.0.1/stix/external/cvrf_1.1/vuln.xsd +631 -0
  126. data/config/1.0.1/stix/external/cvrf_1.1/xml.xsd +287 -0
  127. data/config/1.0.1/stix/external/maec_4.0.1/maec_bundle_schema.xsd +1139 -0
  128. data/config/1.0.1/stix/external/maec_4.0.1/maec_package_schema.xsd +938 -0
  129. data/config/1.0.1/stix/external/maec_4.0.1/metadataSharing.xsd +1712 -0
  130. data/config/1.0.1/stix/external/oasis_ciq_3.0/CommonTypes.xsd +104 -0
  131. data/config/1.0.1/stix/external/oasis_ciq_3.0/xAL-types.xsd +511 -0
  132. data/config/1.0.1/stix/external/oasis_ciq_3.0/xAL.xsd +672 -0
  133. data/config/1.0.1/stix/external/oasis_ciq_3.0/xNAL-types.xsd +36 -0
  134. data/config/1.0.1/stix/external/oasis_ciq_3.0/xNAL.xsd +126 -0
  135. data/config/1.0.1/stix/external/oasis_ciq_3.0/xNL-types.xsd +222 -0
  136. data/config/1.0.1/stix/external/oasis_ciq_3.0/xNL.xsd +284 -0
  137. data/config/1.0.1/stix/external/oasis_ciq_3.0/xPIL-types.xsd +854 -0
  138. data/config/1.0.1/stix/external/oasis_ciq_3.0/xPIL.xsd +1621 -0
  139. data/config/1.0.1/stix/external/oasis_ciq_3.0/xlink-2003-12-31.xsd +90 -0
  140. data/config/1.0.1/stix/external/open_ioc_2010/ioc-TR.xsd +25 -0
  141. data/config/1.0.1/stix/external/open_ioc_2010/ioc.xsd +105 -0
  142. data/config/1.0.1/stix/external/oval_5.10/oval-common-schema.xsd +781 -0
  143. data/config/1.0.1/stix/external/oval_5.10/oval-definitions-schema.xsd +1608 -0
  144. data/config/1.0.1/stix/external/oval_5.10/oval-variables-schema.xsd +84 -0
  145. data/config/1.0.1/stix/external/oval_5.10/xmldsig-core-schema.xsd +309 -0
  146. data/config/1.0.1/stix/incident.xsd +787 -0
  147. data/config/1.0.1/stix/indicator.xsd +310 -0
  148. data/config/1.0.1/stix/stix_common.xsd +762 -0
  149. data/config/1.0.1/stix/stix_core.xsd +218 -0
  150. data/config/1.0.1/stix/stix_default_vocabularies.xsd +1684 -0
  151. data/config/1.0.1/stix/threat_actor.xsd +174 -0
  152. data/config/1.0.1/stix/ttp.xsd +341 -0
  153. data/config/1.0/stix/campaign.xsd +209 -0
  154. data/config/1.0/stix/course_of_action.xsd +165 -0
  155. data/config/1.0/stix/cybox/cybox_common.xsd +2319 -0
  156. data/config/1.0/stix/cybox/cybox_core.xsd +1090 -0
  157. data/config/1.0/stix/cybox/cybox_default_vocabularies.xsd +3106 -0
  158. data/config/1.0/stix/cybox/extensions/platform/README.txt +1 -0
  159. data/config/1.0/stix/cybox/extensions/platform/cpe2.3.xsd +40 -0
  160. data/config/1.0/stix/cybox/objects/API_Object.xsd +55 -0
  161. data/config/1.0/stix/cybox/objects/Account_Object.xsd +50 -0
  162. data/config/1.0/stix/cybox/objects/Address_Object.xsd +122 -0
  163. data/config/1.0/stix/cybox/objects/Artifact_Object.xsd +206 -0
  164. data/config/1.0/stix/cybox/objects/Code_Object.xsd +417 -0
  165. data/config/1.0/stix/cybox/objects/Custom_Object.xsd +43 -0
  166. data/config/1.0/stix/cybox/objects/DNS_Cache_Object.xsd +53 -0
  167. data/config/1.0/stix/cybox/objects/DNS_Query_Object.xsd +159 -0
  168. data/config/1.0/stix/cybox/objects/DNS_Record_Object.xsd +87 -0
  169. data/config/1.0/stix/cybox/objects/Device_Object.xsd +55 -0
  170. data/config/1.0/stix/cybox/objects/Disk_Object.xsd +117 -0
  171. data/config/1.0/stix/cybox/objects/Disk_Partition_Object.xsd +199 -0
  172. data/config/1.0/stix/cybox/objects/Email_Message_Object.xsd +273 -0
  173. data/config/1.0/stix/cybox/objects/File_Object.xsd +359 -0
  174. data/config/1.0/stix/cybox/objects/GUI_Dialogbox_Object.xsd +41 -0
  175. data/config/1.0/stix/cybox/objects/GUI_Object.xsd +40 -0
  176. data/config/1.0/stix/cybox/objects/GUI_Window_Object.xsd +46 -0
  177. data/config/1.0/stix/cybox/objects/HTTP_Session_Object.xsd +623 -0
  178. data/config/1.0/stix/cybox/objects/Library_Object.xsd +114 -0
  179. data/config/1.0/stix/cybox/objects/Link_Object.xsd +24 -0
  180. data/config/1.0/stix/cybox/objects/Linux_Package_Object.xsd +119 -0
  181. data/config/1.0/stix/cybox/objects/Memory_Object.xsd +70 -0
  182. data/config/1.0/stix/cybox/objects/Mutex_Object.xsd +40 -0
  183. data/config/1.0/stix/cybox/objects/Network_Connection_Object.xsd +609 -0
  184. data/config/1.0/stix/cybox/objects/Network_Flow_Object.xsd +1559 -0
  185. data/config/1.0/stix/cybox/objects/Network_Packet_Object.xsd +2948 -0
  186. data/config/1.0/stix/cybox/objects/Network_Route_Entry_Object.xsd +155 -0
  187. data/config/1.0/stix/cybox/objects/Network_Route_Object.xsd +93 -0
  188. data/config/1.0/stix/cybox/objects/Network_Socket_Object.xsd +524 -0
  189. data/config/1.0/stix/cybox/objects/Network_Subnet_Object.xsd +64 -0
  190. data/config/1.0/stix/cybox/objects/PDF_File_Object.xsd +601 -0
  191. data/config/1.0/stix/cybox/objects/Pipe_Object.xsd +40 -0
  192. data/config/1.0/stix/cybox/objects/Port_Object.xsd +74 -0
  193. data/config/1.0/stix/cybox/objects/Process_Object.xsd +197 -0
  194. data/config/1.0/stix/cybox/objects/Product_Object.xsd +60 -0
  195. data/config/1.0/stix/cybox/objects/Semaphore_Object.xsd +50 -0
  196. data/config/1.0/stix/cybox/objects/Socket_Address_Object.xsd +42 -0
  197. data/config/1.0/stix/cybox/objects/System_Object.xsd +409 -0
  198. data/config/1.0/stix/cybox/objects/URI_Object.xsd +62 -0
  199. data/config/1.0/stix/cybox/objects/Unix_File_Object.xsd +164 -0
  200. data/config/1.0/stix/cybox/objects/Unix_Network_Route_Entry_Object.xsd +56 -0
  201. data/config/1.0/stix/cybox/objects/Unix_Pipe_Object.xsd +36 -0
  202. data/config/1.0/stix/cybox/objects/Unix_Process_Object.xsd +143 -0
  203. data/config/1.0/stix/cybox/objects/Unix_User_Account_Object.xsd +78 -0
  204. data/config/1.0/stix/cybox/objects/Unix_Volume_Object.xsd +41 -0
  205. data/config/1.0/stix/cybox/objects/User_Account_Object.xsd +110 -0
  206. data/config/1.0/stix/cybox/objects/User_Session_Object.xsd +60 -0
  207. data/config/1.0/stix/cybox/objects/Volume_Object.xsd +235 -0
  208. data/config/1.0/stix/cybox/objects/Whois_Object.xsd +456 -0
  209. data/config/1.0/stix/cybox/objects/Win_Computer_Account_Object.xsd +135 -0
  210. data/config/1.0/stix/cybox/objects/Win_Critical_Section_Object.xsd +40 -0
  211. data/config/1.0/stix/cybox/objects/Win_Driver_Object.xsd +269 -0
  212. data/config/1.0/stix/cybox/objects/Win_Event_Log_Object.xsd +137 -0
  213. data/config/1.0/stix/cybox/objects/Win_Event_Object.xsd +80 -0
  214. data/config/1.0/stix/cybox/objects/Win_Executable_File_Object.xsd +1333 -0
  215. data/config/1.0/stix/cybox/objects/Win_File_Object.xsd +269 -0
  216. data/config/1.0/stix/cybox/objects/Win_Handle_Object.xsd +186 -0
  217. data/config/1.0/stix/cybox/objects/Win_Kernel_Hook_Object.xsd +109 -0
  218. data/config/1.0/stix/cybox/objects/Win_Kernel_Object.xsd +128 -0
  219. data/config/1.0/stix/cybox/objects/Win_Mailslot_Object.xsd +56 -0
  220. data/config/1.0/stix/cybox/objects/Win_Memory_Page_Region_Object.xsd +198 -0
  221. data/config/1.0/stix/cybox/objects/Win_Mutex_Object.xsd +42 -0
  222. data/config/1.0/stix/cybox/objects/Win_Network_Route_Entry_Object.xsd +200 -0
  223. data/config/1.0/stix/cybox/objects/Win_Network_Share_Object.xsd +205 -0
  224. data/config/1.0/stix/cybox/objects/Win_Pipe_Object.xsd +73 -0
  225. data/config/1.0/stix/cybox/objects/Win_Prefetch_Object.xsd +113 -0
  226. data/config/1.0/stix/cybox/objects/Win_Process_Object.xsd +167 -0
  227. data/config/1.0/stix/cybox/objects/Win_Registry_Key_Object.xsd +290 -0
  228. data/config/1.0/stix/cybox/objects/Win_Semaphore_Object.xsd +42 -0
  229. data/config/1.0/stix/cybox/objects/Win_Service_Object.xsd +287 -0
  230. data/config/1.0/stix/cybox/objects/Win_System_Object.xsd +126 -0
  231. data/config/1.0/stix/cybox/objects/Win_System_Restore_Object.xsd +199 -0
  232. data/config/1.0/stix/cybox/objects/Win_Task_Object.xsd +755 -0
  233. data/config/1.0/stix/cybox/objects/Win_Thread_Object.xsd +146 -0
  234. data/config/1.0/stix/cybox/objects/Win_User_Account_Object.xsd +73 -0
  235. data/config/1.0/stix/cybox/objects/Win_Volume_Object.xsd +161 -0
  236. data/config/1.0/stix/cybox/objects/Win_Waitable_Timer_Object.xsd +90 -0
  237. data/config/1.0/stix/cybox/objects/X509_Certificate_Object.xsd +270 -0
  238. data/config/1.0/stix/data_marking.xsd +92 -0
  239. data/config/1.0/stix/exploit_target.xsd +223 -0
  240. data/config/1.0/stix/extensions/address/ciq_address_3.0.xsd +27 -0
  241. data/config/1.0/stix/extensions/address/readme.txt +1 -0
  242. data/config/1.0/stix/extensions/attack_pattern/capec_2.5.xsd +31 -0
  243. data/config/1.0/stix/extensions/identity/ciq_identity_3.0.xsd +108 -0
  244. data/config/1.0/stix/extensions/identity/readme.txt +1 -0
  245. data/config/1.0/stix/extensions/malware/maec_4.0.xsd +32 -0
  246. data/config/1.0/stix/extensions/malware/readme.txt +3 -0
  247. data/config/1.0/stix/extensions/marking/simple_marking.xsd +30 -0
  248. data/config/1.0/stix/extensions/marking/tlp.xsd +39 -0
  249. data/config/1.0/stix/extensions/structured_coa/generic.xsd +46 -0
  250. data/config/1.0/stix/extensions/test_mechanism/generic.xsd +46 -0
  251. data/config/1.0/stix/extensions/test_mechanism/open_ioc_2010.xsd +32 -0
  252. data/config/1.0/stix/extensions/test_mechanism/oval_5.10.xsd +37 -0
  253. data/config/1.0/stix/extensions/test_mechanism/snort.xsd +36 -0
  254. data/config/1.0/stix/extensions/test_mechanism/yara.xsd +36 -0
  255. data/config/1.0/stix/extensions/vulnerability/cvrf_1.1.xsd +33 -0
  256. data/config/1.0/stix/extensions/vulnerability/readme.txt +1 -0
  257. data/config/1.0/stix/external/capec_2.5/ap_schema_v2.5.xsd +2671 -0
  258. data/config/1.0/stix/external/cvrf_1.1/common.xsd +176 -0
  259. data/config/1.0/stix/external/cvrf_1.1/cpe-language_2.2a.xsd +182 -0
  260. data/config/1.0/stix/external/cvrf_1.1/cvrf.xsd +487 -0
  261. data/config/1.0/stix/external/cvrf_1.1/cvss-v2_0.9.xsd +415 -0
  262. data/config/1.0/stix/external/cvrf_1.1/dc.xsd +118 -0
  263. data/config/1.0/stix/external/cvrf_1.1/prod.xsd +292 -0
  264. data/config/1.0/stix/external/cvrf_1.1/scap-core_0.9.xsd +170 -0
  265. data/config/1.0/stix/external/cvrf_1.1/vuln.xsd +631 -0
  266. data/config/1.0/stix/external/cvrf_1.1/xml.xsd +287 -0
  267. data/config/1.0/stix/external/oasis_ciq_3.0/CommonTypes.xsd +104 -0
  268. data/config/1.0/stix/external/oasis_ciq_3.0/xAL-types.xsd +511 -0
  269. data/config/1.0/stix/external/oasis_ciq_3.0/xAL.xsd +672 -0
  270. data/config/1.0/stix/external/oasis_ciq_3.0/xNAL-types.xsd +36 -0
  271. data/config/1.0/stix/external/oasis_ciq_3.0/xNAL.xsd +126 -0
  272. data/config/1.0/stix/external/oasis_ciq_3.0/xNL-types.xsd +222 -0
  273. data/config/1.0/stix/external/oasis_ciq_3.0/xNL.xsd +284 -0
  274. data/config/1.0/stix/external/oasis_ciq_3.0/xPIL-types.xsd +854 -0
  275. data/config/1.0/stix/external/oasis_ciq_3.0/xPIL.xsd +1621 -0
  276. data/config/1.0/stix/external/oasis_ciq_3.0/xlink-2003-12-31.xsd +90 -0
  277. data/config/1.0/stix/external/open_ioc_2010/ioc-TR.xsd +25 -0
  278. data/config/1.0/stix/external/open_ioc_2010/ioc.xsd +105 -0
  279. data/config/1.0/stix/external/oval_5.10/oval-common-schema.xsd +781 -0
  280. data/config/1.0/stix/external/oval_5.10/oval-definitions-schema.xsd +1608 -0
  281. data/config/1.0/stix/external/oval_5.10/oval-variables-schema.xsd +84 -0
  282. data/config/1.0/stix/external/oval_5.10/xmldsig-core-schema.xsd +309 -0
  283. data/config/1.0/stix/incident.xsd +786 -0
  284. data/config/1.0/stix/indicator.xsd +309 -0
  285. data/config/1.0/stix/stix_common.xsd +762 -0
  286. data/config/1.0/stix/stix_core.xsd +217 -0
  287. data/config/1.0/stix/stix_default_vocabularies.xsd +1578 -0
  288. data/config/1.0/stix/threat_actor.xsd +173 -0
  289. data/config/1.0/stix/ttp.xsd +340 -0
  290. data/config/1.1/stix/campaign.xsd +223 -0
  291. data/config/1.1/stix/course_of_action.xsd +190 -0
  292. data/config/1.1/stix/cybox/cybox_common.xsd +2700 -0
  293. data/config/1.1/stix/cybox/cybox_core.xsd +1145 -0
  294. data/config/1.1/stix/cybox/cybox_default_vocabularies.xsd +5180 -0
  295. data/config/1.1/stix/cybox/extensions/location/ciq_address_3.0.xsd +27 -0
  296. data/config/1.1/stix/cybox/extensions/platform/README.txt +1 -0
  297. data/config/1.1/stix/cybox/extensions/platform/cpe2.3.xsd +34 -0
  298. data/config/1.1/stix/cybox/external/cpe_2.3/cpe-language_2.3.xsd +234 -0
  299. data/config/1.1/stix/cybox/external/cpe_2.3/cpe-naming_2.3.xsd +45 -0
  300. data/config/1.1/stix/cybox/external/cpe_2.3/xml.xsd +145 -0
  301. data/config/1.1/stix/cybox/external/oasis_ciq_3.0/CommonTypes.xsd +104 -0
  302. data/config/1.1/stix/cybox/external/oasis_ciq_3.0/xAL-types.xsd +511 -0
  303. data/config/1.1/stix/cybox/external/oasis_ciq_3.0/xAL.xsd +672 -0
  304. data/config/1.1/stix/cybox/external/oasis_ciq_3.0/xNAL-types.xsd +36 -0
  305. data/config/1.1/stix/cybox/external/oasis_ciq_3.0/xNAL.xsd +126 -0
  306. data/config/1.1/stix/cybox/external/oasis_ciq_3.0/xNL-types.xsd +222 -0
  307. data/config/1.1/stix/cybox/external/oasis_ciq_3.0/xNL.xsd +284 -0
  308. data/config/1.1/stix/cybox/external/oasis_ciq_3.0/xPIL-types.xsd +854 -0
  309. data/config/1.1/stix/cybox/external/oasis_ciq_3.0/xPIL.xsd +1621 -0
  310. data/config/1.1/stix/cybox/external/oasis_ciq_3.0/xlink-2003-12-31.xsd +90 -0
  311. data/config/1.1/stix/cybox/objects/API_Object.xsd +55 -0
  312. data/config/1.1/stix/cybox/objects/ARP_Cache_Object.xsd +98 -0
  313. data/config/1.1/stix/cybox/objects/AS_Object.xsd +50 -0
  314. data/config/1.1/stix/cybox/objects/Account_Object.xsd +501 -0
  315. data/config/1.1/stix/cybox/objects/Address_Object.xsd +127 -0
  316. data/config/1.1/stix/cybox/objects/Archive_File_Object.xsd +134 -0
  317. data/config/1.1/stix/cybox/objects/Artifact_Object.xsd +212 -0
  318. data/config/1.1/stix/cybox/objects/Code_Object.xsd +417 -0
  319. data/config/1.1/stix/cybox/objects/Custom_Object.xsd +42 -0
  320. data/config/1.1/stix/cybox/objects/DNS_Cache_Object.xsd +53 -0
  321. data/config/1.1/stix/cybox/objects/DNS_Query_Object.xsd +164 -0
  322. data/config/1.1/stix/cybox/objects/DNS_Record_Object.xsd +92 -0
  323. data/config/1.1/stix/cybox/objects/Device_Object.xsd +65 -0
  324. data/config/1.1/stix/cybox/objects/Disk_Object.xsd +117 -0
  325. data/config/1.1/stix/cybox/objects/Disk_Partition_Object.xsd +199 -0
  326. data/config/1.1/stix/cybox/objects/Domain_Name_Object.xsd +57 -0
  327. data/config/1.1/stix/cybox/objects/Email_Message_Object.xsd +278 -0
  328. data/config/1.1/stix/cybox/objects/File_Object.xsd +397 -0
  329. data/config/1.1/stix/cybox/objects/GUI_Dialogbox_Object.xsd +41 -0
  330. data/config/1.1/stix/cybox/objects/GUI_Object.xsd +40 -0
  331. data/config/1.1/stix/cybox/objects/GUI_Window_Object.xsd +46 -0
  332. data/config/1.1/stix/cybox/objects/HTTP_Session_Object.xsd +633 -0
  333. data/config/1.1/stix/cybox/objects/Hostname_Object.xsd +45 -0
  334. data/config/1.1/stix/cybox/objects/Image_File_Object.xsd +124 -0
  335. data/config/1.1/stix/cybox/objects/Library_Object.xsd +114 -0
  336. data/config/1.1/stix/cybox/objects/Link_Object.xsd +36 -0
  337. data/config/1.1/stix/cybox/objects/Linux_Package_Object.xsd +75 -0
  338. data/config/1.1/stix/cybox/objects/Memory_Object.xsd +141 -0
  339. data/config/1.1/stix/cybox/objects/Mutex_Object.xsd +40 -0
  340. data/config/1.1/stix/cybox/objects/Network_Connection_Object.xsd +540 -0
  341. data/config/1.1/stix/cybox/objects/Network_Flow_Object.xsd +1559 -0
  342. data/config/1.1/stix/cybox/objects/Network_Packet_Object.xsd +2934 -0
  343. data/config/1.1/stix/cybox/objects/Network_Route_Entry_Object.xsd +155 -0
  344. data/config/1.1/stix/cybox/objects/Network_Route_Object.xsd +93 -0
  345. data/config/1.1/stix/cybox/objects/Network_Socket_Object.xsd +529 -0
  346. data/config/1.1/stix/cybox/objects/Network_Subnet_Object.xsd +64 -0
  347. data/config/1.1/stix/cybox/objects/PDF_File_Object.xsd +595 -0
  348. data/config/1.1/stix/cybox/objects/Pipe_Object.xsd +40 -0
  349. data/config/1.1/stix/cybox/objects/Port_Object.xsd +40 -0
  350. data/config/1.1/stix/cybox/objects/Process_Object.xsd +199 -0
  351. data/config/1.1/stix/cybox/objects/Product_Object.xsd +65 -0
  352. data/config/1.1/stix/cybox/objects/SMS_Message_Object.xsd +79 -0
  353. data/config/1.1/stix/cybox/objects/Semaphore_Object.xsd +50 -0
  354. data/config/1.1/stix/cybox/objects/Socket_Address_Object.xsd +50 -0
  355. data/config/1.1/stix/cybox/objects/System_Object.xsd +410 -0
  356. data/config/1.1/stix/cybox/objects/URI_Object.xsd +62 -0
  357. data/config/1.1/stix/cybox/objects/URL_History_Object.xsd +104 -0
  358. data/config/1.1/stix/cybox/objects/Unix_File_Object.xsd +164 -0
  359. data/config/1.1/stix/cybox/objects/Unix_Network_Route_Entry_Object.xsd +56 -0
  360. data/config/1.1/stix/cybox/objects/Unix_Pipe_Object.xsd +36 -0
  361. data/config/1.1/stix/cybox/objects/Unix_Process_Object.xsd +143 -0
  362. data/config/1.1/stix/cybox/objects/Unix_User_Account_Object.xsd +78 -0
  363. data/config/1.1/stix/cybox/objects/Unix_Volume_Object.xsd +41 -0
  364. data/config/1.1/stix/cybox/objects/User_Account_Object.xsd +110 -0
  365. data/config/1.1/stix/cybox/objects/User_Session_Object.xsd +60 -0
  366. data/config/1.1/stix/cybox/objects/Volume_Object.xsd +235 -0
  367. data/config/1.1/stix/cybox/objects/Whois_Object.xsd +430 -0
  368. data/config/1.1/stix/cybox/objects/Win_Computer_Account_Object.xsd +135 -0
  369. data/config/1.1/stix/cybox/objects/Win_Critical_Section_Object.xsd +40 -0
  370. data/config/1.1/stix/cybox/objects/Win_Driver_Object.xsd +270 -0
  371. data/config/1.1/stix/cybox/objects/Win_Event_Log_Object.xsd +137 -0
  372. data/config/1.1/stix/cybox/objects/Win_Event_Object.xsd +80 -0
  373. data/config/1.1/stix/cybox/objects/Win_Executable_File_Object.xsd +1311 -0
  374. data/config/1.1/stix/cybox/objects/Win_File_Object.xsd +269 -0
  375. data/config/1.1/stix/cybox/objects/Win_Filemapping_Object.xsd +175 -0
  376. data/config/1.1/stix/cybox/objects/Win_Handle_Object.xsd +351 -0
  377. data/config/1.1/stix/cybox/objects/Win_Hook_Object.xsd +152 -0
  378. data/config/1.1/stix/cybox/objects/Win_Kernel_Hook_Object.xsd +109 -0
  379. data/config/1.1/stix/cybox/objects/Win_Kernel_Object.xsd +128 -0
  380. data/config/1.1/stix/cybox/objects/Win_Mailslot_Object.xsd +56 -0
  381. data/config/1.1/stix/cybox/objects/Win_Memory_Page_Region_Object.xsd +198 -0
  382. data/config/1.1/stix/cybox/objects/Win_Mutex_Object.xsd +42 -0
  383. data/config/1.1/stix/cybox/objects/Win_Network_Route_Entry_Object.xsd +200 -0
  384. data/config/1.1/stix/cybox/objects/Win_Network_Share_Object.xsd +205 -0
  385. data/config/1.1/stix/cybox/objects/Win_Pipe_Object.xsd +73 -0
  386. data/config/1.1/stix/cybox/objects/Win_Prefetch_Object.xsd +113 -0
  387. data/config/1.1/stix/cybox/objects/Win_Process_Object.xsd +174 -0
  388. data/config/1.1/stix/cybox/objects/Win_Registry_Key_Object.xsd +290 -0
  389. data/config/1.1/stix/cybox/objects/Win_Semaphore_Object.xsd +42 -0
  390. data/config/1.1/stix/cybox/objects/Win_Service_Object.xsd +287 -0
  391. data/config/1.1/stix/cybox/objects/Win_System_Object.xsd +126 -0
  392. data/config/1.1/stix/cybox/objects/Win_System_Restore_Object.xsd +207 -0
  393. data/config/1.1/stix/cybox/objects/Win_Task_Object.xsd +755 -0
  394. data/config/1.1/stix/cybox/objects/Win_Thread_Object.xsd +146 -0
  395. data/config/1.1/stix/cybox/objects/Win_User_Account_Object.xsd +73 -0
  396. data/config/1.1/stix/cybox/objects/Win_Volume_Object.xsd +161 -0
  397. data/config/1.1/stix/cybox/objects/Win_Waitable_Timer_Object.xsd +90 -0
  398. data/config/1.1/stix/cybox/objects/X509_Certificate_Object.xsd +275 -0
  399. data/config/1.1/stix/data_marking.xsd +96 -0
  400. data/config/1.1/stix/exploit_target.xsd +323 -0
  401. data/config/1.1/stix/extensions/address/ciq_3.0_address.xsd +27 -0
  402. data/config/1.1/stix/extensions/address/readme.txt +1 -0
  403. data/config/1.1/stix/extensions/attack_pattern/capec_2.7_attack_pattern.xsd +31 -0
  404. data/config/1.1/stix/extensions/attack_pattern/readme.txt +1 -0
  405. data/config/1.1/stix/extensions/identity/ciq_3.0_identity.xsd +113 -0
  406. data/config/1.1/stix/extensions/identity/readme.txt +1 -0
  407. data/config/1.1/stix/extensions/malware/maec_4.1_malware.xsd +31 -0
  408. data/config/1.1/stix/extensions/malware/readme.txt +1 -0
  409. data/config/1.1/stix/extensions/marking/simple_marking.xsd +31 -0
  410. data/config/1.1/stix/extensions/marking/terms_of_use_marking.xsd +31 -0
  411. data/config/1.1/stix/extensions/marking/tlp_marking.xsd +40 -0
  412. data/config/1.1/stix/extensions/structured_coa/generic_structured_coa.xsd +46 -0
  413. data/config/1.1/stix/extensions/test_mechanism/generic_test_mechanism.xsd +46 -0
  414. data/config/1.1/stix/extensions/test_mechanism/open_ioc_2010_test_mechanism.xsd +32 -0
  415. data/config/1.1/stix/extensions/test_mechanism/oval_5.10_test_mechanism.xsd +37 -0
  416. data/config/1.1/stix/extensions/test_mechanism/snort_test_mechanism.xsd +56 -0
  417. data/config/1.1/stix/extensions/test_mechanism/yara_test_mechanism.xsd +36 -0
  418. data/config/1.1/stix/extensions/vulnerability/cvrf_1.1_vulnerability.xsd +33 -0
  419. data/config/1.1/stix/extensions/vulnerability/readme.txt +1 -0
  420. data/config/1.1/stix/external/capec_2.7/ap_schema_v2.7.xsd +3618 -0
  421. data/config/1.1/stix/external/cvrf_1.1/common.xsd +176 -0
  422. data/config/1.1/stix/external/cvrf_1.1/cpe-language_2.2a.xsd +182 -0
  423. data/config/1.1/stix/external/cvrf_1.1/cvrf.xsd +487 -0
  424. data/config/1.1/stix/external/cvrf_1.1/cvss-v2_0.9.xsd +415 -0
  425. data/config/1.1/stix/external/cvrf_1.1/dc.xsd +118 -0
  426. data/config/1.1/stix/external/cvrf_1.1/prod.xsd +292 -0
  427. data/config/1.1/stix/external/cvrf_1.1/scap-core_0.9.xsd +170 -0
  428. data/config/1.1/stix/external/cvrf_1.1/vuln.xsd +631 -0
  429. data/config/1.1/stix/external/cvrf_1.1/xml.xsd +287 -0
  430. data/config/1.1/stix/external/maec_4.1/maec_bundle_schema.xsd +1228 -0
  431. data/config/1.1/stix/external/maec_4.1/maec_container_schema.xsd +62 -0
  432. data/config/1.1/stix/external/maec_4.1/maec_default_vocabularies.xsd +5325 -0
  433. data/config/1.1/stix/external/maec_4.1/maec_package_schema.xsd +1095 -0
  434. data/config/1.1/stix/external/maec_4.1/metadataSharing.xsd +1712 -0
  435. data/config/1.1/stix/external/oasis_ciq_3.0/CommonTypes.xsd +104 -0
  436. data/config/1.1/stix/external/oasis_ciq_3.0/xAL-types.xsd +511 -0
  437. data/config/1.1/stix/external/oasis_ciq_3.0/xAL.xsd +672 -0
  438. data/config/1.1/stix/external/oasis_ciq_3.0/xNAL-types.xsd +36 -0
  439. data/config/1.1/stix/external/oasis_ciq_3.0/xNAL.xsd +126 -0
  440. data/config/1.1/stix/external/oasis_ciq_3.0/xNL-types.xsd +222 -0
  441. data/config/1.1/stix/external/oasis_ciq_3.0/xNL.xsd +284 -0
  442. data/config/1.1/stix/external/oasis_ciq_3.0/xPIL-types.xsd +854 -0
  443. data/config/1.1/stix/external/oasis_ciq_3.0/xPIL.xsd +1621 -0
  444. data/config/1.1/stix/external/oasis_ciq_3.0/xlink-2003-12-31.xsd +90 -0
  445. data/config/1.1/stix/external/open_ioc_2010/ioc-TR.xsd +25 -0
  446. data/config/1.1/stix/external/open_ioc_2010/ioc.xsd +105 -0
  447. data/config/1.1/stix/external/oval_5.10/oval-common-schema.xsd +781 -0
  448. data/config/1.1/stix/external/oval_5.10/oval-definitions-schema.xsd +1608 -0
  449. data/config/1.1/stix/external/oval_5.10/oval-variables-schema.xsd +84 -0
  450. data/config/1.1/stix/external/oval_5.10/xmldsig-core-schema.xsd +309 -0
  451. data/config/1.1/stix/incident.xsd +759 -0
  452. data/config/1.1/stix/indicator.xsd +367 -0
  453. data/config/1.1/stix/stix_common.xsd +932 -0
  454. data/config/1.1/stix/stix_core.xsd +253 -0
  455. data/config/1.1/stix/stix_default_vocabularies.xsd +2015 -0
  456. data/config/1.1/stix/threat_actor.xsd +181 -0
  457. data/config/1.1/stix/ttp.xsd +429 -0
  458. data/config/1.1/uber_schema.xsd +149 -0
  459. data/config/mappings.json +30 -0
  460. data/lib/stix_schema_spy.rb +18 -0
  461. data/lib/stix_schema_spy/models/attribute.rb +20 -0
  462. data/lib/stix_schema_spy/models/complex_type.rb +50 -0
  463. data/lib/stix_schema_spy/models/element.rb +26 -0
  464. data/lib/stix_schema_spy/models/external_type.rb +48 -0
  465. data/lib/stix_schema_spy/models/has_children.rb +83 -0
  466. data/lib/stix_schema_spy/models/node.rb +71 -0
  467. data/lib/stix_schema_spy/models/schema.rb +217 -0
  468. data/lib/stix_schema_spy/models/simple_type.rb +47 -0
  469. data/lib/stix_schema_spy/models/special_field.rb +21 -0
  470. data/lib/stix_schema_spy/models/type.rb +106 -0
  471. data/lib/stix_schema_spy/util/schema_naming.rb +106 -0
  472. data/lib/stix_schema_spy/util/tasks.rb +69 -0
  473. data/lib/stix_schema_spy/version.rb +3 -0
  474. data/spec/lib/schema_naming_spec.rb +190 -0
  475. data/spec/models/complex_type_spec.rb +68 -0
  476. data/spec/models/node_spec.rb +47 -0
  477. data/spec/models/schema_spec.rb +63 -0
  478. data/spec/models/simple_type_spec.rb +38 -0
  479. data/spec/models/type_spec.rb +43 -0
  480. data/spec/spec_helper.rb +8 -0
  481. data/stix_schema_spy.gemspec +27 -0
  482. metadata +602 -0
@@ -0,0 +1 @@
1
+ The PlatformSpecificationType, defined in the CybOX common schema, provides a way to provide a prose description of a platform as well as any number of platform identification values. If one wishes to provide a more structured description of a platform, they can define types that extend PlatformSpecificationType. These types would be indicated using an xsi:Type attribute in the relevant element in CybOX content. This directory provides CybOX default extensions to PlatformSpecificationType to support structured description of platforms.
@@ -0,0 +1,234 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cpe="http://cpe.mitre.org/language/2.0"
3
+ xmlns:cpe-name="http://cpe.mitre.org/naming/2.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron"
4
+ targetNamespace="http://cpe.mitre.org/language/2.0" elementFormDefault="qualified"
5
+ attributeFormDefault="unqualified" version="2.3">
6
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
7
+ <xsd:import namespace="http://cpe.mitre.org/naming/2.0" schemaLocation="cpe-naming_2.3.xsd"/>
8
+ <xsd:annotation>
9
+ <xsd:documentation xml:lang="en">This XML Schema defines the CPE Applicability Language. An individual CPE Name
10
+ addresses a single part of an actual system. To identify more complex platform types, there needs to be a
11
+ way to combine different CPE Names using logical operators. For example, there may be a need to identify a
12
+ platform with a particular operating system AND a certain application. The CPE Applicability Language exists
13
+ to satisfy this need, enabling the CPE Name for the operating system to be combined with the CPE Name for
14
+ the application. For more information, consult the CPE Applicability Language Specification document. </xsd:documentation>
15
+ <xsd:appinfo>
16
+ <schema>CPE Applicability Language</schema>
17
+ <author>Neal Ziring, Andrew Buttner, David Waltermire</author>
18
+ <version>2.3</version>
19
+ <date>2011-07-29</date>
20
+ </xsd:appinfo>
21
+ <xsd:appinfo>
22
+ <!-- Declare the namespaces for schematron -->
23
+ <sch:ns prefix="cpe" uri="http://cpe.mitre.org/language/2.0"/>
24
+ </xsd:appinfo>
25
+ </xsd:annotation>
26
+
27
+ <!-- =============================================================================== -->
28
+ <!-- =============================================================================== -->
29
+ <!-- =============================================================================== -->
30
+ <xsd:element name="platform-specification" type="cpe:platformSpecificationType">
31
+ <xsd:annotation>
32
+ <xsd:documentation xml:lang="en">This element is the root element of a CPE Applicability Language XML
33
+ document and therefore acts as a container for child platform definitions.</xsd:documentation>
34
+ </xsd:annotation>
35
+ <xsd:key name="platformKey">
36
+ <xsd:selector xpath="cpe:platform"/>
37
+ <xsd:field xpath="@id"/>
38
+ </xsd:key>
39
+ </xsd:element>
40
+
41
+ <xsd:element name="platform" type="cpe:PlatformType"/>
42
+ <xsd:element name="platform-configuration" type="cpe:PlatformBaseType"/>
43
+
44
+ <xsd:element name="logical-test" type="cpe:LogicalTestType">
45
+ <xsd:annotation>
46
+ <xsd:appinfo>
47
+ <sch:pattern id="nonexistent-child">
48
+ <sch:rule context="cpe:logical-test">
49
+ <sch:assert
50
+ test="count(cpe:logical-test) > 0 or count(cpe:fact-ref) > 0 or count(cpe:check-fact-ref) > 0"
51
+ >All logical-test elements must contain one or more child logical-test, fact-ref, and/or
52
+ check-fact-ref elements.</sch:assert>
53
+ </sch:rule>
54
+ </sch:pattern>
55
+ </xsd:appinfo>
56
+ </xsd:annotation>
57
+ </xsd:element>
58
+
59
+ <xsd:element name="fact-ref" type="cpe:CPEFactRefType"/>
60
+ <xsd:element name="check-fact-ref" type="cpe:CheckFactRefType"/>
61
+
62
+ <!-- =============================================================================== -->
63
+ <!-- =========================== PLATFORM SPECIFICATION ============================ -->
64
+ <!-- =============================================================================== -->
65
+ <xsd:complexType name="platformSpecificationType">
66
+ <xsd:sequence>
67
+ <xsd:element ref="cpe:platform" minOccurs="1" maxOccurs="unbounded"/>
68
+ </xsd:sequence>
69
+ </xsd:complexType>
70
+
71
+ <!-- =============================================================================== -->
72
+ <!-- ================================== PLATFORM ================================= -->
73
+ <!-- =============================================================================== -->
74
+ <xsd:complexType name="PlatformBaseType">
75
+ <xsd:annotation>
76
+ <xsd:documentation xml:lang="en">The description or qualifications of a particular IT platform type. The
77
+ platform is defined by the logical-test child element.</xsd:documentation>
78
+ </xsd:annotation>
79
+ <xsd:sequence>
80
+ <xsd:element name="title" type="cpe:TextType" minOccurs="0" maxOccurs="unbounded">
81
+ <xsd:annotation>
82
+ <xsd:documentation xml:lang="en">A human-readable title for a platform. To support uses intended for
83
+ multiple languages, the title element supports the ‘xml:lang’ attribute. At most one title
84
+ element can appear for each language.</xsd:documentation>
85
+ </xsd:annotation>
86
+ </xsd:element>
87
+ <xsd:element name="remark" type="cpe:TextType" minOccurs="0" maxOccurs="unbounded">
88
+ <xsd:annotation>
89
+ <xsd:documentation xml:lang="en">An additional description. To support uses intended for multiple
90
+ languages, the remark element supports the ‘xml:lang’ attribute. There can be multiple remarks
91
+ for a single language.</xsd:documentation>
92
+ </xsd:annotation>
93
+ </xsd:element>
94
+ <xsd:element ref="cpe:logical-test" minOccurs="1" maxOccurs="1">
95
+ <xsd:annotation>
96
+ <xsd:documentation xml:lang="en">Definition of test using logical operators (AND, OR,
97
+ negate).</xsd:documentation>
98
+ </xsd:annotation>
99
+ </xsd:element>
100
+ </xsd:sequence>
101
+ </xsd:complexType>
102
+ <xsd:complexType name="PlatformType">
103
+ <xsd:complexContent>
104
+ <xsd:extension base="cpe:PlatformBaseType">
105
+ <xsd:attribute name="id" type="xsd:anyURI" use="required">
106
+ <xsd:annotation>
107
+ <xsd:documentation xml:lang="en">A locally unique name for the platform. There is no defined
108
+ format for this id; however, it must be unique within the containing CPE Applicability
109
+ Language document.</xsd:documentation>
110
+ </xsd:annotation>
111
+ </xsd:attribute>
112
+ </xsd:extension>
113
+ </xsd:complexContent>
114
+ </xsd:complexType>
115
+ <xsd:complexType name="LogicalTestType">
116
+ <xsd:annotation>
117
+ <xsd:documentation xml:lang="en">The logical-test element appears as a child of a platform element, and may
118
+ also be nested to create more complex logical tests. The content consists of one or more elements:
119
+ fact-ref, check-fact-ref, and logical-test children are permitted. The operator to be applied, and
120
+ optional negation of the test, are given as attributes.</xsd:documentation>
121
+ </xsd:annotation>
122
+ <xsd:sequence>
123
+ <xsd:element name="logical-test" type="cpe:LogicalTestType" minOccurs="0" maxOccurs="unbounded">
124
+ <xsd:annotation>
125
+ <xsd:documentation xml:lang="en">Definition of complex logical test using AND, OR, and/or negate
126
+ operators. Evaluates to a TRUE, FALSE, or ERROR result. </xsd:documentation>
127
+ </xsd:annotation>
128
+ </xsd:element>
129
+ <xsd:element ref="cpe:fact-ref" minOccurs="0" maxOccurs="unbounded">
130
+ <xsd:annotation>
131
+ <xsd:documentation xml:lang="en">A reference to a bound form of a WFN; the reference always
132
+ evaluates to a boolean result. The bound name contained within a fact-ref is meant to describe a
133
+ possible set of products and is not meant to identify a unique product
134
+ class.</xsd:documentation>
135
+ </xsd:annotation>
136
+ </xsd:element>
137
+ <xsd:element ref="cpe:check-fact-ref" minOccurs="0" maxOccurs="unbounded">
138
+ <xsd:annotation>
139
+ <xsd:documentation xml:lang="en">A reference to a check that always evaluates to TRUE, FALSE, or
140
+ ERROR. Examples of types of checks are OVAL and OCIL checks.</xsd:documentation>
141
+ </xsd:annotation>
142
+ </xsd:element>
143
+ </xsd:sequence>
144
+ <xsd:attribute name="operator" type="cpe:operatorEnumeration" use="required">
145
+ <xsd:annotation>
146
+ <xsd:documentation xml:lang="en">The operator applied to the results of evaluating the fact-ref,
147
+ check-fact-ref, and logical-test elements. The permitted operators are "AND" and
148
+ "OR".</xsd:documentation>
149
+ </xsd:annotation>
150
+ </xsd:attribute>
151
+ <xsd:attribute name="negate" type="xsd:boolean" use="required">
152
+ <xsd:annotation>
153
+ <xsd:documentation xml:lang="en">Whether the result of applying the operator should be negated. Possible
154
+ values are "TRUE" and "FALSE". This does not apply if the initial result is
155
+ ERROR.</xsd:documentation>
156
+ </xsd:annotation>
157
+ </xsd:attribute>
158
+ </xsd:complexType>
159
+ <xsd:complexType name="FactRefType">
160
+ <xsd:attribute name="description" type="xsd:normalizedString" use="optional"/>
161
+ </xsd:complexType>
162
+ <xsd:complexType name="CPEFactRefType">
163
+ <xsd:annotation>
164
+ <xsd:documentation xml:lang="en">A reference to a CPE Name that always evaluates to a Boolean
165
+ result.</xsd:documentation>
166
+ </xsd:annotation>
167
+ <xsd:complexContent>
168
+ <xsd:extension base="cpe:FactRefType">
169
+ <xsd:attribute name="name" type="cpe:namePattern" use="required"/>
170
+ </xsd:extension>
171
+ </xsd:complexContent>
172
+ </xsd:complexType>
173
+ <xsd:complexType name="CheckFactRefType">
174
+ <xsd:annotation>
175
+ <xsd:documentation xml:lang="en">A reference to a check that always evaluates to a TRUE, FALSE, or ERROR
176
+ result.</xsd:documentation>
177
+ <xsd:documentation xml:lang="en">The CheckFactRefType complex type is used to define an element for holding
178
+ information about an individual check. It includes a checking system specification URI, string content
179
+ identifying the check content to invoke, and an external reference. The checking system specification
180
+ should be the URI that uniquely identifies a revision of a check system language, and the id-ref will be
181
+ an identifier of a test written in that language. The external reference should be used to point to the
182
+ content in which the check identifier is defined.</xsd:documentation>
183
+ </xsd:annotation>
184
+ <xsd:complexContent>
185
+ <xsd:extension base="cpe:FactRefType">
186
+ <xsd:attribute name="system" type="xsd:anyURI" use="required"/>
187
+ <xsd:attribute name="href" type="xsd:anyURI" use="required"/>
188
+ <xsd:attribute name="id-ref" type="xsd:token" use="required"/>
189
+ </xsd:extension>
190
+ </xsd:complexContent>
191
+ </xsd:complexType>
192
+
193
+ <!-- =============================================================================== -->
194
+ <!-- =============================== ENUMERATIONS ================================ -->
195
+ <!-- =============================================================================== -->
196
+ <xsd:simpleType name="operatorEnumeration">
197
+ <xsd:annotation>
198
+ <xsd:documentation xml:lang="en">The OperatorEnumeration simple type defines acceptable operators. Each
199
+ operator defines how to evaluate multiple arguments.</xsd:documentation>
200
+ </xsd:annotation>
201
+ <xsd:restriction base="xsd:string">
202
+ <xsd:enumeration value="AND"/>
203
+ <xsd:enumeration value="OR"/>
204
+ </xsd:restriction>
205
+ </xsd:simpleType>
206
+ <!-- =============================================================================== -->
207
+ <!-- ============================== SUPPORTING TYPES ============================== -->
208
+ <!-- =============================================================================== -->
209
+ <xsd:complexType name="TextType">
210
+ <xsd:annotation>
211
+ <xsd:documentation xml:lang="en">This type allows the xml:lang attribute to associate a specific language
212
+ with an element's string content.</xsd:documentation>
213
+ </xsd:annotation>
214
+ <xsd:simpleContent>
215
+ <xsd:extension base="xsd:string">
216
+ <xsd:attribute ref="xml:lang"/>
217
+ </xsd:extension>
218
+ </xsd:simpleContent>
219
+ </xsd:complexType>
220
+ <!-- =============================================================================== -->
221
+ <!-- ================================ ID PATTERNS ================================ -->
222
+ <!-- =============================================================================== -->
223
+ <xsd:simpleType name="namePattern">
224
+ <xsd:union memberTypes="cpe-name:cpe22Type cpe-name:cpe23Type"/>
225
+ </xsd:simpleType>
226
+ <!-- ================================================== -->
227
+ <!-- ===== Change History -->
228
+ <!-- ================================================== -->
229
+ <!--
230
+ v2.2 - Initial working version
231
+ v2.3 - Various refactoring of types to use element refs. This enables more fine-grained reuse of this schema and allows XSD substitution to be possible.
232
+ Updated the name pattern.
233
+ -->
234
+ </xsd:schema>
@@ -0,0 +1,45 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cpe="http://cpe.mitre.org/naming/2.0"
3
+ targetNamespace="http://cpe.mitre.org/naming/2.0" elementFormDefault="qualified" attributeFormDefault="unqualified"
4
+ version="2.3">
5
+ <xsd:annotation>
6
+ <xsd:documentation xml:lang="en"> </xsd:documentation>
7
+ <xsd:appinfo>
8
+ <schema>CPE 2.3 Naming</schema>
9
+ <author>Adam Halbardier</author>
10
+ <version>2.3</version>
11
+ <date>2011-07-29</date>
12
+ </xsd:appinfo>
13
+ </xsd:annotation>
14
+
15
+ <xsd:simpleType name="cpe22Type">
16
+ <xsd:annotation>
17
+ <xsd:documentation xml:lang="en">Define the format for acceptable CPE Names. A URN format is used with the
18
+ id starting with the word cpe followed by :/ and then some number of individual components separated by
19
+ colons.</xsd:documentation>
20
+ </xsd:annotation>
21
+ <xsd:restriction base="xsd:anyURI">
22
+ <xsd:pattern value="[c][pP][eE]:/[AHOaho]?(:[A-Za-z0-9\._\-~%]*){0,6}"/>
23
+ </xsd:restriction>
24
+ </xsd:simpleType>
25
+ <xsd:simpleType name="cpe23Type">
26
+ <xsd:annotation>
27
+ <xsd:documentation xml:lang="en">Define the format for acceptable CPE Names. A string format is used with
28
+ the id starting with the word cpe:2.3 followed by : and then some number of individual components
29
+ separated by colons.</xsd:documentation>
30
+ </xsd:annotation>
31
+ <xsd:restriction base="xsd:string">
32
+ <xsd:pattern
33
+ value="cpe:2\.3:[aho\*\-](:(((\?*|\*?)([a-zA-Z0-9\-\._]|(\\[\\\*\?!&quot;#$$%&amp;'\(\)\+,/:;&lt;=&gt;@\[\]\^`\{\|}~]))+(\?*|\*?))|[\*\-])){5}(:(([a-zA-Z]{2,3}(-([a-zA-Z]{2}|[0-9]{3}))?)|[\*\-]))(:(((\?*|\*?)([a-zA-Z0-9\-\._]|(\\[\\\*\?!&quot;#$$%&amp;'\(\)\+,/:;&lt;=&gt;@\[\]\^`\{\|}~]))+(\?*|\*?))|[\*\-])){4}"
34
+ />
35
+ </xsd:restriction>
36
+ </xsd:simpleType>
37
+
38
+ <!-- ================================================== -->
39
+ <!-- ===== Change History -->
40
+ <!-- ================================================== -->
41
+ <!--
42
+ v2.3 - Initial release
43
+ -->
44
+
45
+ </xsd:schema>
@@ -0,0 +1,40 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3
+ xmlns="http://cybox.mitre.org/extensions/platform#CPE2.3-1"
4
+ xmlns:cpe23="http://cpe.mitre.org/language/2.0"
5
+ xmlns:cyboxCommon="http://cybox.mitre.org/common-2"
6
+ targetNamespace="http://cybox.mitre.org/extensions/platform#CPE2.3-1"
7
+ elementFormDefault="qualified" version="1.0.1">
8
+ <xs:annotation>
9
+ <xs:documentation>This schema was originally developed by The MITRE Corporation. The CybOX XML Schema implementation is maintained by The MITRE Corporation and developed by the open CybOX Community. For more information, including how to get involved in the effort and how to submit change requests, please visit the CybOX website at http://cybox.mitre.org. </xs:documentation>
10
+ <xs:appinfo>
11
+ <schema>CPE2.3</schema>
12
+ <version>1.0.1</version>
13
+ <date>09/30/2013 9:00:00 AM</date>
14
+ <short_description>Cyber Observable eXpression (CybOX) Extension - CPE 2.3 Platform Instance - Schematic implementation for using the CPE 2.3 Applicablity Language to describe a Platform within the CybOX observable expression language. It extends the PlatformSpecificationType defined in the CybOX common schema. (cybox_common.xsd) For more information on this extension mechanism, please see the CybOX Specification. This document is intended for developers and assumes some familiarity with XML.</short_description>
15
+ <terms_of_use>Copyright (c) 2012-2013, The MITRE Corporation. All rights reserved. The contents of this file are subject to the terms of the CybOX License located at http://cybox.mitre.org/about/termsofuse.html. See the CybOX License for the specific language governing permissions and limitations for use of this schema. When distributing copies of the CybOX Schema, this license header must be included. </terms_of_use>
16
+ <reference>http://scap.nist.gov/specifications/cpe/</reference>
17
+ </xs:appinfo>
18
+ </xs:annotation>
19
+
20
+ <xs:import namespace="http://cpe.mitre.org/language/2.0"
21
+ schemaLocation="cpe-language_2.3.xsd"/>
22
+ <xs:import namespace="http://cybox.mitre.org/common-2" schemaLocation="../../cybox_common.xsd"/>
23
+
24
+ <xs:complexType name="CPE23PlatformSpecificationType">
25
+ <xs:annotation>
26
+ <xs:documentation>The CPE23PlatformSpecificationType provides an extension of the PlatformSpecificationType that imports and leverages the CPE 2.3 applicability language schema for structured characterization of a platform or platform combination.</xs:documentation>
27
+ </xs:annotation>
28
+ <xs:complexContent>
29
+ <xs:extension base="cyboxCommon:PlatformSpecificationType">
30
+ <xs:sequence>
31
+ <xs:element ref="cpe23:platform-specification" >
32
+ <xs:annotation>
33
+ <xs:documentation>The platform-specification element, defined in the CPE 2.3 Applicability Language schema, supports a structured characterization of a platform or combination of platforms.</xs:documentation>
34
+ </xs:annotation>
35
+ </xs:element>
36
+ </xs:sequence>
37
+ </xs:extension>
38
+ </xs:complexContent>
39
+ </xs:complexType>
40
+ </xs:schema>
@@ -0,0 +1,145 @@
1
+ <?xml version='1.0'?>
2
+ <xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
3
+
4
+ <xs:annotation>
5
+ <xs:documentation>
6
+ See http://www.w3.org/XML/1998/namespace.html and
7
+ http://www.w3.org/TR/REC-xml for information about this namespace.
8
+
9
+ This schema document describes the XML namespace, in a form
10
+ suitable for import by other schema documents.
11
+
12
+ Note that local names in this namespace are intended to be defined
13
+ only by the World Wide Web Consortium or its subgroups. The
14
+ following names are currently defined in this namespace and should
15
+ not be used with conflicting semantics by any Working Group,
16
+ specification, or document instance:
17
+
18
+ base (as an attribute name): denotes an attribute whose value
19
+ provides a URI to be used as the base for interpreting any
20
+ relative URIs in the scope of the element on which it
21
+ appears; its value is inherited. This name is reserved
22
+ by virtue of its definition in the XML Base specification.
23
+
24
+ id (as an attribute name): denotes an attribute whose value
25
+ should be interpreted as if declared to be of type ID.
26
+ This name is reserved by virtue of its definition in the
27
+ xml:id specification.
28
+
29
+ lang (as an attribute name): denotes an attribute whose value
30
+ is a language code for the natural language of the content of
31
+ any element; its value is inherited. This name is reserved
32
+ by virtue of its definition in the XML specification.
33
+
34
+ space (as an attribute name): denotes an attribute whose
35
+ value is a keyword indicating what whitespace processing
36
+ discipline is intended for the content of the element; its
37
+ value is inherited. This name is reserved by virtue of its
38
+ definition in the XML specification.
39
+
40
+ Father (in any context at all): denotes Jon Bosak, the chair of
41
+ the original XML Working Group. This name is reserved by
42
+ the following decision of the W3C XML Plenary and
43
+ XML Coordination groups:
44
+
45
+ In appreciation for his vision, leadership and dedication
46
+ the W3C XML Plenary on this 10th day of February, 2000
47
+ reserves for Jon Bosak in perpetuity the XML name
48
+ xml:Father
49
+ </xs:documentation>
50
+ </xs:annotation>
51
+
52
+ <xs:annotation>
53
+ <xs:documentation>This schema defines attributes and an attribute group
54
+ suitable for use by
55
+ schemas wishing to allow xml:base, xml:lang, xml:space or xml:id
56
+ attributes on elements they define.
57
+
58
+ To enable this, such a schema must import this schema
59
+ for the XML namespace, e.g. as follows:
60
+ &lt;schema . . .>
61
+ . . .
62
+ &lt;import namespace="http://www.w3.org/XML/1998/namespace"
63
+ schemaLocation="http://www.w3.org/2001/xml.xsd"/>
64
+
65
+ Subsequently, qualified reference to any of the attributes
66
+ or the group defined below will have the desired effect, e.g.
67
+
68
+ &lt;type . . .>
69
+ . . .
70
+ &lt;attributeGroup ref="xml:specialAttrs"/>
71
+
72
+ will define a type which will schema-validate an instance
73
+ element with any of those attributes</xs:documentation>
74
+ </xs:annotation>
75
+
76
+ <xs:annotation>
77
+ <xs:documentation>In keeping with the XML Schema WG's standard versioning
78
+ policy, this schema document will persist at
79
+ http://www.w3.org/2007/08/xml.xsd.
80
+ At the date of issue it can also be found at
81
+ http://www.w3.org/2001/xml.xsd.
82
+ The schema document at that URI may however change in the future,
83
+ in order to remain compatible with the latest version of XML Schema
84
+ itself, or with the XML namespace itself. In other words, if the XML
85
+ Schema or XML namespaces change, the version of this document at
86
+ http://www.w3.org/2001/xml.xsd will change
87
+ accordingly; the version at
88
+ http://www.w3.org/2007/08/xml.xsd will not change.
89
+ </xs:documentation>
90
+ </xs:annotation>
91
+
92
+ <xs:attribute name="lang">
93
+ <xs:annotation>
94
+ <xs:documentation>Attempting to install the relevant ISO 2- and 3-letter
95
+ codes as the enumerated possible values is probably never
96
+ going to be a realistic possibility. See
97
+ RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
98
+ at http://www.iana.org/assignments/lang-tag-apps.htm for
99
+ further information.
100
+
101
+ The union allows for the 'un-declaration' of xml:lang with
102
+ the empty string.</xs:documentation>
103
+ </xs:annotation>
104
+ <xs:simpleType>
105
+ <xs:union memberTypes="xs:language">
106
+ <xs:simpleType>
107
+ <xs:restriction base="xs:string">
108
+ <xs:enumeration value=""/>
109
+ </xs:restriction>
110
+ </xs:simpleType>
111
+ </xs:union>
112
+ </xs:simpleType>
113
+ </xs:attribute>
114
+
115
+ <xs:attribute name="space">
116
+ <xs:simpleType>
117
+ <xs:restriction base="xs:NCName">
118
+ <xs:enumeration value="default"/>
119
+ <xs:enumeration value="preserve"/>
120
+ </xs:restriction>
121
+ </xs:simpleType>
122
+ </xs:attribute>
123
+
124
+ <xs:attribute name="base" type="xs:anyURI">
125
+ <xs:annotation>
126
+ <xs:documentation>See http://www.w3.org/TR/xmlbase/ for
127
+ information about this attribute.</xs:documentation>
128
+ </xs:annotation>
129
+ </xs:attribute>
130
+
131
+ <xs:attribute name="id" type="xs:ID">
132
+ <xs:annotation>
133
+ <xs:documentation>See http://www.w3.org/TR/xml-id/ for
134
+ information about this attribute.</xs:documentation>
135
+ </xs:annotation>
136
+ </xs:attribute>
137
+
138
+ <xs:attributeGroup name="specialAttrs">
139
+ <xs:attribute ref="xml:base"/>
140
+ <xs:attribute ref="xml:lang"/>
141
+ <xs:attribute ref="xml:space"/>
142
+ <xs:attribute ref="xml:id"/>
143
+ </xs:attributeGroup>
144
+
145
+ </xs:schema>