Debian Codegraph @

schemas/xccdf/1.1/xccdf-schema.xsd

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4 xmlns:cdf="http://checklists.nist.gov/xccdf/1.1"
5 xmlns:dc="http://purl.org/dc/elements/1.1/"
6 xmlns:cisp="http://www.cisecurity.org/xccdf/platform/0.2.3"
7 xmlns:cdfp="http://checklists.nist.gov/xccdf-p/1.1"
8 xmlns:cpe1="http://cpe.mitre.org/XMLSchema/cpe/1.0"
9 xmlns:cpe2="http://cpe.mitre.org/language/2.0"
10 xmlns:xsi="http://www.w3.org/2001/XMLSchema-Instance"
11 targetNamespace="http://checklists.nist.gov/xccdf/1.1"
12 elementFormDefault="qualified" attributeFormDefault="unqualified">
13
14 <xsd:annotation>
15 <xsd:documentation xml:lang="en">
16 This schema defines the eXtensible Configuration Checklist
17 Description Format (XCCDF), a data format for defining
18 security benchmarks and checklists, and for recording
19 the results of applying such benchmarks.
20 For more information, consult the specification
21 document, "Specification for the Extensible Configuration
22 Checklist Description Format", version 1.1 revision 4.
23
24 This schema was developed by Neal Ziring, with ideas and
25 assistance from David Waltermire. The following helpful
26 individuals also contributed ideas to the definition
27 of this schema: David Proulx, Andrew Buttner, Ryan Wilson,
28 Matthew Kerr, Stephen Quinn. Ian Crawford found numerous
29 discrepancies between this schema and the spec document.
30 Peter Mell and his colleagues also made many suggestions.
31 <version date="10 October 2007">1.1.4.3</version>
32 </xsd:documentation>
33 <xsd:appinfo>
34 <schema>XCCDF Language</schema>
35 <author>Neal Ziring</author>
36 <version>1.1.4.3</version>
37 <date>2007-10-10</date>
38 </xsd:appinfo>
39 </xsd:annotation>
40
41 <!-- Import base XML namespace -->
42 <xsd:import namespace="http://www.w3.org/XML/1998/namespace"
43 schemaLocation="../../common/xml.xsd">
44 <xsd:annotation>
45 <xsd:documentation xml:lang="en">
46 Import the XML namespace because this schema uses
47 the xml:lang and xml:base attributes.
48 </xsd:documentation>
49 </xsd:annotation>
50 </xsd:import>
51
52 <!-- Import Dublin Core metadata namespace -->
53 <xsd:import namespace="http://purl.org/dc/elements/1.1/"
54 schemaLocation="simpledc20021212.xsd">
55 <xsd:annotation>
56 <xsd:documentation xml:lang="en">
57 Import the simple Dublin Core namespace because this
58 schema uses it for benchmark metadata and for references.
59 </xsd:documentation>
60 </xsd:annotation>
61 </xsd:import>
62
63 <!-- Import CIS platform specification namespace - DEPRECATED -->
64 <xsd:import namespace="http://www.cisecurity.org/xccdf/platform/0.2.3"
65 schemaLocation="platform-0.2.3.xsd">
66 <xsd:annotation>
67 <xsd:documentation xml:lang="en">
68 Import the CIS platform schema, which we use for
69 describing target IT platforms in the Benchmark. The
70 CIS platform schema was designed by David Waltermire.
71 Use of the CIS platform schema in XCCDF benchmarks is
72 deprecated. The CIS platform schema is included only for
73 backward compatibility with XCCDF 1.0. Use CPE 2.0 instead.
74 </xsd:documentation>
75 </xsd:annotation>
76 </xsd:import>
77
78 <!-- Import XCCDF-P platform specification namespace - DEPRECATED -->
79 <xsd:import namespace="http://checklists.nist.gov/xccdf-p/1.1"
80 schemaLocation="xccdfp-1.1.xsd">
81 <xsd:annotation>
82 <xsd:documentation xml:lang="en">
83 Import the XCCDF-P platform schema, which we use
84 for describing target IT platforms in the Benchmark.
85 The CIS platform schema was designed by Neal Ziring
86 using ideas and concepts developed by DISA, CIS, and
87 others. Use of XCCDF-P platform specification in
88 XCCDF benchmarks is deprecated. XCCDF-P is included
89 in this schema only for backward compatibility with
90 version 1.1 and 1.1.2. Use CPE 2.0 instead.
91 </xsd:documentation>
92 </xsd:annotation>
93 </xsd:import>
94
95 <!-- Import CPE 1.0 dictionary namespace - DEPRECATED -->
96 <xsd:import namespace="http://cpe.mitre.org/XMLSchema/cpe/1.0"
97 schemaLocation="cpe-1.0.xsd">
98 <xsd:annotation>
99 <xsd:documentation xml:lang="en">
100 Import the Common Platform Enumeration XML schema,
101 which can be used for naming and describing target
102 IT platforms in the Benchmark. Every CPE name is
103 a URI that begins with "cpe:". For more details see
104 "Common Platform Enumeration (CPE) - Specification",
105 by Buttner, Wittbold, and Ziring (2007). Use of CPE 1.0
106 definitions in XCCDF benchmarks is deprecated. CPE 1.0
107 is included in this schema only for backward compatibility
108 with XCCDF 1.1.2 and 1.1.3. CPE 2.0 Names should be used
109 for simple (unitary) platforms, and CPE 2.0 Language
110 definitions used for complex platforms.
111 </xsd:documentation>
112 </xsd:annotation>
113 </xsd:import>
114
115 <!-- Import CPE 2.0 Language namespace -->
116 <xsd:import namespace="http://cpe.mitre.org/language/2.0"
117 schemaLocation="cpe-language_2.0.xsd">
118 <xsd:annotation>
119 <xsd:documentation xml:lang="en">
120 Import the Common Platform Enumeration language schema,
121 which can be used for defining compound CPE tests for
122 complex IT platforms in the Benchmark. For more info
123 see "Common Platform Enumeration (CPE) - Specification",
124 Version 2.0" by Buttner and Ziring (Sept 2007).
125 </xsd:documentation>
126 </xsd:annotation>
127 </xsd:import>
128
129 <!-- ************************************************************** -->
130 <!-- ***************** Benchmark Element ************************ -->
131 <!-- ************************************************************** -->
132 <xsd:element name="Benchmark">
133 <xsd:annotation>
134 <xsd:documentation xml:lang="en">
135 The benchmark tag is the top level element representing a
136 complete security checklist, including descriptive text,
137 metadata, test items, and test results. A Benchmark may
138 be signed with a XML-Signature.
139 </xsd:documentation>
140 </xsd:annotation>
141 <xsd:complexType>
142 <xsd:sequence>
143 <xsd:element ref="cdf:status"
144 minOccurs="1" maxOccurs="unbounded"/>
145 <xsd:element name="title" type="cdf:textType"
146 minOccurs="0" maxOccurs="unbounded"/>
147 <xsd:element name="description" type="cdf:htmlTextWithSubType"
148 minOccurs="0" maxOccurs="unbounded"/>
149 <xsd:element name="notice" type="cdf:noticeType"
150 minOccurs="0" maxOccurs="unbounded"/>
151 <xsd:element name="front-matter" type="cdf:htmlTextWithSubType"
152 minOccurs="0" maxOccurs="unbounded"/>
153 <xsd:element name="rear-matter" type="cdf:htmlTextWithSubType"
154 minOccurs="0" maxOccurs="unbounded"/>
155 <xsd:element name="reference" type="cdf:referenceType"
156 minOccurs="0" maxOccurs="unbounded"/>
157 <xsd:element name="plain-text" type="cdf:plainTextType"
158 minOccurs="0" maxOccurs="unbounded"/>
159 <!-- Choice of current (CPE 2.0) or deprecated platform
160 identifier elements. -->
161 <xsd:choice minOccurs="0" maxOccurs="1">
162 <!-- CIS Platform schema, compatibility with XCCDF 1.0 -->
163 <xsd:element ref="cisp:platform-definitions"
164 minOccurs="0" maxOccurs="1"/>
165 <!-- XCCDF-P 1.0 schema, compatibility with XCCDF 1.1 -->
166 <xsd:element ref="cdfp:Platform-Specification"
167 minOccurs="0" maxOccurs="1"/>
168 <!-- CPE 1.0 schema, compatibility with XCCDF 1.1.3 -->
169 <xsd:element ref="cpe1:cpe-list"
170 minOccurs="0" maxOccurs="1"/>
171 <!-- CPE 2.0 language schema, for SCAP 1.0 conformance -->
172 <xsd:element ref="cpe2:platform-specification"
173 minOccurs="0" maxOccurs="1"/>
174 </xsd:choice>
175 <xsd:element name="platform" type="cdf:URIidrefType"
176 minOccurs="0" maxOccurs="unbounded"/>
177 <xsd:element name="version" type="cdf:versionType"
178 minOccurs="1" maxOccurs="1"/>
179 <xsd:element name="metadata" type="cdf:metadataType"
180 minOccurs="0" maxOccurs="unbounded"/>
181 <xsd:element ref="cdf:model"
182 minOccurs="0" maxOccurs="unbounded"/>
183 <xsd:element ref="cdf:Profile"
184 minOccurs="0" maxOccurs="unbounded"/>
185 <xsd:element ref="cdf:Value"
186 minOccurs="0" maxOccurs="unbounded"/>
187 <xsd:choice minOccurs="0" maxOccurs="unbounded">
188 <xsd:element ref="cdf:Group"/>
189 <xsd:element ref="cdf:Rule"/>
190 </xsd:choice>
191 <xsd:element ref="cdf:TestResult"
192 minOccurs="0" maxOccurs="unbounded"/>
193 <xsd:element name="signature" type="cdf:signatureType"
194 minOccurs="0" maxOccurs="1"/>
195 </xsd:sequence>
196 <xsd:attribute name="id" type="xsd:NCName" use="required"/>
197 <!-- the 'Id' attribute is needed for XML-Signature -->
198 <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
199 <xsd:attribute name="resolved" type="xsd:boolean"
200 default="false" use="optional"/>
201 <xsd:attribute name="style" type="xsd:string"
202 use="optional"/>
203 <xsd:attribute name="style-href" type="xsd:anyURI"
204 use="optional"/>
205 <xsd:attribute ref="xml:lang"/>
206 </xsd:complexType>
207
208 <xsd:key name="noticeIdKey">
209 <xsd:annotation><xsd:documentation xml:lang="en">
210 Legal notices must have unique id values.
211 </xsd:documentation></xsd:annotation>
212 <xsd:selector xpath="cdf:notice"/>
213 <xsd:field xpath="@id"/>
214 </xsd:key>
215
216 <xsd:key name="itemIdKey">
217 <xsd:annotation><xsd:documentation xml:lang="en">
218 Items must have unique id values, and also they
219 must not collide
220 </xsd:documentation></xsd:annotation>
221 <xsd:selector xpath=".//cdf:Value|.//cdf:Group|.//cdf:Rule|./cdf:plain-text"/>
222 <xsd:field xpath="@id"/>
223 </xsd:key>
224
225 <xsd:key name="modelSystemKey">
226 <xsd:annotation><xsd:documentation xml:lang="en">
227 Model system attributes must be unique.
228 </xsd:documentation></xsd:annotation>
229 <xsd:selector xpath="./cdf:model"/>
230 <xsd:field xpath="@system"/>
231 </xsd:key>
232
233 <xsd:key name="valueIdKey">
234 <xsd:annotation><xsd:documentation xml:lang="en">
235 Value item ids are special keys, need this for
236 the valueIdKeyRef and valueExtIdKeyRef keyrefs below.
237 </xsd:documentation></xsd:annotation>
238 <xsd:selector xpath=".//cdf:Value"/>
239 <xsd:field xpath="@id"/>
240 </xsd:key>
241
242 <xsd:key name="groupIdKey">
243 <xsd:annotation><xsd:documentation xml:lang="en">
244 Group item ids are special keys, need this for
245 the groupIdKeyRef keyref below.
246 </xsd:documentation></xsd:annotation>
247 <xsd:selector xpath=".//cdf:Group"/>
248 <xsd:field xpath="@id"/>
249 </xsd:key>
250
251 <xsd:key name="ruleIdKey">
252 <xsd:annotation><xsd:documentation xml:lang="en">
253 Rule items have a unique key, we need
254 this for the ruleIdKeyRef keyref below.
255 (Rule key refs are used by rule-results.)
256 </xsd:documentation></xsd:annotation>
257 <xsd:selector xpath=".//cdf:Rule"/>
258 <xsd:field xpath="@id"/>
259 </xsd:key>
260
261 <xsd:key name="selectableItemIdKey">
262 <xsd:annotation><xsd:documentation xml:lang="en">
263 Group and Rule item ids are special keys, we
264 need this for the requiresIdKeyRef keyref below.
265 </xsd:documentation></xsd:annotation>
266 <xsd:selector xpath=".//cdf:Group | .//cdf:Rule"/>
267 <xsd:field xpath="@id"/>
268 </xsd:key>
269
270 <xsd:key name="plainTextValueIdKey">
271 <xsd:annotation><xsd:documentation xml:lang="en">
272 Plaintext objects and Value objects each have
273 and id, and they must be unique and not overlap.
274 </xsd:documentation></xsd:annotation>
275 <xsd:selector xpath="./cdf:plain-text | .//Value"/>
276 <xsd:field xpath="@id"/>
277 </xsd:key>
278
279 <xsd:key name="profileIdKey">
280 <xsd:annotation><xsd:documentation xml:lang="en">
281 Profile objects have a unique id, it is used
282 for extension, too.
283 </xsd:documentation></xsd:annotation>
284 <xsd:selector xpath="./cdf:Profile"/>
285 <xsd:field xpath="@id"/>
286 </xsd:key>
287
288 <xsd:keyref name="valueExtIdKeyRef" refer="cdf:valueIdKey">
289 <xsd:annotation><xsd:documentation xml:lang="en">
290 An extends attribute on Value object
291 must reference an existing Value.
292 </xsd:documentation></xsd:annotation>
293 <xsd:selector xpath=".//cdf:Value"/>
294 <xsd:field xpath="@extends"/>
295 </xsd:keyref>
296
297 <xsd:keyref name="groupExtIdKeyRef" refer="cdf:groupIdKey">
298 <xsd:annotation><xsd:documentation xml:lang="en">
299 An extends attribute on Group object
300 must reference an existing Group.
301 </xsd:documentation></xsd:annotation>
302 <xsd:selector xpath=".//cdf:Group"/>
303 <xsd:field xpath="@extends"/>
304 </xsd:keyref>
305
306 <xsd:keyref name="ruleExtIdKeyRef" refer="cdf:ruleIdKey">
307 <xsd:annotation><xsd:documentation xml:lang="en">
308 An extends attribute on Rule object
309 must reference an existing Rule.
310 </xsd:documentation></xsd:annotation>
311 <xsd:selector xpath=".//cdf:Rule"/>
312 <xsd:field xpath="@extends"/>
313 </xsd:keyref>
314
315 <xsd:keyref name="profileExtIdKeyRef" refer="cdf:profileIdKey">
316 <xsd:annotation><xsd:documentation xml:lang="en">
317 An extends attribute on Profile object
318 must reference an existing Profile.
319 </xsd:documentation></xsd:annotation>
320 <xsd:selector xpath="./cdf:Profile"/>
321 <xsd:field xpath="@extends"/>
322 </xsd:keyref>
323
324 <xsd:keyref name="valueIdKeyRef" refer="cdf:valueIdKey">
325 <xsd:annotation><xsd:documentation xml:lang="en">
326 Check-export elements must reference existing values.
327 </xsd:documentation></xsd:annotation>
328 <xsd:selector xpath=".//cdf:check/cdf:check-export"/>
329 <xsd:field xpath="@value-id"/>
330 </xsd:keyref>
331
332 <xsd:keyref name="subValueKeyRef" refer="cdf:plainTextValueIdKey">
333 <xsd:annotation><xsd:documentation xml:lang="en">
334 Sub elements must reference existing Value or
335 plain-text ids.
336 </xsd:documentation></xsd:annotation>
337 <xsd:selector xpath=".//cdf:sub"/>
338 <xsd:field xpath="@value"/>
339 </xsd:keyref>
340
341 <xsd:keyref name="ruleIdKeyRef"
342 refer="cdf:ruleIdKey">
343 <xsd:annotation><xsd:documentation xml:lang="en">
344 The rule-result element idref must refer to an
345 existing Rule.
346 </xsd:documentation></xsd:annotation>
347 <xsd:selector xpath="./cdf:TestResult/cdf:rule-result"/>
348 <xsd:field xpath="@idref"/>
349 </xsd:keyref>
350
351 <xsd:keyref name="profileIdKeyRef"
352 refer="cdf:profileIdKey">
353 <xsd:annotation><xsd:documentation xml:lang="en">
354 The requires a profile element in a TestResult
355 element to refer to an existing Profile
356 </xsd:documentation></xsd:annotation>
357 <xsd:selector xpath="./cdf:TestResult/profile"/>
358 <xsd:field xpath="@idref"/>
359 </xsd:keyref>
360
361 </xsd:element>
362
363 <xsd:complexType name="noticeType" mixed="true">
364 <xsd:annotation>
365 <xsd:documentation xml:lang="en">
366 Data type for legal notice element that has text
367 content and a unique id attribute.
368 </xsd:documentation>
369 </xsd:annotation>
370 <xsd:sequence>
371 <xsd:any namespace="http://www.w3.org/1999/xhtml"
372 minOccurs="0" maxOccurs="unbounded"
373 processContents="skip"/>
374 </xsd:sequence>
375 <xsd:attribute name="id" type="xsd:NCName"/>
376 <xsd:attribute ref="xml:base"/>
377 <xsd:attribute ref="xml:lang"/>
378 </xsd:complexType>
379
380 <xsd:complexType name="plainTextType">
381 <xsd:annotation>
382 <xsd:documentation xml:lang="en">
383 Data type for a reusable text block, with an
384 unique id attribute.
385 </xsd:documentation>
386 </xsd:annotation>
387 <xsd:simpleContent>
388 <xsd:extension base="xsd:string">
389 <xsd:attribute name="id" type="xsd:NCName" use="required"/>
390 </xsd:extension>
391 </xsd:simpleContent>
392 </xsd:complexType>
393
394 <xsd:complexType name="referenceType" mixed="true">
395 <xsd:annotation>
396 <xsd:documentation xml:lang="en">
397 Data type for a reference citation, an href URL attribute
398 (optional), with content of text or simple Dublin Core
399 elements. Elements of this type can also have an override
400 attribute to help manage inheritance.
401 </xsd:documentation>
402 </xsd:annotation>
403 <xsd:sequence>
404 <xsd:any namespace="http://purl.org/dc/elements/1.1/"
405 processContents="lax"
406 minOccurs="0" maxOccurs="unbounded"/>
407 </xsd:sequence>
408 <xsd:attribute name="href" type="xsd:anyURI"/>
409 <xsd:attribute name="override" type="xsd:boolean"/>
410 </xsd:complexType>
411
412 <xsd:complexType name="signatureType">
413 <xsd:annotation>
414 <xsd:documentation xml:lang="en">
415 XML-Signature over the Benchmark; note that this will
416 always be an 'enveloped' signature, so the single
417 element child of this element should be dsig:Signature.
418 </xsd:documentation>
419 </xsd:annotation>
420 <xsd:sequence>
421 <xsd:any namespace="http://www.w3.org/2000/09/xmldsig#"
422 processContents="skip" minOccurs="1" maxOccurs="1"/>
423 </xsd:sequence>
424 </xsd:complexType>
425
426 <xsd:complexType name="metadataType">
427 <xsd:annotation>
428 <xsd:documentation xml:lang="en">
429 Metadata for the Benchmark, should be Dublin Core
430 or some other well-specified and accepted metadata
431 format. If Dublin Core, then it will be a sequence
432 of simple Dublin Core elements. The NIST checklist
433 metadata should also be supported, although the
434 specification document is still in draft in NIST
435 special pub 800-70.
436 </xsd:documentation>
437 </xsd:annotation>
438 <xsd:sequence>
439 <xsd:choice minOccurs="1" maxOccurs="1">
440 <xsd:any namespace="http://purl.org/dc/elements/1.1/"
441 minOccurs="1" maxOccurs="unbounded"/>
442 <xsd:any namespace="http://checklists.nist.gov/sccf/0.1"
443 processContents="skip"
444 minOccurs="1" maxOccurs="unbounded"/>
445 </xsd:choice>
446 </xsd:sequence>
447 </xsd:complexType>
448
449 <!-- ************************************************************** -->
450 <!-- ************* Global elements and types ******************** -->
451 <!-- ************************************************************** -->
452 <xsd:element name="status">
453 <xsd:annotation>
454 <xsd:documentation xml:lang="en">
455 The acceptance status of an Item with an optional date attribute
456 that signifies the date of the status change.
457 </xsd:documentation>
458 </xsd:annotation>
459 <xsd:complexType>
460 <xsd:simpleContent>
461 <xsd:extension base="cdf:statusType">
462 <xsd:attribute name="date" type="xsd:date"
463 use="optional"/>
464 </xsd:extension>
465 </xsd:simpleContent>
466 </xsd:complexType>
467 </xsd:element>
468
469 <xsd:element name="model">
470 <xsd:annotation>
471 <xsd:documentation xml:lang="en">
472 A suggested scoring model for a Benchmark, also
473 encapsulating any parameters needed by the model.
474 Every model is designated with a URI, which
475 appears here as the system attribute.
476 </xsd:documentation>
477 </xsd:annotation>
478 <xsd:complexType>
479 <xsd:sequence>
480 <xsd:element name="param" type="cdf:paramType"
481 minOccurs="0" maxOccurs="unbounded"/>
482 </xsd:sequence>
483 <xsd:attribute name="system" type="xsd:anyURI"
484 use="required"/>
485 </xsd:complexType>
486
487 <xsd:key name="paramNameKey">
488 <xsd:annotation><xsd:documentation xml:lang="en">
489 Parameter names must be unique.
490 </xsd:documentation></xsd:annotation>
491 <xsd:selector xpath="./cdf:param"/>
492 <xsd:field xpath="@name"/>
493 </xsd:key>
494 </xsd:element>
495
496 <xsd:complexType name="paramType">
497 <xsd:annotation>
498 <xsd:documentation xml:lang="en">
499 Type for a scoring model parameter: a name and a
500 string value.
501 </xsd:documentation>
502 </xsd:annotation>
503 <xsd:simpleContent>
504 <xsd:extension base="xsd:string">
505 <xsd:attribute name="name" type="xsd:NCName" use="required"/>
506 </xsd:extension>
507 </xsd:simpleContent>
508 </xsd:complexType>
509
510
511 <xsd:simpleType name="statusType">
512 <xsd:annotation>
513 <xsd:documentation xml:lang="en">
514 The possible status codes for an Benchmark or Item to be
515 inherited from the parent element if it is not defined.
516 </xsd:documentation>
517 </xsd:annotation>
518 <xsd:restriction base="xsd:string">
519 <xsd:enumeration value="accepted"/>
520 <xsd:enumeration value="deprecated"/>
521 <xsd:enumeration value="draft"/>
522 <xsd:enumeration value="incomplete"/>
523 <xsd:enumeration value="interim"/>
524 </xsd:restriction>
525 </xsd:simpleType>
526
527 <xsd:complexType name="versionType">
528 <xsd:annotation>
529 <xsd:documentation xml:lang="en">
530 Type for a version number, with a timestamp attribute
531 for when the version was made.
532 </xsd:documentation>
533 </xsd:annotation>
534 <xsd:simpleContent>
535 <xsd:extension base="xsd:string">
536 <xsd:attribute name="time" type="xsd:dateTime" use="optional"/>
537 <xsd:attribute name="update" type="xsd:anyURI" use="optional"/>
538 </xsd:extension>
539 </xsd:simpleContent>
540 </xsd:complexType>
541
542 <!-- ************************************************************** -->
543 <!-- ******************** Text Types **************************** -->
544 <!-- ************************************************************** -->
545 <xsd:complexType name="textType">
546 <xsd:annotation>
547 <xsd:documentation xml:lang="en">
548 Type for a string with an xml:lang attribute.
549 Elements of this type can also have an override
550 attribute to help manage inheritance.
551 </xsd:documentation>
552 </xsd:annotation>
553 <xsd:simpleContent>
554 <xsd:extension base="xsd:string">
555 <xsd:attribute ref="xml:lang"/>
556 <xsd:attribute name="override" type="xsd:boolean"
557 use="optional" default="0"/>
558 </xsd:extension>
559 </xsd:simpleContent>
560 </xsd:complexType>
561
562 <xsd:complexType name="htmlTextType" mixed="true">
563 <xsd:annotation>
564 <xsd:documentation xml:lang="en">
565 Type for a string with XHTML elements and xml:lang attribute.
566 Elements of this type can also have an override
567 attribute to help manage inheritance.
568 </xsd:documentation>
569 </xsd:annotation>
570 <xsd:sequence>
571 <xsd:any namespace="http://www.w3.org/1999/xhtml"
572 minOccurs="0" maxOccurs="unbounded"
573 processContents="skip"/>
574 </xsd:sequence>
575 <xsd:attribute ref="xml:lang"/>
576 <xsd:attribute name="override" type="xsd:boolean"
577 use="optional" default="0"/>
578 </xsd:complexType>
579
580 <xsd:complexType name="htmlTextWithSubType" mixed="true">
581 <xsd:annotation>
582 <xsd:documentation xml:lang="en">
583 Type for a string with embedded Value substitutions and
584 XHTML elements, and an xml:lang attribute. Elements of
585 this type can also have an override attribute to help
586 manage inheritance. [Note: this definition is rather
587 loose, it allows anything whatsoever to occur insides
588 XHTML tags inside here. Further, constraints of the XHTML
589 schema do not get checked! It might be possible to solve
590 this using XML Schema redefinition features.]
591 </xsd:documentation>
592 </xsd:annotation>
593 <xsd:choice minOccurs="0" maxOccurs="unbounded">
594 <xsd:element name="sub" type="cdf:idrefType"/>
595 <xsd:any namespace="http://www.w3.org/1999/xhtml"
596 processContents="skip"/>
597 </xsd:choice>
598 <xsd:attribute ref="xml:lang"/>
599 <xsd:attribute name="override" type="xsd:boolean"
600 use="optional" default="0"/>
601 </xsd:complexType>
602
603 <xsd:complexType name="profileNoteType" mixed="true">
604 <xsd:annotation>
605 <xsd:documentation xml:lang="en">
606 Type for a string with embedded Value substitutions and
607 XHTML elements, an xml:lang attribute, and a profile-note tag.
608 </xsd:documentation>
609 </xsd:annotation>
610 <xsd:choice minOccurs="0" maxOccurs="unbounded">
611 <xsd:element name="sub" type="cdf:idrefType"/>
612 <xsd:any namespace="http://www.w3.org/1999/xhtml"
613 processContents="skip"/>
614 </xsd:choice>
615 <xsd:attribute ref="xml:lang"/>
616 <xsd:attribute name="tag" type="xsd:NCName" use="required"/>
617 </xsd:complexType>
618
619 <xsd:complexType name="textWithSubType" mixed="true">
620 <xsd:annotation>
621 <xsd:documentation xml:lang="en">
622 Type for a string with embedded Value substitutions
623 and XHTML elements, and an xml:lang attribute.
624 Elements of this type can also have an override
625 attribute to help manage inheritance.
626 </xsd:documentation>
627 </xsd:annotation>
628 <xsd:sequence>
629 <xsd:element name="sub" type="cdf:idrefType"
630 minOccurs="0" maxOccurs="unbounded"/>
631 </xsd:sequence>
632 <xsd:attribute ref="xml:lang"/>
633 <xsd:attribute name="override" type="xsd:boolean"
634 use="optional" default="0"/>
635 </xsd:complexType>
636
637 <xsd:complexType name="idrefType">
638 <xsd:annotation>
639 <xsd:documentation xml:lang="en">
640 Data type for elements that have no content,
641 just a mandatory id reference.
642 </xsd:documentation>
643 </xsd:annotation>
644 <xsd:attribute name="idref" type="xsd:NCName" use="required"/>
645 </xsd:complexType>
646
647 <xsd:complexType name="idrefListType">
648 <xsd:annotation>
649 <xsd:documentation xml:lang="en">
650 Data type for elements that have no content,
651 just a space-separated list of id references.
652 </xsd:documentation>
653 </xsd:annotation>
654 <xsd:attribute name="idref" type="xsd:NMTOKENS" use="required"/>
655 </xsd:complexType>
656
657 <xsd:complexType name="overrideableIdrefType">
658 <xsd:annotation>
659 <xsd:documentation xml:lang="en">
660 Data type for elements that have no content,
661 just a mandatory id reference, but also have
662 an override attribute for controlling inheritance.
663 </xsd:documentation>
664 </xsd:annotation>
665 <xsd:complexContent>
666 <xsd:extension base="cdf:idrefType">
667 <xsd:attribute name="override" type="xsd:boolean"
668 use="optional" default="0"/>
669 </xsd:extension>
670 </xsd:complexContent>
671 </xsd:complexType>
672
673 <xsd:complexType name="URIidrefType">
674 <xsd:annotation>
675 <xsd:documentation xml:lang="en">
676 Data type for elements that have no content,
677 just a mandatory URI as an id. (This is mainly for the
678 platform element, which uses CPE URIs and CPE Language
679 identifers used as platform identifiers.) When referring
680 to a local CPE Language identifier, the URL should use
681 local reference syntax: "#cpeid1".
682 </xsd:documentation>
683 </xsd:annotation>
684 <xsd:attribute name="idref" type="xsd:anyURI" use="required"/>
685 </xsd:complexType>
686
687 <xsd:complexType name="overrideableURIidrefType">
688 <xsd:annotation>
689 <xsd:documentation xml:lang="en">
690 Data type for elements that have no content,
691 just a mandatory URI reference, but also have
692 an override attribute for controlling inheritance.
693 </xsd:documentation>
694 </xsd:annotation>
695 <xsd:complexContent>
696 <xsd:extension base="cdf:URIidrefType">
697 <xsd:attribute name="override" type="xsd:boolean"
698 use="optional" default="0"/>
699 </xsd:extension>
700 </xsd:complexContent>
701 </xsd:complexType>
702
703
704 <!-- ************************************************************** -->
705 <!-- **************** Item Element (Base Class) ****************** -->
706 <!-- ************************************************************** -->
707 <xsd:element name="Item" type="cdf:itemType" >
708 <xsd:annotation>
709 <xsd:documentation xml:lang="en">
710 Type element type imposes constraints shared by all
711 Groups, Rules and Values. The itemType is abstract, so
712 the element Item can never appear in a valid XCCDF document.
713 </xsd:documentation>
714 </xsd:annotation>
715 </xsd:element>
716
717 <xsd:complexType name="itemType" abstract="1">
718 <xsd:annotation>
719 <xsd:documentation xml:lang="en">
720 This abstract item type represents the basic data shared by all
721 Groups, Rules and Values
722 </xsd:documentation>
723 </xsd:annotation>
724 <xsd:sequence>
725 <xsd:element ref="cdf:status"
726 minOccurs="0" maxOccurs="unbounded"/>
727 <xsd:element name="version" type="cdf:versionType"
728 minOccurs="0" maxOccurs="1"/>
729 <xsd:element name="title" type="cdf:textWithSubType"
730 minOccurs="0" maxOccurs="unbounded"/>
731 <xsd:element name="description" type="cdf:htmlTextWithSubType"
732 minOccurs="0" maxOccurs="unbounded"/>
733 <xsd:element name="warning" type="cdf:warningType"
734 minOccurs="0" maxOccurs="unbounded"/>
735 <xsd:element name="question" type="cdf:textType"
736 minOccurs="0" maxOccurs="unbounded"/>
737 <xsd:element name="reference" type="cdf:referenceType"
738 minOccurs="0" maxOccurs="unbounded"/>
739 </xsd:sequence>
740 <xsd:attribute name="id" type="xsd:NCName" use="required"/>
741 <xsd:attribute name="abstract" type="xsd:boolean"
742 default="false" use="optional"/>
743 <xsd:attribute name="cluster-id" type="xsd:NCName"
744 use="optional"/>
745 <xsd:attribute name="extends" type="xsd:NCName" use="optional"/>
746 <xsd:attribute name="hidden" type="xsd:boolean"
747 default="false" use="optional"/>
748 <xsd:attribute name="prohibitChanges" type="xsd:boolean"
749 default="false" use="optional"/>
750 <xsd:attribute ref="xml:lang"/>
751 <xsd:attribute ref="xml:base"/>
752 <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
753 </xsd:complexType>
754
755
756 <!-- ************************************************************** -->
757 <!-- ************ Selectable Item Type (Base Class) ************** -->
758 <!-- ************************************************************** -->
759 <xsd:complexType name="selectableItemType" abstract="true">
760 <xsd:annotation>
761 <xsd:documentation xml:lang="en">
762 This abstract item type represents the basic data shared by all
763 Groups and Rules. It extends the itemType given above.
764 </xsd:documentation>
765 </xsd:annotation>
766 <xsd:complexContent>
767 <xsd:extension base="cdf:itemType">
768 <xsd:sequence>
769 <xsd:element name="rationale"
770 type="cdf:htmlTextWithSubType"
771 minOccurs="0" maxOccurs="unbounded"/>
772 <xsd:element name="platform"
773 type="cdf:overrideableURIidrefType"
774 minOccurs="0" maxOccurs="unbounded"/>
775 <xsd:element name="requires" type="cdf:idrefListType"
776 minOccurs="0" maxOccurs="unbounded"/>
777 <xsd:element name="conflicts" type="cdf:idrefType"
778 minOccurs="0" maxOccurs="unbounded"/>
779 </xsd:sequence>
780 <xsd:attribute name="selected" type="xsd:boolean"
781 default="true" use="optional"/>
782 <xsd:attribute name="weight" type="cdf:weightType"
783 default="1.0" use="optional"/>
784 </xsd:extension>
785 </xsd:complexContent>
786 </xsd:complexType>
787
788 <!-- ************************************************************** -->
789 <!-- ********************** Group Element *********************** -->
790 <!-- ************************************************************** -->
791 <xsd:element name="Group" type="cdf:groupType"/>
792
793 <xsd:complexType name="groupType">
794 <xsd:annotation>
795 <xsd:documentation xml:lang="en">
796 Data type for the Group element that represents a grouping of
797 Groups, Rules and Values.
798 </xsd:documentation>
799 </xsd:annotation>
800 <xsd:complexContent>
801 <xsd:extension base="cdf:selectableItemType">
802 <xsd:sequence>
803 <xsd:element ref="cdf:Value"
804 minOccurs="0" maxOccurs="unbounded"/>
805 <xsd:choice minOccurs="0" maxOccurs="unbounded">
806 <xsd:element ref="cdf:Group"/>
807 <xsd:element ref="cdf:Rule"/>
808 </xsd:choice>
809 <xsd:element name="signature" type="cdf:signatureType"
810 minOccurs="0" maxOccurs="1"/>
811 </xsd:sequence>
812 </xsd:extension>
813 </xsd:complexContent>
814 </xsd:complexType>
815
816
817 <!-- ************************************************************** -->
818 <!-- ******************** Rule Element ************************** -->
819 <!-- ************************************************************** -->
820 <xsd:element name="Rule" type="cdf:ruleType">
821 <xsd:annotation>
822 <xsd:documentation xml:lang="en">
823 The Rule element contains the description for
824 a single item of guidance or constraint. Rules
825 form the basis for testing a target platform for
826 compliance with a benchmark, for scoring, and
827 for conveying descriptive prose, identifiers,
828 references, and remediation information.
829 </xsd:documentation>
830 </xsd:annotation>
831 <xsd:unique name="ruleCheckSelectorKey">
832 <xsd:selector xpath="./cdf:check"/>
833 <xsd:field xpath="@selector"/>
834 <xsd:field xpath="@system"/>
835 </xsd:unique>
836 <xsd:unique name="ruleCheckIdKey">
837 <xsd:selector xpath=".//cdf:check"/>
838 <xsd:field xpath="@id"/>
839 </xsd:unique>
840 </xsd:element>
841
842 <xsd:complexType name="ruleType">
843 <xsd:annotation>
844 <xsd:documentation xml:lang="en">
845 Data type for the Rule element that represents a
846 specific benchmark test.
847 </xsd:documentation>
848 </xsd:annotation>
849 <xsd:complexContent>
850 <xsd:extension base="cdf:selectableItemType">
851 <xsd:sequence>
852 <xsd:element name="ident" type="cdf:identType"
853 minOccurs="0" maxOccurs="unbounded"/>
854 <xsd:element name="impact-metric" type="xsd:string"
855 minOccurs="0" maxOccurs="1"/>
856 <xsd:element name="profile-note" minOccurs="0"
857 type="cdf:profileNoteType"
858 maxOccurs="unbounded"/>
859 <xsd:element name="fixtext" type="cdf:fixTextType"
860 minOccurs="0" maxOccurs="unbounded"/>
861 <xsd:element name="fix" type="cdf:fixType"
862 minOccurs="0" maxOccurs="unbounded"/>
863 <xsd:choice>
864 <xsd:element name="check" type="cdf:checkType"
865 minOccurs="0" maxOccurs="unbounded"/>
866 <xsd:element name="complex-check" minOccurs="0"
867 type="cdf:complexCheckType" maxOccurs="1"/>
868 </xsd:choice>
869 <xsd:element name="signature" type="cdf:signatureType"
870 minOccurs="0" maxOccurs="1"/>
871 </xsd:sequence>
872 <xsd:attribute name="role" type="cdf:roleEnumType"
873 use="optional" default="full"/>
874 <xsd:attribute name="severity" type="cdf:severityEnumType"
875 default="unknown" use="optional"/>
876 <xsd:attribute name="multiple" type="xsd:boolean"
877 use="optional"/>
878 </xsd:extension>
879 </xsd:complexContent>
880 </xsd:complexType>
881
882
883 <!-- ************************************************************** -->
884 <!-- ***************** Rule-related Types ************************ -->
885 <!-- ************************************************************** -->
886 <xsd:complexType name="identType">
887 <xsd:annotation>
888 <xsd:documentation xml:lang="en">
889 Type for a long-term globally meaningful identifier,
890 consisting of a string (ID) and a URI of the naming
891 scheme within which the name is meaningful.
892 </xsd:documentation>
893 </xsd:annotation>
894 <xsd:simpleContent>
895 <xsd:extension base="xsd:string">
896 <xsd:attribute name="system" type="xsd:anyURI" use="required"/>
897 </xsd:extension>
898 </xsd:simpleContent>
899 </xsd:complexType>
900
901 <xsd:complexType name="warningType" mixed="true">
902 <xsd:annotation>
903 <xsd:documentation xml:lang="en">
904 Data type for the warning element under the Rule
905 object, a rich text string with substitutions
906 allowed, plus an attribute for the kind of warning.
907 </xsd:documentation>
908 </xsd:annotation>
909 <xsd:complexContent>
910 <xsd:extension base="cdf:htmlTextWithSubType">
911 <xsd:attribute name="category"
912 type="cdf:warningCategoryEnumType"
913 use="optional" default="general"/>
914 </xsd:extension>
915 </xsd:complexContent>
916 </xsd:complexType>
917
918 <xsd:simpleType name="warningCategoryEnumType">
919 <xsd:annotation>
920 <xsd:documentation xml:lang="en">
921 Allowed warning category keywords for the warning
922 element. The allowed categories are:
923 general=broad or general-purpose warning (default
924 for compatibility for XCCDF 1.0)
925 functionality=warning about possible impacts to
926 functionality or operational features
927 performance=warning about changes to target
928 system performance or throughput
929 hardware=warning about hardware restrictions or
930 possible impacts to hardware
931 legal=warning about legal implications
932 regulatory=warning about regulatory obligations
933 or compliance implications
934 management=warning about impacts to the mgmt
935 or administration of the target system
936 audit=warning about impacts to audit or logging
937 dependency=warning about dependencies between
938 this Rule and other parts of the target
939 system, or version dependencies.
940 </xsd:documentation>
941 </xsd:annotation>
942 <xsd:restriction base="xsd:string">
943 <xsd:enumeration value="general"/>
944 <xsd:enumeration value="functionality"/>
945 <xsd:enumeration value="performance"/>
946 <xsd:enumeration value="hardware"/>
947 <xsd:enumeration value="legal"/>
948 <xsd:enumeration value="regulatory"/>
949 <xsd:enumeration value="management"/>
950 <xsd:enumeration value="audit"/>
951 <xsd:enumeration value="dependency"/>
952 </xsd:restriction>
953 </xsd:simpleType>
954
955
956 <xsd:complexType name="fixTextType" mixed="true">
957 <xsd:annotation>
958 <xsd:documentation xml:lang="en">
959 Data type for the fixText element that represents
960 a rich text string, with substitutions allowed, and
961 a series of attributes that qualify the fix.
962 </xsd:documentation>
963 </xsd:annotation>
964 <xsd:complexContent>
965 <xsd:extension base="cdf:htmlTextWithSubType">
966 <xsd:attribute name="fixref" type="xsd:NCName"
967 use="optional"/>
968 <xsd:attribute name="reboot" type="xsd:boolean"
969 use="optional" default="0"/>
970 <xsd:attribute name="strategy" type="cdf:fixStrategyEnumType"
971 use="optional" default="unknown"/>
972 <xsd:attribute name="disruption" type="cdf:ratingEnumType"
973 use="optional" default="unknown"/>
974 <xsd:attribute name="complexity" type="cdf:ratingEnumType"
975 use="optional" default="unknown"/>
976 </xsd:extension>
977 </xsd:complexContent>
978 </xsd:complexType>
979
980 <xsd:complexType name="fixType" mixed="true">
981 <xsd:annotation>
982 <xsd:documentation xml:lang="en">
983 Type for a string with embedded Value and instance
984 substitutions and an optional platform id ref attribute, but
985 no embedded XHTML markup.
986 The platform attribute should refer to a platform-definition
987 element in the platform-definitions child of the Benchmark.
988 </xsd:documentation>
989 </xsd:annotation>
990 <xsd:choice minOccurs="0" maxOccurs="unbounded">
991 <xsd:element name="sub" type="cdf:idrefType"/>
992 <xsd:element name="instance" type="cdf:instanceFixType"/>
993 </xsd:choice>
994 <xsd:attribute name="id" type="xsd:NCName" use="optional"/>
995 <xsd:attribute name="reboot" type="xsd:boolean"
996 use="optional" default="0"/>
997 <xsd:attribute name="strategy" type="cdf:fixStrategyEnumType"
998 use="optional" default="unknown"/>
999 <xsd:attribute name="disruption" type="cdf:ratingEnumType"
1000 use="optional" default="unknown"/>
1001 <xsd:attribute name="complexity" type="cdf:ratingEnumType"
1002 use="optional" default="unknown"/>
1003 <xsd:attribute name="system" type="xsd:anyURI" use="optional"/>
1004 <xsd:attribute name="platform" type="xsd:anyURI" use="optional"/>
1005 </xsd:complexType>
1006
1007 <xsd:simpleType name="fixStrategyEnumType">
1008 <xsd:annotation>
1009 <xsd:documentation xml:lang="en">
1010 Allowed strategy keyword values for a Rule fix or
1011 fixtext. The allowed values are:
1012 unknown= strategy not defined (default for forward
1013 compatibility for XCCDF 1.0)
1014 configure=adjust target config or settings
1015 patch=apply a patch, hotfix, or update
1016 policy=remediation by changing policies/procedures
1017 disable=turn off or deinstall something
1018 enable=turn on or install something
1019 restrict=adjust permissions or ACLs
1020 update=install upgrade or update the system
1021 combination=combo of two or more of the above
1022 </xsd:documentation>
1023 </xsd:annotation>
1024 <xsd:restriction base="xsd:string">
1025 <xsd:enumeration value="unknown"/>
1026 <xsd:enumeration value="configure"/>
1027 <xsd:enumeration value="combination"/>
1028 <xsd:enumeration value="disable"/>
1029 <xsd:enumeration value="enable"/>
1030 <xsd:enumeration value="patch"/>
1031 <xsd:enumeration value="policy"/>
1032 <xsd:enumeration value="restrict"/>
1033 <xsd:enumeration value="update"/>
1034 </xsd:restriction>
1035 </xsd:simpleType>
1036
1037 <xsd:simpleType name="ratingEnumType">
1038 <xsd:annotation>
1039 <xsd:documentation xml:lang="en">
1040 Allowed rating values values for a Rule fix
1041 or fixtext: disruption, complexity, and maybe overhead.
1042 The possible values are:
1043 unknown= rating unknown or impossible to estimate
1044 (default for forward compatibility for XCCDF 1.0)
1045 low = little or no potential for disruption,
1046 very modest complexity
1047 medium= some chance of minor disruption,
1048 substantial complexity
1049 high = likely to cause serious disruption, very complex
1050 </xsd:documentation>
1051 </xsd:annotation>
1052 <xsd:restriction base="xsd:string">
1053 <xsd:enumeration value="unknown"/>
1054 <xsd:enumeration value="low"/>
1055 <xsd:enumeration value="medium"/>
1056 <xsd:enumeration value="high"/>
1057 </xsd:restriction>
1058 </xsd:simpleType>
1059
1060 <xsd:complexType name="instanceFixType">
1061 <xsd:annotation>
1062 <xsd:documentation xml:lang="en">
1063 Type for an instance element in a fix element. The
1064 instance element inside a fix element designates a
1065 spot where the name of the instance should be
1066 substituted into the fix template to generate the
1067 final fix data. The instance element in this usage
1068 has one optional attribute: context.
1069 </xsd:documentation>
1070 </xsd:annotation>
1071 <xsd:attribute name="context" type="xsd:string"
1072 default="undefined" use="optional"/>
1073 </xsd:complexType>
1074
1075 <xsd:complexType name="complexCheckType">
1076 <xsd:annotation>
1077 <xsd:documentation xml:lang="en">
1078 The type for an element that can contains a boolean
1079 expression based on checks. This element can have only
1080 complex-check and check elements as children. It has two
1081 attributes: operator and negate. The operator attribute
1082 can have values "OR" or "AND", and the negate attribute is
1083 boolean. See the specification document for truth tables
1084 for the operators and negations. Note: complex-check is
1085 defined in this way for conceptual equivalence with OVAL.
1086 </xsd:documentation>
1087 </xsd:annotation>
1088 <xsd:choice minOccurs="1" maxOccurs="unbounded">
1089 <xsd:element name="check" type="cdf:checkType"/>
1090 <xsd:element name="complex-check" type="cdf:complexCheckType"/>
1091 </xsd:choice>
1092 <xsd:attribute name="operator"
1093 type="cdf:ccOperatorEnumType" use="required"/>
1094 <xsd:attribute name="negate" default="0"
1095 type="xsd:boolean" use="optional"/>
1096 </xsd:complexType>
1097
1098 <xsd:simpleType name="ccOperatorEnumType">
1099 <xsd:annotation>
1100 <xsd:documentation xml:lang="en">
1101 The type for the allowed operator names for the
1102 complex-check operator attribute. For now, we just
1103 allow boolean AND and OR as operators. (The
1104 complex-check has a separate mechanism for negation.)
1105 </xsd:documentation>
1106 </xsd:annotation>
1107 <xsd:restriction base="xsd:string">
1108 <xsd:enumeration value="OR"/>
1109 <xsd:enumeration value="AND"/>
1110 </xsd:restriction>
1111 </xsd:simpleType>
1112
1113 <xsd:complexType name="checkType">
1114 <xsd:annotation>
1115 <xsd:documentation xml:lang="en">
1116 Data type for the check element, a checking system
1117 specification URI, and XML content. The content of the
1118 check element is: zero or more check-export elements,
1119 zero or more check-content-ref elements, and finally
1120 an optional check-content element. An content-less
1121 check element isn't legal, but XSD cannot express that!
1122 </xsd:documentation>
1123 </xsd:annotation>
1124 <xsd:sequence>
1125 <xsd:element name="check-import" type="cdf:checkImportType"
1126 minOccurs="0" maxOccurs="unbounded"/>
1127 <xsd:element name="check-export" type="cdf:checkExportType"
1128 minOccurs="0" maxOccurs="unbounded"/>
1129 <xsd:element name="check-content-ref"
1130 minOccurs="0" maxOccurs="unbounded"
1131 type="cdf:checkContentRefType"/>
1132 <xsd:element name="check-content"
1133 minOccurs="0" maxOccurs="1"
1134 type="cdf:checkContentType"/>
1135 </xsd:sequence>
1136 <xsd:attribute name="system" type="xsd:anyURI" use="required"/>
1137 <xsd:attribute name="id" type="xsd:NCName" use="optional"/>
1138 <xsd:attribute name="selector" default=""
1139 type="xsd:string" use="optional"/>
1140 <xsd:attribute ref="xml:base"/>
1141 </xsd:complexType>
1142
1143 <xsd:complexType name="checkImportType">
1144 <xsd:annotation>
1145 <xsd:documentation xml:lang="en">
1146 Data type for the check-import element, which specifies a
1147 value that the benchmark author wishes to retrieve from the
1148 the checking system. The import-name attribute gives the
1149 name or id of the value in the checking system. When the
1150 check-import element appears in the context of a rule-result,
1151 then the element's content is the desired value. When the
1152 check-import element appears in the context of a Rule, then
1153 it should be empty and any content must be ignored.
1154 </xsd:documentation>
1155 </xsd:annotation>
1156 <xsd:simpleContent>
1157 <xsd:extension base="xsd:string">
1158 <xsd:attribute name="import-name"
1159 type="xsd:string" use="required"/>
1160 </xsd:extension>
1161 </xsd:simpleContent>
1162 </xsd:complexType>
1163
1164 <xsd:complexType name="checkExportType">
1165 <xsd:annotation>
1166 <xsd:documentation xml:lang="en">
1167 Data type for the check-export element, which specifies
1168 a mapping between an XCCDF internal Value id and a
1169 value name to be used by the checking system or processor.
1170 </xsd:documentation>
1171 </xsd:annotation>
1172 <xsd:attribute name="value-id" type="xsd:NCName" use="required"/>
1173 <xsd:attribute name="export-name" type="xsd:string" use="required"/>
1174 </xsd:complexType>
1175
1176 <xsd:complexType name="checkContentRefType">
1177 <xsd:annotation>
1178 <xsd:documentation xml:lang="en">
1179 Data type for the check-content-ref element, which
1180 points to the code for a detached check in another file.
1181 This element has no body, just a couple of attributes:
1182 href and name. The name is optional, if it does not appear
1183 then this reference is to the entire other document.
1184 </xsd:documentation>
1185 </xsd:annotation>
1186 <xsd:attribute name="href" type="xsd:anyURI" use="required"/>
1187 <xsd:attribute name="name" type="xsd:string"/>
1188 </xsd:complexType>
1189
1190 <xsd:complexType name="checkContentType" mixed="true">
1191 <xsd:annotation>
1192 <xsd:documentation xml:lang="en">
1193 Data type for the check-content element, which holds
1194 the actual code of an enveloped check in some other
1195 (non-XCCDF) language. This element can hold almost
1196 anything; XCCDF tools do not process its content directly.
1197 </xsd:documentation>
1198 </xsd:annotation>
1199 <xsd:choice minOccurs="0" maxOccurs="unbounded">
1200 <xsd:any namespace="##other" processContents="skip"/>
1201 </xsd:choice>
1202 </xsd:complexType>
1203
1204 <xsd:simpleType name="weightType">
1205 <xsd:annotation>
1206 <xsd:documentation xml:lang="en">
1207 Data type for a Rule's weight, a non-negative real number.
1208 </xsd:documentation>
1209 </xsd:annotation>
1210 <xsd:restriction base="xsd:decimal">
1211 <xsd:minInclusive value="0.0"/>
1212 <xsd:totalDigits value="3"/>
1213 </xsd:restriction>
1214 </xsd:simpleType>
1215
1216 <!-- ************************************************************** -->
1217 <!-- ******************* Value Element ************************** -->
1218 <!-- ************************************************************** -->
1219 <xsd:element name="Value" type="cdf:valueType">
1220 <xsd:unique name="valueSelectorKey">
1221 <xsd:selector xpath="./cdf:value"/>
1222 <xsd:field xpath="@selector"/>
1223 </xsd:unique>
1224 <xsd:unique name="defaultSelectorKey">
1225 <xsd:selector xpath="./cdf:default"/>
1226 <xsd:field xpath="@selector"/>
1227 </xsd:unique>
1228 </xsd:element>
1229
1230 <xsd:complexType name="valueType">
1231 <xsd:annotation>
1232 <xsd:documentation xml:lang="en">
1233 Data type for the Value element, which represents a
1234 tailorable string, boolean, or number in the Benchmark.
1235 </xsd:documentation>
1236 </xsd:annotation>
1237 <xsd:complexContent>
1238 <xsd:extension base="cdf:itemType">
1239 <xsd:sequence>
1240 <xsd:element name="value" type="cdf:selStringType"
1241 minOccurs="1" maxOccurs="unbounded"/>
1242 <xsd:element name="default" type="cdf:selStringType"
1243 minOccurs="0" maxOccurs="unbounded"/>
1244 <xsd:element name="match" type="cdf:selStringType"
1245 minOccurs="0" maxOccurs="unbounded"/>
1246 <xsd:element name="lower-bound" type="cdf:selNumType"
1247 minOccurs="0" maxOccurs="unbounded"/>
1248 <xsd:element name="upper-bound" type="cdf:selNumType"
1249 minOccurs="0" maxOccurs="unbounded"/>
1250 <xsd:element name="choices" type="cdf:selChoicesType"
1251 minOccurs="0" maxOccurs="unbounded"/>
1252 <xsd:element name="source" type="cdf:uriRefType"
1253 minOccurs="0" maxOccurs="unbounded"/>
1254 <xsd:element name="signature" type="cdf:signatureType"
1255 minOccurs="0" maxOccurs="1"/>
1256 </xsd:sequence>
1257 <xsd:attribute name="type" type="cdf:valueTypeType"
1258 default="string" use="optional"/>
1259 <xsd:attribute name="operator" type="cdf:valueOperatorType"
1260 default="equals" use="optional"/>
1261 <xsd:attribute name="interactive" type="xsd:boolean"
1262 default="0" use="optional"/>
1263 <xsd:attribute name="interfaceHint" use="optional"
1264 type="cdf:interfaceHintType"/>
1265 </xsd:extension>
1266 </xsd:complexContent>
1267 </xsd:complexType>
1268
1269
1270 <!-- ************************************************************** -->
1271 <!-- *************** Value-related Types ************************ -->
1272 <!-- ************************************************************** -->
1273 <xsd:complexType name="selChoicesType">
1274 <xsd:annotation>
1275 <xsd:documentation xml:lang="en">
1276 The choice element specifies a list of legal or suggested
1277 choices for a Value object. It holds one or more choice
1278 elements, a mustMatch attribute, and a selector attribute.
1279 </xsd:documentation>
1280 </xsd:annotation>
1281 <xsd:sequence>
1282 <xsd:element name="choice" type="xsd:string"
1283 minOccurs="1" maxOccurs="unbounded"/>
1284 </xsd:sequence>
1285 <xsd:attribute name="mustMatch" type="xsd:boolean" use="optional"/>
1286 <xsd:attribute name="selector" default=""
1287 type="xsd:string" use="optional"/>
1288 </xsd:complexType>
1289
1290 <xsd:complexType name="selStringType">
1291 <xsd:annotation>
1292 <xsd:documentation xml:lang="en">
1293 This type is for an element that has string content
1294 and a selector attribute. It is used for some of
1295 the child elements of Value.
1296 </xsd:documentation>
1297 </xsd:annotation>
1298 <xsd:simpleContent>
1299 <xsd:extension base="xsd:string">
1300 <xsd:attribute name="selector" default=""
1301 type="xsd:string" use="optional"/>
1302 </xsd:extension>
1303 </xsd:simpleContent>
1304 </xsd:complexType>
1305
1306 <xsd:complexType name="selNumType">
1307 <xsd:annotation>
1308 <xsd:documentation xml:lang="en">
1309 This type is for an element that has numeric content
1310 and a selector attribute. It is used for two of
1311 the child elements of Value.
1312 </xsd:documentation>
1313 </xsd:annotation>
1314 <xsd:simpleContent>
1315 <xsd:extension base="xsd:decimal">
1316 <xsd:attribute name="selector" default=""
1317 type="xsd:string" use="optional"/>
1318 </xsd:extension>
1319 </xsd:simpleContent>
1320 </xsd:complexType>
1321
1322 <xsd:complexType name="uriRefType">
1323 <xsd:annotation>
1324 <xsd:documentation xml:lang="en">
1325 Data type for elements that have no content, just a URI.
1326 </xsd:documentation>
1327 </xsd:annotation>
1328 <xsd:attribute name="uri" type="xsd:anyURI" use="required"/>
1329 </xsd:complexType>
1330
1331 <xsd:simpleType name="valueTypeType">
1332 <xsd:annotation>
1333 <xsd:documentation xml:lang="en">
1334 Allowed data types for Values, just string, numeric,
1335 and true/false.
1336 </xsd:documentation>
1337 </xsd:annotation>
1338 <xsd:restriction base="xsd:string">
1339 <xsd:enumeration value="number"/>
1340 <xsd:enumeration value="string"/>
1341 <xsd:enumeration value="boolean"/>
1342 </xsd:restriction>
1343 </xsd:simpleType>
1344
1345 <xsd:simpleType name="valueOperatorType">
1346 <xsd:annotation>
1347 <xsd:documentation xml:lang="en">
1348 Allowed operators for Values. Note that most of
1349 these are valid only for numeric data, but the
1350 schema doesn't enforce that.
1351 </xsd:documentation>
1352 </xsd:annotation>
1353 <xsd:restriction base="xsd:string">
1354 <xsd:enumeration value="equals" />
1355 <xsd:enumeration value="not equal" />
1356 <xsd:enumeration value="greater than" />
1357 <xsd:enumeration value="less than" />
1358 <xsd:enumeration value="greater than or equal" />
1359 <xsd:enumeration value="less than or equal" />
1360 <xsd:enumeration value="pattern match" />
1361 </xsd:restriction>
1362 </xsd:simpleType>
1363
1364 <xsd:simpleType name="interfaceHintType">
1365 <xsd:annotation>
1366 <xsd:documentation xml:lang="en">
1367 Allowed interface hint values. When an interfaceHint
1368 appears on the Value, it provides a suggestion to a
1369 tailoring or benchmarking tool about how to present the
1370 UI for adjusting a Value.
1371 </xsd:documentation>
1372 </xsd:annotation>
1373 <xsd:restriction base="xsd:string">
1374 <xsd:enumeration value="choice"/>
1375 <xsd:enumeration value="textline"/>
1376 <xsd:enumeration value="text"/>
1377 <xsd:enumeration value="date"/>
1378 <xsd:enumeration value="datetime"/>
1379 </xsd:restriction>
1380 </xsd:simpleType>
1381
1382 <!-- ************************************************************** -->
1383 <!-- ******************* Profile Element ************************ -->
1384 <!-- ************************************************************** -->
1385 <xsd:element name="Profile" type="cdf:profileType">
1386 <!-- selector key constraints -->
1387 <xsd:unique name="itemSelectKey">
1388 <xsd:selector xpath="./cdf:select"/>
1389 <xsd:field xpath="@idref"/>
1390 </xsd:unique>
1391 <xsd:unique name="refineRuleKey">
1392 <xsd:selector xpath="./cdf:refine-rule"/>
1393 <xsd:field xpath="@idref"/>
1394 </xsd:unique>
1395 <xsd:unique name="refineValueKey">
1396 <xsd:selector xpath="./cdf:refine-value"/>
1397 <xsd:field xpath="@idref"/>
1398 </xsd:unique>
1399 <xsd:unique name="setValueKey">
1400 <xsd:selector xpath="./cdf:set-value"/>
1401 <xsd:field xpath="@idref"/>
1402 </xsd:unique>
1403 </xsd:element>
1404
1405 <xsd:complexType name="profileType">
1406 <xsd:annotation>
1407 <xsd:documentation xml:lang="en">
1408 Data type for the Profile element, which holds a
1409 specific tailoring of the Benchmark. The main part
1410 of a Profile is the selectors: select, set-value,
1411 refine-rule, and refine-value. A Profile may also be
1412 signed with an XML-Signature.
1413 </xsd:documentation>
1414 </xsd:annotation>
1415 <xsd:sequence>
1416 <xsd:element ref="cdf:status"
1417 minOccurs="0" maxOccurs="unbounded"/>
1418 <xsd:element name="version" type="cdf:versionType"
1419 minOccurs="0" maxOccurs="1"/>
1420 <xsd:element name="title" type="cdf:textWithSubType"
1421 minOccurs="1" maxOccurs="unbounded"/>
1422 <xsd:element name="description" type="cdf:htmlTextWithSubType"
1423 minOccurs="0" maxOccurs="unbounded"/>
1424 <xsd:element name="reference" type="cdf:referenceType"
1425 minOccurs="0" maxOccurs="unbounded"/>
1426 <xsd:element name="platform" type="cdf:URIidrefType"
1427 minOccurs="0" maxOccurs="unbounded"/>
1428 <xsd:choice minOccurs="0" maxOccurs="unbounded">
1429 <xsd:element name="select" minOccurs="0"
1430 type="cdf:profileSelectType"/>
1431 <xsd:element name="set-value" minOccurs="0"
1432 type="cdf:profileSetValueType"/>
1433 <xsd:element name="refine-value" minOccurs="0"
1434 type="cdf:profileRefineValueType"/>
1435 <xsd:element name="refine-rule" minOccurs="0"
1436 type="cdf:profileRefineRuleType"/>
1437 </xsd:choice>
1438 <xsd:element name="signature" type="cdf:signatureType"
1439 minOccurs="0" maxOccurs="1"/>
1440 </xsd:sequence>
1441 <xsd:attribute name="id" type="xsd:NCName" use="required"/>
1442 <xsd:attribute name="prohibitChanges" type="xsd:boolean"
1443 default="false" use="optional"/>
1444 <xsd:attribute name="abstract" type="xsd:boolean"
1445 default="false" use="optional"/>
1446 <xsd:attribute name="note-tag" type="xsd:NCName"
1447 use="optional"/>
1448 <xsd:attribute name="extends" type="xsd:NCName" use="optional"/>
1449 <xsd:attribute ref="xml:base"/>
1450 <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
1451 </xsd:complexType>
1452
1453 <!-- ************************************************************** -->
1454 <!-- *************** Profile-related Types *********************** -->
1455 <!-- ************************************************************** -->
1456 <xsd:complexType name="profileSelectType">
1457 <xsd:annotation>
1458 <xsd:documentation xml:lang="en">
1459 Type for the select element in a Profile; all it has are two
1460 attributes, no content. The two attributes are idref which
1461 refers to a Group or Rule, and selected which is boolean.
1462 As content, the select element can contain zero or more
1463 remark elements, which allows the benchmark author to
1464 add explanatory material or other additional prose.
1465 </xsd:documentation>
1466 </xsd:annotation>
1467 <xsd:sequence>
1468 <xsd:element name="remark" type="cdf:textType"
1469 minOccurs="0" maxOccurs="unbounded"/>
1470 </xsd:sequence>
1471 <xsd:attribute name="idref" type="xsd:NCName" use="required"/>
1472 <xsd:attribute name="selected" type="xsd:boolean" use="required"/>
1473 </xsd:complexType>
1474
1475 <xsd:complexType name="profileSetValueType">
1476 <xsd:annotation>
1477 <xsd:documentation xml:lang="en">
1478 Type for the set-value element in a Profile; it
1479 has one required attribute and string content. The
1480 attribute is 'idref', it refers to a Value.
1481 </xsd:documentation>
1482 </xsd:annotation>
1483 <xsd:simpleContent>
1484 <xsd:extension base="xsd:string">
1485 <xsd:attribute name="idref" type="xsd:NCName" use="required"/>
1486 </xsd:extension>
1487 </xsd:simpleContent>
1488 </xsd:complexType>
1489
1490 <xsd:complexType name="profileRefineValueType">
1491 <xsd:annotation>
1492 <xsd:documentation xml:lang="en">
1493 Type for the refine-value element in a Profile; all it has
1494 are three attributes, no content. The three attributes are
1495 'idref' which refers to a Value, 'selector' which designates
1496 certain element children of the Value, and 'operator' which
1497 can override the operator attribute of the Value.
1498 As content, the refine-value element can contain zero or more
1499 remark elements, which allows the benchmark author to
1500 add explanatory material or other additional prose.
1501 </xsd:documentation>
1502 </xsd:annotation>
1503 <xsd:sequence>
1504 <xsd:element name="remark" type="cdf:textType"
1505 minOccurs="0" maxOccurs="unbounded"/>
1506 </xsd:sequence>
1507 <xsd:attribute name="idref"
1508 type="xsd:NCName" use="required"/>
1509 <xsd:attribute name="selector"
1510 type="xsd:string" use="optional"/>
1511 <xsd:attribute name="operator"
1512 type="cdf:valueOperatorType" use="optional"/>
1513 </xsd:complexType>
1514
1515 <xsd:complexType name="profileRefineRuleType">
1516 <xsd:annotation>
1517 <xsd:documentation xml:lang="en">
1518 Type for the refine-rule element in a Profile; all it has
1519 are four attributes, no content. The main attribute is
1520 'idref' which refers to a Rule, and three attributes that
1521 allow the Profile author to adjust aspects of how a Rule is
1522 processed during a benchmark run: weight, severity, role.
1523 As content, the refine-rule element can contain zero or more
1524 remark elements, which allows the benchmark author to
1525 add explanatory material or other additional prose.
1526 </xsd:documentation>
1527 </xsd:annotation>
1528 <xsd:sequence>
1529 <xsd:element name="remark" type="cdf:textType"
1530 minOccurs="0" maxOccurs="unbounded"/>
1531 </xsd:sequence>
1532 <xsd:attribute name="idref" type="xsd:NCName" use="required"/>
1533 <xsd:attribute name="weight" type="cdf:weightType" use="optional"/>
1534 <xsd:attribute name="selector"
1535 type="xsd:string" use="optional"/>
1536 <xsd:attribute name="severity"
1537 type="cdf:severityEnumType" use="optional"/>
1538 <xsd:attribute name="role"
1539 type="cdf:roleEnumType" use="optional"/>
1540 </xsd:complexType>
1541
1542 <!-- ************************************************************** -->
1543 <!-- ******************* TestResult Element ********************* -->
1544 <!-- ************************************************************** -->
1545 <xsd:element name="TestResult" type="cdf:testResultType"/>
1546
1547 <xsd:complexType name="testResultType">
1548 <xsd:annotation>
1549 <xsd:documentation xml:lang="en">
1550 Data type for the TestResult element, which holds the
1551 results of one application of the Benchmark. The optional
1552 test-system attribute gives the name of the benchmarking tool.
1553 </xsd:documentation>
1554 </xsd:annotation>
1555 <xsd:sequence>
1556 <xsd:element name="benchmark" minOccurs="0" maxOccurs="1">
1557 <xsd:complexType>
1558 <xsd:attribute name="href" type="xsd:anyURI"
1559 use="required"/>
1560 </xsd:complexType>
1561 </xsd:element>
1562 <xsd:element name="title" type="cdf:textType"
1563 minOccurs="0" maxOccurs="unbounded"/>
1564 <xsd:element name="remark" type="cdf:textType"
1565 minOccurs="0" maxOccurs="unbounded"/>
1566 <xsd:element name="organization" type="xsd:string"
1567 minOccurs="0" maxOccurs="unbounded"/>
1568 <xsd:element name="identity" type="cdf:identityType"
1569 minOccurs="0" maxOccurs="1"/>
1570 <xsd:element name="profile" type="cdf:idrefType"
1571 minOccurs="0" maxOccurs="1"/>
1572 <xsd:element name="target" type="xsd:string"
1573 minOccurs="1" maxOccurs="unbounded"/>
1574 <xsd:element name="target-address" type="xsd:string"
1575 minOccurs="0" maxOccurs="unbounded"/>
1576 <xsd:element name="target-facts" type="cdf:targetFactsType"
1577 minOccurs="0" maxOccurs="1"/>
1578 <xsd:element name="platform" type="cdf:URIidrefType"
1579 minOccurs="0" maxOccurs="unbounded"/>
1580 <xsd:element name="set-value" type="cdf:profileSetValueType"
1581 minOccurs="0" maxOccurs="unbounded"/>
1582 <xsd:element name="rule-result" type="cdf:ruleResultType"
1583 minOccurs="0" maxOccurs="unbounded">
1584 <!-- Each context name in an instance must be unique. -->
1585 <xsd:key name="instanceContextKey">
1586 <xsd:selector xpath="cdf:instance"/>
1587 <xsd:field xpath="@context"/>
1588 </xsd:key>
1589 <!-- parentContext must refer to valid sibling context -->
1590 <xsd:keyref name="parentKeyRef" refer="cdf:instanceContextKey">
1591 <xsd:selector xpath="./cdf:instance"/>
1592 <xsd:field xpath="@parentContext"/>
1593 </xsd:keyref>
1594 </xsd:element>
1595 <xsd:element name="score" type="cdf:scoreType"
1596 minOccurs="1" maxOccurs="unbounded"/>
1597 <xsd:element name="signature" type="cdf:signatureType"
1598 minOccurs="0" maxOccurs="1"/>
1599 </xsd:sequence>
1600 <xsd:attribute name="id" type="xsd:NCName" use="required"/>
1601 <xsd:attribute name="start-time" type="xsd:dateTime" use="optional"/>
1602 <xsd:attribute name="end-time" type="xsd:dateTime" use="required"/>
1603 <xsd:attribute name="test-system" type="xsd:string" use="optional"/>
1604 <xsd:attribute name="version" type="xsd:string" use="optional"/>
1605 <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
1606 </xsd:complexType>
1607
1608 <xsd:complexType name="scoreType">
1609 <xsd:annotation>
1610 <xsd:documentation xml:lang="en">
1611 Type for a score value in a TestResult, the content is a
1612 real number and the element can have two optional attributes.
1613 </xsd:documentation>
1614 </xsd:annotation>
1615 <xsd:simpleContent>
1616 <xsd:extension base="xsd:decimal">
1617 <xsd:attribute name="system" type="xsd:anyURI"
1618 use="optional"/>
1619 <xsd:attribute name="maximum" type="xsd:decimal"
1620 use="optional"/>
1621 </xsd:extension>
1622 </xsd:simpleContent>
1623 </xsd:complexType>
1624
1625 <xsd:complexType name="targetFactsType">
1626 <xsd:annotation>
1627 <xsd:documentation xml:lang="en">
1628 This element holds a list of facts about the target system
1629 or platform. Each fact is an element of type factType.
1630 Each fact must have a name, but duplicate names are allowed.
1631 (For example, if you had a fact about MAC addresses, and the
1632 target system had three NICs, then you'd need three
1633 instance of the "urn:xccdf:fact:ethernet:MAC" fact.)
1634 </xsd:documentation>
1635 </xsd:annotation>
1636 <xsd:sequence>
1637 <xsd:element name="fact" type="cdf:factType"
1638 minOccurs="0" maxOccurs="unbounded"/>
1639 </xsd:sequence>
1640 </xsd:complexType>
1641
1642 <xsd:complexType name="identityType">
1643 <xsd:annotation>
1644 <xsd:documentation xml:lang="en">
1645 Type for an identity element in a TestResult.
1646 The content is a string, the name of the identity.
1647 The authenticated attribute indicates whether the
1648 test system authenticated using that identity in order
1649 to apply the benchmark. The privileged attribute indicates
1650 whether the identity has access rights beyond those of
1651 normal system users (e.g. "root" on Unix")
1652 </xsd:documentation>
1653 </xsd:annotation>
1654 <xsd:simpleContent>
1655 <xsd:extension base="xsd:string">
1656 <xsd:attribute name="authenticated" type="xsd:boolean"
1657 use="required"/>
1658 <xsd:attribute name="privileged" type="xsd:boolean"
1659 use="required"/>
1660 </xsd:extension>
1661 </xsd:simpleContent>
1662 </xsd:complexType>
1663
1664 <xsd:complexType name="factType">
1665 <xsd:annotation>
1666 <xsd:documentation xml:lang="en">
1667 Element type for a fact about a target system: a
1668 name-value pair with a type. The content of the element
1669 is the value, the type attribute gives the type. This
1670 is an area where XML schema is weak: we can't make the
1671 schema validator check that the content matches the type.
1672 </xsd:documentation>
1673 </xsd:annotation>
1674 <xsd:simpleContent>
1675 <xsd:extension base="xsd:string">
1676 <xsd:attribute name="name" type="xsd:anyURI"
1677 use="required"/>
1678 <xsd:attribute name="type" type="cdf:valueTypeType"
1679 default="boolean" use="optional"/>
1680 </xsd:extension>
1681 </xsd:simpleContent>
1682 </xsd:complexType>
1683
1684 <xsd:complexType name="ruleResultType">
1685 <xsd:annotation>
1686 <xsd:documentation xml:lang="en">
1687 This element holds all the information about the
1688 application of one rule to a target. It may only
1689 appear as part of a TestResult object.
1690 </xsd:documentation>
1691 </xsd:annotation>
1692 <xsd:sequence>
1693 <xsd:element name="result" type="cdf:resultEnumType"
1694 minOccurs="1" maxOccurs="1"/>
1695 <xsd:element name="override" type="cdf:overrideType"
1696 minOccurs="0" maxOccurs="unbounded"/>
1697 <xsd:element name="ident" type="cdf:identType"
1698 minOccurs="0" maxOccurs="unbounded"/>
1699 <xsd:element name="message" type="cdf:messageType"
1700 minOccurs="0" maxOccurs="unbounded"/>
1701 <xsd:element name="instance" type="cdf:instanceResultType"
1702 minOccurs="0" maxOccurs="unbounded"/>
1703 <xsd:element name="fix" type="cdf:fixType"
1704 minOccurs="0" maxOccurs="unbounded"/>
1705 <!-- will we need a new restricted form for this? -->
1706 <xsd:element name="check" type="cdf:checkType"
1707 minOccurs="0" maxOccurs="unbounded"/>
1708 </xsd:sequence>
1709 <xsd:attribute name="idref" type="xsd:NCName" use="required"/>
1710 <xsd:attribute name="role" type="cdf:roleEnumType"
1711 use="optional"/>
1712 <xsd:attribute name="severity" type="cdf:severityEnumType"
1713 use="optional"/>
1714 <xsd:attribute name="time" type="xsd:dateTime" use="optional"/>
1715 <xsd:attribute name="version" type="xsd:string" use="optional"/>
1716 <xsd:attribute name="weight" type="cdf:weightType"
1717 use="optional"/>
1718 </xsd:complexType>
1719
1720 <xsd:complexType name="instanceResultType">
1721 <xsd:annotation>
1722 <xsd:documentation xml:lang="en">
1723 Type for an instance element in a rule-result.
1724 The content is a string, but the element may
1725 also have two attribute: context and parentContext.
1726 This type records the details of the target system
1727 instance for multiply instantiated rules.
1728 </xsd:documentation>
1729 </xsd:annotation>
1730 <xsd:simpleContent>
1731 <xsd:extension base="xsd:string">
1732 <xsd:attribute name="context" default="undefined"
1733 type="xsd:string" use="optional"/>
1734 <xsd:attribute name="parentContext"
1735 type="xsd:string" use="optional"/>
1736 </xsd:extension>
1737 </xsd:simpleContent>
1738 </xsd:complexType>
1739
1740 <xsd:complexType name="overrideType">
1741 <xsd:annotation>
1742 <xsd:documentation xml:lang="en">
1743 Type for an override block in a rule-result.
1744 It contains five mandatory parts: time, authority,
1745 old-result, new-result, and remark.
1746 </xsd:documentation>
1747 </xsd:annotation>
1748 <xsd:sequence>
1749 <xsd:element name="old-result" type="cdf:resultEnumType"
1750 minOccurs="1" maxOccurs="1"/>
1751 <xsd:element name="new-result" type="cdf:resultEnumType"
1752 minOccurs="1" maxOccurs="1"/>
1753 <xsd:element name="remark" type="cdf:textType"
1754 minOccurs="1" maxOccurs="1"/>
1755 </xsd:sequence>
1756 <xsd:attribute name="time" type="xsd:dateTime" use="required"/>
1757 <xsd:attribute name="authority" type="xsd:string" use="required"/>
1758 </xsd:complexType>
1759
1760 <xsd:complexType name="messageType">
1761 <xsd:annotation>
1762 <xsd:documentation xml:lang="en">
1763 Type for a message generated by the checking
1764 engine or XCCDF tool during benchmark testing.
1765 Content is string plus required severity attribute.
1766 </xsd:documentation>
1767 </xsd:annotation>
1768 <xsd:simpleContent>
1769 <xsd:extension base="xsd:string">
1770 <xsd:attribute name="severity" type="cdf:msgSevEnumType"
1771 use="required"/>
1772 </xsd:extension>
1773 </xsd:simpleContent>
1774 </xsd:complexType>
1775
1776 <xsd:simpleType name="msgSevEnumType">
1777 <xsd:annotation>
1778 <xsd:documentation xml:lang="en">
1779 Allowed values for message severity.
1780 </xsd:documentation>
1781 </xsd:annotation>
1782 <xsd:restriction base="xsd:string">
1783 <xsd:enumeration value="error"/>
1784 <xsd:enumeration value="warning"/>
1785 <xsd:enumeration value="info"/>
1786 </xsd:restriction>
1787 </xsd:simpleType>
1788
1789 <xsd:simpleType name="resultEnumType">
1790 <xsd:annotation>
1791 <xsd:documentation xml:lang="en">
1792 Allowed result indicators for a test, several possibilities:
1793 pass= the test passed, target complies w/ benchmark
1794 fail= the test failed, target does not comply
1795 error= an error occurred and test could not complete,
1796 or the test does not apply to this plaform
1797 unknown= could not tell what happened, results
1798 with this status are not to be scored
1799 notapplicable=Rule did not apply to test target
1800 fixed=rule failed, but was later fixed (score as pass)
1801 notchecked=Rule did not cause any evaluation by
1802 the checking engine (role of "unchecked")
1803 notselected=Rule was not selected in the Benchmark,
1804 and therefore was not checked (selected="0")
1805 informational=Rule was evaluated by the checking
1806 engine, but isn't to be scored (role of "unscored")
1807 </xsd:documentation>
1808 </xsd:annotation>
1809 <xsd:restriction base="xsd:string">
1810 <xsd:enumeration value="pass"/>
1811 <xsd:enumeration value="fail"/>
1812 <xsd:enumeration value="error"/>
1813 <xsd:enumeration value="unknown"/>
1814 <xsd:enumeration value="notapplicable"/>
1815 <xsd:enumeration value="notchecked"/>
1816 <xsd:enumeration value="notselected"/>
1817 <xsd:enumeration value="informational"/>
1818 <xsd:enumeration value="fixed"/>
1819 </xsd:restriction>
1820 </xsd:simpleType>
1821
1822 <xsd:simpleType name="severityEnumType">
1823 <xsd:annotation>
1824 <xsd:documentation xml:lang="en">
1825 Allowed severity values for a Rule.
1826 there are several possible values:
1827 unknown= severity not defined (default, for forward
1828 compatibility from XCCDF 1.0)
1829 info = rule is informational only, failing the
1830 rule does not imply failure to conform to
1831 the security guidance of the benchmark.
1832 (usually would also have a weight of 0)
1833 low = not a serious problem
1834 medium= fairly serious problem
1835 high = a grave or critical problem
1836 </xsd:documentation>
1837 </xsd:annotation>
1838 <xsd:restriction base="xsd:string">
1839 <xsd:enumeration value="unknown"/>
1840 <xsd:enumeration value="info"/>
1841 <xsd:enumeration value="low"/>
1842 <xsd:enumeration value="medium"/>
1843 <xsd:enumeration value="high"/>
1844 </xsd:restriction>
1845 </xsd:simpleType>
1846
1847 <xsd:simpleType name="roleEnumType">
1848 <xsd:annotation>
1849 <xsd:documentation xml:lang="en">
1850 Allowed checking and scoring roles for a Rule.
1851 There are several possible values:
1852 full = if the rule is selected, then check it and let the
1853 result contribute to the score and appear in reports
1854 (default, for compatibility for XCCDF 1.0).
1855 unscored = check the rule, and include the results in
1856 any report, but do not include the result in
1857 score computations (in the default scoring model
1858 the same effect can be achieved with weight=0)
1859 unchecked = don't check the rule, just force the result
1860 status to 'unknown'. Include the rule's
1861 information in any reports.
1862 </xsd:documentation>
1863 </xsd:annotation>
1864 <xsd:restriction base="xsd:string">
1865 <xsd:enumeration value="full"/>
1866 <xsd:enumeration value="unscored"/>
1867 <xsd:enumeration value="unchecked"/>
1868 </xsd:restriction>
1869 </xsd:simpleType>
1870
1871 </xsd:schema>
1872
1873 <!-- CHANGELOG
1874
1875 date change remarks
1876
1877 6/20/05 added cdf:ident long-term identifiers for Rule
1878 and rule-result.
1879
1880 6/21/05 enhanced version added version attr to TestResult
1881 and rule-result, too
1882
1883 added notapplicable added new rule result value
1884
1885 added severity enum and attributes
1886
1887 6/22/05 added signatures for need for standalone Rules & such
1888 Rule,Group,Value,
1889 Profile,TestResult
1890
1891 6/22/05 added rule roles at Dave's request
1892
1893 6/23/05 added rule result at DISA request
1894 overrides
1895
1896 6/26/05 added fixtext and enums for attributes
1897 fix enhancements
1898
1899 6/29/05 added interactive run-time tailoring for Values
1900 attr on Value object
1901
1902 6/29/05 added multiple scoring was this a Dave request?
1903 model support
1904
1905 7/1/05 added support for to support text re-use
1906 named plain text blocks
1907
1908 7/7/05 added target-facts DISA suggestion
1909
1910 7/13/05 added complex-checks workshop suggestion, allow
1911 boolean combinations of
1912 checks.
1913
1914 7/29/05 added more rule some suggested by CIS
1915 result types
1916
1917 8/4/05 added override attrs suggested by Dave W.
1918 for managing inheritance
1919
1920 8/20/05 added fix strategies
1921
1922 8/20/05 revamped complex-check see OVAL schema
1923 to more closely match
1924 OVAL boolean operators
1925
1926 9/4/05 fixed some typos
1927
1928 9/8/05 Added fix/fixtext suggested by Dave W.
1929 complexity and warning
1930 categories.
1931
1932 9/18/05 Allow for XCCDF-P as see XCCDF-P document
1933 a platform type. (later deprecated)
1934
1935 9/21/05 Added profile-note suggested by Dave W.
1936 support.
1937
1938 11/10/05 Added additional features also from Dave W.
1939 for Values.
1940
1941 11/27/05 Added instance context to meet CIS req'ts
1942 support
1943
1944 11/27/05 Added multiple hint on to meet CIS req'ts
1945 Rule object
1946
1947 11/27/05 fixed role attr on old bug
1948 Rule object
1949
1950 12/5/05 fixed 1.0-incompatible reported by Nancy W
1951 order glitch in Profile
1952
1953 4/16/06 beginning work toward reports from Ian C
1954 1.1bis; fixed several
1955 small mistakes/glitches.
1956
1957 4/23/06 tweaked formatting various e-mails
1958 fixed some comments
1959 version # to 1.1.2.1
1960
1961 4/30/06 fixed plain-text id report from Dave W.
1962 key and sub key ref
1963
1964 5/5/06 fixed extends keyrefs report from Dave W.
1965
1966 5/21/06 added id attribute to request from CIS
1967 check element
1968
1969 8/27/06 changed TestResult to bug discovered myself
1970 allow target to appear
1971 multiple times
1972
1973 11/20/06 Fixed weightType report from Gary Gapinski
1974
1975 12/13/06 Changed platform support for CPE
1976 references to URIs
1977
1978 12/13/06 Changed requires element request from NIST
1979 to a token list
1980
1981 12/28/06 Changed check element to backfit to NIST
1982 allow multiple change by Linda Devlin
1983 check-content-ref
1984
1985 8/21/07 Added check-import better reporting, req.
1986 element by NIST & MITRE
1987
1988 8/26/07 Added remark element allow authors to add
1989 to Profile selectors rationale to Profiles
1990
1991 8/26/07 Added weight to rule record weight used in
1992 result element a benchmark run
1993
1994 8/30/07 Added impact-metric mechanism to include a
1995 element to Rule CVSS score in a Rule
1996
1997 8/30/07 Changed CPE support Match SCAP 1.0
1998 to CPE 2.0
1999 9/10/07 Made CPE 1.0 deprecated Match SCAP 1.0
2000
2001 10/8/07 Allow Profile selectors Part of clarifying Profile
2002 in any order semantics for 1.1.4
2003
2004 10/8/07 Added Benchmark style For NIST SCAP
2005 and style-href attrs
2006
2007 10/8/07 Added organization and For NIST SCAP
2008 identity elements for
2009 TestResult
2010
2011 -->
2012