stix_schema_spy 1.0 → 1.1

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 (175) hide show
  1. checksums.yaml +8 -8
  2. data/config/1.1/stix/cybox/objects/Win_Hook_Object.xsd +1 -1
  3. data/config/1.1.1/stix/campaign.xsd +220 -0
  4. data/config/1.1.1/stix/course_of_action.xsd +191 -0
  5. data/config/1.1.1/stix/cybox/cybox_common.xsd +2700 -0
  6. data/config/1.1.1/stix/cybox/cybox_core.xsd +1145 -0
  7. data/config/1.1.1/stix/cybox/cybox_default_vocabularies.xsd +5180 -0
  8. data/config/1.1.1/stix/cybox/extensions/location/ciq_address_3.0.xsd +27 -0
  9. data/config/1.1.1/stix/cybox/extensions/platform/cpe2.3.xsd +34 -0
  10. data/config/1.1.1/stix/cybox/external/cpe_2.3/cpe-language_2.3.xsd +234 -0
  11. data/config/1.1.1/stix/cybox/external/cpe_2.3/cpe-naming_2.3.xsd +45 -0
  12. data/config/1.1.1/stix/cybox/external/cpe_2.3/xml.xsd +145 -0
  13. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/CommonTypes.xsd +104 -0
  14. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xAL-types.xsd +511 -0
  15. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xAL.xsd +672 -0
  16. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xNAL-types.xsd +36 -0
  17. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xNAL.xsd +126 -0
  18. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xNL-types.xsd +222 -0
  19. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xNL.xsd +284 -0
  20. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xPIL-types.xsd +854 -0
  21. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xPIL.xsd +1621 -0
  22. data/config/1.1.1/stix/cybox/external/oasis_ciq_3.0/xlink-2003-12-31.xsd +90 -0
  23. data/config/1.1.1/stix/cybox/objects/API_Object.xsd +55 -0
  24. data/config/1.1.1/stix/cybox/objects/ARP_Cache_Object.xsd +98 -0
  25. data/config/1.1.1/stix/cybox/objects/AS_Object.xsd +50 -0
  26. data/config/1.1.1/stix/cybox/objects/Account_Object.xsd +501 -0
  27. data/config/1.1.1/stix/cybox/objects/Address_Object.xsd +127 -0
  28. data/config/1.1.1/stix/cybox/objects/Archive_File_Object.xsd +134 -0
  29. data/config/1.1.1/stix/cybox/objects/Artifact_Object.xsd +212 -0
  30. data/config/1.1.1/stix/cybox/objects/Code_Object.xsd +417 -0
  31. data/config/1.1.1/stix/cybox/objects/Custom_Object.xsd +42 -0
  32. data/config/1.1.1/stix/cybox/objects/DNS_Cache_Object.xsd +53 -0
  33. data/config/1.1.1/stix/cybox/objects/DNS_Query_Object.xsd +164 -0
  34. data/config/1.1.1/stix/cybox/objects/DNS_Record_Object.xsd +92 -0
  35. data/config/1.1.1/stix/cybox/objects/Device_Object.xsd +65 -0
  36. data/config/1.1.1/stix/cybox/objects/Disk_Object.xsd +117 -0
  37. data/config/1.1.1/stix/cybox/objects/Disk_Partition_Object.xsd +199 -0
  38. data/config/1.1.1/stix/cybox/objects/Domain_Name_Object.xsd +57 -0
  39. data/config/1.1.1/stix/cybox/objects/Email_Message_Object.xsd +278 -0
  40. data/config/1.1.1/stix/cybox/objects/File_Object.xsd +397 -0
  41. data/config/1.1.1/stix/cybox/objects/GUI_Dialogbox_Object.xsd +41 -0
  42. data/config/1.1.1/stix/cybox/objects/GUI_Object.xsd +40 -0
  43. data/config/1.1.1/stix/cybox/objects/GUI_Window_Object.xsd +46 -0
  44. data/config/1.1.1/stix/cybox/objects/HTTP_Session_Object.xsd +633 -0
  45. data/config/1.1.1/stix/cybox/objects/Hostname_Object.xsd +45 -0
  46. data/config/1.1.1/stix/cybox/objects/Image_File_Object.xsd +124 -0
  47. data/config/1.1.1/stix/cybox/objects/Library_Object.xsd +114 -0
  48. data/config/1.1.1/stix/cybox/objects/Link_Object.xsd +36 -0
  49. data/config/1.1.1/stix/cybox/objects/Linux_Package_Object.xsd +75 -0
  50. data/config/1.1.1/stix/cybox/objects/Memory_Object.xsd +141 -0
  51. data/config/1.1.1/stix/cybox/objects/Mutex_Object.xsd +40 -0
  52. data/config/1.1.1/stix/cybox/objects/Network_Connection_Object.xsd +540 -0
  53. data/config/1.1.1/stix/cybox/objects/Network_Flow_Object.xsd +1559 -0
  54. data/config/1.1.1/stix/cybox/objects/Network_Packet_Object.xsd +2934 -0
  55. data/config/1.1.1/stix/cybox/objects/Network_Route_Entry_Object.xsd +155 -0
  56. data/config/1.1.1/stix/cybox/objects/Network_Route_Object.xsd +93 -0
  57. data/config/1.1.1/stix/cybox/objects/Network_Socket_Object.xsd +529 -0
  58. data/config/1.1.1/stix/cybox/objects/Network_Subnet_Object.xsd +64 -0
  59. data/config/1.1.1/stix/cybox/objects/PDF_File_Object.xsd +595 -0
  60. data/config/1.1.1/stix/cybox/objects/Pipe_Object.xsd +40 -0
  61. data/config/1.1.1/stix/cybox/objects/Port_Object.xsd +40 -0
  62. data/config/1.1.1/stix/cybox/objects/Process_Object.xsd +199 -0
  63. data/config/1.1.1/stix/cybox/objects/Product_Object.xsd +65 -0
  64. data/config/1.1.1/stix/cybox/objects/SMS_Message_Object.xsd +79 -0
  65. data/config/1.1.1/stix/cybox/objects/Semaphore_Object.xsd +50 -0
  66. data/config/1.1.1/stix/cybox/objects/Socket_Address_Object.xsd +50 -0
  67. data/config/1.1.1/stix/cybox/objects/System_Object.xsd +410 -0
  68. data/config/1.1.1/stix/cybox/objects/URI_Object.xsd +62 -0
  69. data/config/1.1.1/stix/cybox/objects/URL_History_Object.xsd +104 -0
  70. data/config/1.1.1/stix/cybox/objects/Unix_File_Object.xsd +164 -0
  71. data/config/1.1.1/stix/cybox/objects/Unix_Network_Route_Entry_Object.xsd +56 -0
  72. data/config/1.1.1/stix/cybox/objects/Unix_Pipe_Object.xsd +36 -0
  73. data/config/1.1.1/stix/cybox/objects/Unix_Process_Object.xsd +143 -0
  74. data/config/1.1.1/stix/cybox/objects/Unix_User_Account_Object.xsd +78 -0
  75. data/config/1.1.1/stix/cybox/objects/Unix_Volume_Object.xsd +41 -0
  76. data/config/1.1.1/stix/cybox/objects/User_Account_Object.xsd +110 -0
  77. data/config/1.1.1/stix/cybox/objects/User_Session_Object.xsd +60 -0
  78. data/config/1.1.1/stix/cybox/objects/Volume_Object.xsd +235 -0
  79. data/config/1.1.1/stix/cybox/objects/Whois_Object.xsd +430 -0
  80. data/config/1.1.1/stix/cybox/objects/Win_Computer_Account_Object.xsd +135 -0
  81. data/config/1.1.1/stix/cybox/objects/Win_Critical_Section_Object.xsd +40 -0
  82. data/config/1.1.1/stix/cybox/objects/Win_Driver_Object.xsd +270 -0
  83. data/config/1.1.1/stix/cybox/objects/Win_Event_Log_Object.xsd +137 -0
  84. data/config/1.1.1/stix/cybox/objects/Win_Event_Object.xsd +80 -0
  85. data/config/1.1.1/stix/cybox/objects/Win_Executable_File_Object.xsd +1311 -0
  86. data/config/1.1.1/stix/cybox/objects/Win_File_Object.xsd +269 -0
  87. data/config/1.1.1/stix/cybox/objects/Win_Filemapping_Object.xsd +175 -0
  88. data/config/1.1.1/stix/cybox/objects/Win_Handle_Object.xsd +351 -0
  89. data/config/1.1.1/stix/cybox/objects/Win_Hook_Object.xsd +152 -0
  90. data/config/1.1.1/stix/cybox/objects/Win_Kernel_Hook_Object.xsd +109 -0
  91. data/config/1.1.1/stix/cybox/objects/Win_Kernel_Object.xsd +128 -0
  92. data/config/1.1.1/stix/cybox/objects/Win_Mailslot_Object.xsd +56 -0
  93. data/config/1.1.1/stix/cybox/objects/Win_Memory_Page_Region_Object.xsd +198 -0
  94. data/config/1.1.1/stix/cybox/objects/Win_Mutex_Object.xsd +42 -0
  95. data/config/1.1.1/stix/cybox/objects/Win_Network_Route_Entry_Object.xsd +200 -0
  96. data/config/1.1.1/stix/cybox/objects/Win_Network_Share_Object.xsd +205 -0
  97. data/config/1.1.1/stix/cybox/objects/Win_Pipe_Object.xsd +73 -0
  98. data/config/1.1.1/stix/cybox/objects/Win_Prefetch_Object.xsd +113 -0
  99. data/config/1.1.1/stix/cybox/objects/Win_Process_Object.xsd +174 -0
  100. data/config/1.1.1/stix/cybox/objects/Win_Registry_Key_Object.xsd +290 -0
  101. data/config/1.1.1/stix/cybox/objects/Win_Semaphore_Object.xsd +42 -0
  102. data/config/1.1.1/stix/cybox/objects/Win_Service_Object.xsd +287 -0
  103. data/config/1.1.1/stix/cybox/objects/Win_System_Object.xsd +126 -0
  104. data/config/1.1.1/stix/cybox/objects/Win_System_Restore_Object.xsd +207 -0
  105. data/config/1.1.1/stix/cybox/objects/Win_Task_Object.xsd +755 -0
  106. data/config/1.1.1/stix/cybox/objects/Win_Thread_Object.xsd +146 -0
  107. data/config/1.1.1/stix/cybox/objects/Win_User_Account_Object.xsd +73 -0
  108. data/config/1.1.1/stix/cybox/objects/Win_Volume_Object.xsd +161 -0
  109. data/config/1.1.1/stix/cybox/objects/Win_Waitable_Timer_Object.xsd +90 -0
  110. data/config/1.1.1/stix/cybox/objects/X509_Certificate_Object.xsd +275 -0
  111. data/config/1.1.1/stix/data_marking.xsd +97 -0
  112. data/config/1.1.1/stix/exploit_target.xsd +324 -0
  113. data/config/1.1.1/stix/extensions/address/ciq_3.0_address.xsd +27 -0
  114. data/config/1.1.1/stix/extensions/attack_pattern/capec_2.7_attack_pattern.xsd +31 -0
  115. data/config/1.1.1/stix/extensions/identity/ciq_3.0_identity.xsd +113 -0
  116. data/config/1.1.1/stix/extensions/malware/maec_4.1_malware.xsd +31 -0
  117. data/config/1.1.1/stix/extensions/marking/simple_marking.xsd +31 -0
  118. data/config/1.1.1/stix/extensions/marking/terms_of_use_marking.xsd +31 -0
  119. data/config/1.1.1/stix/extensions/marking/tlp_marking.xsd +40 -0
  120. data/config/1.1.1/stix/extensions/structured_coa/generic_structured_coa.xsd +46 -0
  121. data/config/1.1.1/stix/extensions/test_mechanism/generic_test_mechanism.xsd +46 -0
  122. data/config/1.1.1/stix/extensions/test_mechanism/open_ioc_2010_test_mechanism.xsd +32 -0
  123. data/config/1.1.1/stix/extensions/test_mechanism/oval_5.10_test_mechanism.xsd +37 -0
  124. data/config/1.1.1/stix/extensions/test_mechanism/snort_test_mechanism.xsd +56 -0
  125. data/config/1.1.1/stix/extensions/test_mechanism/yara_test_mechanism.xsd +36 -0
  126. data/config/1.1.1/stix/extensions/vulnerability/cvrf_1.1_vulnerability.xsd +33 -0
  127. data/config/1.1.1/stix/external/capec_2.7/ap_schema_v2.7.xsd +3618 -0
  128. data/config/1.1.1/stix/external/cvrf_1.1/common.xsd +176 -0
  129. data/config/1.1.1/stix/external/cvrf_1.1/cpe-language_2.2a.xsd +182 -0
  130. data/config/1.1.1/stix/external/cvrf_1.1/cvrf.xsd +487 -0
  131. data/config/1.1.1/stix/external/cvrf_1.1/cvss-v2_0.9.xsd +415 -0
  132. data/config/1.1.1/stix/external/cvrf_1.1/dc.xsd +118 -0
  133. data/config/1.1.1/stix/external/cvrf_1.1/prod.xsd +292 -0
  134. data/config/1.1.1/stix/external/cvrf_1.1/scap-core_0.9.xsd +170 -0
  135. data/config/1.1.1/stix/external/cvrf_1.1/vuln.xsd +631 -0
  136. data/config/1.1.1/stix/external/cvrf_1.1/xml.xsd +287 -0
  137. data/config/1.1.1/stix/external/maec_4.1/maec_bundle_schema.xsd +1228 -0
  138. data/config/1.1.1/stix/external/maec_4.1/maec_container_schema.xsd +62 -0
  139. data/config/1.1.1/stix/external/maec_4.1/maec_default_vocabularies.xsd +5325 -0
  140. data/config/1.1.1/stix/external/maec_4.1/maec_package_schema.xsd +1095 -0
  141. data/config/1.1.1/stix/external/maec_4.1/metadataSharing.xsd +1712 -0
  142. data/config/1.1.1/stix/external/oasis_ciq_3.0/CommonTypes.xsd +104 -0
  143. data/config/1.1.1/stix/external/oasis_ciq_3.0/xAL-types.xsd +511 -0
  144. data/config/1.1.1/stix/external/oasis_ciq_3.0/xAL.xsd +672 -0
  145. data/config/1.1.1/stix/external/oasis_ciq_3.0/xNAL-types.xsd +36 -0
  146. data/config/1.1.1/stix/external/oasis_ciq_3.0/xNAL.xsd +126 -0
  147. data/config/1.1.1/stix/external/oasis_ciq_3.0/xNL-types.xsd +222 -0
  148. data/config/1.1.1/stix/external/oasis_ciq_3.0/xNL.xsd +284 -0
  149. data/config/1.1.1/stix/external/oasis_ciq_3.0/xPIL-types.xsd +854 -0
  150. data/config/1.1.1/stix/external/oasis_ciq_3.0/xPIL.xsd +1621 -0
  151. data/config/1.1.1/stix/external/oasis_ciq_3.0/xlink-2003-12-31.xsd +90 -0
  152. data/config/1.1.1/stix/external/open_ioc_2010/ioc-TR.xsd +25 -0
  153. data/config/1.1.1/stix/external/open_ioc_2010/ioc.xsd +105 -0
  154. data/config/1.1.1/stix/external/oval_5.10/oval-common-schema.xsd +781 -0
  155. data/config/1.1.1/stix/external/oval_5.10/oval-definitions-schema.xsd +1608 -0
  156. data/config/1.1.1/stix/external/oval_5.10/oval-variables-schema.xsd +84 -0
  157. data/config/1.1.1/stix/external/oval_5.10/xmldsig-core-schema.xsd +309 -0
  158. data/config/1.1.1/stix/incident.xsd +762 -0
  159. data/config/1.1.1/stix/indicator.xsd +368 -0
  160. data/config/1.1.1/stix/stix_common.xsd +923 -0
  161. data/config/1.1.1/stix/stix_core.xsd +253 -0
  162. data/config/1.1.1/stix/stix_default_vocabularies.xsd +2081 -0
  163. data/config/1.1.1/stix/threat_actor.xsd +182 -0
  164. data/config/1.1.1/stix/ttp.xsd +430 -0
  165. data/config/1.1.1/uber_schema.xsd +149 -0
  166. data/lib/stix_schema_spy/models/attribute.rb +1 -1
  167. data/lib/stix_schema_spy/models/element.rb +2 -9
  168. data/lib/stix_schema_spy/models/external_type.rb +29 -0
  169. data/lib/stix_schema_spy/models/has_children.rb +9 -9
  170. data/lib/stix_schema_spy/models/node.rb +7 -6
  171. data/lib/stix_schema_spy/models/schema.rb +6 -4
  172. data/lib/stix_schema_spy/models/type.rb +44 -5
  173. data/lib/stix_schema_spy/util/tasks.rb +15 -14
  174. data/lib/stix_schema_spy/version.rb +1 -1
  175. metadata +171 -9
