| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
<xsd:schema |
| 60 |
targetNamespace="http://www.cisecurity.org/xccdf/platform/0.2.3" |
| 61 |
elementFormDefault="qualified" attributeFormDefault="unqualified" |
| 62 |
xmlns:cdfp="http://www.cisecurity.org/xccdf/platform/0.2.3" |
| 63 |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| 64 |
xmlns:xml="http://www.w3.org/XML/1998/namespace"> |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" |
| 70 |
schemaLocation="../../common/xml.xsd"> |
| 71 |
<xsd:annotation> |
| 72 |
<xsd:documentation> |
| 73 |
Get access to the xml: attribute groups for xml:lang. |
| 74 |
</xsd:documentation> |
| 75 |
</xsd:annotation> |
| 76 |
</xsd:import> |
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
<xsd:element name="platform-definitions"> |
| 82 |
<xsd:annotation> |
| 83 |
<xsd:documentation xml:lang="en"> |
| 84 |
This element contains the individual application, service, |
| 85 |
os and hardware definitions which will be used in an a-la-cart |
| 86 |
fashion to define specific platform support rulesets. |
| 87 |
</xsd:documentation> |
| 88 |
</xsd:annotation> |
| 89 |
<xsd:complexType> |
| 90 |
<xsd:sequence> |
| 91 |
<xsd:element ref="cdfp:application" minOccurs="0" maxOccurs="unbounded"/> |
| 92 |
<xsd:element ref="cdfp:service" minOccurs="0" maxOccurs="unbounded"/> |
| 93 |
<xsd:element ref="cdfp:os" minOccurs="0" maxOccurs="unbounded"/> |
| 94 |
<xsd:element ref="cdfp:hardware" minOccurs="0" maxOccurs="unbounded"/> |
| 95 |
<xsd:element name="platform-definition" maxOccurs="unbounded"> |
| 96 |
<xsd:complexType> |
| 97 |
<xsd:sequence> |
| 98 |
<xsd:element name="title" type="cdfp:textType"/> |
| 99 |
<xsd:element name="remark" type="cdfp:textType" |
| 100 |
minOccurs="0" maxOccurs="unbounded"/> |
| 101 |
<xsd:choice> |
| 102 |
<xsd:element ref="cdfp:product"/> |
| 103 |
<xsd:element ref="cdfp:logical-operator"/> |
| 104 |
</xsd:choice> |
| 105 |
</xsd:sequence> |
| 106 |
<xsd:attribute name="id" type="xsd:NCName" use="required"/> |
| 107 |
</xsd:complexType> |
| 108 |
</xsd:element> |
| 109 |
</xsd:sequence> |
| 110 |
<xsd:attribute ref="xml:base"/> |
| 111 |
</xsd:complexType> |
| 112 |
<xsd:unique name="idUnique"> |
| 113 |
<xsd:annotation> |
| 114 |
<xsd:documentation xml:lang="en"> |
| 115 |
This unique constraint keeps all ids used in this schema |
| 116 |
unique. This will help eliminate any confusion between |
| 117 |
using product and platform ids. |
| 118 |
</xsd:documentation> |
| 119 |
</xsd:annotation> |
| 120 |
<xsd:selector xpath=".//cdfp:application|.//cdfp:service|.//cdfp:os|.//cdfp:hardware|.//cdfp:platform-definition"/> |
| 121 |
<xsd:field xpath="@id"/> |
| 122 |
</xsd:unique> |
| 123 |
<xsd:key name="productIdKey"> |
| 124 |
<xsd:annotation> |
| 125 |
<xsd:documentation xml:lang="en"> |
| 126 |
The productIdKey is used to insure that all product ids |
| 127 |
are unique. A references to the product ids are used |
| 128 |
to build platform-definitions in an ala-cart fashion. |
| 129 |
</xsd:documentation> |
| 130 |
</xsd:annotation> |
| 131 |
<xsd:selector xpath=".//cdfp:application|.//cdfp:service|.//cdfp:os|.//cdfp:hardware"/> |
| 132 |
<xsd:field xpath="@id"/> |
| 133 |
</xsd:key> |
| 134 |
<xsd:key name="platformIdKey"> |
| 135 |
<xsd:annotation> |
| 136 |
<xsd:documentation xml:lang="en"> |
| 137 |
The platformIdKey is used externally to reference |
| 138 |
a specific platform-definition identified by a platform id. |
| 139 |
</xsd:documentation> |
| 140 |
</xsd:annotation> |
| 141 |
<xsd:selector xpath=".//cdfp:platform-definition"/> |
| 142 |
<xsd:field xpath="@id"/> |
| 143 |
</xsd:key> |
| 144 |
<xsd:keyref name="productIdKeyRef" refer="cdfp:productIdKey"> |
| 145 |
<xsd:selector xpath=".//cdfp:product"/> |
| 146 |
<xsd:field xpath="@idref"/> |
| 147 |
</xsd:keyref> |
| 148 |
</xsd:element> |
| 149 |
<xsd:element name="platform"> |
| 150 |
<xsd:annotation> |
| 151 |
<xsd:documentation xml:lang="en"> |
| 152 |
A listing of all supported platforms |
| 153 |
</xsd:documentation> |
| 154 |
</xsd:annotation> |
| 155 |
<xsd:complexType> |
| 156 |
<xsd:sequence> |
| 157 |
<xsd:element name="remark" type="cdfp:textType" |
| 158 |
minOccurs="0" maxOccurs="unbounded"/> |
| 159 |
</xsd:sequence> |
| 160 |
<xsd:attribute name="idref" type="xsd:NCName" use="required"/> |
| 161 |
</xsd:complexType> |
| 162 |
</xsd:element> |
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
<xsd:element name="application"> |
| 167 |
<xsd:annotation> |
| 168 |
<xsd:documentation xml:lang="en"> |
| 169 |
An application or user-level program component product, part |
| 170 |
of a platform. Examples: Microsoft Word, Mozilla |
| 171 |
</xsd:documentation> |
| 172 |
</xsd:annotation> |
| 173 |
<xsd:complexType> |
| 174 |
<xsd:complexContent> |
| 175 |
<xsd:extension base="cdfp:productType"> |
| 176 |
<xsd:attribute name="id" use="required"> |
| 177 |
<xsd:simpleType> |
| 178 |
<xsd:restriction base="xsd:NCName"> |
| 179 |
<xsd:pattern value="app-[a-zA-Z0-9\-]+"/> |
| 180 |
</xsd:restriction> |
| 181 |
</xsd:simpleType> |
| 182 |
</xsd:attribute> |
| 183 |
</xsd:extension> |
| 184 |
</xsd:complexContent> |
| 185 |
</xsd:complexType> |
| 186 |
</xsd:element> |
| 187 |
<xsd:element name="service"> |
| 188 |
<xsd:annotation> |
| 189 |
<xsd:documentation xml:lang="en"> |
| 190 |
A system or network service that is a component of a |
| 191 |
benchmark platform. Examples: Apache HTTPD, |
| 192 |
Microsoft Exchange, IBM MQSeries Message Server |
| 193 |
</xsd:documentation> |
| 194 |
</xsd:annotation> |
| 195 |
<xsd:complexType> |
| 196 |
<xsd:complexContent> |
| 197 |
<xsd:extension base="cdfp:productType"> |
| 198 |
<xsd:attribute name="id" use="required"> |
| 199 |
<xsd:simpleType> |
| 200 |
<xsd:restriction base="xsd:NCName"> |
| 201 |
<xsd:pattern value="srv-[a-zA-Z0-9\-]+"/> |
| 202 |
</xsd:restriction> |
| 203 |
</xsd:simpleType> |
| 204 |
</xsd:attribute> |
| 205 |
</xsd:extension> |
| 206 |
</xsd:complexContent> |
| 207 |
</xsd:complexType> |
| 208 |
</xsd:element> |
| 209 |
<xsd:element name="os"> |
| 210 |
<xsd:annotation> |
| 211 |
<xsd:documentation xml:lang="en"> |
| 212 |
The operating system for a benchmark platform. |
| 213 |
Examples: Microsoft Windows XP, Sun Solaris, Cisco IOS. |
| 214 |
</xsd:documentation> |
| 215 |
</xsd:annotation> |
| 216 |
<xsd:complexType> |
| 217 |
<xsd:complexContent> |
| 218 |
<xsd:extension base="cdfp:productType"> |
| 219 |
<xsd:attribute name="id" use="required"> |
| 220 |
<xsd:simpleType> |
| 221 |
<xsd:restriction base="xsd:NCName"> |
| 222 |
<xsd:pattern value="os-[a-zA-Z0-9\-]+"/> |
| 223 |
</xsd:restriction> |
| 224 |
</xsd:simpleType> |
| 225 |
</xsd:attribute> |
| 226 |
</xsd:extension> |
| 227 |
</xsd:complexContent> |
| 228 |
</xsd:complexType> |
| 229 |
</xsd:element> |
| 230 |
<xsd:element name="hardware"> |
| 231 |
<xsd:annotation> |
| 232 |
<xsd:documentation xml:lang="en"> |
| 233 |
A hardware chassis or designation that is part |
| 234 |
of the specification of a benchmark platform. |
| 235 |
Examples: Cisco C3725, Juniper M7. |
| 236 |
</xsd:documentation> |
| 237 |
</xsd:annotation> |
| 238 |
<xsd:complexType> |
| 239 |
<xsd:complexContent> |
| 240 |
<xsd:extension base="cdfp:productType"> |
| 241 |
<xsd:attribute name="id" use="required"> |
| 242 |
<xsd:simpleType> |
| 243 |
<xsd:restriction base="xsd:NCName"> |
| 244 |
<xsd:pattern value="hwr-[a-zA-Z0-9\-]+"/> |
| 245 |
</xsd:restriction> |
| 246 |
</xsd:simpleType> |
| 247 |
</xsd:attribute> |
| 248 |
</xsd:extension> |
| 249 |
</xsd:complexContent> |
| 250 |
</xsd:complexType> |
| 251 |
</xsd:element> |
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
<xsd:element name="product"> |
| 256 |
<xsd:complexType> |
| 257 |
<xsd:attribute name="idref" type="xsd:NCName" use="required"/> |
| 258 |
</xsd:complexType> |
| 259 |
</xsd:element> |
| 260 |
<xsd:element name="logical-operator"> |
| 261 |
<xsd:complexType> |
| 262 |
<xsd:choice maxOccurs="unbounded"> |
| 263 |
<xsd:element ref="cdfp:product"/> |
| 264 |
<xsd:element ref="cdfp:logical-operator"/> |
| 265 |
</xsd:choice> |
| 266 |
<xsd:attribute name="operator" use="required"> |
| 267 |
<xsd:simpleType> |
| 268 |
<xsd:restriction base="xsd:string"> |
| 269 |
<xsd:enumeration value="and"/> |
| 270 |
<xsd:enumeration value="or"/> |
| 271 |
</xsd:restriction> |
| 272 |
</xsd:simpleType> |
| 273 |
</xsd:attribute> |
| 274 |
</xsd:complexType> |
| 275 |
</xsd:element> |
| 276 |
|
| 277 |
|
| 278 |
|
| 279 |
<xsd:complexType name="textType"> |
| 280 |
<xsd:annotation> |
| 281 |
<xsd:documentation xml:lang="en"> |
| 282 |
Type for a string with an xml:lang attribute. |
| 283 |
(Note: changed this to allow any xml: attribute |
| 284 |
because xml:lang is a bit narrow, and also would |
| 285 |
require the validation processor to download the |
| 286 |
XML namespace schema every time. We cannot count |
| 287 |
on XCCDF or other benchmark users have a live |
| 288 |
Internet connection at all times.) |
| 289 |
</xsd:documentation> |
| 290 |
</xsd:annotation> |
| 291 |
<xsd:simpleContent> |
| 292 |
<xsd:extension base="xsd:string"> |
| 293 |
<xsd:attribute ref="xml:lang"/> |
| 294 |
</xsd:extension> |
| 295 |
</xsd:simpleContent> |
| 296 |
</xsd:complexType> |
| 297 |
<xsd:complexType name="productType"> |
| 298 |
<xsd:annotation> |
| 299 |
<xsd:documentation xml:lang="en"> |
| 300 |
An individual product or component that makes up the overall |
| 301 |
platform. For more information see the subtypes below. |
| 302 |
A product consists of: a name, a version designator, |
| 303 |
zero or more named properties, and zero or more remarks. |
| 304 |
</xsd:documentation> |
| 305 |
</xsd:annotation> |
| 306 |
<xsd:sequence> |
| 307 |
<xsd:element name="title" type="cdfp:textType"/> |
| 308 |
<xsd:element name="remark" type="cdfp:textType" |
| 309 |
minOccurs="0" maxOccurs="unbounded"/> |
| 310 |
<xsd:element name="vendor" type="xsd:string"> |
| 311 |
<xsd:annotation> |
| 312 |
<xsd:documentation> |
| 313 |
The organization |
| 314 |
responsible for development and maintenance of the product |
| 315 |
</xsd:documentation> |
| 316 |
</xsd:annotation> |
| 317 |
</xsd:element> |
| 318 |
<xsd:element name="family" type="xsd:string"> |
| 319 |
<xsd:annotation> |
| 320 |
<xsd:documentation> |
| 321 |
The product family the software or device belongs to. |
| 322 |
This will be used along with the optional model and |
| 323 |
level elements to determine version-range comparisons. |
| 324 |
Example: "Windows", "routers", "portal server". |
| 325 |
</xsd:documentation> |
| 326 |
</xsd:annotation> |
| 327 |
</xsd:element> |
| 328 |
<xsd:element name="model" type="xsd:string" minOccurs="0"> |
| 329 |
<xsd:annotation> |
| 330 |
<xsd:documentation> |
| 331 |
The product's model which will differentiate major versions |
| 332 |
of software. This may be useful when defining that all |
| 333 |
versions of software of a specific model are acceptable. |
| 334 |
</xsd:documentation> |
| 335 |
</xsd:annotation> |
| 336 |
</xsd:element> |
| 337 |
<xsd:element name="level" type="xsd:string" minOccurs="0"> |
| 338 |
<xsd:annotation> |
| 339 |
<xsd:documentation> |
| 340 |
The product's level which will differentiate functional |
| 341 |
capabilities across the same software version. |
| 342 |
Example: "enterprise", "home" |
| 343 |
</xsd:documentation> |
| 344 |
</xsd:annotation> |
| 345 |
</xsd:element> |
| 346 |
<xsd:choice minOccurs="0"> |
| 347 |
<xsd:element name="version"> |
| 348 |
<xsd:annotation> |
| 349 |
<xsd:documentation xml:lang="en"> |
| 350 |
The version designation for a platform component. |
| 351 |
This is the type for the version element: the element |
| 352 |
content is a version name or number, and the operator |
| 353 |
attribute specifies how that version applies. For |
| 354 |
example, to say 'IOS 12.1 or later', the content would |
| 355 |
be "12.1" and the operator attribute would be |
| 356 |
"greater than or equal to". |
| 357 |
</xsd:documentation> |
| 358 |
</xsd:annotation> |
| 359 |
<xsd:complexType> |
| 360 |
<xsd:simpleContent> |
| 361 |
<xsd:extension base="xsd:string"> |
| 362 |
<xsd:attribute name="operator" |
| 363 |
type="cdfp:versionOperatorType" use="optional" |
| 364 |
default="equals"/> |
| 365 |
</xsd:extension> |
| 366 |
</xsd:simpleContent> |
| 367 |
</xsd:complexType> |
| 368 |
</xsd:element> |
| 369 |
<xsd:element name="version-range"> |
| 370 |
<xsd:complexType> |
| 371 |
<xsd:sequence> |
| 372 |
<xsd:choice> |
| 373 |
<xsd:element name="min-inclusive" type="xsd:string"/> |
| 374 |
<xsd:element name="min-exclusive" type="xsd:string"/> |
| 375 |
</xsd:choice> |
| 376 |
<xsd:choice> |
| 377 |
<xsd:element name="max-inclusive" type="xsd:string"/> |
| 378 |
<xsd:element name="max-exclusive" type="xsd:string"/> |
| 379 |
</xsd:choice> |
| 380 |
</xsd:sequence> |
| 381 |
</xsd:complexType> |
| 382 |
</xsd:element> |
| 383 |
</xsd:choice> |
| 384 |
</xsd:sequence> |
| 385 |
</xsd:complexType> |
| 386 |
|
| 387 |
|
| 388 |
|
| 389 |
<xsd:simpleType name="versionOperatorType"> |
| 390 |
<xsd:annotation> |
| 391 |
<xsd:documentation xml:lang="en"> |
| 392 |
Allowed operators for version elements. These are valid |
| 393 |
only for quasi-numeric version numbers, but the schema doesn't enforce it. |
| 394 |
</xsd:documentation> |
| 395 |
</xsd:annotation> |
| 396 |
<xsd:restriction base="xsd:string"> |
| 397 |
<xsd:enumeration value="equals"/> |
| 398 |
<xsd:enumeration value="not equal"/> |
| 399 |
</xsd:restriction> |
| 400 |
</xsd:simpleType> |
| 401 |
</xsd:schema> |