@@ -0,0 +1,351 @@
1
+ <?xml version='1.0' encoding='UTF-8'?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:WinHandleObj="http://cybox.mitre.org/objects#WinHandleObject-2" xmlns:cyboxCommon="http://cybox.mitre.org/common-2" targetNamespace="http://cybox.mitre.org/objects#WinHandleObject-2" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1">
3
+ <xs:annotation>
4
+ <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>
5
+ <xs:appinfo>
6
+ <schema>Win_Handle_Object</schema>
7
+ <version>2.1</version>
8
+ <date>01/22/2014</date>
9
+ <short_description>The following specifies the fields and types that compose this defined CybOX Object type. Each defined object is an extension of the abstract ObjectPropertiesType, defined in CybOX Common. 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>
10
+ <terms_of_use>Copyright (c) 2012-2014, 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>
11
+ </xs:appinfo>
12
+ </xs:annotation>
13
+ <xs:import namespace="http://cybox.mitre.org/common-2" schemaLocation="../cybox_common.xsd"/>
14
+ <xs:element name="Windows_Handle" type="WinHandleObj:WindowsHandleObjectType">
15
+ <xs:annotation>
16
+ <xs:documentation>The Windows_Handle object is intended to characterize Windows handles.</xs:documentation>
17
+ </xs:annotation>
18
+ </xs:element>
19
+ <xs:complexType name="WindowsHandleObjectType" mixed="false">
20
+ <xs:annotation>
21
+ <xs:documentation>The WindowsHandleObjectType type is intended to characterize Windows handles.</xs:documentation>
22
+ </xs:annotation>
23
+ <xs:complexContent>
24
+ <xs:extension base="cyboxCommon:ObjectPropertiesType">
25
+ <xs:sequence>
26
+ <xs:element name="ID" type="cyboxCommon:UnsignedIntegerObjectPropertyType" minOccurs="0">
27
+ <xs:annotation>
28
+ <xs:documentation>The ID field refers to the unique number used to identify the handle.</xs:documentation>
29
+ </xs:annotation>
30
+ </xs:element>
31
+ <xs:element name="Name" type="cyboxCommon:StringObjectPropertyType" minOccurs="0" maxOccurs="1">
32
+ <xs:annotation>
33
+ <xs:documentation>The Name field specifies the name of the handle.</xs:documentation>
34
+ </xs:annotation>
35
+ </xs:element>
36
+ <xs:element name="Type" type="WinHandleObj:HandleType" minOccurs="0">
37
+ <xs:annotation>
38
+ <xs:documentation>The Type field specifies the handle type, which is equivalent to the type of Windows object that the handle refers to.</xs:documentation>
39
+ </xs:annotation>
40
+ </xs:element>
41
+ <xs:element name="Object_Address" type="cyboxCommon:UnsignedLongObjectPropertyType" minOccurs="0">
42
+ <xs:annotation>
43
+ <xs:documentation>The Object_Address field specifies the address of the Windows object that the handle refers to.</xs:documentation>
44
+ </xs:annotation>
45
+ </xs:element>
46
+ <xs:element name="Access_Mask" type="cyboxCommon:UnsignedLongObjectPropertyType" minOccurs="0">
47
+ <xs:annotation>
48
+ <xs:documentation>The Access_Mask field specifies the access bitmask of the handle.</xs:documentation>
49
+ </xs:annotation>
50
+ </xs:element>
51
+ <xs:element name="Pointer_Count" type="cyboxCommon:UnsignedLongObjectPropertyType" minOccurs="0" maxOccurs="1">
52
+ <xs:annotation>
53
+ <xs:documentation>The Pointer_Count field specifies the count of pointer references to the Windows object that the handle refers to.</xs:documentation>
54
+ </xs:annotation>
55
+ </xs:element>
56
+ </xs:sequence>
57
+ </xs:extension>
58
+ </xs:complexContent>
59
+ </xs:complexType>
60
+ <xs:complexType name="WindowsHandleListType">
61
+ <xs:annotation>
62
+ <xs:documentation>The WindowsHandleListType type specifies a list of Windows handles, for re-use in other objects.</xs:documentation>
63
+ </xs:annotation>
64
+ <xs:sequence>
65
+ <xs:element name="Handle" type="WinHandleObj:WindowsHandleObjectType" maxOccurs="unbounded">
66
+ <xs:annotation>
67
+ <xs:documentation>The Handle field characterizes a single Windows handle.</xs:documentation>
68
+ </xs:annotation>
69
+ </xs:element>
70
+ </xs:sequence>
71
+ </xs:complexType>
72
+ <xs:complexType name="HandleType">
73
+ <xs:annotation>
74
+ <xs:documentation>HandleType specifies Windows handle types via a union of the HandleTypeEnum type and the atomic xs:string type. Its base type is the CybOX Core BaseObjectPropertyType, for permitting complex (i.e. regular-expression based) specifications.</xs:documentation>
75
+ </xs:annotation>
76
+ <xs:simpleContent>
77
+ <xs:restriction base="cyboxCommon:BaseObjectPropertyType">
78
+ <xs:simpleType>
79
+ <xs:union memberTypes="WinHandleObj:HandleTypeEnum xs:string"/>
80
+ </xs:simpleType>
81
+ <xs:attribute name="datatype" type="cyboxCommon:DatatypeEnum" fixed="string">
82
+ <xs:annotation>
83
+ <xs:documentation>This attribute is optional and specifies the expected type for the value of the specified property.</xs:documentation>
84
+ </xs:annotation>
85
+ </xs:attribute>
86
+ </xs:restriction>
87
+ </xs:simpleContent>
88
+ </xs:complexType>
89
+ <xs:simpleType name="HandleTypeEnum">
90
+ <xs:annotation>
91
+ <xs:documentation>The WindowsHandleType is a non-exhaustive enumeration of Windows handle types.</xs:documentation>
92
+ </xs:annotation>
93
+ <xs:restriction base="xs:string">
94
+ <xs:enumeration value="AccessToken">
95
+ <xs:annotation>
96
+ <xs:documentation>Specifies an access token handle.</xs:documentation>
97
+ </xs:annotation>
98
+ </xs:enumeration>
99
+ <xs:enumeration value="Event">
100
+ <xs:annotation>
101
+ <xs:documentation>Specifies an event handle.</xs:documentation>
102
+ </xs:annotation>
103
+ </xs:enumeration>
104
+ <xs:enumeration value="File">
105
+ <xs:annotation>
106
+ <xs:documentation>Specifies a file handle.</xs:documentation>
107
+ </xs:annotation>
108
+ </xs:enumeration>
109
+ <xs:enumeration value="FileMapping">
110
+ <xs:annotation>
111
+ <xs:documentation>Specifies a file mapping handle.</xs:documentation>
112
+ </xs:annotation>
113
+ </xs:enumeration>
114
+ <xs:enumeration value="Job">
115
+ <xs:annotation>
116
+ <xs:documentation>Specifies a job handle.</xs:documentation>
117
+ </xs:annotation>
118
+ </xs:enumeration>
119
+ <xs:enumeration value="IOCompletionPort">
120
+ <xs:annotation>
121
+ <xs:documentation>Specifies an IO completion port handle.</xs:documentation>
122
+ </xs:annotation>
123
+ </xs:enumeration>
124
+ <xs:enumeration value="Mailslot">
125
+ <xs:annotation>
126
+ <xs:documentation>Specifies a mailslot handle.</xs:documentation>
127
+ </xs:annotation>
128
+ </xs:enumeration>
129
+ <xs:enumeration value="Mutex">
130
+ <xs:annotation>
131
+ <xs:documentation>Specifies a mutex handle.</xs:documentation>
132
+ </xs:annotation>
133
+ </xs:enumeration>
134
+ <xs:enumeration value="NamedPipe">
135
+ <xs:annotation>
136
+ <xs:documentation>Specifies a named pipe handle.</xs:documentation>
137
+ </xs:annotation>
138
+ </xs:enumeration>
139
+ <xs:enumeration value="Pipe">
140
+ <xs:annotation>
141
+ <xs:documentation>Specifies a pipe handle.</xs:documentation>
142
+ </xs:annotation>
143
+ </xs:enumeration>
144
+ <xs:enumeration value="Process">
145
+ <xs:annotation>
146
+ <xs:documentation>Specifies a process handle.</xs:documentation>
147
+ </xs:annotation>
148
+ </xs:enumeration>
149
+ <xs:enumeration value="Semaphore">
150
+ <xs:annotation>
151
+ <xs:documentation>Specifies a semaphore handle.</xs:documentation>
152
+ </xs:annotation>
153
+ </xs:enumeration>
154
+ <xs:enumeration value="Thread">
155
+ <xs:annotation>
156
+ <xs:documentation>Specifies a thread handle.</xs:documentation>
157
+ </xs:annotation>
158
+ </xs:enumeration>
159
+ <xs:enumeration value="Transaction">
160
+ <xs:annotation>
161
+ <xs:documentation>Specifies a transaction handle.</xs:documentation>
162
+ </xs:annotation>
163
+ </xs:enumeration>
164
+ <xs:enumeration value="WaitableTimer">
165
+ <xs:annotation>
166
+ <xs:documentation>Specifies a waitable timer handle.</xs:documentation>
167
+ </xs:annotation>
168
+ </xs:enumeration>
169
+ <xs:enumeration value="RegistryKey">
170
+ <xs:annotation>
171
+ <xs:documentation>Specifies a registry key handle.</xs:documentation>
172
+ </xs:annotation>
173
+ </xs:enumeration>
174
+ <xs:enumeration value="Window">
175
+ <xs:annotation>
176
+ <xs:documentation>Specifies a window handle.</xs:documentation>
177
+ </xs:annotation>
178
+ </xs:enumeration>
179
+ <xs:enumeration value="ServiceControlManager">
180
+ <xs:annotation>
181
+ <xs:documentation>Specifies a service control manager handle.</xs:documentation>
182
+ </xs:annotation>
183
+ </xs:enumeration>
184
+ <xs:enumeration value="CommunicationsDevice">
185
+ <xs:annotation>
186
+ <xs:documentation>Specifies a communications device handle.</xs:documentation>
187
+ </xs:annotation>
188
+ </xs:enumeration>
189
+ <xs:enumeration value="ConsoleInput">
190
+ <xs:annotation>
191
+ <xs:documentation>Specifies a console input handle.</xs:documentation>
192
+ </xs:annotation>
193
+ </xs:enumeration>
194
+ <xs:enumeration value="ConsoleScreenBuffer">
195
+ <xs:annotation>
196
+ <xs:documentation>Specifies a console screen buffer handle.</xs:documentation>
197
+ </xs:annotation>
198
+ </xs:enumeration>
199
+ <xs:enumeration value="MemoryResourceNotification">
200
+ <xs:annotation>
201
+ <xs:documentation>Specifies a memory resource notification handle.</xs:documentation>
202
+ </xs:annotation>
203
+ </xs:enumeration>
204
+ <xs:enumeration value="Directory">
205
+ <xs:annotation>
206
+ <xs:documentation>Specifies a directory handle.</xs:documentation>
207
+ </xs:annotation>
208
+ </xs:enumeration>
209
+ <xs:enumeration value="SymbolicLink">
210
+ <xs:annotation>
211
+ <xs:documentation>Specifies a symbolic link handle.</xs:documentation>
212
+ </xs:annotation>
213
+ </xs:enumeration>
214
+ <xs:enumeration value="Token">
215
+ <xs:annotation>
216
+ <xs:documentation>Specifies a token handle.</xs:documentation>
217
+ </xs:annotation>
218
+ </xs:enumeration>
219
+ <xs:enumeration value="Profile">
220
+ <xs:annotation>
221
+ <xs:documentation>Specifies a profile handle.</xs:documentation>
222
+ </xs:annotation>
223
+ </xs:enumeration>
224
+ <xs:enumeration value="WindowStation">
225
+ <xs:annotation>
226
+ <xs:documentation>Specifies a window station handle.</xs:documentation>
227
+ </xs:annotation>
228
+ </xs:enumeration>
229
+ <xs:enumeration value="Port">
230
+ <xs:annotation>
231
+ <xs:documentation>Specifies a port handle.</xs:documentation>
232
+ </xs:annotation>
233
+ </xs:enumeration>
234
+ <xs:enumeration value="WaitablePort">
235
+ <xs:annotation>
236
+ <xs:documentation>Specifies a waitable port handle.</xs:documentation>
237
+ </xs:annotation>
238
+ </xs:enumeration>
239
+ <xs:enumeration value="Controller">
240
+ <xs:annotation>
241
+ <xs:documentation>Specifies a controller handle.</xs:documentation>
242
+ </xs:annotation>
243
+ </xs:enumeration>
244
+ <xs:enumeration value="Driver">
245
+ <xs:annotation>
246
+ <xs:documentation>Specifies a driver handle.</xs:documentation>
247
+ </xs:annotation>
248
+ </xs:enumeration>
249
+ <xs:enumeration value="Desktop">
250
+ <xs:annotation>
251
+ <xs:documentation>Specifies a desktop handle.</xs:documentation>
252
+ </xs:annotation>
253
+ </xs:enumeration>
254
+ <xs:enumeration value="Adapter">
255
+ <xs:annotation>
256
+ <xs:documentation>Specifies an adapter handle.</xs:documentation>
257
+ </xs:annotation>
258
+ </xs:enumeration>
259
+ <xs:enumeration value="Bitmap">
260
+ <xs:annotation>
261
+ <xs:documentation>Specifies a bitmap handle.</xs:documentation>
262
+ </xs:annotation>
263
+ </xs:enumeration>
264
+ <xs:enumeration value="Brush">
265
+ <xs:annotation>
266
+ <xs:documentation>Specifies a brush handle.</xs:documentation>
267
+ </xs:annotation>
268
+ </xs:enumeration>
269
+ <xs:enumeration value="ColorSpace">
270
+ <xs:annotation>
271
+ <xs:documentation>Specifies a color space handle.</xs:documentation>
272
+ </xs:annotation>
273
+ </xs:enumeration>
274
+ <xs:enumeration value="Cursor">
275
+ <xs:annotation>
276
+ <xs:documentation>Specifies a cursor handle.</xs:documentation>
277
+ </xs:annotation>
278
+ </xs:enumeration>
279
+ <xs:enumeration value="DeviceContext">
280
+ <xs:annotation>
281
+ <xs:documentation>Specifies a device context handle.</xs:documentation>
282
+ </xs:annotation>
283
+ </xs:enumeration>
284
+ <xs:enumeration value="EnhancedMetafile">
285
+ <xs:annotation>
286
+ <xs:documentation>Specifies an enhanced metafile handle.</xs:documentation>
287
+ </xs:annotation>
288
+ </xs:enumeration>
289
+ <xs:enumeration value="Font">
290
+ <xs:annotation>
291
+ <xs:documentation>Specifies a font handle.</xs:documentation>
292
+ </xs:annotation>
293
+ </xs:enumeration>
294
+ <xs:enumeration value="GDIObject">
295
+ <xs:annotation>
296
+ <xs:documentation>Specifies a GDI object handle.</xs:documentation>
297
+ </xs:annotation>
298
+ </xs:enumeration>
299
+ <xs:enumeration value="Hook">
300
+ <xs:annotation>
301
+ <xs:documentation>Specifies a hook handle.</xs:documentation>
302
+ </xs:annotation>
303
+ </xs:enumeration>
304
+ <xs:enumeration value="Icon">
305
+ <xs:annotation>
306
+ <xs:documentation>Specifies an icon handle.</xs:documentation>
307
+ </xs:annotation>
308
+ </xs:enumeration>
309
+ <xs:enumeration value="Instance">
310
+ <xs:annotation>
311
+ <xs:documentation>Specifies a module instance handle.</xs:documentation>
312
+ </xs:annotation>
313
+ </xs:enumeration>
314
+ <xs:enumeration value="Menu">
315
+ <xs:annotation>
316
+ <xs:documentation>Specifies a menu handle.</xs:documentation>
317
+ </xs:annotation>
318
+ </xs:enumeration>
319
+ <xs:enumeration value="Metafile">
320
+ <xs:annotation>
321
+ <xs:documentation>Specifies a metafile handle.</xs:documentation>
322
+ </xs:annotation>
323
+ </xs:enumeration>
324
+ <xs:enumeration value="DisplayMonitor">
325
+ <xs:annotation>
326
+ <xs:documentation>Specifies a display monitor handle.</xs:documentation>
327
+ </xs:annotation>
328
+ </xs:enumeration>
329
+ <xs:enumeration value="Palette">
330
+ <xs:annotation>
331
+ <xs:documentation>Specifies a palette handle.</xs:documentation>
332
+ </xs:annotation>
333
+ </xs:enumeration>
334
+ <xs:enumeration value="Pen">
335
+ <xs:annotation>
336
+ <xs:documentation>Specifies a pen handle.</xs:documentation>
337
+ </xs:annotation>
338
+ </xs:enumeration>
339
+ <xs:enumeration value="Region">
340
+ <xs:annotation>
341
+ <xs:documentation>Specifies a region handle.</xs:documentation>
342
+ </xs:annotation>
343
+ </xs:enumeration>
344
+ <xs:enumeration value="Resource">
345
+ <xs:annotation>
346
+ <xs:documentation>Specifies a resource handle.</xs:documentation>
347
+ </xs:annotation>
348
+ </xs:enumeration>
349
+ </xs:restriction>
350
+ </xs:simpleType>
351
+ </xs:schema>
@@ -0,0 +1,152 @@
1
+ <?xml version='1.0' encoding='UTF-8'?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:WinHookObj="http://cybox.mitre.org/objects#WinHookObject-1" xmlns:LibraryObj="http://cybox.mitre.org/objects#LibraryObject-2" xmlns:cyboxCommon="http://cybox.mitre.org/common-2" xmlns:WinHandleObj="http://cybox.mitre.org/objects#WinHandleObject-2" targetNamespace="http://cybox.mitre.org/objects#WinHookObject-1" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
3
+ <xs:annotation>
4
+ <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>
5
+ <xs:appinfo>
6
+ <schema>Win_Event_Object</schema>
7
+ <version>1.0</version>
8
+ <date>01/22/2014</date>
9
+ <short_description>The following specifies the fields and types that compose this defined CybOX Object type. Each defined object is an extension of the abstract ObjectPropertiesType, defined in CybOX Common. 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>
10
+ <terms_of_use>Copyright (c) 2012-2014, 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>
11
+ </xs:appinfo>
12
+ </xs:annotation>
13
+ <xs:import namespace="http://cybox.mitre.org/common-2" schemaLocation="../cybox_common.xsd"/>
14
+ <xs:import namespace="http://cybox.mitre.org/objects#WinHandleObject-2" schemaLocation="Win_Handle_Object.xsd"/>
15
+ <xs:import namespace="http://cybox.mitre.org/objects#LibraryObject-2" schemaLocation="Library_Object.xsd"/>
16
+ <xs:element name="Windows_Hook" type="WinHookObj:WindowsHookObjectType">
17
+ <xs:annotation>
18
+ <xs:documentation>The Windows_Hook object is intended to characterize Windows hook procedures.</xs:documentation>
19
+ </xs:annotation>
20
+ </xs:element>
21
+ <xs:complexType name="WindowsHookObjectType" mixed="false">
22
+ <xs:annotation>
23
+ <xs:documentation>The WindowsHookObjectType type is intended to characterize Windows hook procedure objects.</xs:documentation>
24
+ <xs:documentation>For more information please see http://msdn.microsoft.com/en-us/library/windows/desktop/ms644990(v=vs.85).aspx.</xs:documentation>
25
+ </xs:annotation>
26
+ <xs:complexContent>
27
+ <xs:extension base="cyboxCommon:ObjectPropertiesType">
28
+ <xs:sequence>
29
+ <xs:element name="Type" type="WinHookObj:WinHookType" minOccurs="0">
30
+ <xs:annotation>
31
+ <xs:documentation>The Type field specifies the type (i.e. WH_) of the Windows hook procedure, which refers to the type of event that the hook will intercept.</xs:documentation>
32
+ </xs:annotation>
33
+ </xs:element>
34
+ <xs:element name="Handle" type="WinHandleObj:WindowsHandleObjectType" minOccurs="0">
35
+ <xs:annotation>
36
+ <xs:documentation>The Handle field specifies the handle associated with the Windows hook procedure. It uses the WindowsHandleObjectType type from the imported CybOX Windows Handle object.</xs:documentation>
37
+ </xs:annotation>
38
+ </xs:element>
39
+ <xs:element minOccurs="0" name="Hooking_Function_Name" type="cyboxCommon:StringObjectPropertyType">
40
+ <xs:annotation>
41
+ <xs:documentation>The Hooking_Function_Name field specifies the name of the hooking function used by the Windows hook procedure.</xs:documentation>
42
+ </xs:annotation>
43
+ </xs:element>
44
+ <xs:element minOccurs="0" name="Hooking_Module" type="LibraryObj:LibraryObjectType">
45
+ <xs:annotation>
46
+ <xs:documentation>The Hooking_Module field specifies the properties of the module that contains the hooking function used in the Windows hook procedure that is specified in the Hooking_Function_Name field. It uses the LibraryObjectType from the imported CybOX Library Object.</xs:documentation>
47
+ </xs:annotation>
48
+ </xs:element>
49
+ <xs:element minOccurs="0" name="Thread_ID" type="cyboxCommon:NonNegativeIntegerObjectPropertyType">
50
+ <xs:annotation>
51
+ <xs:documentation>The Thread_ID field specifies the ID of the thread associated with the Windows procedure, if applicable.</xs:documentation>
52
+ </xs:annotation>
53
+ </xs:element>
54
+ </xs:sequence>
55
+ </xs:extension>
56
+ </xs:complexContent>
57
+ </xs:complexType>
58
+ <xs:complexType name="WinHookType">
59
+ <xs:annotation>
60
+ <xs:documentation>WinHookType specifies Windows hook procedure types, via a union of the WinHookTypeEnum type and the atomic xs:string type. Its base type is the CybOX Core BaseObjectPropertyType, for permitting complex (i.e. regular-expression based) specifications.</xs:documentation>
61
+ </xs:annotation>
62
+ <xs:simpleContent>
63
+ <xs:restriction base="cyboxCommon:BaseObjectPropertyType">
64
+ <xs:simpleType>
65
+ <xs:union memberTypes="WinHookObj:WinHookTypeEnum xs:string"/>
66
+ </xs:simpleType>
67
+ </xs:restriction>
68
+ </xs:simpleContent>
69
+ </xs:complexType>
70
+ <xs:simpleType name="WinHookTypeEnum">
71
+ <xs:annotation>
72
+ <xs:documentation>The WinHookTypeEnum type is an enumeration of Windows hook procedure types.</xs:documentation>
73
+ </xs:annotation>
74
+ <xs:restriction base="xs:string">
75
+ <xs:enumeration value="WH_CALLWNDPROC">
76
+ <xs:annotation>
77
+ <xs:documentation>Specifies a hook procedure that monitors messages before the system sends them to the destination window procedure.</xs:documentation>
78
+ </xs:annotation>
79
+ </xs:enumeration>
80
+ <xs:enumeration value="WH_CALLWNDPROCRET">
81
+ <xs:annotation>
82
+ <xs:documentation>Specifies a hook procedure that monitors messages after they have been processed by the destination window procedure.</xs:documentation>
83
+ </xs:annotation>
84
+ </xs:enumeration>
85
+ <xs:enumeration value="WH_CBT">
86
+ <xs:annotation>
87
+ <xs:documentation>Specifies a hook procedure that receives notifications useful to a CBT application.</xs:documentation>
88
+ </xs:annotation>
89
+ </xs:enumeration>
90
+ <xs:enumeration value="WH_DEBUG">
91
+ <xs:annotation>
92
+ <xs:documentation>Specifies a hook procedure useful for debugging other hook procedures.</xs:documentation>
93
+ </xs:annotation>
94
+ </xs:enumeration>
95
+ <xs:enumeration value="WH_FOREGROUNDIDLE">
96
+ <xs:annotation>
97
+ <xs:documentation>Specifies a hook procedure that will be called when the application's foreground thread is about to become idle.</xs:documentation>
98
+ </xs:annotation>
99
+ </xs:enumeration>
100
+ <xs:enumeration value="WH_GETMESSAGE">
101
+ <xs:annotation>
102
+ <xs:documentation>Specifies a hook procedure that monitors messages posted to a message queue.</xs:documentation>
103
+ </xs:annotation>
104
+ </xs:enumeration>
105
+ <xs:enumeration value="WH_JOURNALPLAYBACK">
106
+ <xs:annotation>
107
+ <xs:documentation>Specifies a hook procedure that posts messages previously recorded by a WH_JOURNALRECORD hook procedure.</xs:documentation>
108
+ </xs:annotation>
109
+ </xs:enumeration>
110
+ <xs:enumeration value="WH_JOURNALRECORD">
111
+ <xs:annotation>
112
+ <xs:documentation>Specifies a hook procedure that records input messages posted to the system message queue.</xs:documentation>
113
+ </xs:annotation>
114
+ </xs:enumeration>
115
+ <xs:enumeration value="WH_KEYBOARD">
116
+ <xs:annotation>
117
+ <xs:documentation>Specifies a hook procedure that monitors keystroke messages.</xs:documentation>
118
+ </xs:annotation>
119
+ </xs:enumeration>
120
+ <xs:enumeration value="WH_KEYBOARD_LL">
121
+ <xs:annotation>
122
+ <xs:documentation>Specifies a hook procedure that monitors low-level keyboard input events.</xs:documentation>
123
+ </xs:annotation>
124
+ </xs:enumeration>
125
+ <xs:enumeration value="WH_MOUSE">
126
+ <xs:annotation>
127
+ <xs:documentation>Specifies a hook procedure that monitors mouse messages.</xs:documentation>
128
+ </xs:annotation>
129
+ </xs:enumeration>
130
+ <xs:enumeration value="WH_MOUSE_LL">
131
+ <xs:annotation>
132
+ <xs:documentation>Specifies a hook procedure that monitors low-level mouse input events.</xs:documentation>
133
+ </xs:annotation>
134
+ </xs:enumeration>
135
+ <xs:enumeration value="WH_MSGFILTER">
136
+ <xs:annotation>
137
+ <xs:documentation>Specifies a hook procedure that monitors messages generated as a result of an input event in a dialog box, message box, menu, or scroll bar.</xs:documentation>
138
+ </xs:annotation>
139
+ </xs:enumeration>
140
+ <xs:enumeration value="WH_SHELL">
141
+ <xs:annotation>
142
+ <xs:documentation>Specifies a hook procedure that receives notifications useful to shell applications.</xs:documentation>
143
+ </xs:annotation>
144
+ </xs:enumeration>
145
+ <xs:enumeration value="WH_SYSMSGFILTER">
146
+ <xs:annotation>
147
+ <xs:documentation>Specifies a hook procedure that monitors messages generated as a result of an input event in a dialog box, message box, menu, or scroll bar.</xs:documentation>
148
+ </xs:annotation>
149
+ </xs:enumeration>
150
+ </xs:restriction>
151
+ </xs:simpleType>
152
+ </xs:schema>
@@ -0,0 +1,109 @@
1
+ <?xml version='1.0' encoding='UTF-8'?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:WinKernelHookObj="http://cybox.mitre.org/objects#WinKernelHookObject-2" xmlns:cyboxCommon="http://cybox.mitre.org/common-2" targetNamespace="http://cybox.mitre.org/objects#WinKernelHookObject-2" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1">
3
+ <xs:annotation>
4
+ <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>
5
+ <xs:appinfo>
6
+ <schema>Win_Kernel_Hook_Object</schema>
7
+ <version>2.1</version>
8
+ <date>01/22/2014</date>
9
+ <short_description>The following specifies the fields and types that compose this defined CybOX Object type. Each defined object is an extension of the abstract ObjectPropertiesType, defined in CybOX Common. 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>
10
+ <terms_of_use>Copyright (c) 2012-2014, 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>
11
+ </xs:appinfo>
12
+ </xs:annotation>
13
+ <xs:import namespace="http://cybox.mitre.org/common-2" schemaLocation="../cybox_common.xsd"/>
14
+ <xs:element name="Windows_Kernel_Hook" type="WinKernelHookObj:WindowsKernelHookObjectType">
15
+ <xs:annotation>
16
+ <xs:documentation>The Windows_Kernel_Hook object is intended to characterize Windows kernel function hooks.</xs:documentation>
17
+ </xs:annotation>
18
+ </xs:element>
19
+ <xs:complexType name="WindowsKernelHookObjectType" mixed="false">
20
+ <xs:annotation>
21
+ <xs:documentation>The WindowsKernelHookObjectType type is intended to characterize Windows kernel function hooks.</xs:documentation>
22
+ </xs:annotation>
23
+ <xs:complexContent>
24
+ <xs:extension base="cyboxCommon:ObjectPropertiesType">
25
+ <xs:sequence>
26
+ <xs:element name="Digital_Signature_Hooking" type="cyboxCommon:DigitalSignatureInfoType" minOccurs="0" maxOccurs="1">
27
+ <xs:annotation>
28
+ <xs:documentation>The Digital_Signature_Hooked field is optional and specifies the digital signature of the hooking code.</xs:documentation>
29
+ </xs:annotation>
30
+ </xs:element>
31
+ <xs:element name="Digital_Signature_Hooked" type="cyboxCommon:DigitalSignatureInfoType" minOccurs="0" maxOccurs="1">
32
+ <xs:annotation>
33
+ <xs:documentation>The Digital_Signature_Hooked field is optional and specifies the digital signature of the hooked code.</xs:documentation>
34
+ </xs:annotation>
35
+ </xs:element>
36
+ <xs:element name="Hooking_Address" type="cyboxCommon:UnsignedLongObjectPropertyType" minOccurs="0" maxOccurs="1">
37
+ <xs:annotation>
38
+ <xs:documentation>The Hooking_Address field is optional and specifies the address from where the hooking occurs.</xs:documentation>
39
+ </xs:annotation>
40
+ </xs:element>
41
+ <xs:element name="Hook_Description" type="cyboxCommon:StringObjectPropertyType" minOccurs="0" maxOccurs="1">
42
+ <xs:annotation>
43
+ <xs:documentation>The Hook_Description field is optional and provides a description of the nature of the hook.</xs:documentation>
44
+ </xs:annotation>
45
+ </xs:element>
46
+ <xs:element name="Hooked_Function" type="cyboxCommon:StringObjectPropertyType" minOccurs="0" maxOccurs="1">
47
+ <xs:annotation>
48
+ <xs:documentation>The Hooked_Function field specifies the name of the function that is hooked.</xs:documentation>
49
+ </xs:annotation>
50
+ </xs:element>
51
+ <xs:element name="Hooked_Module" type="cyboxCommon:StringObjectPropertyType" minOccurs="0" maxOccurs="1">
52
+ <xs:annotation>
53
+ <xs:documentation>The Hooked_Module field specifies the name of the module that is hooked.</xs:documentation>
54
+ </xs:annotation>
55
+ </xs:element>
56
+ <xs:element name="Hooking_Module" type="cyboxCommon:StringObjectPropertyType" minOccurs="0" maxOccurs="1">
57
+ <xs:annotation>
58
+ <xs:documentation>The Hooking_Module field specifies the name of the module that is doing the hooking.</xs:documentation>
59
+ </xs:annotation>
60
+ </xs:element>
61
+ <xs:element name="Type" type="WinKernelHookObj:KernelHookType" minOccurs="0">
62
+ <xs:annotation>
63
+ <xs:documentation>The Type field specifies the type of hook being characterized.</xs:documentation>
64
+ </xs:annotation>
65
+ </xs:element>
66
+ </xs:sequence>
67
+ </xs:extension>
68
+ </xs:complexContent>
69
+ </xs:complexType>
70
+ <xs:complexType name="KernelHookType">
71
+ <xs:annotation>
72
+ <xs:documentation>KernelHookType specifies Windows kernel hook types via a union of the KernelHookTypeEnum type and the atomic xs:string type. Its base type is the CybOX Core BaseObjectPropertyType, for permitting complex (i.e. regular-expression based) specifications.</xs:documentation>
73
+ </xs:annotation>
74
+ <xs:simpleContent>
75
+ <xs:restriction base="cyboxCommon:BaseObjectPropertyType">
76
+ <xs:simpleType>
77
+ <xs:union memberTypes="WinKernelHookObj:KernelHookTypeEnum xs:string"/>
78
+ </xs:simpleType>
79
+ <xs:attribute name="datatype" type="cyboxCommon:DatatypeEnum" fixed="string">
80
+ <xs:annotation>
81
+ <xs:documentation>This attribute is optional and specifies the expected type for the value of the specified property.</xs:documentation>
82
+ </xs:annotation>
83
+ </xs:attribute>
84
+ </xs:restriction>
85
+ </xs:simpleContent>
86
+ </xs:complexType>
87
+ <xs:simpleType name="KernelHookTypeEnum">
88
+ <xs:annotation>
89
+ <xs:documentation>The KernelHookTypeEnum type is a non-exhaustive enumeration of Windows kernel hook types.</xs:documentation>
90
+ </xs:annotation>
91
+ <xs:restriction base="xs:string">
92
+ <xs:enumeration value="IAT_API">
93
+ <xs:annotation>
94
+ <xs:documentation>Specifies a kernel hook type of IAT_API.</xs:documentation>
95
+ </xs:annotation>
96
+ </xs:enumeration>
97
+ <xs:enumeration value="Inline_Function">
98
+ <xs:annotation>
99
+ <xs:documentation>Specifies an inline function type of kernel hook.</xs:documentation>
100
+ </xs:annotation>
101
+ </xs:enumeration>
102
+ <xs:enumeration value="Instruction_Hooking">
103
+ <xs:annotation>
104
+ <xs:documentation>Specifies an instruction hooking type of kernel hook.</xs:documentation>
105
+ </xs:annotation>
106
+ </xs:enumeration>
107
+ </xs:restriction>
108
+ </xs:simpleType>
109
+ </xs:schema>