Debian Codegraph @

schemas/xccdf/1.2/xccdf_1.2.xsd

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
3 xmlns:cdf="http://checklists.nist.gov/xccdf/1.2" xmlns:cpe2="http://cpe.mitre.org/language/2.0"
4 targetNamespace="http://checklists.nist.gov/xccdf/1.2" elementFormDefault="qualified"
5 attributeFormDefault="unqualified" version="1.2.1">
6
7 <xsd:annotation>
8 <xsd:documentation xml:lang="en"> This schema defines the Extensible Configuration Checklist
9 Description Format (XCCDF), a data format for defining security benchmarks and
10 checklists, and for recording the results of applying such benchmarks. For more
11 information, consult the specification document, NIST Interagency Report 7275 Revision
12 4, "Specification for the Extensible Configuration Checklist Description Format Version
13 1.2". This schema was developed by Neal Ziring, with ideas and assistance from David
14 Waltermire. The following helpful individuals also contributed ideas to the definition
15 of this schema: David Proulx, Andrew Buttner, Ryan Wilson, Matthew Kerr, and Stephen
16 Quinn. Ian Crawford found numerous discrepancies between this schema and the spec
17 document. Peter Mell and his colleagues also made many suggestions. </xsd:documentation>
18 <xsd:appinfo>
19 <schema>XCCDF Language</schema>
20 <author>Neal Ziring</author>
21 <version>1.2</version>
22 <date>2012-02-23</date>
23 </xsd:appinfo>
24 </xsd:annotation>
25
26 <!-- Import base XML namespace -->
27 <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="../../common/xml.xsd">
28 <xsd:annotation>
29 <xsd:documentation xml:lang="en"> Import the XML namespace because this schema uses the
30 @xml:lang and @xml:base attributes. </xsd:documentation>
31 </xsd:annotation>
32 </xsd:import>
33
34 <!-- Import CPE 2.3 Language namespace -->
35 <xsd:import namespace="http://cpe.mitre.org/language/2.0" schemaLocation="cpe-language_2.3.xsd">
36 <xsd:annotation>
37 <xsd:documentation xml:lang="en"> Import the Common Platform Enumeration language
38 schema, which can be used for defining compound CPE tests for complex IT platforms
39 in the &lt;xccdf:Benchmark&gt;. For more info see NIST IRs 7695-7698, the
40 specification documents for CPE version 2.3. </xsd:documentation>
41 </xsd:annotation>
42 </xsd:import>
43
44 <!-- ************************************************************** -->
45 <!-- ***************** Benchmark Element ************************ -->
46 <!-- ************************************************************** -->
47 <xsd:element name="Benchmark">
48 <xsd:annotation>
49 <xsd:documentation xml:lang="en"> This is the root element of the XCCDF document; it
50 must appear exactly once. It encloses the entire benchmark, and contains both
51 descriptive information and structural information. Note that the order of
52 &lt;xccdf:Group&gt; and &lt;xccdf:Rule&gt; child elements may matter for the
53 appearance of a generated document. &lt;xccdf:Group&gt; and &lt;xccdf:Rule&gt;
54 children may be freely intermingled, but they must appear after any
55 &lt;xccdf:Value&gt; children. All the other children must appear in the order
56 shown.</xsd:documentation>
57 </xsd:annotation>
58 <xsd:complexType>
59 <xsd:sequence>
60 <xsd:element ref="cdf:status" minOccurs="1" maxOccurs="unbounded">
61 <xsd:annotation>
62 <xsd:documentation xml:lang="en">Status of the &lt;xccdf:Benchmark&gt;
63 indicating its level of maturity or consensus. If more than one
64 &lt;xccdf:status&gt; element appears, the element's @date attribute
65 should be included.</xsd:documentation>
66 </xsd:annotation>
67 </xsd:element>
68 <xsd:element name="dc-status" minOccurs="0" maxOccurs="unbounded"
69 type="cdf:dc-statusType">
70 <xsd:annotation>
71 <xsd:documentation xml:lang="en">Holds additional status information using
72 the Dublin Core format.</xsd:documentation>
73 </xsd:annotation>
74 </xsd:element>
75 <xsd:element name="title" type="cdf:textType" minOccurs="0" maxOccurs="unbounded">
76 <xsd:annotation>
77 <xsd:documentation xml:lang="en">Title of the &lt;xccdf:Benchmark&gt;; an
78 &lt;xccdf:Benchmark&gt; should have an
79 &lt;xccdf:title&gt;.</xsd:documentation>
80 </xsd:annotation>
81 </xsd:element>
82 <xsd:element name="description" type="cdf:htmlTextWithSubType" minOccurs="0"
83 maxOccurs="unbounded">
84 <xsd:annotation>
85 <xsd:documentation xml:lang="en">Text that describes the
86 &lt;xccdf:Benchmark&gt;; an &lt;xccdf:Benchmark&gt; should have an
87 &lt;xccdf:description&gt;.</xsd:documentation>
88 </xsd:annotation>
89 </xsd:element>
90 <xsd:element name="notice" type="cdf:noticeType" minOccurs="0" maxOccurs="unbounded">
91 <xsd:annotation>
92 <xsd:documentation xml:lang="en">Legal notices (licensing information, terms
93 of use, etc.), copyright statements, warnings, and other advisory
94 notices about this &lt;xccdf:Benchmark&gt; and its
95 use.</xsd:documentation>
96 </xsd:annotation>
97 </xsd:element>
98 <xsd:element name="front-matter" type="cdf:htmlTextWithSubType" minOccurs="0"
99 maxOccurs="unbounded">
100 <xsd:annotation>
101 <xsd:documentation xml:lang="en">Introductory matter for the beginning of
102 the &lt;xccdf:Benchmark&gt; document; intended for use during Document
103 Generation.</xsd:documentation>
104 </xsd:annotation>
105 </xsd:element>
106 <xsd:element name="rear-matter" type="cdf:htmlTextWithSubType" minOccurs="0"
107 maxOccurs="unbounded">
108 <xsd:annotation>
109 <xsd:documentation xml:lang="en">Concluding material for the end of the
110 &lt;xccdf:Benchmark&gt; document; intended for use during Document
111 Generation.</xsd:documentation>
112 </xsd:annotation>
113 </xsd:element>
114 <xsd:element name="reference" type="cdf:referenceType" minOccurs="0"
115 maxOccurs="unbounded">
116 <xsd:annotation>
117 <xsd:documentation xml:lang="en">Supporting references for the
118 &lt;xccdf:Benchmark&gt; document.</xsd:documentation>
119 </xsd:annotation>
120 </xsd:element>
121 <xsd:element name="plain-text" type="cdf:plainTextType" minOccurs="0"
122 maxOccurs="unbounded">
123 <xsd:annotation>
124 <xsd:documentation xml:lang="en">Definitions for reusable text blocks, each
125 with a unique identifier.</xsd:documentation>
126 </xsd:annotation>
127 </xsd:element>
128 <xsd:element ref="cpe2:platform-specification" minOccurs="0" maxOccurs="1">
129 <xsd:annotation>
130 <xsd:documentation xml:lang="en">A list of identifiers for complex platform
131 definitions, written in CPE applicability language format. Authors may
132 define complex platforms within this element, and then use their locally
133 unique identifiers anywhere in the &lt;xccdf:Benchmark&gt; element in
134 place of a CPE name.</xsd:documentation>
135 </xsd:annotation>
136 </xsd:element>
137 <xsd:element name="platform" type="cdf:CPE2idrefType" minOccurs="0"
138 maxOccurs="unbounded">
139 <xsd:annotation>
140 <xsd:documentation xml:lang="en">Applicable platforms for this
141 &lt;xccdf:Benchmark&gt;. Authors should use the element to identify the
142 systems or products to which the &lt;xccdf:Benchmark&gt;
143 applies.</xsd:documentation>
144 </xsd:annotation>
145 </xsd:element>
146 <xsd:element name="version" type="cdf:versionType" minOccurs="1" maxOccurs="1">
147 <xsd:annotation>
148 <xsd:documentation xml:lang="en">Version number of the
149 &lt;xccdf:Benchmark&gt;.</xsd:documentation>
150 </xsd:annotation>
151 </xsd:element>
152 <xsd:element name="metadata" type="cdf:metadataType" minOccurs="0"
153 maxOccurs="unbounded">
154 <xsd:annotation>
155 <xsd:documentation xml:lang="en">XML metadata for the
156 &lt;xccdf:Benchmark&gt;. Metadata allows many additional pieces of
157 information, including authorship, publisher, support, and other similar
158 details, to be embedded in an
159 &lt;xccdf:Benchmark&gt;.</xsd:documentation>
160 </xsd:annotation>
161 </xsd:element>
162 <xsd:element ref="cdf:model" minOccurs="0" maxOccurs="unbounded">
163 <xsd:annotation>
164 <xsd:documentation xml:lang="en">URIs of suggested scoring models to be used
165 when computing a score for this &lt;xccdf:Benchmark&gt;. A suggested
166 list of scoring models and their URIs is provided in the XCCDF
167 specification.</xsd:documentation>
168 </xsd:annotation>
169 </xsd:element>
170 <xsd:element ref="cdf:Profile" minOccurs="0" maxOccurs="unbounded">
171 <xsd:annotation>
172 <xsd:documentation xml:lang="en">&lt;xccdf:Profile&gt; elements that
173 reference and customize sets of items in the
174 &lt;xccdf:Benchmark&gt;.</xsd:documentation>
175 </xsd:annotation>
176 </xsd:element>
177 <xsd:element ref="cdf:Value" minOccurs="0" maxOccurs="unbounded">
178 <xsd:annotation>
179 <xsd:documentation xml:lang="en">Parameter &lt;xccdf:Value&gt; elements that
180 support &lt;xccdf:Rule&gt; elements and descriptions in the
181 &lt;xccdf:Benchmark&gt;. </xsd:documentation>
182 </xsd:annotation>
183 </xsd:element>
184 <xsd:choice minOccurs="0" maxOccurs="unbounded">
185 <xsd:element ref="cdf:Group">
186 <xsd:annotation>
187 <xsd:documentation xml:lang="en">&lt;xccdf:Group&gt; elements that
188 comprise the &lt;xccdf:Benchmark&gt;; each may contain additional
189 &lt;xccdf:Value&gt;, &lt;xccdf:Rule&gt;, and other
190 &lt;xccdf:Group&gt; elements. </xsd:documentation>
191 </xsd:annotation>
192 </xsd:element>
193 <xsd:element ref="cdf:Rule">
194 <xsd:annotation>
195 <xsd:documentation xml:lang="en">&lt;xccdf:Rule&gt; elements that
196 comprise the &lt;xccdf:Benchmark&gt;.</xsd:documentation>
197 </xsd:annotation>
198 </xsd:element>
199 </xsd:choice>
200 <xsd:element ref="cdf:TestResult" minOccurs="0" maxOccurs="unbounded">
201 <xsd:annotation>
202 <xsd:documentation xml:lang="en">&lt;xccdf:Benchmark&gt; test result records
203 (one per &lt;xccdf:Benchmark&gt; run).</xsd:documentation>
204 </xsd:annotation>
205 </xsd:element>
206 <xsd:element name="signature" type="cdf:signatureType" minOccurs="0" maxOccurs="1">
207 <xsd:annotation>
208 <xsd:documentation xml:lang="en">A digital signature asserting authorship
209 and allowing verification of the integrity of the
210 &lt;xccdf:Benchmark&gt;.</xsd:documentation>
211 </xsd:annotation>
212 </xsd:element>
213 </xsd:sequence>
214 <xsd:attribute name="id" type="cdf:benchmarkIdType" use="required">
215 <xsd:annotation>
216 <xsd:documentation>Unique &lt;xccdf:Benchmark&gt;
217 identifier.</xsd:documentation>
218 </xsd:annotation>
219 </xsd:attribute>
220 <xsd:attribute name="Id" type="xsd:ID" use="optional">
221 <xsd:annotation>
222 <xsd:documentation xml:lang="en">An identifier used for referencing elements
223 included in an XML signature.</xsd:documentation>
224 </xsd:annotation>
225 </xsd:attribute>
226 <xsd:attribute name="resolved" type="xsd:boolean" default="false" use="optional">
227 <xsd:annotation>
228 <xsd:documentation xml:lang="en">True if &lt;xccdf:Benchmark&gt; has already
229 undergone the resolution process.</xsd:documentation>
230 </xsd:annotation>
231 </xsd:attribute>
232 <xsd:attribute name="style" type="xsd:string" use="optional">
233 <xsd:annotation>
234 <xsd:documentation xml:lang="en">Name of an &lt;xccdf:Benchmark&gt; authoring
235 style or set of conventions or constraints to which this
236 &lt;xccdf:Benchmark&gt; conforms (e.g., “SCAP 1.2”).</xsd:documentation>
237 </xsd:annotation>
238 </xsd:attribute>
239 <xsd:attribute name="style-href" type="xsd:anyURI" use="optional">
240 <xsd:annotation>
241 <xsd:documentation xml:lang="en">URL of a supplementary stylesheet or schema
242 extension that can be used to verify conformance to the named
243 style.</xsd:documentation>
244 </xsd:annotation>
245 </xsd:attribute>
246 <xsd:attribute ref="xml:lang"/>
247 </xsd:complexType>
248
249 <xsd:unique name="noticeIdUnique">
250 <xsd:annotation>
251 <xsd:documentation xml:lang="en"> Legal notices must have unique id values.
252 </xsd:documentation>
253 </xsd:annotation>
254 <xsd:selector xpath="cdf:notice"/>
255 <xsd:field xpath="@id"/>
256 </xsd:unique>
257
258 <xsd:key name="itemIdKey">
259 <xsd:annotation>
260 <xsd:documentation xml:lang="en"> Items must have unique id values, and also they
261 must not collide. </xsd:documentation>
262 </xsd:annotation>
263 <xsd:selector xpath=".//cdf:Value|.//cdf:Group|.//cdf:Rule|./cdf:plain-text"/>
264 <xsd:field xpath="@id"/>
265 </xsd:key>
266
267 <xsd:key name="modelSystemKey">
268 <xsd:annotation>
269 <xsd:documentation xml:lang="en"> Model system attributes must be unique.
270 </xsd:documentation>
271 </xsd:annotation>
272 <xsd:selector xpath="./cdf:model"/>
273 <xsd:field xpath="@system"/>
274 </xsd:key>
275
276 <xsd:key name="valueIdKey">
277 <xsd:annotation>
278 <xsd:documentation xml:lang="en"> &lt;xccdf:Value&gt; item ids are special keys,
279 need this for the valueIdKeyRef and valueExtIdKeyRef keyrefs below.
280 </xsd:documentation>
281 </xsd:annotation>
282 <xsd:selector xpath=".//cdf:Value"/>
283 <xsd:field xpath="@id"/>
284 </xsd:key>
285
286 <xsd:key name="groupIdKey">
287 <xsd:annotation>
288 <xsd:documentation xml:lang="en"> &lt;xccdf:Group&gt; item ids are special keys,
289 need this for the groupIdKeyRef keyref below. </xsd:documentation>
290 </xsd:annotation>
291 <xsd:selector xpath=".//cdf:Group"/>
292 <xsd:field xpath="@id"/>
293 </xsd:key>
294
295 <xsd:key name="ruleIdKey">
296 <xsd:annotation>
297 <xsd:documentation xml:lang="en"> &lt;xccdf:Rule&gt; items have a unique key, we
298 need this for the ruleIdKeyRef keyref below. (&lt;xccdf:Rule&gt; key refs are
299 used by &lt;xccdf:rule-result&gt; elements.) </xsd:documentation>
300 </xsd:annotation>
301 <xsd:selector xpath=".//cdf:Rule"/>
302 <xsd:field xpath="@id"/>
303 </xsd:key>
304
305 <xsd:key name="selectableItemIdKey">
306 <xsd:annotation>
307 <xsd:documentation xml:lang="en"> &lt;xccdf:Group&gt; and &lt;xccdf:Rule&gt; item
308 ids are special keys, we need this for the requiresIdKeyRef keyref below.
309 </xsd:documentation>
310 </xsd:annotation>
311 <xsd:selector xpath=".//cdf:Group | .//cdf:Rule"/>
312 <xsd:field xpath="@id"/>
313 </xsd:key>
314
315 <xsd:key name="plainTextValueIdKey">
316 <xsd:annotation>
317 <xsd:documentation xml:lang="en"> &lt;xccdf:plain-text&gt; objects and
318 &lt;xccdf:Value&gt; objects each have an id, and they must be unique and not
319 overlap. </xsd:documentation>
320 </xsd:annotation>
321 <xsd:selector xpath="./cdf:plain-text | .//cdf:Value"/>
322 <xsd:field xpath="@id"/>
323 </xsd:key>
324
325 <xsd:key name="profileIdKey">
326 <xsd:annotation>
327 <xsd:documentation xml:lang="en"> &lt;xccdf:Profile&gt; objects have a unique id, it
328 is used for extension, too. </xsd:documentation>
329 </xsd:annotation>
330 <xsd:selector xpath="./cdf:Profile"/>
331 <xsd:field xpath="@id"/>
332 </xsd:key>
333
334 <xsd:keyref name="valueExtIdKeyRef" refer="cdf:valueIdKey">
335 <xsd:annotation>
336 <xsd:documentation xml:lang="en"> An @extends attribute on &lt;xccdf:Value&gt;
337 object must reference an existing &lt;xccdf:Value&gt;. </xsd:documentation>
338 </xsd:annotation>
339 <xsd:selector xpath=".//cdf:Value"/>
340 <xsd:field xpath="@extends"/>
341 </xsd:keyref>
342
343 <xsd:keyref name="groupExtIdKeyRef" refer="cdf:groupIdKey">
344 <xsd:annotation>
345 <xsd:documentation xml:lang="en"> An @extends attribute on &lt;xccdf:Group&gt;
346 objects must reference an existing &lt;xccdf:Group&gt;. NOTE:
347 &lt;xccdf:Group&gt; extension is now deprecated and should be avoided.
348 </xsd:documentation>
349 </xsd:annotation>
350 <xsd:selector xpath=".//cdf:Group"/>
351 <xsd:field xpath="@extends"/>
352 </xsd:keyref>
353
354 <xsd:keyref name="ruleExtIdKeyRef" refer="cdf:ruleIdKey">
355 <xsd:annotation>
356 <xsd:documentation xml:lang="en"> An @extends attribute on an &lt;xccdf:Rule&gt;
357 object must reference an existing &lt;xccdf:Rule&gt;. </xsd:documentation>
358 </xsd:annotation>
359 <xsd:selector xpath=".//cdf:Rule"/>
360 <xsd:field xpath="@extends"/>
361 </xsd:keyref>
362
363 <xsd:keyref name="profileExtIdKeyRef" refer="cdf:profileIdKey">
364 <xsd:annotation>
365 <xsd:documentation xml:lang="en"> An @extends attribute on &lt;xccdf:Profile&gt;
366 object must reference an existing &lt;xccdf:Profile&gt;. </xsd:documentation>
367 </xsd:annotation>
368 <xsd:selector xpath="./cdf:Profile"/>
369 <xsd:field xpath="@extends"/>
370 </xsd:keyref>
371
372 <xsd:keyref name="valueIdKeyRef" refer="cdf:valueIdKey">
373 <xsd:annotation>
374 <xsd:documentation xml:lang="en"> &lt;xccdf:check-export&gt; elements must reference
375 existing &lt;xccdf:Value&gt; elements. </xsd:documentation>
376 </xsd:annotation>
377 <xsd:selector xpath=".//cdf:check/cdf:check-export"/>
378 <xsd:field xpath="@value-id"/>
379 </xsd:keyref>
380
381 <xsd:keyref name="subValueKeyRef" refer="cdf:plainTextValueIdKey">
382 <xsd:annotation>
383 <xsd:documentation xml:lang="en"> &lt;xccdf:sub&gt; elements must reference existing
384 &lt;xccdf:Value&gt; or &lt;xccdf:plain-text&gt; ids. </xsd:documentation>
385 </xsd:annotation>
386 <xsd:selector xpath=".//cdf:sub"/>
387 <xsd:field xpath="@idref"/>
388 </xsd:keyref>
389
390 <xsd:keyref name="ruleIdKeyRef" refer="cdf:ruleIdKey">
391 <xsd:annotation>
392 <xsd:documentation xml:lang="en"> The &lt;xccdf:rule-result&gt; element @idref must
393 refer to an existing &lt;xccdf:Rule&gt;. </xsd:documentation>
394 </xsd:annotation>
395 <xsd:selector xpath="./cdf:TestResult/cdf:rule-result"/>
396 <xsd:field xpath="@idref"/>
397 </xsd:keyref>
398
399 </xsd:element>
400
401 <xsd:complexType name="noticeType" mixed="true">
402 <xsd:annotation>
403 <xsd:documentation xml:lang="en">Data type for an &lt;xccdf:notice&gt; element.
404 &lt;xccdf:notice&gt; elements are used to include legal notices (licensing
405 information, terms of use, etc.), copyright statements, warnings, and other advisory
406 notices about this &lt;xccdf:Benchmark&gt; and its use. This information may be
407 expressed using XHTML or may be a simply text expression. Each &lt;xccdf:notice&gt;
408 element must have a unique identifier. </xsd:documentation>
409 </xsd:annotation>
410 <xsd:sequence>
411 <xsd:any namespace="http://www.w3.org/1999/xhtml" minOccurs="0" maxOccurs="unbounded"
412 processContents="skip"/>
413 </xsd:sequence>
414 <xsd:attribute name="id" type="xsd:NCName">
415 <xsd:annotation>
416 <xsd:documentation xml:lang="en">The unique identifier for this
417 &lt;xccdf:notice&gt;.</xsd:documentation>
418 </xsd:annotation>
419 </xsd:attribute>
420 <xsd:attribute ref="xml:base"/>
421 <xsd:attribute ref="xml:lang"/>
422 </xsd:complexType>
423
424 <xsd:complexType name="dc-statusType">
425 <xsd:annotation>
426 <xsd:documentation>Data type element for the &lt;xccdf:dc-status&gt; element, which
427 holds status information about its parent element using the Dublin Core format,
428 expressed as elements of the DCMI Simple DC Element specification.
429 </xsd:documentation>
430 </xsd:annotation>
431 <xsd:sequence>
432 <xsd:any namespace="http://purl.org/dc/elements/1.1/" minOccurs="1" processContents="lax"
433 maxOccurs="unbounded"/>
434 </xsd:sequence>
435 </xsd:complexType>
436
437 <xsd:complexType name="plainTextType">
438 <xsd:annotation>
439 <xsd:documentation xml:lang="en">The data type for an &lt;xccdf:plain-text&gt; element,
440 which is a reusable text block for reference by the &lt;xccdf:sub&gt; element. This
441 allows text to be defined once and then reused multiple times. Each
442 &lt;xccdf:plain-text&gt; element mush have a unique id.</xsd:documentation>
443 </xsd:annotation>
444 <xsd:simpleContent>
445 <xsd:extension base="xsd:string">
446 <xsd:attribute name="id" type="xsd:NCName" use="required">
447 <xsd:annotation>
448 <xsd:documentation xml:lang="en">The unique identifier for this
449 &lt;xccdf:plain-text&gt; element.</xsd:documentation>
450 </xsd:annotation>
451 </xsd:attribute>
452 </xsd:extension>
453 </xsd:simpleContent>
454 </xsd:complexType>
455
456 <xsd:complexType name="referenceType" mixed="true">
457 <xsd:annotation>
458 <xsd:documentation xml:lang="en"> This element provides supplementary descriptive text
459 for a XCCDF elements. When used, it has either a simple string value or a value
460 consisting of simple Dublin Core elements. If a bare string appears, then it is
461 taken to be the string content for a Dublin Core title element. Multiple
462 &lt;xccdf:reference&gt; elements may appear; a document generation processing tool
463 may concatenate them, or put them into a reference list, and may choose to number
464 them. </xsd:documentation>
465 </xsd:annotation>
466 <xsd:sequence>
467 <xsd:any namespace="http://purl.org/dc/elements/1.1/" processContents="lax"
468 minOccurs="0" maxOccurs="unbounded"/>
469 </xsd:sequence>
470 <xsd:attribute name="href" type="xsd:anyURI">
471 <xsd:annotation>
472 <xsd:documentation xml:lang="en">A URL pointing to the referenced
473 resource.</xsd:documentation>
474 </xsd:annotation>
475 </xsd:attribute>
476 <xsd:attribute name="override" type="xsd:boolean">
477 <xsd:annotation>
478 <xsd:documentation xml:lang="en">Used to manage inheritance
479 processing.</xsd:documentation>
480 </xsd:annotation>
481 </xsd:attribute>
482 </xsd:complexType>
483
484 <xsd:complexType name="signatureType">
485 <xsd:annotation>
486 <xsd:documentation xml:lang="en"> The type of an &lt;XMLDSig:signature&gt; element,
487 which holds an enveloped digital signature asserting authorship and allowing
488 verification of the integrity of associated data (e.g., its parent element, other
489 documents, portions of other documents). </xsd:documentation>
490 </xsd:annotation>
491 <xsd:sequence>
492 <xsd:any namespace="http://www.w3.org/2000/09/xmldsig#" processContents="skip"
493 minOccurs="1" maxOccurs="1"/>
494 </xsd:sequence>
495 </xsd:complexType>
496
497 <xsd:complexType name="metadataType">
498 <xsd:annotation>
499 <xsd:documentation xml:lang="en"> Data type that supports inclusion of metadata about a
500 document or element. This is particularly useful for facilitating the discovery and
501 retrieval of XCCDF checklists from public repositories. When used, the contents of
502 the &lt;xccdf:metadata&gt; element are expressed in XML. The &lt;xccdf:Benchmark&gt;
503 element's metadata should contain information formatted using the Dublin Core
504 Metadata Initiative (DCMI) Simple DC Element specification, as described in [DCES]
505 and [DCXML]. Benchmark consumers should be prepared to process Dublin Core metadata
506 in the &lt;xccdf:metadata&gt; element. Other metadata schemes, including ad-hoc
507 elements, are also allowed, both in the &lt;xccdf:Benchmark&gt; and in other
508 elements.</xsd:documentation>
509 </xsd:annotation>
510 <xsd:sequence>
511 <xsd:any minOccurs="1" maxOccurs="unbounded" processContents="lax" namespace="##other"/>
512 </xsd:sequence>
513 </xsd:complexType>
514
515 <!-- ************************************************************** -->
516 <!-- ************* Global elements and types ******************** -->
517 <!-- ************************************************************** -->
518 <xsd:element name="status">
519 <xsd:annotation>
520 <xsd:documentation xml:lang="en"> The acceptance status of an element with an optional
521 date attribute, which signifies the date of the status change. If an element does
522 not have its own &lt;xccdf:status&gt; element, its status is that of its parent
523 element. If there is more than one &lt;xccdf:status&gt; for a single element, then
524 every instance of the &lt;xccdf:status&gt; element must have a @date attribute, and
525 the &lt;xccdf:status&gt; element with the latest date is considered the current
526 status. </xsd:documentation>
527 </xsd:annotation>
528 <xsd:complexType>
529 <xsd:simpleContent>
530 <xsd:extension base="cdf:statusType">
531 <xsd:attribute name="date" type="xsd:date" use="optional">
532 <xsd:annotation>
533 <xsd:documentation xml:lang="en">The date the parent element achieved
534 the indicated status.</xsd:documentation>
535 </xsd:annotation>
536 </xsd:attribute>
537 </xsd:extension>
538 </xsd:simpleContent>
539 </xsd:complexType>
540 </xsd:element>
541
542 <xsd:element name="model">
543 <xsd:annotation>
544 <xsd:documentation xml:lang="en"> A suggested scoring model for an
545 &lt;xccdf:Benchmark&gt;, also encapsulating any parameters needed by the model.
546 Every model is designated with a URI, which appears here as the system attribute.
547 See the XCCDF specification for a list of standard scoring models and their
548 associated URIs. Vendors may define their own scoring models and provide additional
549 URIs to designate them. Some models may need additional parameters; to support such
550 a model, zero or more &lt;xccdf:param&gt; elements may appear as children of the
551 &lt;xccdf:model&gt; element.</xsd:documentation>
552 </xsd:annotation>
553 <xsd:complexType>
554 <xsd:sequence>
555 <xsd:element name="param" type="cdf:paramType" minOccurs="0" maxOccurs="unbounded">
556 <xsd:annotation>
557 <xsd:documentation xml:lang="en">Parameters provided as input to the
558 designated scoring model.</xsd:documentation>
559 </xsd:annotation>
560 </xsd:element>
561 </xsd:sequence>
562 <xsd:attribute name="system" type="xsd:anyURI" use="required">
563 <xsd:annotation>
564 <xsd:documentation xml:lang="en">A URI designating a scoring
565 model.</xsd:documentation>
566 </xsd:annotation>
567 </xsd:attribute>
568 </xsd:complexType>
569
570 <xsd:key name="paramNameKey">
571 <xsd:annotation>
572 <xsd:documentation xml:lang="en"> Parameter names must be unique.
573 </xsd:documentation>
574 </xsd:annotation>
575 <xsd:selector xpath="./cdf:param"/>
576 <xsd:field xpath="@name"/>
577 </xsd:key>
578 </xsd:element>
579
580 <xsd:complexType name="paramType">
581 <xsd:annotation>
582 <xsd:documentation xml:lang="en"> Type for a parameter used in the &lt;xccdf:model&gt;
583 element, which records scoring model information. The contents of this type
584 represent a name-value pair, where the name is recorded in the @name attribute and
585 the value appears in the element body. &lt;xccdf:param&gt; elements with equal
586 values for the @name attribute may not appear as children of the same
587 &lt;xccdf:model&gt; element. </xsd:documentation>
588 </xsd:annotation>
589 <xsd:simpleContent>
590 <xsd:extension base="xsd:string">
591 <xsd:attribute name="name" type="xsd:NCName" use="required">
592 <xsd:annotation>
593 <xsd:documentation xml:lang="en">The name associated with the contained
594 value.</xsd:documentation>
595 </xsd:annotation>
596 </xsd:attribute>
597 </xsd:extension>
598 </xsd:simpleContent>
599 </xsd:complexType>
600
601
602 <xsd:simpleType name="statusType">
603 <xsd:annotation>
604 <xsd:documentation xml:lang="en"> The statusType represents the possible levels of
605 maturity or consensus level for its parent element as recorded by an
606 &lt;xccdf:status&gt; element. </xsd:documentation>
607 </xsd:annotation>
608 <xsd:restriction base="xsd:string">
609 <xsd:enumeration value="accepted">
610 <xsd:annotation>
611 <xsd:documentation xml:lang="en">Released as final</xsd:documentation>
612 </xsd:annotation>
613 </xsd:enumeration>
614 <xsd:enumeration value="deprecated">
615 <xsd:annotation>
616 <xsd:documentation xml:lang="en">No longer needed</xsd:documentation>
617 </xsd:annotation>
618 </xsd:enumeration>
619 <xsd:enumeration value="draft">
620 <xsd:annotation>
621 <xsd:documentation xml:lang="en">Released in draft state</xsd:documentation>
622 </xsd:annotation>
623 </xsd:enumeration>
624 <xsd:enumeration value="incomplete">
625 <xsd:annotation>
626 <xsd:documentation xml:lang="en">Under initial development</xsd:documentation>
627 </xsd:annotation>
628 </xsd:enumeration>
629 <xsd:enumeration value="interim">
630 <xsd:annotation>
631 <xsd:documentation xml:lang="en">Revised and in the process of being
632 finalized</xsd:documentation>
633 </xsd:annotation>
634 </xsd:enumeration>
635 </xsd:restriction>
636 </xsd:simpleType>
637
638 <xsd:complexType name="versionType">
639 <xsd:annotation>
640 <xsd:documentation xml:lang="en"> Type for most &lt;xccdf:version&gt; elements.
641 </xsd:documentation>
642 </xsd:annotation>
643 <xsd:simpleContent>
644 <xsd:extension base="xsd:string">
645 <xsd:attribute name="time" type="xsd:dateTime" use="optional">
646 <xsd:annotation>
647 <xsd:documentation xml:lang="en">The time that this version of the
648 associated element was completed. </xsd:documentation>
649 </xsd:annotation>
650 </xsd:attribute>
651 <xsd:attribute name="update" type="xsd:anyURI" use="optional">
652 <xsd:annotation>
653 <xsd:documentation xml:lang="en">A URI indicating a location where updates
654 to the associated element may be obtained. </xsd:documentation>
655 </xsd:annotation>
656 </xsd:attribute>
657 </xsd:extension>
658 </xsd:simpleContent>
659 </xsd:complexType>
660
661 <!-- ************************************************************** -->
662 <!-- ******************** Text Types **************************** -->
663 <!-- ************************************************************** -->
664 <xsd:complexType name="textType">
665 <xsd:annotation>
666 <xsd:documentation xml:lang="en">Type for a simple text string with an @override
667 attribute for controlling inheritance. </xsd:documentation>
668 </xsd:annotation>
669 <xsd:simpleContent>
670 <xsd:extension base="xsd:string">
671 <xsd:attribute ref="xml:lang"/>
672 <xsd:attribute name="override" type="xsd:boolean" use="optional" default="0">
673 <xsd:annotation>
674 <xsd:documentation xml:lang="en">Used to manage inheritance.
675 </xsd:documentation>
676 </xsd:annotation>
677 </xsd:attribute>
678 </xsd:extension>
679 </xsd:simpleContent>
680 </xsd:complexType>
681
682 <xsd:complexType name="htmlTextType" mixed="true">
683 <xsd:annotation>
684 <xsd:documentation xml:lang="en"> The type for a string with optional XHTML elements and
685 an @xml:lang attribute. </xsd:documentation>
686 </xsd:annotation>
687 <xsd:sequence>
688 <xsd:any namespace="http://www.w3.org/1999/xhtml" minOccurs="0" maxOccurs="unbounded"
689 processContents="skip"/>
690 </xsd:sequence>
691 <xsd:attribute ref="xml:lang"/>
692 <xsd:attribute name="override" type="xsd:boolean" use="optional" default="0">
693 <xsd:annotation>
694 <xsd:documentation xml:lang="en">Used to manage inheritance. </xsd:documentation>
695 </xsd:annotation>
696 </xsd:attribute>
697 </xsd:complexType>
698
699 <xsd:complexType name="htmlTextWithSubType" mixed="true">
700 <xsd:annotation>
701 <xsd:documentation xml:lang="en"> The type for a string with optional XHTML elements,
702 and an @xml:lang attribute. </xsd:documentation>
703 </xsd:annotation>
704 <xsd:choice minOccurs="0" maxOccurs="unbounded">
705 <xsd:element name="sub" type="cdf:subType">
706 <xsd:annotation>
707 <xsd:documentation xml:lang="en">Specifies an &lt;xccdf:Value&gt; or
708 &lt;xccdf:plain-text&gt; element to be used for text
709 substitution</xsd:documentation>
710 </xsd:annotation>
711 </xsd:element>
712 <xsd:any namespace="http://www.w3.org/1999/xhtml" processContents="skip"/>
713 </xsd:choice>
714 <xsd:attribute ref="xml:lang"/>
715 <xsd:attribute name="override" type="xsd:boolean" use="optional" default="0">
716 <xsd:annotation>
717 <xsd:documentation xml:lang="en">Used to manage inheritance. </xsd:documentation>
718 </xsd:annotation>
719 </xsd:attribute>
720 </xsd:complexType>
721
722 <xsd:complexType name="profileNoteType" mixed="true">
723 <xsd:annotation>
724 <xsd:documentation xml:lang="en"> Type for an &lt;xccdf:profile-note&gt; within an
725 &lt;xccdf:Rule&gt;. This element contains text that describes special aspects of an
726 &lt;xccdf:Rule&gt; relative to one or more &lt;xccdf:Profile&gt; elements. This
727 allows an author to document things within &lt;xccdf:Rule&gt; elements that are
728 specific to a given &lt;xccdf:Profile&gt;. This information might then be displayed
729 to a reader based on the selection of a particular &lt;xccdf:Profile&gt;. The body
730 text may include XHTML mark-up as well as &lt;xccdf:sub&gt; elements.
731 </xsd:documentation>
732 </xsd:annotation>
733 <xsd:choice minOccurs="0" maxOccurs="unbounded">
734 <xsd:element name="sub" type="cdf:subType">
735 <xsd:annotation>
736 <xsd:documentation xml:lang="en">Specifies an &lt;xccdf:Value&gt; or
737 &lt;xccdf:plain-text&gt; element to be used for text
738 substitution</xsd:documentation>
739 </xsd:annotation>
740 </xsd:element>
741 <xsd:any namespace="http://www.w3.org/1999/xhtml" processContents="skip"/>
742 </xsd:choice>
743 <xsd:attribute ref="xml:lang"/>
744 <xsd:attribute name="tag" type="xsd:NCName" use="required">
745 <xsd:annotation>
746 <xsd:documentation xml:lang="en">The identifier of this note. </xsd:documentation>
747 </xsd:annotation>
748 </xsd:attribute>
749 </xsd:complexType>
750
751 <xsd:complexType name="textWithSubType" mixed="true">
752 <xsd:annotation>
753 <xsd:documentation xml:lang="en"> Type for a string with embedded &lt;xccdf:Value&gt;
754 substitutions and an @override attribute to help manage inheritance.
755 </xsd:documentation>
756 </xsd:annotation>
757 <xsd:sequence>
758 <xsd:element name="sub" type="cdf:subType" minOccurs="0" maxOccurs="unbounded">
759 <xsd:annotation>
760 <xsd:documentation xml:lang="en">Specifies an &lt;xccdf:Value&gt; or
761 &lt;xccdf:plain-text&gt; element to be used for text substitution.
762 </xsd:documentation>
763 </xsd:annotation>
764 </xsd:element>
765 </xsd:sequence>
766 <xsd:attribute ref="xml:lang"/>
767 <xsd:attribute name="override" type="xsd:boolean" use="optional" default="0">
768 <xsd:annotation>
769 <xsd:documentation xml:lang="en">Used to manage inheritance. </xsd:documentation>
770 </xsd:annotation>
771 </xsd:attribute>
772 </xsd:complexType>
773
774 <xsd:complexType name="subType">
775 <xsd:annotation>
776 <xsd:documentation xml:lang="en">The type used for &lt;xccdf:sub&gt; elements. The
777 &lt;xccdf:sub&gt; element identifies replacement content that should appear in place
778 of the &lt;xccdf:sub&gt; element during text substitution. The subType consists of a
779 regular idrefType with an additional @use attribute to dictate the behavior of the
780 &lt;xccdf:sub&gt; element under substitution. When the @idref is to an
781 &lt;xccdf:Value&gt;, the @use attribute indicates whether the &lt;xccdf:Value&gt;
782 element's title or value should replace the &lt;xccdf:sub&gt; element. The @use
783 attribute is ignored when the @idref is to an &lt;xccdf:plain-text&gt; element; the
784 body of the &lt;xccdf:plain-text&gt; element is always used to replace the
785 &lt;xccdf:sub&gt; element.</xsd:documentation>
786 </xsd:annotation>
787 <xsd:complexContent>
788 <xsd:extension base="cdf:idrefType">
789 <xsd:attribute name="use" use="optional" default="value" type="cdf:subUseEnumType">
790 <xsd:annotation>
791 <xsd:documentation xml:lang="en">Dictates the nature of the content inserted
792 under text substitution processing. </xsd:documentation>
793 </xsd:annotation>
794 </xsd:attribute>
795 </xsd:extension>
796 </xsd:complexContent>
797 </xsd:complexType>
798
799 <xsd:simpleType name="benchmarkIdType">
800 <xsd:annotation>
801 <xsd:documentation xml:lang="en"> The format required for the @id property of
802 &lt;xccdf:Benchmark&gt; elements. xccdf_N_benchmark_S, where N is a reverse-DNS
803 style namespace and S is an NCName-compatible string. </xsd:documentation>
804 </xsd:annotation>
805 <xsd:restriction base="xsd:NCName">
806 <xsd:pattern value="xccdf_[^_]+_benchmark_.+"/>
807 </xsd:restriction>
808 </xsd:simpleType>
809
810 <xsd:simpleType name="ruleIdType">
811 <xsd:annotation>
812 <xsd:documentation xml:lang="en"> The format required for the @id property of
813 &lt;xccdf:Rule&gt; elements. xccdf_N_rule_S, where N is a reverse-DNS style
814 namespace and S is an NCName-compatible string. </xsd:documentation>
815 </xsd:annotation>
816 <xsd:restriction base="xsd:NCName">
817 <xsd:pattern value="xccdf_[^_]+_rule_.+"/>
818 </xsd:restriction>
819 </xsd:simpleType>
820
821 <xsd:simpleType name="groupIdType">
822 <xsd:annotation>
823 <xsd:documentation xml:lang="en"> The format required for the @id property of
824 &lt;xccdf:Group&gt; elements. xccdf_N_group_S, where N is a reverse-DNS style
825 namespace and S is an NCName-compatible string. </xsd:documentation>
826 </xsd:annotation>
827 <xsd:restriction base="xsd:NCName">
828 <xsd:pattern value="xccdf_[^_]+_group_.+"/>
829 </xsd:restriction>
830 </xsd:simpleType>
831
832 <xsd:simpleType name="valueIdType">
833 <xsd:annotation>
834 <xsd:documentation xml:lang="en"> The format required for the @id property of
835 &lt;xccdf:Value&gt; elements. xccdf_N_value_S, where N is a reverse-DNS style
836 namespace and S is an NCName-compatible string. </xsd:documentation>
837 </xsd:annotation>
838 <xsd:restriction base="xsd:NCName">
839 <xsd:pattern value="xccdf_[^_]+_value_.+"/>
840 </xsd:restriction>
841 </xsd:simpleType>
842
843 <xsd:simpleType name="profileIdType">
844 <xsd:annotation>
845 <xsd:documentation xml:lang="en"> The format required for the @id property of
846 &lt;xccdf:Profile&gt; elements. xccdf_N_profile_S, where N is a reverse-DNS style
847 namespace and S is an NCName-compatible string. </xsd:documentation>
848 </xsd:annotation>
849 <xsd:restriction base="xsd:NCName">
850 <xsd:pattern value="xccdf_[^_]+_profile_.+"/>
851 </xsd:restriction>
852 </xsd:simpleType>
853
854 <xsd:simpleType name="testresultIdType">
855 <xsd:annotation>
856 <xsd:documentation xml:lang="en"> The format required for the @id property of
857 &lt;xccdf:TestResult&gt; elements. xccdf_N_testresult_S, where N is a reverse-DNS
858 style namespace and S is an NCName-compatible string. </xsd:documentation>
859 </xsd:annotation>
860 <xsd:restriction base="xsd:NCName">
861 <xsd:pattern value="xccdf_[^_]+_testresult_.+"/>
862 </xsd:restriction>
863 </xsd:simpleType>
864
865 <xsd:simpleType name="tailoringIdType">
866 <xsd:annotation>
867 <xsd:documentation xml:lang="en"> The format required for the @id property of
868 &lt;xccdf:Tailoring&gt; elements. xccdf_N_tailoring_S, where N is a reverse-DNS
869 style namespace and S is an NCName-compatible string. </xsd:documentation>
870 </xsd:annotation>
871 <xsd:restriction base="xsd:NCName">
872 <xsd:pattern value="xccdf_[^_]+_tailoring_.+"/>
873 </xsd:restriction>
874 </xsd:simpleType>
875
876 <xsd:complexType name="idrefType">
877 <xsd:annotation>
878 <xsd:documentation xml:lang="en"> Data type for elements that contain a reference to
879 another XCCDF element </xsd:documentation>
880 </xsd:annotation>
881 <xsd:attribute name="idref" type="xsd:NCName" use="required">
882 <xsd:annotation>
883 <xsd:documentation xml:lang="en">The id value of another XCCDF
884 element</xsd:documentation>
885 </xsd:annotation>
886 </xsd:attribute>
887 </xsd:complexType>
888
889 <xsd:complexType name="idrefListType">
890 <xsd:annotation>
891 <xsd:documentation xml:lang="en"> Data type for elements contain list of references to
892 other XCCDF elements </xsd:documentation>
893 </xsd:annotation>
894 <xsd:attribute name="idref" type="xsd:NMTOKENS" use="required">
895 <xsd:annotation>
896 <xsd:documentation xml:lang="en">A space-separated list of id values from other
897 XCCDF elements</xsd:documentation>
898 </xsd:annotation>
899 </xsd:attribute>
900 </xsd:complexType>
901
902 <xsd:complexType name="CPE2idrefType">
903 <xsd:annotation>
904 <xsd:documentation xml:lang="en"> Data type for &lt;xccdf:platform&gt; elements that do
905 not need @override attributes. (I.e., &lt;xccdf:platform&gt; elements that are in
906 structures that cannot be extended, such as &lt;xccdf:TestResult&gt; and
907 &lt;xccdf:Benchmark&gt; elements.) This is used to identify the applicable target
908 platform for its respective parent elements. </xsd:documentation>
909 </xsd:annotation>
910 <xsd:attribute name="idref" type="xsd:string" use="required">
911 <xsd:annotation>
912 <xsd:documentation xml:lang="en">Should be a CPE 2.3 Applicability Language
913 identifier using the Formatted String binding or the value of a
914 &lt;cpe:platform-specification&gt; element's @id attribute, the latter acting as
915 a reference to some expression defined using the CPE schema in the
916 &lt;xccdf:Benchmark&gt; element's &lt;cpe:platform-specification&gt; element.
917 The @idref may be a CPE Applicability Language identifier using the URI binding,
918 although this is less preferred.</xsd:documentation>
919 </xsd:annotation>
920 </xsd:attribute>
921 </xsd:complexType>
922
923 <xsd:complexType name="overrideableCPE2idrefType">
924 <xsd:annotation>
925 <xsd:documentation xml:lang="en">Data type for &lt;xccdf:platform&gt; elements that need
926 @override attributes. (I.e., &lt;xccdf:platform&gt; elements that are in structures
927 that can be extended, such as Items and &lt;xccdf:Profile&gt; elements.) This is
928 used to identify the applicable target platform for its respective parent elements.
929 </xsd:documentation>
930 </xsd:annotation>
931 <xsd:complexContent>
932 <xsd:extension base="cdf:CPE2idrefType">
933 <xsd:attribute name="override" type="xsd:boolean" use="optional" default="0">
934 <xsd:annotation>
935 <xsd:documentation xml:lang="en">Used to manage inheritance.
936 </xsd:documentation>
937 </xsd:annotation>
938 </xsd:attribute>
939 </xsd:extension>
940 </xsd:complexContent>
941 </xsd:complexType>
942
943
944 <!-- ************************************************************** -->
945 <!-- **************** Item Element (Base Class) ****************** -->
946 <!-- ************************************************************** -->
947 <xsd:element name="Item" type="cdf:itemType">
948 <xsd:annotation>
949 <xsd:documentation xml:lang="en"> An item is a named constituent of an
950 &lt;xccdf:Benchmark&gt;. There are three types of items: &lt;xccdf:Group&gt;,
951 &lt;xccdf:Rule&gt; and &lt;xccdf:Value&gt;. The &lt;xccdf:Item&gt; element type
952 imposes constraints shared by all &lt;xccdf:Group&gt;, &lt;xccdf:Rule&gt; and
953 &lt;xccdf:Value&gt; elements. The itemType is abstract, so the element
954 &lt;xccdf:Item&gt; can never appear in a valid XCCDF document.</xsd:documentation>
955 </xsd:annotation>
956 </xsd:element>
957
958 <xsd:complexType name="itemType" abstract="1">
959 <xsd:annotation>
960 <xsd:documentation xml:lang="en"> This abstract itemType represents the basic data
961 shared by all &lt;xccdf:Group&gt;, &lt;xccdf:Rule&gt; and &lt;xccdf:Value&gt;
962 elements. All elements in an itemType are optional, although each element that
963 builds on the itemType may add its own elements, some of which will be required for
964 that element. </xsd:documentation>
965 </xsd:annotation>
966 <xsd:sequence>
967 <xsd:element ref="cdf:status" minOccurs="0" maxOccurs="unbounded">
968 <xsd:annotation>
969 <xsd:documentation xml:lang="en">Status of the item and date at which it
970 attained that status. &lt;xccdf:Benchmark&gt; authors may use this element
971 to record the maturity or consensus level for elements in the
972 &lt;xccdf:Benchmark&gt;. If an item does not have an explicit
973 &lt;xccdf:status&gt; given, then its status is that of its
974 parent.</xsd:documentation>
975 </xsd:annotation>
976 </xsd:element>
977 <xsd:element name="dc-status" minOccurs="0" maxOccurs="unbounded"
978 type="cdf:dc-statusType">
979 <xsd:annotation>
980 <xsd:documentation xml:lang="en">Holds additional status information using the
981 Dublin Core format.</xsd:documentation>
982 </xsd:annotation>
983 </xsd:element>
984 <xsd:element name="version" type="cdf:versionType" minOccurs="0" maxOccurs="1">
985 <xsd:annotation>
986 <xsd:documentation xml:lang="en">Version information about this item.
987 </xsd:documentation>
988 </xsd:annotation>
989 </xsd:element>
990 <xsd:element name="title" type="cdf:textWithSubType" minOccurs="0" maxOccurs="unbounded">
991 <xsd:annotation>
992 <xsd:documentation xml:lang="en">Title of the item. Every item should have an
993 &lt;xccdf:title&gt;, because this helps people understand the purpose of the
994 item. </xsd:documentation>
995 </xsd:annotation>
996 </xsd:element>
997 <xsd:element name="description" type="cdf:htmlTextWithSubType" minOccurs="0"
998 maxOccurs="unbounded">
999 <xsd:annotation>
1000 <xsd:documentation xml:lang="en">Text that describes the item.
1001 </xsd:documentation>
1002 </xsd:annotation>
1003 </xsd:element>
1004 <xsd:element name="warning" type="cdf:warningType" minOccurs="0" maxOccurs="unbounded">
1005 <xsd:annotation>
1006 <xsd:documentation xml:lang="en">A note or caveat about the item intended to
1007 convey important cautionary information for the &lt;xccdf:Benchmark&gt; user
1008 (e.g., “Complying with this rule will cause the system to reject all IP
1009 packets”). If multiple &lt;xccdf:warning&gt; elements appear, benchmark
1010 consumers should concatenate them for generating reports or documents.
1011 Benchmark consumers may present this information in a special manner in
1012 generated documents.</xsd:documentation>
1013 </xsd:annotation>
1014 </xsd:element>
1015 <xsd:element name="question" type="cdf:textType" minOccurs="0" maxOccurs="unbounded">
1016 <xsd:annotation>
1017 <xsd:documentation xml:lang="en">Interrogative text to present to the user
1018 during tailoring. It may also be included into a generated document. For
1019 &lt;xccdf:Rule&gt; and &lt;xccdf:Group&gt; elements, the
1020 &lt;xccdf:question&gt; text should be a simple binary (yes/no) question
1021 because it is supporting the selection aspect of tailoring. For
1022 &lt;xccdf:Value&gt; elements, the &lt;xccdf:question&gt; should solicit the
1023 user to provide a specific value. Tools may also display constraints on
1024 values and any defaults as specified by the other &lt;xccdf:Value&gt;
1025 properties.</xsd:documentation>
1026 </xsd:annotation>
1027 </xsd:element>
1028 <xsd:element name="reference" type="cdf:referenceType" minOccurs="0"
1029 maxOccurs="unbounded">
1030 <xsd:annotation>
1031 <xsd:documentation xml:lang="en">References where the user can learn more about
1032 the subject of this item. </xsd:documentation>
1033 </xsd:annotation>
1034 </xsd:element>
1035 <xsd:element name="metadata" type="cdf:metadataType" minOccurs="0" maxOccurs="unbounded">
1036 <xsd:annotation>
1037 <xsd:documentation xml:lang="en">XML metadata associated with this item, such as
1038 sources, special information, or other details. </xsd:documentation>
1039 </xsd:annotation>
1040 </xsd:element>
1041 </xsd:sequence>
1042 <xsd:attribute name="abstract" type="xsd:boolean" default="false" use="optional">
1043 <xsd:annotation>
1044 <xsd:documentation xml:lang="en">If true, then this item is abstract and exists only
1045 to be extended. The use of this attribute for &lt;xccdf:Group&gt; elements is
1046 deprecated and should be avoided. </xsd:documentation>
1047 </xsd:annotation>
1048 </xsd:attribute>
1049 <xsd:attribute name="cluster-id" type="xsd:NCName" use="optional">
1050 <xsd:annotation>
1051 <xsd:documentation xml:lang="en">An identifier to be used as a means to identify
1052 (refer to) related items. It designates membership in a cluster of items, which
1053 are used for controlling items via &lt;xccdf:Profile&gt; elements. All the items
1054 with the same cluster identifier belong to the same cluster. A selector in an
1055 &lt;xccdf:Profile&gt; may refer to a cluster, thus making it easier for authors
1056 to create and maintain &lt;xccdf:Profile&gt; elements in a complex
1057 &lt;xccdf:Benchmark&gt;.</xsd:documentation>
1058 </xsd:annotation>
1059 </xsd:attribute>
1060 <xsd:attribute name="extends" type="xsd:NCName" use="optional">
1061 <xsd:annotation>
1062 <xsd:documentation xml:lang="en">The identifier of an item on which to base this
1063 item. If present, it must have a value equal to the @id attribute of another
1064 item. The use of this attribute for &lt;xccdf:Group&gt; elements is deprecated
1065 and should be avoided. </xsd:documentation>
1066 </xsd:annotation>
1067 </xsd:attribute>
1068 <xsd:attribute name="hidden" type="xsd:boolean" default="false" use="optional">
1069 <xsd:annotation>
1070 <xsd:documentation xml:lang="en">If this item should be excluded from any generated
1071 documents although it may still be used during assessments. </xsd:documentation>
1072 </xsd:annotation>
1073 </xsd:attribute>
1074 <xsd:attribute name="prohibitChanges" type="xsd:boolean" default="false" use="optional">
1075 <xsd:annotation>
1076 <xsd:documentation xml:lang="en">If benchmark producers should prohibit changes to
1077 this item during tailoring. An author should use this when they do not want to
1078 allow end users to change the item. </xsd:documentation>
1079 </xsd:annotation>
1080 </xsd:attribute>
1081 <xsd:attribute ref="xml:lang"/>
1082 <xsd:attribute ref="xml:base"/>
1083 <xsd:attribute name="Id" type="xsd:ID" use="optional">
1084 <xsd:annotation>
1085 <xsd:documentation xml:lang="en">An identifier used for referencing elements
1086 included in an XML signature</xsd:documentation>
1087 </xsd:annotation>
1088 </xsd:attribute>
1089 </xsd:complexType>
1090
1091
1092 <!-- ************************************************************** -->
1093 <!-- ************ Selectable Item Type (Base Class) ************** -->
1094 <!-- ************************************************************** -->
1095 <xsd:complexType name="selectableItemType" abstract="true">
1096 <xsd:annotation>
1097 <xsd:documentation xml:lang="en"> This abstract item type represents the basic data
1098 shared by all &lt;xccdf:Group&gt; and &lt;xccdf:Rule&gt; elements.
1099 </xsd:documentation>
1100 </xsd:annotation>
1101 <xsd:complexContent>
1102 <xsd:extension base="cdf:itemType">
1103 <xsd:sequence>
1104 <xsd:element name="rationale" type="cdf:htmlTextWithSubType" minOccurs="0"
1105 maxOccurs="unbounded">
1106 <xsd:annotation>
1107 <xsd:documentation xml:lang="en">Descriptive text giving rationale or
1108 motivations for abiding by this
1109 &lt;xccdf:Group&gt;/&lt;xccdf:Rule&gt; (i.e., why it is important to
1110 the security of the target platform).</xsd:documentation>
1111 </xsd:annotation>
1112 </xsd:element>
1113 <xsd:element name="platform" type="cdf:overrideableCPE2idrefType" minOccurs="0"
1114 maxOccurs="unbounded">
1115 <xsd:annotation>
1116 <xsd:documentation xml:lang="en">Platforms to which this
1117 &lt;xccdf:Group&gt;/&lt;xccdf:Rule&gt; applies.</xsd:documentation>
1118 </xsd:annotation>
1119 </xsd:element>
1120 <xsd:element name="requires" type="cdf:idrefListType" minOccurs="0"
1121 maxOccurs="unbounded">
1122 <xsd:annotation>
1123 <xsd:documentation xml:lang="en">The identifiers of other
1124 &lt;xccdf:Group&gt; or &lt;xccdf:Rule&gt; elements that must be
1125 selected for this &lt;xccdf:Group&gt;/&lt;xccdf:Rule&gt; to be
1126 evaluated and scored properly. Each &lt;xccdf:requires&gt; element
1127 specifies a list of one or more required items by their identifiers.
1128 If at least one of the specified &lt;xccdf:Group&gt; or
1129 &lt;xccdf:Rule&gt; elements is selected, the requirement is met.
1130 </xsd:documentation>
1131 </xsd:annotation>
1132 </xsd:element>
1133 <xsd:element name="conflicts" type="cdf:idrefType" minOccurs="0"
1134 maxOccurs="unbounded">
1135 <xsd:annotation>
1136 <xsd:documentation xml:lang="en">The identifier of another
1137 &lt;xccdf:Group&gt; or &lt;xccdf:Rule&gt; that must be unselected
1138 for this &lt;xccdf:Group&gt;/&lt;xccdf:Rule&gt; to be evaluated and
1139 scored properly. Each &lt;xccdf:conflicts&gt; element specifies a
1140 single conflicting item using its idref attribute. If the specified
1141 &lt;xccdf:Group&gt; or &lt;xccdf:Rule&gt; element is not selected,
1142 the requirement is met.</xsd:documentation>
1143 </xsd:annotation>
1144 </xsd:element>
1145 </xsd:sequence>
1146 <xsd:attribute name="selected" type="xsd:boolean" default="true" use="optional">
1147 <xsd:annotation>
1148 <xsd:documentation xml:lang="en">If true, this
1149 &lt;xccdf:Group&gt;/&lt;xccdf:Rule&gt; is selected to be processed as
1150 part of the &lt;xccdf:Benchmark&gt; when it is applied to a target
1151 system. An unselected &lt;xccdf:Group&gt; does not get processed, and
1152 its contents are not processed either (i.e., all descendants of an
1153 unselected &lt;xccdf:Group&gt; are implicitly unselected). An unselected
1154 &lt;xccdf:Rule&gt; is not checked and does not contribute to scoring.
1155 </xsd:documentation>
1156 </xsd:annotation>
1157 </xsd:attribute>
1158 <xsd:attribute name="weight" type="cdf:weightType" default="1.0" use="optional">
1159 <xsd:annotation>
1160 <xsd:documentation xml:lang="en">The relative scoring weight of this
1161 &lt;xccdf:Group&gt;/&lt;xccdf:Rule&gt;, for computing a score, expressed
1162 as a non-negative real number. It denotes the importance of an
1163 &lt;xccdf:Group&gt;/&lt;xccdf:Rule&gt;. Under some scoring models,
1164 scoring is computed independently for each collection of sibling
1165 &lt;xccdf:Group&gt; and &lt;xccdf:Rule&gt; elements, then normalized as
1166 part of the overall scoring process.</xsd:documentation>
1167 </xsd:annotation>
1168 </xsd:attribute>
1169 </xsd:extension>
1170 </xsd:complexContent>
1171 </xsd:complexType>
1172
1173 <!-- ************************************************************** -->
1174 <!-- ********************** Group Element *********************** -->
1175 <!-- ************************************************************** -->
1176 <xsd:element name="Group" type="cdf:groupType">
1177 <xsd:annotation>
1178 <xsd:documentation xml:lang="en">An item that can hold other items. It allows an author
1179 to collect related items into a common structure and provide descriptive text and
1180 references about them.</xsd:documentation>
1181 </xsd:annotation>
1182 </xsd:element>
1183
1184 <xsd:complexType name="groupType">
1185 <xsd:annotation>
1186 <xsd:documentation xml:lang="en"> Data type for the &lt;xccdf:Group&gt; element. A
1187 &lt;xccdf:Group&gt; element contains descriptive information about a portion of an
1188 &lt;xccdf:Benchmark&gt;, as well as &lt;xccdf:Rule&gt;, &lt;xccdf:Value&gt;, and/or
1189 other &lt;xccdf:Group&gt; elements</xsd:documentation>
1190 </xsd:annotation>
1191 <xsd:complexContent>
1192 <xsd:extension base="cdf:selectableItemType">
1193 <xsd:sequence>
1194 <xsd:element ref="cdf:Value" minOccurs="0" maxOccurs="unbounded">
1195 <xsd:annotation>
1196 <xsd:documentation xml:lang="en">&lt;xccdf:Value&gt; elements that
1197 belong to this &lt;xccdf:Group&gt;. </xsd:documentation>
1198 </xsd:annotation>
1199 </xsd:element>
1200 <xsd:choice minOccurs="0" maxOccurs="unbounded">
1201 <xsd:element ref="cdf:Group">
1202 <xsd:annotation>
1203 <xsd:documentation xml:lang="en">Sub-&lt;xccdf:Groups&gt; under this
1204 &lt;xccdf:Group&gt;. </xsd:documentation>
1205 </xsd:annotation>
1206 </xsd:element>
1207 <xsd:element ref="cdf:Rule">
1208 <xsd:annotation>
1209 <xsd:documentation xml:lang="en">&lt;xccdf:Rule&gt; elements that
1210 belong to this &lt;xccdf:Group&gt;. </xsd:documentation>
1211 </xsd:annotation>
1212 </xsd:element>
1213 </xsd:choice>
1214 <xsd:element name="signature" type="cdf:signatureType" minOccurs="0"
1215 maxOccurs="1">
1216 <xsd:annotation>
1217 <xsd:documentation xml:lang="en">A digital signature asserting
1218 authorship and allowing verification of the integrity of the
1219 &lt;xccdf:Group&gt;. </xsd:documentation>
1220 </xsd:annotation>
1221 </xsd:element>
1222 </xsd:sequence>
1223 <xsd:attribute name="id" type="cdf:groupIdType" use="required">
1224 <xsd:annotation>
1225 <xsd:documentation xml:lang="en">Unique element identifier; used by other
1226 elements to refer to this element. </xsd:documentation>
1227 </xsd:annotation>
1228 </xsd:attribute>
1229 </xsd:extension>
1230 </xsd:complexContent>
1231 </xsd:complexType>
1232
1233
1234 <!-- ************************************************************** -->
1235 <!-- ******************** Rule Element ************************** -->
1236 <!-- ************************************************************** -->
1237 <xsd:element name="Rule" type="cdf:ruleType">
1238 <xsd:annotation>
1239 <xsd:documentation xml:lang="en"> The &lt;xccdf:Rule&gt; element contains the
1240 description for a single item of guidance or constraint. &lt;xccdf:Rule&gt; elements
1241 form the basis for testing a target platform for compliance with an
1242 &lt;xccdf:Benchmark&gt;, for scoring, and for conveying descriptive prose,
1243 identifiers, references, and remediation information. </xsd:documentation>
1244 </xsd:annotation>
1245 <xsd:unique name="ruleCheckSelectorKey">
1246 <xsd:selector xpath="./cdf:check"/>
1247 <xsd:field xpath="@selector"/>
1248 <xsd:field xpath="@system"/>
1249 </xsd:unique>
1250 <xsd:unique name="ruleCheckIdKey">
1251 <xsd:selector xpath=".//cdf:check"/>
1252 <xsd:field xpath="@id"/>
1253 </xsd:unique>
1254 </xsd:element>
1255
1256 <xsd:complexType name="ruleType">
1257 <xsd:annotation>
1258 <xsd:documentation xml:lang="en"> Data type for the &lt;xccdf:Rule&gt; element that
1259 represents a specific &lt;xccdf:Benchmark&gt; test. </xsd:documentation>
1260 </xsd:annotation>
1261 <xsd:complexContent>
1262 <xsd:extension base="cdf:selectableItemType">
1263 <xsd:sequence>
1264 <xsd:element name="ident" type="cdf:identType" minOccurs="0"
1265 maxOccurs="unbounded">
1266 <xsd:annotation>
1267 <xsd:documentation xml:lang="en">A globally meaningful identifier for
1268 this &lt;xccdf:Rule&gt;. This may be the name or identifier of a
1269 security configuration issue or vulnerability that the
1270 &lt;xccdf:Rule&gt; assesses.</xsd:documentation>
1271 </xsd:annotation>
1272 </xsd:element>
1273 <xsd:element name="impact-metric" type="xsd:string" minOccurs="0" maxOccurs="1">
1274 <xsd:annotation>
1275 <xsd:documentation xml:lang="en">The potential impact of failure to
1276 conform to the &lt;xccdf:Rule&gt;, expressed as a CVSS 2.0 base
1277 vector. </xsd:documentation>
1278 <xsd:appinfo>
1279 <deprecated_info>
1280 <version>1.2</version>
1281 <reason>The &lt;xccdf:impact-metric&gt; property was found to be
1282 of little use in the anticipated XCCDF use-cases.</reason>
1283 <comment>While there is no direct replacement for this property,
1284 authors seeking to include equivalent information can use an
1285 &lt;xccdf:Rule&gt; element's &lt;xccdf:metadata&gt; property
1286 to hold this information.</comment>
1287 </deprecated_info>
1288 </xsd:appinfo>
1289 </xsd:annotation>
1290 </xsd:element>
1291 <xsd:element name="profile-note" minOccurs="0" type="cdf:profileNoteType"
1292 maxOccurs="unbounded">
1293 <xsd:annotation>
1294 <xsd:documentation xml:lang="en">Text that describes special aspects of
1295 the &lt;xccdf:Rule&gt; related to one or more &lt;xccdf:Profile&gt;
1296 elements. This allows an author to document things within
1297 &lt;xccdf:Rule&gt; elements that are specific to a given
1298 &lt;xccdf:Profile&gt;, and then select the appropriate text based on
1299 the selected &lt;xccdf:Profile&gt; and display it to the
1300 reader.</xsd:documentation>
1301 </xsd:annotation>
1302 </xsd:element>
1303 <xsd:element name="fixtext" type="cdf:fixTextType" minOccurs="0"
1304 maxOccurs="unbounded">
1305 <xsd:annotation>
1306 <xsd:documentation xml:lang="en">Data that describes how to bring a
1307 target system into compliance with this
1308 &lt;xccdf:Rule&gt;.</xsd:documentation>
1309 </xsd:annotation>
1310 </xsd:element>
1311 <xsd:element name="fix" type="cdf:fixType" minOccurs="0" maxOccurs="unbounded">
1312 <xsd:annotation>
1313 <xsd:documentation xml:lang="en">A command string, script, or other
1314 system modification statement that, if executed on the target
1315 system, can bring it into full, or at least better, compliance with
1316 this &lt;xccdf:Rule&gt;.</xsd:documentation>
1317 </xsd:annotation>
1318 </xsd:element>
1319 <xsd:choice>
1320 <xsd:element name="check" type="cdf:checkType" minOccurs="0"
1321 maxOccurs="unbounded">
1322 <xsd:annotation>
1323 <xsd:documentation xml:lang="en">The definition of, or a reference
1324 to, the target system check needed to test compliance with this
1325 &lt;xccdf:Rule&gt;. Sibling &lt;xccdf:check&gt; elements must
1326 have different values for the combination of their @selector and
1327 @system attributes, and must have different values for their @id
1328 attribute (if any).</xsd:documentation>
1329 </xsd:annotation>
1330 </xsd:element>
1331 <xsd:element name="complex-check" minOccurs="0" type="cdf:complexCheckType"
1332 maxOccurs="1">
1333 <xsd:annotation>
1334 <xsd:documentation xml:lang="en">A boolean expression composed of
1335 operators (and, or, not) and individual
1336 checks.</xsd:documentation>
1337 </xsd:annotation>
1338 </xsd:element>
1339 </xsd:choice>
1340 <xsd:element name="signature" type="cdf:signatureType" minOccurs="0"
1341 maxOccurs="1">
1342 <xsd:annotation>
1343 <xsd:documentation xml:lang="en">A digital signature asserting
1344 authorship and allowing verification of the integrity of the
1345 &lt;xccdf:Rule&gt;.</xsd:documentation>
1346 </xsd:annotation>
1347 </xsd:element>
1348 </xsd:sequence>
1349 <xsd:attribute name="id" type="cdf:ruleIdType" use="required">
1350 <xsd:annotation>
1351 <xsd:documentation xml:lang="en">Unique element identifier used by other
1352 elements to refer to this element.</xsd:documentation>
1353 </xsd:annotation>
1354 </xsd:attribute>
1355 <xsd:attribute name="role" type="cdf:roleEnumType" use="optional" default="full">
1356 <xsd:annotation>
1357 <xsd:documentation xml:lang="en">The &lt;xccdf:Rule&gt; element’s role in
1358 scoring and reporting.</xsd:documentation>
1359 </xsd:annotation>
1360 </xsd:attribute>
1361 <xsd:attribute name="severity" type="cdf:severityEnumType" default="unknown"
1362 use="optional">
1363 <xsd:annotation>
1364 <xsd:documentation xml:lang="en">Severity level code to be used for metrics
1365 and tracking.</xsd:documentation>
1366 </xsd:annotation>
1367 </xsd:attribute>
1368 <xsd:attribute name="multiple" type="xsd:boolean" use="optional" default="false">
1369 <xsd:annotation>
1370 <xsd:documentation xml:lang="en">Applicable in cases where there are
1371 multiple instances of a target. For example, an &lt;xccdf:Rule&gt; may
1372 provide a recommendation about the configuration of application user
1373 accounts, but an application may have many user accounts. Each account
1374 would be considered an instance of the broader assessment target of user
1375 accounts. If the @multiple attribute is set to true, each instance of
1376 the target to which the &lt;xccdf:Rule&gt; can apply should be tested
1377 separately and the results should be recorded separately. If @multiple
1378 is set to false, the test results of such instances should be combined.
1379 If the checking system does not combine these results automatically, the
1380 results of each instance should be ANDed together to produce a single
1381 result. If the benchmark consumer cannot perform multiple instantiation,
1382 or if multiple instantiation of the &lt;xccdf:Rule&gt; is not applicable
1383 for the target system, then the benchmark consumer may ignore this
1384 attribute.</xsd:documentation>
1385 </xsd:annotation>
1386 </xsd:attribute>
1387 </xsd:extension>
1388 </xsd:complexContent>
1389 </xsd:complexType>
1390
1391
1392 <!-- ************************************************************** -->
1393 <!-- ***************** Rule-related Types ************************ -->
1394 <!-- ************************************************************** -->
1395 <xsd:complexType name="identType">
1396 <xsd:annotation>
1397 <xsd:documentation xml:lang="en"> Data type for the &lt;xccdf:ident&gt; element, a
1398 globally meaningful identifier for an &lt;xccdf:Rule&gt;. The body of
1399 &lt;xccdf:ident&gt; element is the name or identifier of a security configuration
1400 issue or vulnerability that the &lt;xccdf:Rule&gt; addresses. It has an associated
1401 URI that denotes the organization or naming scheme that assigned the name. By
1402 setting an &lt;xccdf:ident&gt; element on an &lt;xccdf:Rule&gt;, the
1403 &lt;xccdf:Benchmark&gt; author effectively declares that the &lt;xccdf:Rule&gt;
1404 instantiates, implements, or remediates the issue for which the name was assigned.
1405 </xsd:documentation>
1406 </xsd:annotation>
1407 <xsd:simpleContent>
1408 <xsd:extension base="xsd:string">
1409 <xsd:attribute name="system" type="xsd:anyURI" use="required">
1410 <xsd:annotation>
1411 <xsd:documentation xml:lang="en">Denotes the organization or naming scheme
1412 that assigned the identifier. </xsd:documentation>
1413 </xsd:annotation>
1414 </xsd:attribute>
1415 <xsd:anyAttribute namespace="##other" processContents="lax">
1416 <xsd:annotation>
1417 <xsd:documentation xml:lang="en">May also have other attributes from other
1418 namespaces in order to provide additional metadata for the given
1419 identifier. </xsd:documentation>
1420 </xsd:annotation>
1421 </xsd:anyAttribute>
1422 </xsd:extension>
1423 </xsd:simpleContent>
1424 </xsd:complexType>
1425
1426 <xsd:complexType name="warningType" mixed="true">
1427 <xsd:annotation>
1428 <xsd:documentation xml:lang="en"> Data type for the &lt;xccdf:warning&gt; element under
1429 the &lt;xccdf:Rule&gt; element. This element holds a note or caveat about the item
1430 intended to convey important cautionary information for the &lt;xccdf:Benchmark&gt;
1431 user. </xsd:documentation>
1432 </xsd:annotation>
1433 <xsd:complexContent>
1434 <xsd:extension base="cdf:htmlTextWithSubType">
1435 <xsd:attribute name="category" type="cdf:warningCategoryEnumType" use="optional"
1436 default="general">
1437 <xsd:annotation>
1438 <xsd:documentation xml:lang="en">A hint as to the nature of the
1439 warning.</xsd:documentation>
1440 </xsd:annotation>
1441 </xsd:attribute>
1442 </xsd:extension>
1443 </xsd:complexContent>
1444 </xsd:complexType>
1445
1446 <xsd:simpleType name="warningCategoryEnumType">
1447 <xsd:annotation>
1448 <xsd:documentation xml:lang="en"> Allowed warning category keywords for the
1449 &lt;xccdf:warning&gt; element used in &lt;xccdf:Rule&gt; elements.
1450 </xsd:documentation>
1451 </xsd:annotation>
1452 <xsd:restriction base="xsd:string">
1453 <xsd:enumeration value="general">
1454 <xsd:annotation>
1455 <xsd:documentation xml:lang="en">Broad or general-purpose warning
1456 (default)</xsd:documentation>
1457 </xsd:annotation>
1458 </xsd:enumeration>
1459 <xsd:enumeration value="functionality">
1460 <xsd:annotation>
1461 <xsd:documentation xml:lang="en">Warning about possible impacts to functionality
1462 or operational features</xsd:documentation>
1463 </xsd:annotation>
1464 </xsd:enumeration>
1465 <xsd:enumeration value="performance">
1466 <xsd:annotation>
1467 <xsd:documentation xml:lang="en">Warning about changes to target system
1468 performance or throughput</xsd:documentation>
1469 </xsd:annotation>
1470 </xsd:enumeration>
1471 <xsd:enumeration value="hardware">
1472 <xsd:annotation>
1473 <xsd:documentation xml:lang="en">Warning about hardware restrictions or possible
1474 impacts to hardware</xsd:documentation>
1475 </xsd:annotation>
1476 </xsd:enumeration>
1477 <xsd:enumeration value="legal">
1478 <xsd:annotation>
1479 <xsd:documentation xml:lang="en">Warning about legal
1480 implications</xsd:documentation>
1481 </xsd:annotation>
1482 </xsd:enumeration>
1483 <xsd:enumeration value="regulatory">
1484 <xsd:annotation>
1485 <xsd:documentation xml:lang="en">Warning about regulatory obligations or
1486 compliance implications</xsd:documentation>
1487 </xsd:annotation>
1488 </xsd:enumeration>
1489 <xsd:enumeration value="management">
1490 <xsd:annotation>
1491 <xsd:documentation xml:lang="en">Warning about impacts to the management or
1492 administration of the target system</xsd:documentation>
1493 </xsd:annotation>
1494 </xsd:enumeration>
1495 <xsd:enumeration value="audit">
1496 <xsd:annotation>
1497 <xsd:documentation xml:lang="en">Warning about impacts to audit or
1498 logging</xsd:documentation>
1499 </xsd:annotation>
1500 </xsd:enumeration>
1501 <xsd:enumeration value="dependency">
1502 <xsd:annotation>
1503 <xsd:documentation xml:lang="en">Warning about dependencies between this element
1504 and other parts of the target system, or version
1505 dependencies</xsd:documentation>
1506 </xsd:annotation>
1507 </xsd:enumeration>
1508 </xsd:restriction>
1509 </xsd:simpleType>
1510
1511
1512 <xsd:complexType name="fixTextType" mixed="true">
1513 <xsd:annotation>
1514 <xsd:documentation xml:lang="en"> Data type for the &lt;xccdf:fixtext&gt; element, which
1515 contains data that describes how to bring a target system into compliance with an
1516 &lt;xccdf:Rule&gt;. Each &lt;xccdf:fixtext&gt; element may be associated with one or
1517 more &lt;xccdf:fix&gt; elements through the @fixref attribute. The body holds
1518 explanatory text about the fix procedures.</xsd:documentation>
1519 </xsd:annotation>
1520 <xsd:complexContent>
1521 <xsd:extension base="cdf:htmlTextWithSubType">
1522 <xsd:attribute name="fixref" type="xsd:NCName" use="optional">
1523 <xsd:annotation>
1524 <xsd:documentation xml:lang="en">A reference to the @id of an
1525 &lt;xccdf:fix&gt; element. </xsd:documentation>
1526 </xsd:annotation>
1527 </xsd:attribute>
1528 <xsd:attribute name="reboot" type="xsd:boolean" use="optional" default="0">
1529 <xsd:annotation>
1530 <xsd:documentation xml:lang="en">True if a reboot is known to be required
1531 and false otherwise. </xsd:documentation>
1532 </xsd:annotation>
1533 </xsd:attribute>
1534 <xsd:attribute name="strategy" type="cdf:fixStrategyEnumType" use="optional"
1535 default="unknown">
1536 <xsd:annotation>
1537 <xsd:documentation xml:lang="en">The method or approach for making the
1538 described fix. </xsd:documentation>
1539 </xsd:annotation>
1540 </xsd:attribute>
1541 <xsd:attribute name="disruption" type="cdf:ratingEnumType" use="optional"
1542 default="unknown">
1543 <xsd:annotation>
1544 <xsd:documentation xml:lang="en">An estimate of the potential for disruption
1545 or operational degradation that the application of this fix will impose
1546 on the target. </xsd:documentation>
1547 </xsd:annotation>
1548 </xsd:attribute>
1549 <xsd:attribute name="complexity" type="cdf:ratingEnumType" use="optional"
1550 default="unknown">
1551 <xsd:annotation>
1552 <xsd:documentation xml:lang="en">The estimated complexity or difficulty of
1553 applying the fix to the target. </xsd:documentation>
1554 </xsd:annotation>
1555 </xsd:attribute>
1556 </xsd:extension>
1557 </xsd:complexContent>
1558 </xsd:complexType>
1559
1560 <xsd:complexType name="fixType" mixed="true">
1561 <xsd:annotation>
1562 <xsd:documentation xml:lang="en"> Data type for the &lt;xccdf:fix&gt; element. The body
1563 of this element contains a command string, script, or other system modification
1564 statement that, if executed on the target system, can bring it into full, or at
1565 least better, compliance with this &lt;xccdf:Rule&gt;. </xsd:documentation>
1566 </xsd:annotation>
1567 <xsd:choice minOccurs="0" maxOccurs="unbounded">
1568 <xsd:element name="sub" type="cdf:subType">
1569 <xsd:annotation>
1570 <xsd:documentation xml:lang="en">Specifies an &lt;xccdf:Value&gt; or
1571 &lt;xccdf:plain-text&gt; element to be used for text substitution
1572 </xsd:documentation>
1573 </xsd:annotation>
1574 </xsd:element>
1575 <xsd:element name="instance" type="cdf:instanceFixType">
1576 <xsd:annotation>
1577 <xsd:documentation xml:lang="en">Designates a spot where the name of the
1578 instance should be substituted into the fix template to generate the final
1579 fix data. If the @context attribute is omitted, the value of the @context
1580 defaults to “undefined”.</xsd:documentation>
1581 </xsd:annotation>
1582 </xsd:element>
1583 </xsd:choice>
1584 <xsd:attribute name="id" type="xsd:NCName" use="optional">
1585 <xsd:annotation>
1586 <xsd:documentation xml:lang="en">A local identifier for the element. It is optional
1587 for the @id to be unique; multiple &lt;xccdf:fix&gt; elements may have the same
1588 @id but different values for their other attributes. It is used primarily to
1589 allow &lt;xccdf:fixtext&gt; elements to be associated with one or more
1590 &lt;xccdf:fix&gt; elements </xsd:documentation>
1591 </xsd:annotation>
1592 </xsd:attribute>
1593 <xsd:attribute name="reboot" type="xsd:boolean" use="optional" default="0">
1594 <xsd:annotation>
1595 <xsd:documentation xml:lang="en">True if a reboot is known to be required and false
1596 otherwise. </xsd:documentation>
1597 </xsd:annotation>
1598 </xsd:attribute>
1599 <xsd:attribute name="strategy" type="cdf:fixStrategyEnumType" use="optional"
1600 default="unknown">
1601 <xsd:annotation>
1602 <xsd:documentation xml:lang="en">The method or approach for making the described
1603 fix. </xsd:documentation>
1604 </xsd:annotation>
1605 </xsd:attribute>
1606 <xsd:attribute name="disruption" type="cdf:ratingEnumType" use="optional" default="unknown">
1607 <xsd:annotation>
1608 <xsd:documentation xml:lang="en">An estimate of the potential for disruption or
1609 operational degradation that the application of this fix will impose on the
1610 target. </xsd:documentation>
1611 </xsd:annotation>
1612 </xsd:attribute>
1613 <xsd:attribute name="complexity" type="cdf:ratingEnumType" use="optional" default="unknown">
1614 <xsd:annotation>
1615 <xsd:documentation xml:lang="en">The estimated complexity or difficulty of applying
1616 the fix to the target. </xsd:documentation>
1617 </xsd:annotation>
1618 </xsd:attribute>
1619 <xsd:attribute name="system" type="xsd:anyURI" use="optional">
1620 <xsd:annotation>
1621 <xsd:documentation xml:lang="en">A URI that identifies the scheme, language, engine,
1622 or process for which the fix contents are written. Table 17 in the XCCDF
1623 specification defines several general-purpose URNs that may be used for this,
1624 and tool vendors and system providers may define and use target-specific
1625 URNs.</xsd:documentation>
1626 </xsd:annotation>
1627 </xsd:attribute>
1628 <xsd:attribute name="platform" type="xsd:anyURI" use="optional">
1629 <xsd:annotation>
1630 <xsd:documentation xml:lang="en">In case different fix scripts or procedures are
1631 required for different target platform types (e.g., different patches for
1632 Windows Vista and Windows 7), this attribute allows a CPE name or CPE
1633 applicability language expression to be associated with an &lt;xccdf:fix&gt;
1634 element. This should appear on an &lt;xccdf:fix&gt; when the content applies to
1635 only one platform out of several to which the &lt;xccdf:Rule&gt; could apply.
1636 </xsd:documentation>
1637 </xsd:annotation>
1638 </xsd:attribute>
1639 </xsd:complexType>
1640
1641 <xsd:simpleType name="fixStrategyEnumType">
1642 <xsd:annotation>
1643 <xsd:documentation xml:lang="en"> Allowed @strategy keyword values for an
1644 &lt;xccdf:Rule&gt; element's &lt;xccdf:fix&gt; or &lt;xccdf:fixtext&gt; elements.
1645 The values indicate the method or approach for fixing non-compliance with a
1646 particular &lt;xccdf:Rule&gt;. </xsd:documentation>
1647 </xsd:annotation>
1648 <xsd:restriction base="xsd:string">
1649 <xsd:enumeration value="unknown">
1650 <xsd:annotation>
1651 <xsd:documentation xml:lang="en">Strategy not defined
1652 (default)</xsd:documentation>
1653 </xsd:annotation>
1654 </xsd:enumeration>
1655 <xsd:enumeration value="configure">
1656 <xsd:annotation>
1657 <xsd:documentation xml:lang="en">Adjust target
1658 configuration/settings</xsd:documentation>
1659 </xsd:annotation>
1660 </xsd:enumeration>
1661 <xsd:enumeration value="combination">
1662 <xsd:annotation>
1663 <xsd:documentation xml:lang="en">Combination of two or more
1664 approaches</xsd:documentation>
1665 </xsd:annotation>
1666 </xsd:enumeration>
1667 <xsd:enumeration value="disable">
1668 <xsd:annotation>
1669 <xsd:documentation xml:lang="en">Turn off or uninstall a target component
1670 </xsd:documentation>
1671 </xsd:annotation>
1672 </xsd:enumeration>
1673 <xsd:enumeration value="enable">
1674 <xsd:annotation>
1675 <xsd:documentation xml:lang="en">Turn on or install a target
1676 component</xsd:documentation>
1677 </xsd:annotation>
1678 </xsd:enumeration>
1679 <xsd:enumeration value="patch">
1680 <xsd:annotation>
1681 <xsd:documentation xml:lang="en">Apply a patch, hotfix, update,
1682 etc.</xsd:documentation>
1683 </xsd:annotation>
1684 </xsd:enumeration>
1685 <xsd:enumeration value="policy">
1686 <xsd:annotation>
1687 <xsd:documentation xml:lang="en">Remediation requires out-of-band adjustments to
1688 policies or procedures</xsd:documentation>
1689 </xsd:annotation>
1690 </xsd:enumeration>
1691 <xsd:enumeration value="restrict">
1692 <xsd:annotation>
1693 <xsd:documentation xml:lang="en">Adjust permissions, access rights, filters, or
1694 other access restrictions</xsd:documentation>
1695 </xsd:annotation>
1696 </xsd:enumeration>
1697 <xsd:enumeration value="update">
1698 <xsd:annotation>
1699 <xsd:documentation xml:lang="en">Install, upgrade or update the
1700 system</xsd:documentation>
1701 </xsd:annotation>
1702 </xsd:enumeration>
1703 </xsd:restriction>
1704 </xsd:simpleType>
1705
1706 <xsd:simpleType name="ratingEnumType">
1707 <xsd:annotation>
1708 <xsd:documentation xml:lang="en"> This type enumerates allowed rating values the
1709 disruption and complexity properties of an &lt;xccdf:Rule&gt; element's
1710 &lt;xccdf:fix&gt; or &lt;xccdf:fixtext&gt; elements. </xsd:documentation>
1711 </xsd:annotation>
1712 <xsd:restriction base="xsd:string">
1713 <xsd:enumeration value="unknown">
1714 <xsd:annotation>
1715 <xsd:documentation xml:lang="en">Rating unknown or impossible to estimate
1716 (default)</xsd:documentation>
1717 </xsd:annotation>
1718 </xsd:enumeration>
1719 <xsd:enumeration value="low">
1720 <xsd:annotation>
1721 <xsd:documentation xml:lang="en">Little or no potential for disruption, very
1722 modest complexity</xsd:documentation>
1723 </xsd:annotation>
1724 </xsd:enumeration>
1725 <xsd:enumeration value="medium">
1726 <xsd:annotation>
1727 <xsd:documentation xml:lang="en">Some chance of minor disruption, substantial
1728 complexity</xsd:documentation>
1729 </xsd:annotation>
1730 </xsd:enumeration>
1731 <xsd:enumeration value="high">
1732 <xsd:annotation>
1733 <xsd:documentation xml:lang="en">Likely to cause serious disruption, very
1734 complex</xsd:documentation>
1735 </xsd:annotation>
1736 </xsd:enumeration>
1737 </xsd:restriction>
1738 </xsd:simpleType>
1739
1740 <xsd:complexType name="instanceFixType">
1741 <xsd:annotation>
1742 <xsd:documentation xml:lang="en"> Type for an &lt;xccdf:instance&gt; element which may
1743 appear in an &lt;xccdf:fix&gt; element. The &lt;xccdf:instance&gt; element inside an
1744 &lt;xccdf:fix&gt; element designates a spot where the name of the instance should be
1745 substituted into the fix template to generate the final fix data.
1746 </xsd:documentation>
1747 </xsd:annotation>
1748 <xsd:attribute name="context" type="xsd:string" default="undefined" use="optional">
1749 <xsd:annotation>
1750 <xsd:documentation xml:lang="en">Describes the scope or significance of the instance
1751 content. The context attribute is intended to be informative and does not affect
1752 basic processing. </xsd:documentation>
1753 </xsd:annotation>
1754 </xsd:attribute>
1755 </xsd:complexType>
1756
1757 <xsd:complexType name="complexCheckType">
1758 <xsd:annotation>
1759 <xsd:documentation xml:lang="en"> The type for an element that contains a boolean
1760 combination of &lt;xccdf:checks&gt;. This element can have only
1761 &lt;xccdf:complex-check&gt; and &lt;xccdf:check&gt; elements as children. Child
1762 elements may appear in any order but at least one child element must be present. It
1763 has two attributes, @operator and @negate, which dictate how &lt;xccdf:check&gt; or
1764 &lt;xccdf:complex-check&gt; child elements are to be combined. Truth tables for
1765 these operations appear below. </xsd:documentation>
1766 <xsd:appinfo>
1767 <evaluation_documentation>The two axes represent a pairwise combination of results.
1768 Order of evaluation will not matter. Possible results are abbreviated as
1769 follows: P = Pass, F = Fail, U = Unknown, E = Error, N = Not Applicable, K = Not
1770 Checked, S = Not Selected, I = Informational. </evaluation_documentation>
1771 <evaluation_chart xml:space="preserve">
1772 AND || P | F | U | E | N | K | S | I ||
1773 -------------------||-------------------------------||
1774 Pass (P) || P | F | U | E | P | P | P | P ||
1775 Fail (F) || F | F | F | F | F | F | F | F ||
1776 Unknown (U) || U | F | U | U | U | U | U | U ||
1777 Error (E) || E | F | U | E | E | E | E | E ||
1778 Notapplicable (N) || P | F | U | E | N | N | N | N ||
1779 Notchecked (K) || P | F | U | E | N | K | K | K ||
1780 Notselected (S) || P | F | U | E | N | K | S | S ||
1781 Informational (I) || P | F | U | E | N | K | S | I ||
1782 ------------------------------------------------------ </evaluation_chart>
1783 <evaluation_chart xml:space="preserve">
1784 OR || P | F | U | E | N | K | S | I ||
1785 -------------------||-------------------------------||
1786 Pass (P) || P | P | P | P | P | P | P | P ||
1787 Fail (F) || P | F | U | E | F | F | F | F ||
1788 Unknown (U) || P | U | U | U | U | U | U | U ||
1789 Error (E) || P | E | U | E | E | E | E | E ||
1790 Notapplicable (N) || P | F | U | E | N | N | N | N ||
1791 Notchecked (K) || P | F | U | E | N | K | K | K ||
1792 Notselected (S) || P | F | U | E | N | K | S | S ||
1793 Informational (I) || P | F | U | E | N | K | S | I ||
1794 ------------------------------------------------------ </evaluation_chart>
1795 <evaluation_chart xml:space="preserve">
1796 NOT || P | F | U | E | N | K | S | I ||
1797 ----||-------------------------------||
1798 || F | P | U | E | N | K | S | I ||
1799 ---------------------------------------</evaluation_chart>
1800 </xsd:appinfo>
1801
1802 </xsd:annotation>
1803 <xsd:choice minOccurs="1" maxOccurs="unbounded">
1804 <xsd:element name="check" type="cdf:checkType">
1805 <xsd:annotation>
1806 <xsd:documentation xml:lang="en">Instructions for a single
1807 test.</xsd:documentation>
1808 </xsd:annotation>
1809 </xsd:element>
1810 <xsd:element name="complex-check" type="cdf:complexCheckType">
1811 <xsd:annotation>
1812 <xsd:documentation xml:lang="en">A child &lt;xccdf:complex-check&gt;, allowing
1813 another level of logic in combining component checks.</xsd:documentation>
1814 </xsd:annotation>
1815 </xsd:element>
1816 </xsd:choice>
1817 <xsd:attribute name="operator" type="cdf:ccOperatorEnumType" use="required">
1818 <xsd:annotation>
1819 <xsd:documentation xml:lang="en">Indicates whether the child &lt;xccdf:check&gt;
1820 and/or &lt;xccdf:complex-check&gt; elements of this &lt;xccdf:complex-check&gt;
1821 should be combined using an AND or OR operation </xsd:documentation>
1822 </xsd:annotation>
1823 </xsd:attribute>
1824 <xsd:attribute name="negate" default="0" type="xsd:boolean" use="optional">
1825 <xsd:annotation>
1826 <xsd:documentation xml:lang="en">If true, negate the final result of this
1827 &lt;xccdf:complex-check&gt; after the child elements are combined using the
1828 identified operator.</xsd:documentation>
1829 </xsd:annotation>
1830 </xsd:attribute>
1831 </xsd:complexType>
1832
1833 <xsd:simpleType name="ccOperatorEnumType">
1834 <xsd:annotation>
1835 <xsd:documentation xml:lang="en"> The type for the allowed @operator names for the
1836 &lt;xccdf:complex-check&gt; operator attribute. Only AND and OR operators are
1837 supported. (The &lt;xccdf:complex-check&gt; has a separate mechanism for negation.)
1838 </xsd:documentation>
1839 </xsd:annotation>
1840 <xsd:restriction base="xsd:string">
1841 <xsd:enumeration value="OR">
1842 <xsd:annotation>
1843 <xsd:documentation xml:lang="en">The logical OR of the component terms
1844 </xsd:documentation>
1845 </xsd:annotation>
1846 </xsd:enumeration>
1847 <xsd:enumeration value="AND">
1848 <xsd:annotation>
1849 <xsd:documentation xml:lang="en">The logical AND of the component
1850 terms</xsd:documentation>
1851 </xsd:annotation>
1852 </xsd:enumeration>
1853 </xsd:restriction>
1854 </xsd:simpleType>
1855
1856 <xsd:complexType name="checkType">
1857 <xsd:annotation>
1858 <xsd:documentation xml:lang="en"> Data type for the &lt;xccdf:check&gt; element. The
1859 &lt;xccdf:check&gt; element identifies instructions for tests to determine
1860 compliance with the &lt;xccdf:Rule&gt; as well as parameters controlling the
1861 reporting of those test results. The &lt;xccdf:check&gt; element must have at least
1862 one child element. </xsd:documentation>
1863 <xsd:appinfo>
1864 <evaluation_documentation>The two axes represent a pairwise combination of results.
1865 Order of evaluation will not matter. Possible results are abbreviated as
1866 follows: P = Pass, F = Fail, U = Unknown, E = Error, N = Not Applicable, K = Not
1867 Checked, S = Not Selected, I = Informational. </evaluation_documentation>
1868 <evaluation_chart xml:space="preserve">
1869 AND || P | F | U | E | N | K | S | I ||
1870 -------------------||-------------------------------||
1871 Pass (P) || P | F | U | E | P | P | P | P ||
1872 Fail (F) || F | F | F | F | F | F | F | F ||
1873 Unknown (U) || U | F | U | U | U | U | U | U ||
1874 Error (E) || E | F | U | E | E | E | E | E ||
1875 Notapplicable (N) || P | F | U | E | N | N | N | N ||
1876 Notchecked (K) || P | F | U | E | N | K | K | K ||
1877 Notselected (S) || P | F | U | E | N | K | S | S ||
1878 Informational (I) || P | F | U | E | N | K | S | I ||
1879 ------------------------------------------------------</evaluation_chart>
1880 <evaluation_chart xml:space="preserve">
1881 NOT || P | F | U | E | N | K | S | I ||
1882 ----||-------------------------------||
1883 || F | P | U | E | N | K | S | I ||
1884 ---------------------------------------</evaluation_chart>
1885 </xsd:appinfo>
1886 </xsd:annotation>
1887 <xsd:sequence>
1888 <xsd:element name="check-import" type="cdf:checkImportType" minOccurs="0"
1889 maxOccurs="unbounded">
1890 <xsd:annotation>
1891 <xsd:documentation xml:lang="en">Identifies a value to be retrieved from the
1892 checking system during testing of a target system. This element's body must
1893 be empty within an &lt;xccdf:check&gt;. After the associated check results
1894 have been collected, the result structure returned by the checking engine is
1895 processed to collect the named information. This information is then
1896 recorded in the check-import element in the corresponding
1897 &lt;xccdf:rule-result&gt;.</xsd:documentation>
1898 </xsd:annotation>
1899 </xsd:element>
1900 <xsd:element name="check-export" type="cdf:checkExportType" minOccurs="0"
1901 maxOccurs="unbounded">
1902 <xsd:annotation>
1903 <xsd:documentation xml:lang="en">A mapping from an &lt;xccdf:Value&gt; element
1904 to a checking system variable (i.e., external name or id for use by the
1905 checking system). This supports export of tailoring values from the XCCDF
1906 processing environment to the checking system.</xsd:documentation>
1907 </xsd:annotation>
1908 </xsd:element>
1909 <xsd:element name="check-content-ref" minOccurs="0" maxOccurs="unbounded"
1910 type="cdf:checkContentRefType">
1911 <xsd:annotation>
1912 <xsd:documentation xml:lang="en">Points to code for a detached check in another
1913 location that uses the language or system specified by the
1914 &lt;xccdf:check&gt; element’s @system attribute. If multiple
1915 &lt;xccdf:check-content-ref&gt; elements appear, they represent alternative
1916 locations from which a benchmark consumer may obtain the check content.
1917 Benchmark consumers should process the alternatives in the order in which
1918 they appear in the XML. The first &lt;xccdf:check-content-ref&gt; from which
1919 content can be successfully retrieved should be used.</xsd:documentation>
1920 </xsd:annotation>
1921 </xsd:element>
1922 <xsd:element name="check-content" minOccurs="0" maxOccurs="1"
1923 type="cdf:checkContentType">
1924 <xsd:annotation>
1925 <xsd:documentation xml:lang="en">Holds the actual code of a check, in the
1926 language or system specified by the &lt;xccdf:check&gt; element’s @system
1927 attribute. If both &lt;xccdf:check-content-ref&gt; and
1928 &lt;xccdf:check-content&gt; elements appear in a single &lt;xccdf:check&gt;
1929 element, benchmark consumers should use the &lt;xccdf:check-content&gt;
1930 element only if none of the references can be resolved to provide
1931 content.</xsd:documentation>
1932 </xsd:annotation>
1933 </xsd:element>
1934 </xsd:sequence>
1935 <xsd:attribute name="system" type="xsd:anyURI" use="required">
1936 <xsd:annotation>
1937 <xsd:documentation xml:lang="en">The URI for a checking system. If the checking
1938 system uses XML namespaces, then the system attribute for the system should be
1939 its namespace. </xsd:documentation>
1940 </xsd:annotation>
1941 </xsd:attribute>
1942 <xsd:attribute name="negate" type="xsd:boolean" use="optional" default="false">
1943 <xsd:annotation>
1944 <xsd:documentation xml:lang="en">If set to true, the final result of the
1945 &lt;xccdf:check&gt; is negated according to the truth table given below.
1946 </xsd:documentation>
1947 </xsd:annotation>
1948 </xsd:attribute>
1949 <xsd:attribute name="id" type="xsd:NCName" use="optional">
1950 <xsd:annotation>
1951 <xsd:documentation xml:lang="en">Unique identifier for this element. Optional, but
1952 must be globally unique if present.</xsd:documentation>
1953 </xsd:annotation>
1954 </xsd:attribute>
1955 <xsd:attribute name="selector" default="" type="xsd:string" use="optional">
1956 <xsd:annotation>
1957 <xsd:documentation xml:lang="en">This may be referenced from &lt;xccdf:Profile&gt;
1958 selection elements or used during manual tailoring to refine the application of
1959 the &lt;xccdf:Rule&gt;. If no selector values are specified for a given
1960 &lt;xccdf:Rule&gt; by &lt;xccdf:Profile&gt; elements or manual tailoring, all
1961 &lt;xccdf:check&gt; elements with non-empty @selector attributes are ignored. If
1962 an &lt;xccdf:Rule&gt; has multiple &lt;xccdf:check&gt; elements with the same
1963 @selector attribute, each must employ a different checking system, as identified
1964 by the @system attribute of the &lt;xccdf:check&gt; element.</xsd:documentation>
1965 </xsd:annotation>
1966 </xsd:attribute>
1967 <xsd:attribute name="multi-check" type="xsd:boolean" use="optional" default="false">
1968 <xsd:annotation>
1969 <xsd:documentation xml:lang="en">Applicable in cases where multiple checks are
1970 executed to determine compliance with a single &lt;xccdf:Rule&gt;. This
1971 situation can arise when an &lt;xccdf:check&gt; includes an
1972 &lt;xccdf:check-content-ref&gt; element that does not include a @name attribute.
1973 The default behavior of a nameless &lt;xccdf:check-content-ref&gt; is to execute
1974 all checks in the referenced check content location and AND their results
1975 together into a single &lt;xccdf:rule-result&gt; using the AND truth table
1976 below. This corresponds to a @multi-check attribute value of “false”. If,
1977 however, the @multi-check attribute is set to "true" and a nameless
1978 &lt;xccdf:check-content-ref&gt; is used, the &lt;xccdf:Rule&gt; produces a
1979 separate &lt;xccdf:rule-result&gt; for each check.</xsd:documentation>
1980 </xsd:annotation>
1981 </xsd:attribute>
1982 <xsd:attribute ref="xml:base"/>
1983 </xsd:complexType>
1984
1985 <xsd:complexType name="checkImportType" mixed="true">
1986 <xsd:annotation>
1987 <xsd:documentation xml:lang="en"> Data type for the &lt;xccdf:check-import&gt; element,
1988 which specifies a value that the &lt;xccdf:Benchmark&gt; author wishes to retrieve
1989 from the checking system during testing of a target system. The @import-name
1990 attribute identifies some structure in the checking system that is then retrieved.
1991 The mapping from the values of this attribute to specific checking system structures
1992 is beyond the scope of the XCCDF specification. When the &lt;xccdf:check-import&gt;
1993 element appears in the context of an &lt;xccdf:Rule&gt;, then it should be empty and
1994 any content must be ignored. When the &lt;xccdf:check-import&gt; element appears in
1995 the context of an &lt;xccdf:rule-result&gt;, then its body holds the imported value.
1996 </xsd:documentation>
1997 </xsd:annotation>
1998 <xsd:sequence>
1999 <xsd:any processContents="skip" minOccurs="0"/>
2000 </xsd:sequence>
2001 <xsd:attribute name="import-name" type="xsd:string" use="required">
2002 <xsd:annotation>
2003 <xsd:documentation xml:lang="en">An identifier indicating some structure in the
2004 checking system to be collected. </xsd:documentation>
2005 </xsd:annotation>
2006 </xsd:attribute>
2007 <xsd:attribute name="import-xpath" type="xsd:string" use="optional">
2008 <xsd:annotation>
2009 <xsd:documentation xml:lang="en">An XPath that is used to select specific values or
2010 structures from the imported structure. This allows further refinement of the
2011 collected data if the imported value takes the form of XML structures.
2012 </xsd:documentation>
2013 </xsd:annotation>
2014 </xsd:attribute>
2015 </xsd:complexType>
2016
2017 <xsd:complexType name="checkExportType">
2018 <xsd:annotation>
2019 <xsd:documentation xml:lang="en"> Data type for the &lt;xccdf:check-export&gt; element,
2020 which specifies a mapping from an &lt;xccdf:Value&gt; element to a checking system
2021 variable (i.e., external name or id for use by the checking system). This supports
2022 export of tailoring &lt;xccdf:Value&gt; elements from the XCCDF processing
2023 environment to the checking system. The interface between the XCCDF benchmark
2024 consumer and the checking system should support, at a minimum, passing the
2025 &lt;xccdf:value&gt; property of the &lt;xccdf:Value&gt; element, but may also
2026 support passing the &lt;xccdf:Value&gt; element's @type and @operator
2027 properties.</xsd:documentation>
2028 </xsd:annotation>
2029 <xsd:attribute name="value-id" type="xsd:NCName" use="required">
2030 <xsd:annotation>
2031 <xsd:documentation xml:lang="en">The id of the &lt;xccdf:Value&gt; element to
2032 export. </xsd:documentation>
2033 </xsd:annotation>
2034 </xsd:attribute>
2035 <xsd:attribute name="export-name" type="xsd:string" use="required">
2036 <xsd:annotation>
2037 <xsd:documentation xml:lang="en">An identifier indicating some structure in the
2038 checking system into which the identified &lt;xccdf:Value&gt; element's
2039 properties will be mapped. </xsd:documentation>
2040 </xsd:annotation>
2041 </xsd:attribute>
2042 </xsd:complexType>
2043
2044 <xsd:complexType name="checkContentRefType">
2045 <xsd:annotation>
2046 <xsd:documentation xml:lang="en"> Data type for the &lt;xccdf:check-content-ref&gt;
2047 element, which points to the code for a detached check in another file. This element
2048 has no body, just a couple of attributes: @href and @name. The @name is optional, if
2049 it does not appear then this reference is to the entire document.
2050 </xsd:documentation>
2051 </xsd:annotation>
2052 <xsd:attribute name="href" type="xsd:anyURI" use="required">
2053 <xsd:annotation>
2054 <xsd:documentation xml:lang="en">Identifies the referenced document containing
2055 checking instructions. </xsd:documentation>
2056 </xsd:annotation>
2057 </xsd:attribute>
2058 <xsd:attribute name="name" type="xsd:string">
2059 <xsd:annotation>
2060 <xsd:documentation xml:lang="en">Identifies a particular part or element of the
2061 referenced check document. </xsd:documentation>
2062 </xsd:annotation>
2063 </xsd:attribute>
2064 </xsd:complexType>
2065
2066 <xsd:complexType name="checkContentType" mixed="true">
2067 <xsd:annotation>
2068 <xsd:documentation xml:lang="en"> Data type for the &lt;xccdf:check-content&gt; element.
2069 The body of this element holds the actual code of a check, in the language or system
2070 specified by the &lt;xccdf:check&gt; element’s @system attribute. The body of this
2071 element may be any XML, but cannot contain any XCCDF elements. XCCDF tools do not
2072 process its content directly but instead pass the content directly to checking
2073 engines. </xsd:documentation>
2074 </xsd:annotation>
2075 <xsd:choice minOccurs="0" maxOccurs="unbounded">
2076 <xsd:any namespace="##other" processContents="skip"/>
2077 </xsd:choice>
2078 </xsd:complexType>
2079
2080 <xsd:simpleType name="weightType">
2081 <xsd:annotation>
2082 <xsd:documentation xml:lang="en"> Data type for an &lt;xccdf:Rule&gt; element's weight,
2083 a non-negative real number. </xsd:documentation>
2084 </xsd:annotation>
2085 <xsd:restriction base="xsd:decimal">
2086 <xsd:minInclusive value="0.0"/>
2087 <xsd:totalDigits value="3"/>
2088 </xsd:restriction>
2089 </xsd:simpleType>
2090
2091 <!-- ************************************************************** -->
2092 <!-- ******************* Value Element ************************** -->
2093 <!-- ************************************************************** -->
2094 <xsd:element name="Value" type="cdf:valueType">
2095 <xsd:annotation>
2096 <xsd:documentation xml:lang="en">The &lt;xccdf:Value&gt; element is a named parameter
2097 that can be substituted into properties of other elements within the
2098 &lt;xccdf:Benchmark&gt;, including the interior of structured check specifications
2099 and fix scripts.</xsd:documentation>
2100 </xsd:annotation>
2101 <xsd:unique name="valueSelectorKey">
2102 <xsd:selector xpath="./cdf:value|cdf:complex-value"/>
2103 <xsd:field xpath="@selector"/>
2104 </xsd:unique>
2105 <xsd:unique name="defaultSelectorKey">
2106 <xsd:selector xpath="./cdf:default|cdf:complex-default"/>
2107 <xsd:field xpath="@selector"/>
2108 </xsd:unique>
2109 <xsd:unique name="matchSelectorKey">
2110 <xsd:selector xpath="./cdf:match"/>
2111 <xsd:field xpath="@selector"/>
2112 </xsd:unique>
2113 <xsd:unique name="lower-boundSelectorKey">
2114 <xsd:selector xpath="./cdf:lower-bound"/>
2115 <xsd:field xpath="@selector"/>
2116 </xsd:unique>
2117 <xsd:unique name="upper-boundSelectorKey">
2118 <xsd:selector xpath="./cdf:upper-bound"/>
2119 <xsd:field xpath="@selector"/>
2120 </xsd:unique>
2121 <xsd:unique name="choicesSelectorKey">
2122 <xsd:selector xpath="./cdf:choices"/>
2123 <xsd:field xpath="@selector"/>
2124 </xsd:unique>
2125 </xsd:element>
2126
2127 <xsd:complexType name="valueType">
2128 <xsd:annotation>
2129 <xsd:documentation xml:lang="en"> Data type for the &lt;xccdf:Value&gt; element, which
2130 is a named parameter that can be substituted into properties of other elements
2131 within the &lt;xccdf:Benchmark&gt;, including the interior of structured check
2132 specifications and fix scripts. </xsd:documentation>
2133 </xsd:annotation>
2134 <xsd:complexContent>
2135 <xsd:extension base="cdf:itemType">
2136 <xsd:sequence>
2137 <xsd:choice minOccurs="1" maxOccurs="unbounded">
2138 <xsd:element name="value" type="cdf:selStringType" minOccurs="1"
2139 maxOccurs="1">
2140 <xsd:annotation>
2141 <xsd:documentation xml:lang="en">A simple (number, string, or
2142 boolean) value associated with this &lt;xccdf:Value&gt;. At any
2143 time an &lt;xccdf:Value&gt; has one active (simple or complex)
2144 value. If a selector value has been provided under
2145 &lt;xccdf:Profile&gt; selection or tailoring then the active
2146 &lt;xccdf:value&gt;/&lt;xccdf:complex-value&gt; is the one with
2147 a matching @selector. If there is no provided selector or if the
2148 provided selector does not match the @selector attribute of any
2149 &lt;xccdf:value&gt; or &lt;xccdf:complex-value&gt;, the active
2150 &lt;xccdf:value&gt;/&lt;xccdf:complex-value&gt; is the one with
2151 an empty or absent @selector or, failing that, the first
2152 &lt;xccdf:value&gt; or &lt;xccdf:complex-value&gt; in the XML.
2153 When an &lt;xccdf:Value&gt; is exported or used in text
2154 substitution, it is the currently active &lt;xccdf:value&gt; or
2155 &lt;xccdf:complex-value&gt; that is actually used. If there are
2156 multiple &lt;xccdf:value&gt; and/or &lt;xccdf:complex-value&gt;
2157 elements, only one may omit a @selector attribute and no two may
2158 have the same @selector value.</xsd:documentation>
2159 </xsd:annotation>
2160 </xsd:element>
2161 <xsd:element name="complex-value" type="cdf:selComplexValueType"
2162 minOccurs="1" maxOccurs="1">
2163 <xsd:annotation>
2164 <xsd:documentation xml:lang="en">A complex (list) value associated
2165 with this &lt;xccdf:Value&gt;. See the description of the
2166 &lt;xccdf:value&gt; property for &lt;xccdf:Rule&gt; elements
2167 regarding activation of an &lt;xccdf:complex-value&gt;.
2168 </xsd:documentation>
2169 </xsd:annotation>
2170 </xsd:element>
2171 </xsd:choice>
2172 <xsd:choice minOccurs="0" maxOccurs="unbounded">
2173 <xsd:element name="default" type="cdf:selStringType" minOccurs="1"
2174 maxOccurs="1">
2175 <xsd:annotation>
2176 <xsd:documentation xml:lang="en">The default value displayed to the
2177 user as a suggestion by benchmark producers during tailoring of
2178 this &lt;xccdf:Value&gt; element. (This is not the default value
2179 of an &lt;xccdf:Value&gt;; it is just the default display.) If
2180 there are multiple &lt;xccdf:default&gt; and/or
2181 &lt;xccdf:complex-default&gt; elements, only one may omit a
2182 @selector attribute and no two may have the same @selector
2183 value. </xsd:documentation>
2184 </xsd:annotation>
2185 </xsd:element>
2186 <xsd:element name="complex-default" type="cdf:selComplexValueType"
2187 minOccurs="1" maxOccurs="1">
2188 <xsd:annotation>
2189 <xsd:documentation xml:lang="en">The default
2190 &lt;xccdf:complex-value&gt; displayed to the user as a
2191 suggestion by benchmark producers during tailoring of this
2192 &lt;xccdf:Value&gt; element. (This is not the default value of
2193 an &lt;xccdf:Value&gt;; it is just the default display.) If
2194 there are multiple &lt;xccdf:default&gt; and
2195 &lt;xccdf:complex-default&gt; elements, only one may omit a
2196 @selector attribute and no two may have the same @selector
2197 value. </xsd:documentation>
2198 </xsd:annotation>
2199 </xsd:element>
2200 </xsd:choice>
2201 <xsd:element name="match" type="cdf:selStringType" minOccurs="0"
2202 maxOccurs="unbounded">
2203 <xsd:annotation>
2204 <xsd:documentation xml:lang="en">A Perl Compatible Regular Expression
2205 that a benchmark producer may apply during tailoring to validate a
2206 user’s input for the &lt;xccdf:Value&gt;. It uses implicit
2207 anchoring. It applies only when the @type property is “string” or
2208 “number” or a list of strings and/or numbers.</xsd:documentation>
2209 </xsd:annotation>
2210 </xsd:element>
2211 <xsd:element name="lower-bound" type="cdf:selNumType" minOccurs="0"
2212 maxOccurs="unbounded">
2213 <xsd:annotation>
2214 <xsd:documentation xml:lang="en">Minimum legal value for this
2215 &lt;xccdf:Value&gt;. It is used to constrain value input during
2216 tailoring, when the @type property is “number”. Values supplied by
2217 the user for tailoring the &lt;xccdf:Benchmark&gt; must be equal to
2218 or greater than this number. </xsd:documentation>
2219 </xsd:annotation>
2220 </xsd:element>
2221 <xsd:element name="upper-bound" type="cdf:selNumType" minOccurs="0"
2222 maxOccurs="unbounded">
2223 <xsd:annotation>
2224 <xsd:documentation xml:lang="en">Maximum legal value for this
2225 &lt;xccdf:Value&gt;. It is used to constrain value input during
2226 tailoring, when the @type is “number”. Values supplied by the user
2227 for tailoring the &lt;xccdf:Benchmark&gt; must be less than or equal
2228 to than this number. </xsd:documentation>
2229 </xsd:annotation>
2230 </xsd:element>
2231 <xsd:element name="choices" type="cdf:selChoicesType" minOccurs="0"
2232 maxOccurs="unbounded">
2233 <xsd:annotation>
2234 <xsd:documentation xml:lang="en">A list of legal or suggested choices
2235 (values) for an &lt;xccdf:Value&gt; element, to be used during
2236 tailoring and document generation. </xsd:documentation>
2237 </xsd:annotation>
2238 </xsd:element>
2239 <xsd:element name="source" type="cdf:uriRefType" minOccurs="0"
2240 maxOccurs="unbounded">
2241 <xsd:annotation>
2242 <xsd:documentation xml:lang="en">URI indicating where the tool may
2243 acquire values, value bounds, or value choices for this
2244 &lt;xccdf:Value&gt; element. XCCDF does not attach any meaning to
2245 the URI; it may be an arbitrary community or tool-specific value, or
2246 a pointer directly to a resource. If several instances of the
2247 &lt;xccdf:source&gt; property appear, then they represent
2248 alternative means or locations for obtaining the value in descending
2249 order of preference (i.e., most preferred first).
2250 </xsd:documentation>
2251 </xsd:annotation>
2252 </xsd:element>
2253 <xsd:element name="signature" type="cdf:signatureType" minOccurs="0"
2254 maxOccurs="1">
2255 <xsd:annotation>
2256 <xsd:documentation xml:lang="en">A digital signature asserting
2257 authorship and allowing verification of the integrity of the
2258 &lt;xccdf:Value&gt;. </xsd:documentation>
2259 </xsd:annotation>
2260 </xsd:element>
2261 </xsd:sequence>
2262 <xsd:attribute name="id" type="cdf:valueIdType" use="required">
2263 <xsd:annotation>
2264 <xsd:documentation xml:lang="en">The unique identifier for this element.
2265 </xsd:documentation>
2266 </xsd:annotation>
2267 </xsd:attribute>
2268 <xsd:attribute name="type" type="cdf:valueTypeType" default="string" use="optional">
2269 <xsd:annotation>
2270 <xsd:documentation xml:lang="en">The data type of the &lt;xccdf:Value&gt;. A
2271 tool may choose any convenient form to store an &lt;xccdf:Value&gt;
2272 element’s &lt;xccdf:value&gt; element, but the @type attribute conveys
2273 how the &lt;xccdf:Value&gt; should be treated for user input validation
2274 purposes during tailoring processing. The @type attribute may also be
2275 used to give additional guidance to the user or to validate the user’s
2276 input. In the case of a list of values, the @type attribute, if present,
2277 applies to all elements of the list individually.</xsd:documentation>
2278 </xsd:annotation>
2279 </xsd:attribute>
2280 <xsd:attribute name="operator" type="cdf:valueOperatorType" default="equals"
2281 use="optional">
2282 <xsd:annotation>
2283 <xsd:documentation xml:lang="en">The operator to be used for comparing this
2284 &lt;xccdf:Value&gt; to some part of the test system’s configuration
2285 during &lt;xccdf:Rule&gt; checking. </xsd:documentation>
2286 </xsd:annotation>
2287 </xsd:attribute>
2288 <xsd:attribute name="interactive" type="xsd:boolean" default="0" use="optional">
2289 <xsd:annotation>
2290 <xsd:documentation xml:lang="en">Whether tailoring for this
2291 &lt;xccdf:Value&gt; should be performed during &lt;xccdf:Benchmark&gt;
2292 application. The benchmark consumer may ignore the attribute if asking
2293 the user is not feasible or not supported.</xsd:documentation>
2294 </xsd:annotation>
2295 </xsd:attribute>
2296 <xsd:attribute name="interfaceHint" use="optional" type="cdf:interfaceHintType">
2297 <xsd:annotation>
2298 <xsd:documentation xml:lang="en">A hint or recommendation to a benchmark
2299 consumer or producer about how the user might select or adjust the
2300 &lt;xccdf:Value&gt;. </xsd:documentation>
2301 </xsd:annotation>
2302 </xsd:attribute>
2303 </xsd:extension>
2304 </xsd:complexContent>
2305 </xsd:complexType>
2306
2307
2308 <!-- ************************************************************** -->
2309 <!-- *************** Value-related Types ************************ -->
2310 <!-- ************************************************************** -->
2311 <xsd:complexType name="complexValueType">
2312 <xsd:annotation>
2313 <xsd:documentation xml:lang="en">Data type that supports values that are lists of simple
2314 types. Each element in the list is represented by an instance of the
2315 &lt;xccdf:item&gt; child element. If there are no &lt;xccdf:item&gt; child elements
2316 then this represents an empty list. </xsd:documentation>
2317 </xsd:annotation>
2318 <xsd:sequence>
2319 <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="xsd:string">
2320 <xsd:annotation>
2321 <xsd:documentation xml:lang="en">A single item in the list of values.
2322 </xsd:documentation>
2323 </xsd:annotation>
2324 </xsd:element>
2325 </xsd:sequence>
2326 </xsd:complexType>
2327
2328 <xsd:complexType name="selComplexValueType">
2329 <xsd:annotation>
2330 <xsd:documentation xml:lang="en"> Data type that supports values that are lists of
2331 simple types with an associated @selector attribute used in tailoring.
2332 </xsd:documentation>
2333 </xsd:annotation>
2334 <xsd:complexContent>
2335 <xsd:extension base="cdf:complexValueType">
2336 <xsd:attribute name="selector" default="" type="xsd:string" use="optional">
2337 <xsd:annotation>
2338 <xsd:documentation xml:lang="en">This may be referenced from
2339 &lt;xccdf:Profile&gt; selection elements or used during manual tailoring
2340 to refine the application of this property. If no selectors are
2341 specified for a given item by &lt;xccdf:Profile&gt; elements or manual
2342 tailoring, properties with empty or non-existent @selector attributes
2343 are activated. If a selector is applied that does not match the
2344 @selector attribute of any of a given type of property, then no
2345 &lt;xccdf:choices&gt; element is considered activated. The only
2346 exception is the &lt;xccdf:value&gt; and &lt;xccdf:complex-value&gt;
2347 properties of an &lt;xccdf:Value&gt; element - if there is no
2348 &lt;xccdf:value&gt; or &lt;xccdf:complex-value&gt; property with a
2349 matching @selector value then the
2350 &lt;xccdf:value&gt;/&lt;xccdf:complex-value&gt; property with an empty
2351 or absent @selector attribute becomes active. If there is no such
2352 &lt;xccdf:value&gt; or &lt;xccdf:complex-value&gt;, then the first
2353 &lt;xccdf:value&gt; or &lt;xccdf:complex-value&gt; listed becomes
2354 active. This reflects the fact that all &lt;xccdf:Value&gt; elements
2355 require an active value property at all times.</xsd:documentation>
2356 </xsd:annotation>
2357 </xsd:attribute>
2358 </xsd:extension>
2359 </xsd:complexContent>
2360 </xsd:complexType>
2361
2362 <xsd:complexType name="selChoicesType">
2363 <xsd:annotation>
2364 <xsd:documentation xml:lang="en"> The type of the &lt;xccdf:choice&gt; element, which
2365 specifies a list of legal or suggested choices for an &lt;xccdf:Value&gt; object.
2366 </xsd:documentation>
2367 </xsd:annotation>
2368 <xsd:choice minOccurs="1" maxOccurs="unbounded">
2369 <xsd:element name="choice" type="xsd:string" minOccurs="1" maxOccurs="1">
2370 <xsd:annotation>
2371 <xsd:documentation xml:lang="en">A single choice holding a simple type. (I.e.,
2372 number, string, or boolean.) </xsd:documentation>
2373 </xsd:annotation>
2374 </xsd:element>
2375 <xsd:element name="complex-choice" type="cdf:complexValueType" minOccurs="1"
2376 maxOccurs="1">
2377 <xsd:annotation>
2378 <xsd:documentation xml:lang="en">A single choice holding a list of simple
2379 types.</xsd:documentation>
2380 </xsd:annotation>
2381 </xsd:element>
2382 </xsd:choice>
2383 <xsd:attribute name="mustMatch" type="xsd:boolean" use="optional">
2384 <xsd:annotation>
2385 <xsd:documentation xml:lang="en">True if the listed choices are the only permissible
2386 settings for the given &lt;xccdf:Value&gt;. False if choices not specified in
2387 this &lt;xccdf:choices&gt; element are acceptable settings for this
2388 &lt;xccdf:Value&gt;.</xsd:documentation>
2389 </xsd:annotation>
2390 </xsd:attribute>
2391 <xsd:attribute name="selector" default="" type="xsd:string" use="optional">
2392 <xsd:annotation>
2393 <xsd:documentation xml:lang="en">This may be referenced from &lt;xccdf:Profile&gt;
2394 selection elements or used during manual tailoring to refine the application of
2395 the &lt;xccdf:Rule&gt;. If no selectors are specified for a given
2396 &lt;xccdf:Value&gt; by &lt;xccdf:Profile&gt; elements or manual tailoring, an
2397 &lt;xccdf:choice&gt; element with an empty or non-existent @selector attribute
2398 is activated. If a selector is applied that does not match the @selector
2399 attribute of any &lt;xccdf:choices&gt; element, then no &lt;xccdf:choices&gt;
2400 element is considered activated.</xsd:documentation>
2401 </xsd:annotation>
2402 </xsd:attribute>
2403 </xsd:complexType>
2404
2405 <xsd:complexType name="selStringType">
2406 <xsd:annotation>
2407 <xsd:documentation xml:lang="en"> This type is for an element that has string content
2408 and a @selector attribute for use in tailoring. </xsd:documentation>
2409 </xsd:annotation>
2410 <xsd:simpleContent>
2411 <xsd:extension base="xsd:string">
2412 <xsd:attribute name="selector" default="" type="xsd:string" use="optional">
2413 <xsd:annotation>
2414 <xsd:documentation xml:lang="en">This may be referenced from
2415 &lt;xccdf:Profile&gt; selection elements or used during manual tailoring
2416 to refine the application of this property. If no selectors are
2417 specified for a given property by &lt;xccdf:Profile&gt; elements or
2418 manual tailoring, properties with empty or non-existent @selector
2419 attributes are activated. If a selector is applied that does not match
2420 the @selector attribute of any of a given type of property, then no
2421 property of that type is considered activated. The only exception is the
2422 &lt;xccdf:value&gt; and &lt;xccdf:complex-value&gt; properties of an
2423 &lt;xccdf:Value&gt; element - if there is no &lt;xccdf:value&gt; or
2424 &lt;xccdf:complex-value&gt; property with a matching @selector value
2425 then the &lt;xccdf:value&gt;/&lt;xccdf:complex-value&gt; property with
2426 an empty or absent @selector attribute becomes active. If there is no
2427 such &lt;xccdf:value&gt; or &lt;xccdf:complex-value&gt;, then the first
2428 &lt;xccdf:value&gt; or &lt;xccdf:complex-value&gt; listed in the XML
2429 becomes active. This reflects the fact that all &lt;xccdf:Value&gt;
2430 elements require an active value property at all
2431 times.</xsd:documentation>
2432 </xsd:annotation>
2433 </xsd:attribute>
2434 </xsd:extension>
2435 </xsd:simpleContent>
2436 </xsd:complexType>
2437
2438 <xsd:complexType name="selNumType">
2439 <xsd:annotation>
2440 <xsd:documentation xml:lang="en"> This type is for an element that has numeric content
2441 and a @selector attribute for use during tailoring. </xsd:documentation>
2442 </xsd:annotation>
2443 <xsd:simpleContent>
2444 <xsd:extension base="xsd:decimal">
2445 <xsd:attribute name="selector" default="" type="xsd:string" use="optional">
2446 <xsd:annotation>
2447 <xsd:documentation xml:lang="en">This may be referenced from
2448 &lt;xccdf:Profile&gt; selection elements or used during manual tailoring
2449 to refine the application of this property. If no selectors are
2450 specified for a given property by &lt;xccdf:Profile&gt; elements or
2451 manual tailoring, properties with empty or non-existent @selector
2452 attributes are activated. If a selector is applied that does not match
2453 the @selector attribute of any of a given type of property, then no
2454 property of that type considered activated. </xsd:documentation>
2455 </xsd:annotation>
2456 </xsd:attribute>
2457 </xsd:extension>
2458 </xsd:simpleContent>
2459 </xsd:complexType>
2460
2461 <xsd:complexType name="uriRefType">
2462 <xsd:annotation>
2463 <xsd:documentation xml:lang="en"> Data type for elements that have no content and a
2464 single @uri attribute. </xsd:documentation>
2465 </xsd:annotation>
2466 <xsd:attribute name="uri" type="xsd:anyURI" use="required">
2467 <xsd:annotation>
2468 <xsd:documentation xml:lang="en">A URI.</xsd:documentation>
2469 </xsd:annotation>
2470 </xsd:attribute>
2471 </xsd:complexType>
2472
2473 <xsd:simpleType name="valueTypeType">
2474 <xsd:annotation>
2475 <xsd:documentation xml:lang="en">Allowed data types for &lt;xccdf:Value&gt; elements,
2476 string, numeric, and boolean. A tool may choose any convenient form to store an
2477 &lt;xccdf:Value&gt; element’s &lt;xccdf:value&gt; element, but the @type conveys how
2478 the value should be treated for user input validation purposes during tailoring
2479 processing. The @type may also be used to give additional guidance to the user or to
2480 validate the user’s input. For example, if an &lt;xccdf:value&gt; element’s @type
2481 attribute is “number”, then a tool might choose to reject user tailoring input that
2482 is not composed of digits. In the case of a list of values, the @type applies to all
2483 elements of the list individually. Note that checking systems may have their own
2484 understanding of data types that may not be identical to the typing indicated in
2485 XCCDF </xsd:documentation>
2486 </xsd:annotation>
2487 <xsd:restriction base="xsd:string">
2488 <xsd:enumeration value="number">
2489 <xsd:annotation>
2490 <xsd:documentation xml:lang="en">A numeric value. This may be decimal or
2491 integer.</xsd:documentation>
2492 </xsd:annotation>
2493 </xsd:enumeration>
2494 <xsd:enumeration value="string">
2495 <xsd:annotation>
2496 <xsd:documentation xml:lang="en">Any character data</xsd:documentation>
2497 </xsd:annotation>
2498 </xsd:enumeration>
2499 <xsd:enumeration value="boolean">
2500 <xsd:annotation>
2501 <xsd:documentation xml:lang="en">True/false</xsd:documentation>
2502 </xsd:annotation>
2503 </xsd:enumeration>
2504 </xsd:restriction>
2505 </xsd:simpleType>
2506
2507 <xsd:simpleType name="valueOperatorType">
2508 <xsd:annotation>
2509 <xsd:documentation xml:lang="en"> This type enumerates allowed values of the @operator
2510 property of &lt;xccdf:Value&gt; elements. The specific interpretation of these
2511 operators depends on the checking system used. </xsd:documentation>
2512 </xsd:annotation>
2513 <xsd:restriction base="xsd:string">
2514 <xsd:enumeration value="equals"/>
2515 <xsd:enumeration value="not equal"/>
2516 <xsd:enumeration value="greater than"/>
2517 <xsd:enumeration value="less than"/>
2518 <xsd:enumeration value="greater than or equal"/>
2519 <xsd:enumeration value="less than or equal"/>
2520 <xsd:enumeration value="pattern match"/>
2521 </xsd:restriction>
2522 </xsd:simpleType>
2523
2524 <xsd:simpleType name="interfaceHintType">
2525 <xsd:annotation>
2526 <xsd:documentation xml:lang="en"> Allowed interface hint values. &lt;xccdf:Value&gt;
2527 elements may contain a hint or recommendation to a benchmark consumer or producer
2528 about how the user might select or adjust the &lt;xccdf:Value&gt;. This type
2529 enumerates the possible values of this hint.</xsd:documentation>
2530 </xsd:annotation>
2531 <xsd:restriction base="xsd:string">
2532 <xsd:enumeration value="choice">
2533 <xsd:annotation>
2534 <xsd:documentation xml:lang="en">Multiple choice</xsd:documentation>
2535 </xsd:annotation>
2536 </xsd:enumeration>
2537 <xsd:enumeration value="textline">
2538 <xsd:annotation>
2539 <xsd:documentation xml:lang="en">Multiple lines of text</xsd:documentation>
2540 </xsd:annotation>
2541 </xsd:enumeration>
2542 <xsd:enumeration value="text">
2543 <xsd:annotation>
2544 <xsd:documentation xml:lang="en">Single line of text</xsd:documentation>
2545 </xsd:annotation>
2546 </xsd:enumeration>
2547 <xsd:enumeration value="date">
2548 <xsd:annotation>
2549 <xsd:documentation xml:lang="en">Date</xsd:documentation>
2550 </xsd:annotation>
2551 </xsd:enumeration>
2552 <xsd:enumeration value="datetime">
2553 <xsd:annotation>
2554 <xsd:documentation xml:lang="en">Date and time</xsd:documentation>
2555 </xsd:annotation>
2556 </xsd:enumeration>
2557 </xsd:restriction>
2558 </xsd:simpleType>
2559
2560 <!-- ************************************************************** -->
2561 <!-- ******************* Profile Element ************************ -->
2562 <!-- ************************************************************** -->
2563 <xsd:element name="Profile" type="cdf:profileType">
2564 <xsd:annotation>
2565 <xsd:documentation xml:lang="en">The &lt;xccdf:Profile&gt; element is a named tailoring
2566 for an &lt;xccdf:Benchmark&gt;. While an &lt;xccdf:Benchmark&gt; can be tailored in
2567 place by setting properties of various elements, &lt;xccdf:Profile&gt; elements
2568 allow one &lt;xccdf:Benchmark&gt; document to hold several independent
2569 tailorings.</xsd:documentation>
2570 </xsd:annotation>
2571 <!-- selector key constraints -->
2572 <xsd:unique name="itemSelectKey">
2573 <xsd:selector xpath="./cdf:select"/>
2574 <xsd:field xpath="@idref"/>
2575 </xsd:unique>
2576 <xsd:unique name="refineRuleKey">
2577 <xsd:selector xpath="./cdf:refine-rule"/>
2578 <xsd:field xpath="@idref"/>
2579 </xsd:unique>
2580 <xsd:unique name="refineValueKey">
2581 <xsd:selector xpath="./cdf:refine-value"/>
2582 <xsd:field xpath="@idref"/>
2583 </xsd:unique>
2584 <xsd:unique name="setValueKey">
2585 <xsd:selector xpath="./cdf:set-value"/>
2586 <xsd:field xpath="@idref"/>
2587 </xsd:unique>
2588 </xsd:element>
2589
2590 <xsd:complexType name="profileType">
2591 <xsd:annotation>
2592 <xsd:documentation xml:lang="en"> Data type for the &lt;xccdf:Profile&gt; element, which
2593 holds a specific tailoring of the &lt;xccdf:Benchmark&gt;. The main part of an
2594 &lt;xccdf:Profile&gt; is the selectors: &lt;xccdf:select&gt;,
2595 &lt;xccdf:set-value&gt;, &lt;xccdf:set-complex-value&gt;, &lt;xccdf:refine-rule&gt;,
2596 and &lt;xccdf:refine-value&gt;. An &lt;xccdf:Profile&gt; may also be signed with an
2597 XML-Signature. </xsd:documentation>
2598 </xsd:annotation>
2599 <xsd:sequence>
2600 <xsd:element ref="cdf:status" minOccurs="0" maxOccurs="unbounded">
2601 <xsd:annotation>
2602 <xsd:documentation xml:lang="en">Status of the &lt;xccdf:Profile&gt; and date at
2603 which it attained that status. Authors may use this element to record the
2604 maturity or consensus level of an &lt;xccdf:Profile&gt;. If the
2605 &lt;xccdf:status&gt; is not given explicitly, then the &lt;xccdf:Profile&gt;
2606 is taken to have the same status as its parent
2607 &lt;xccdf:Benchmark&gt;.</xsd:documentation>
2608 </xsd:annotation>
2609 </xsd:element>
2610 <xsd:element name="dc-status" minOccurs="0" maxOccurs="unbounded"
2611 type="cdf:dc-statusType">
2612 <xsd:annotation>
2613 <xsd:documentation xml:lang="en">Holds additional status information using the
2614 Dublin Core format.</xsd:documentation>
2615 </xsd:annotation>
2616 </xsd:element>
2617 <xsd:element name="version" type="cdf:versionType" minOccurs="0" maxOccurs="1">
2618 <xsd:annotation>
2619 <xsd:documentation xml:lang="en">Version information about this
2620 &lt;xccdf:Profile&gt;. </xsd:documentation>
2621 </xsd:annotation>
2622 </xsd:element>
2623 <xsd:element name="title" type="cdf:textWithSubType" minOccurs="1" maxOccurs="unbounded">
2624 <xsd:annotation>
2625 <xsd:documentation xml:lang="en">Title of the &lt;xccdf:Profile&gt;.
2626 </xsd:documentation>
2627 </xsd:annotation>
2628 </xsd:element>
2629 <xsd:element name="description" type="cdf:htmlTextWithSubType" minOccurs="0"
2630 maxOccurs="unbounded">
2631 <xsd:annotation>
2632 <xsd:documentation xml:lang="en">Text that describes the &lt;xccdf:Profile&gt;.
2633 </xsd:documentation>
2634 </xsd:annotation>
2635 </xsd:element>
2636 <xsd:element name="reference" type="cdf:referenceType" minOccurs="0"
2637 maxOccurs="unbounded">
2638 <xsd:annotation>
2639 <xsd:documentation xml:lang="en">A reference where the user can learn more about
2640 the subject of this &lt;xccdf:Profile&gt;.</xsd:documentation>
2641 </xsd:annotation>
2642 </xsd:element>
2643 <xsd:element name="platform" type="cdf:overrideableCPE2idrefType" minOccurs="0"
2644 maxOccurs="unbounded">
2645 <xsd:annotation>
2646 <xsd:documentation xml:lang="en">A target platform for this
2647 &lt;xccdf:Profile&gt;. </xsd:documentation>
2648 </xsd:annotation>
2649 </xsd:element>
2650 <xsd:choice minOccurs="0" maxOccurs="unbounded">
2651 <xsd:element name="select" minOccurs="0" type="cdf:profileSelectType">
2652 <xsd:annotation>
2653 <xsd:documentation xml:lang="en">Select or deselect &lt;xccdf:Group&gt; and
2654 &lt;xccdf:Rule&gt; elements. </xsd:documentation>
2655 </xsd:annotation>
2656 </xsd:element>
2657 <xsd:element name="set-complex-value" minOccurs="0"
2658 type="cdf:profileSetComplexValueType">
2659 <xsd:annotation>
2660 <xsd:documentation xml:lang="en">Set the value of an &lt;xccdf:Value&gt; to
2661 a list.</xsd:documentation>
2662 </xsd:annotation>
2663 </xsd:element>
2664 <xsd:element name="set-value" minOccurs="0" type="cdf:profileSetValueType">
2665 <xsd:annotation>
2666 <xsd:documentation xml:lang="en">Set the value of an &lt;xccdf:Value&gt; to
2667 a simple data value.</xsd:documentation>
2668 </xsd:annotation>
2669 </xsd:element>
2670 <xsd:element name="refine-value" minOccurs="0" type="cdf:profileRefineValueType">
2671 <xsd:annotation>
2672 <xsd:documentation xml:lang="en">Customize the properties of an
2673 &lt;xccdf:Value&gt;.</xsd:documentation>
2674 </xsd:annotation>
2675 </xsd:element>
2676 <xsd:element name="refine-rule" minOccurs="0" type="cdf:profileRefineRuleType">
2677 <xsd:annotation>
2678 <xsd:documentation xml:lang="en">Customize the properties of an
2679 &lt;xccdf:Rule&gt; or &lt;xccdf:Group&gt;.</xsd:documentation>
2680 </xsd:annotation>
2681 </xsd:element>
2682 </xsd:choice>
2683 <xsd:element name="metadata" type="cdf:metadataType" minOccurs="0" maxOccurs="unbounded">
2684 <xsd:annotation>
2685 <xsd:documentation xml:lang="en">Metadata associated with this
2686 &lt;xccdf:Profile&gt;.</xsd:documentation>
2687 </xsd:annotation>
2688 </xsd:element>
2689 <xsd:element name="signature" type="cdf:signatureType" minOccurs="0" maxOccurs="1">
2690 <xsd:annotation>
2691 <xsd:documentation xml:lang="en">A digital signature asserting authorship and
2692 allowing verification of the integrity of the
2693 &lt;xccdf:Profile&gt;.</xsd:documentation>
2694 </xsd:annotation>
2695 </xsd:element>
2696 </xsd:sequence>
2697 <xsd:attribute name="id" type="cdf:profileIdType" use="required">
2698 <xsd:annotation>
2699 <xsd:documentation xml:lang="en">Unique identifier for this
2700 &lt;xccdf:Profile&gt;.</xsd:documentation>
2701 </xsd:annotation>
2702 </xsd:attribute>
2703 <xsd:attribute name="prohibitChanges" type="xsd:boolean" default="false" use="optional">
2704 <xsd:annotation>
2705 <xsd:documentation xml:lang="en">Whether or not products should prohibit changes to
2706 this &lt;xccdf:Profile&gt;.</xsd:documentation>
2707 </xsd:annotation>
2708 </xsd:attribute>
2709 <xsd:attribute name="abstract" type="xsd:boolean" default="false" use="optional">
2710 <xsd:annotation>
2711 <xsd:documentation xml:lang="en">If true, then this &lt;xccdf:Profile&gt; exists
2712 solely to be extended by other &lt;xccdf:Profile&gt; elements.
2713 </xsd:documentation>
2714 </xsd:annotation>
2715 </xsd:attribute>
2716 <xsd:attribute name="note-tag" type="xsd:NCName" use="optional">
2717 <xsd:annotation>
2718 <xsd:documentation xml:lang="en">Tag identifier to specify which
2719 &lt;xccdf:profile-note&gt; element from an &lt;xccdf:Rule&gt; should be
2720 associated with this &lt;xccdf:Profile&gt;.</xsd:documentation>
2721 </xsd:annotation>
2722 </xsd:attribute>
2723 <xsd:attribute name="extends" type="xsd:NCName" use="optional">
2724 <xsd:annotation>
2725 <xsd:documentation xml:lang="en">The id of an &lt;xccdf:Profile&gt; on which to base
2726 this &lt;xccdf:Profile&gt;.</xsd:documentation>
2727 </xsd:annotation>
2728 </xsd:attribute>
2729 <xsd:attribute ref="xml:base"/>
2730 <xsd:attribute name="Id" type="xsd:ID" use="optional">
2731 <xsd:annotation>
2732 <xsd:documentation xml:lang="en">An identifier used for referencing elements
2733 included in an XML signature.</xsd:documentation>
2734 </xsd:annotation>
2735 </xsd:attribute>
2736 </xsd:complexType>
2737
2738 <!-- ************************************************************** -->
2739 <!-- *************** Profile-related Types *********************** -->
2740 <!-- ************************************************************** -->
2741 <xsd:complexType name="profileSelectType">
2742 <xsd:annotation>
2743 <xsd:documentation xml:lang="en"> Type for the &lt;xccdf:select&gt; element in an
2744 &lt;xccdf:Profile&gt;. This element designates an &lt;xccdf:Rule&gt;,
2745 &lt;xccdf:Group&gt;, or cluster of &lt;xccdf:Rule&gt; and &lt;xccdf:Group&gt;
2746 elements and overrides the @selected attribute on the designated items, providing a
2747 means for including or excluding &lt;xccdf:Rule&gt; elements from an
2748 assessment.</xsd:documentation>
2749 </xsd:annotation>
2750 <xsd:sequence>
2751 <xsd:element name="remark" type="cdf:textType" minOccurs="0" maxOccurs="unbounded">
2752 <xsd:annotation>
2753 <xsd:documentation xml:lang="en">Explanatory material or other
2754 prose.</xsd:documentation>
2755 </xsd:annotation>
2756 </xsd:element>
2757 </xsd:sequence>
2758 <xsd:attribute name="idref" type="xsd:NCName" use="required">
2759 <xsd:annotation>
2760 <xsd:documentation xml:lang="en">The @id value of an &lt;xccdf:Rule&gt; or
2761 &lt;xccdf:Group&gt;, or the @cluster-id value of one or more &lt;xccdf:Rule&gt;
2762 or &lt;xccdf:Group&gt; elements. </xsd:documentation>
2763 </xsd:annotation>
2764 </xsd:attribute>
2765 <xsd:attribute name="selected" type="xsd:boolean" use="required">
2766 <xsd:annotation>
2767 <xsd:documentation xml:lang="en">The new value for the indicated item's @selected
2768 property. </xsd:documentation>
2769 </xsd:annotation>
2770 </xsd:attribute>
2771 </xsd:complexType>
2772
2773 <xsd:complexType name="profileSetValueType">
2774 <xsd:annotation>
2775 <xsd:documentation xml:lang="en"> Type for the &lt;xccdf:set-value&gt; element in an
2776 &lt;xccdf:Profile&gt;. This element upports the direct specification of simple value
2777 types such as numbers, strings, and boolean values. This overrides the
2778 &lt;xccdf:value&gt; and &lt;xccdf:complex-value&gt; element(s) of an
2779 &lt;xccdf:Value&gt; element.</xsd:documentation>
2780 </xsd:annotation>
2781 <xsd:simpleContent>
2782 <xsd:extension base="xsd:string">
2783 <xsd:attribute name="idref" type="xsd:NCName" use="required">
2784 <xsd:annotation>
2785 <xsd:documentation xml:lang="en">The @id value of an &lt;xccdf:Value&gt; or
2786 the @cluster-id value of one or more &lt;xccdf:Value&gt; elements
2787 </xsd:documentation>
2788 </xsd:annotation>
2789 </xsd:attribute>
2790 </xsd:extension>
2791 </xsd:simpleContent>
2792 </xsd:complexType>
2793
2794 <xsd:complexType name="profileSetComplexValueType">
2795 <xsd:annotation>
2796 <xsd:documentation xml:lang="en"> Type for the &lt;xccdf:set-complex-value&gt; element
2797 in an &lt;xccdf:Profile&gt;. This element supports the direct specification of
2798 complex value types such as lists. Zero or more &lt;xccdf:item&gt; elements may
2799 appear as children of this element; if no child elements are present, this element
2800 represents an empty list. This overrides the &lt;xccdf:value&gt; and
2801 &lt;xccdf:complex-value&gt; element(s) of an &lt;xccdf:Value&gt;
2802 element.</xsd:documentation>
2803 </xsd:annotation>
2804 <xsd:complexContent>
2805 <xsd:extension base="cdf:complexValueType">
2806 <xsd:attribute name="idref" type="xsd:NCName" use="required">
2807 <xsd:annotation>
2808 <xsd:documentation xml:lang="en">The @id value of an &lt;xccdf:Value&gt; or
2809 the @cluster-id value of one or more &lt;xccdf:Value&gt; elements
2810 </xsd:documentation>
2811 </xsd:annotation>
2812 </xsd:attribute>
2813 </xsd:extension>
2814 </xsd:complexContent>
2815 </xsd:complexType>
2816
2817 <xsd:complexType name="profileRefineValueType">
2818 <xsd:annotation>
2819 <xsd:documentation xml:lang="en"> Type for the &lt;xccdf:refine-value&gt; element in an
2820 &lt;xccdf:Profile&gt;. This element designates the &lt;xccdf:Value&gt; constraints
2821 to be applied during tailoring for an &lt;xccdf:Value&gt; element or the
2822 &lt;xccdf:Value&gt; members of a cluster. </xsd:documentation>
2823 </xsd:annotation>
2824 <xsd:sequence>
2825 <xsd:element name="remark" type="cdf:textType" minOccurs="0" maxOccurs="unbounded">
2826 <xsd:annotation>
2827 <xsd:documentation xml:lang="en">Explanatory material or other
2828 prose.</xsd:documentation>
2829 </xsd:annotation>
2830 </xsd:element>
2831 </xsd:sequence>
2832 <xsd:attribute name="idref" type="xsd:NCName" use="required">
2833 <xsd:annotation>
2834 <xsd:documentation xml:lang="en">The @id value of an &lt;xccdf:Value&gt; or the
2835 @cluster-id value of one or more &lt;xccdf:Value&gt; elements
2836 </xsd:documentation>
2837 </xsd:annotation>
2838 </xsd:attribute>
2839 <xsd:attribute name="selector" type="xsd:string" use="optional">
2840 <xsd:annotation>
2841 <xsd:documentation xml:lang="en">Holds a selector value corresponding to the value
2842 of a @selector property in an &lt;xccdf:Value&gt; element's child properties.
2843 Properties with a matching @selector are considered active and all other
2844 properties are inactive. This may mean that, after selector application, some
2845 classes of &lt;xccdf:Value&gt; properties will be completely inactive because
2846 none of those properties had a matching @selector. The only exception is the
2847 &lt;xccdf:value&gt; and &lt;xccdf:complex-value&gt; properties of an
2848 &lt;xccdf:Value&gt; element - if there is no &lt;xccdf:value&gt; or
2849 &lt;xccdf:complex-value&gt; property with a matching @selector value then the
2850 &lt;xccdf:value&gt;/&lt;xccdf:complex-value&gt; property with an empty or absent
2851 @selector attribute becomes active. If there is no such &lt;xccdf:value&gt; or
2852 &lt;xccdf:complex-value&gt;, then the first &lt;xccdf:value&gt; or
2853 &lt;xccdf:complex-value&gt; listed in the XML becomes active. This reflects the
2854 fact that all &lt;xccdf:Value&gt; elements require an active value property at
2855 all times. </xsd:documentation>
2856 </xsd:annotation>
2857 </xsd:attribute>
2858 <xsd:attribute name="operator" type="cdf:valueOperatorType" use="optional">
2859 <xsd:annotation>
2860 <xsd:documentation xml:lang="en">The new value for the identified
2861 &lt;xccdf:Value&gt; element's @operator property. </xsd:documentation>
2862 </xsd:annotation>
2863 </xsd:attribute>
2864 </xsd:complexType>
2865
2866 <xsd:complexType name="profileRefineRuleType">
2867 <xsd:annotation>
2868 <xsd:documentation xml:lang="en"> Type for the &lt;xccdf:refine-rule&gt; element in an
2869 &lt;xccdf:Profile&gt;. A &lt;xccdf:refine-rule&gt; element allows the author to
2870 select &lt;xccdf:check&gt; statements and override the @weight, @severity, and @role
2871 of an &lt;xccdf:Rule&gt;, &lt;xccdf:Group&gt;, or cluster of &lt;xccdf:Rule&gt; and
2872 &lt;xccdf:Group&gt; elements. Despite the name, this selector does apply for
2873 &lt;xccdf:Group&gt; elements and for clusters that include &lt;xccdf:Group&gt;
2874 elements, but it only affects their @weight attribute. </xsd:documentation>
2875 </xsd:annotation>
2876 <xsd:sequence>
2877 <xsd:element name="remark" type="cdf:textType" minOccurs="0" maxOccurs="unbounded">
2878 <xsd:annotation>
2879 <xsd:documentation xml:lang="en">Explanatory material or other
2880 prose.</xsd:documentation>
2881 </xsd:annotation>
2882 </xsd:element>
2883 </xsd:sequence>
2884 <xsd:attribute name="idref" type="xsd:NCName" use="required">
2885 <xsd:annotation>
2886 <xsd:documentation xml:lang="en">The @id value of an &lt;xccdf:Rule&gt; or
2887 &lt;xccdf:Group&gt;, or the @cluster-id value of one or more &lt;xccdf:Rule&gt;
2888 or &lt;xccdf:Group&gt; elements. </xsd:documentation>
2889 </xsd:annotation>
2890 </xsd:attribute>
2891 <xsd:attribute name="weight" type="cdf:weightType" use="optional">
2892 <xsd:annotation>
2893 <xsd:documentation xml:lang="en">The new value for the identified element's @weight
2894 property. </xsd:documentation>
2895 </xsd:annotation>
2896 </xsd:attribute>
2897 <xsd:attribute name="selector" type="xsd:string" use="optional">
2898 <xsd:annotation>
2899 <xsd:documentation xml:lang="en">Holds a selector value corresponding to the value
2900 of a @selector property in an &lt;xccdf:Rule&gt; element's &lt;xccdf:check&gt;
2901 element. If the selector specified does not match any of the @selector
2902 attributes specified on any of the &lt;xccdf:check&gt; children of an
2903 &lt;xccdf:Rule&gt;, then the &lt;xccdf:check&gt; child element without a
2904 @selector attribute is used. If there is no child without a @selector attribute,
2905 then that Rule would have no effective &lt;xccdf:check&gt;
2906 element.</xsd:documentation>
2907 </xsd:annotation>
2908 </xsd:attribute>
2909 <xsd:attribute name="severity" type="cdf:severityEnumType" use="optional">
2910 <xsd:annotation>
2911 <xsd:documentation xml:lang="en">The new value for the identified &lt;xccdf:Rule&gt;
2912 element's @severity property. </xsd:documentation>
2913 </xsd:annotation>
2914 </xsd:attribute>
2915 <xsd:attribute name="role" type="cdf:roleEnumType" use="optional">
2916 <xsd:annotation>
2917 <xsd:documentation xml:lang="en">The new value for the identified &lt;xccdf:Rule&gt;
2918 element's @role property. </xsd:documentation>
2919 </xsd:annotation>
2920 </xsd:attribute>
2921 </xsd:complexType>
2922
2923 <!-- ************************************************************** -->
2924 <!-- ******************* TestResult Element ********************* -->
2925 <!-- ************************************************************** -->
2926 <xsd:element name="TestResult" type="cdf:testResultType">
2927 <xsd:annotation>
2928 <xsd:documentation xml:lang="en">The &lt;xccdf:TestResult&gt; element encapsulates the
2929 results of a single application of an &lt;xccdf:Benchmark&gt; to a single target
2930 platform. The &lt;xccdf:TestResult&gt; element normally appears as the child of the
2931 &lt;xccdf:Benchmark&gt; element, although it may also appear as the top-level
2932 element of an XCCDF results document. XCCDF is not intended to be a database format
2933 for detailed results; the &lt;xccdf:TestResult&gt; element offers a way to store the
2934 results of individual tests in modest detail, with the ability to reference
2935 lower-level testing data.</xsd:documentation>
2936 </xsd:annotation>
2937 </xsd:element>
2938
2939 <xsd:complexType name="testResultType">
2940 <xsd:annotation>
2941 <xsd:documentation xml:lang="en"> Data type for the &lt;xccdf:TestResult&gt; element,
2942 which holds the results of one application of the &lt;xccdf:Benchmark&gt;. The
2943 &lt;xccdf:TestResult&gt; element normally appears as the child of the
2944 &lt;xccdf:Benchmark&gt; element, although it may also appear as the top-level
2945 element of an XCCDF results document. XCCDF is not intended to be a database format
2946 for detailed results; the &lt;xccdf:TestResult&gt; element offers a way to store the
2947 results of individual tests in modest detail, with the ability to reference
2948 lower-level testing data. Although several of the child elements of this type
2949 technically support the @override attribute, the &lt;xccdf:TestResult&gt; element
2950 cannot be extended. Therefore, @override has no meaning within an
2951 &lt;xccdf:TestResult&gt; element and its children, and should not be used for
2952 them.</xsd:documentation>
2953 </xsd:annotation>
2954 <xsd:sequence>
2955 <xsd:element name="benchmark" minOccurs="0" maxOccurs="1"
2956 type="cdf:benchmarkReferenceType">
2957 <xsd:annotation>
2958 <xsd:documentation xml:lang="en">Reference to the &lt;xccdf:Benchmark&gt; for
2959 which the &lt;xccdf:TestResult&gt; records results. This property is
2960 required if this &lt;xccdf:TestResult&gt; element is the top-level element
2961 and optional otherwise.</xsd:documentation>
2962 </xsd:annotation>
2963 </xsd:element>
2964 <xsd:element name="tailoring-file" minOccurs="0" maxOccurs="1"
2965 type="cdf:tailoringReferenceType">
2966 <xsd:annotation>
2967 <xsd:documentation xml:lang="en">The tailoring file element contains attributes
2968 used to identify an &lt;xccdf:Tailoring&gt; element used to guide the
2969 assessment reported on in this &lt;xccdf:TestResult&gt;. The tailoring
2970 element is required in an &lt;xccdf:TestResult&gt; if and only if an
2971 &lt;xccdf:Tailoring&gt; element guided the assessment recorded in the
2972 &lt;xccdf:TestResult&gt; or if the &lt;xccdf:Tailoring&gt; element records
2973 manual tailoring actions applied to this assessment. </xsd:documentation>
2974 </xsd:annotation>
2975 </xsd:element>
2976 <xsd:element name="title" type="cdf:textType" minOccurs="0" maxOccurs="unbounded">
2977 <xsd:annotation>
2978 <xsd:documentation xml:lang="en">Title of the test.</xsd:documentation>
2979 </xsd:annotation>
2980 </xsd:element>
2981 <xsd:element name="remark" type="cdf:textType" minOccurs="0" maxOccurs="unbounded">
2982 <xsd:annotation>
2983 <xsd:documentation xml:lang="en">A remark about the test, possibly supplied by
2984 the person administering the &lt;xccdf:Benchmark&gt;
2985 assessment</xsd:documentation>
2986 </xsd:annotation>
2987 </xsd:element>
2988 <xsd:element name="organization" type="xsd:string" minOccurs="0" maxOccurs="unbounded">
2989 <xsd:annotation>
2990 <xsd:documentation xml:lang="en">The name of the organization or other entity
2991 responsible for applying this &lt;xccdf:Benchmark&gt; and generating this
2992 result. When multiple &lt;xccdf:organization&gt; elements are used to
2993 indicate multiple organization names in a hierarchical organization, the
2994 highest-level organization should appear first. </xsd:documentation>
2995 </xsd:annotation>
2996 </xsd:element>
2997 <xsd:element name="identity" type="cdf:identityType" minOccurs="0" maxOccurs="1">
2998 <xsd:annotation>
2999 <xsd:documentation xml:lang="en">Information about the system identity or user
3000 employed during application of the &lt;xccdf:Benchmark&gt;. If used,
3001 specifies the name of the authenticated identity.</xsd:documentation>
3002 </xsd:annotation>
3003 </xsd:element>
3004 <xsd:element name="profile" type="cdf:idrefType" minOccurs="0" maxOccurs="1">
3005 <xsd:annotation>
3006 <xsd:documentation xml:lang="en">The &lt;xccdf:profile&gt; element holds the
3007 value of the @id attribute value of the &lt;xccdf:Profile&gt; selected to be
3008 used in the assessment reported on by this &lt;xccdf:TestResult&gt;. This
3009 &lt;xccdf:Profile&gt; might be from the &lt;xccdf:Benchmark&gt; or from an
3010 &lt;xccdf:Tailoring&gt; file, if used. This element should appear if and
3011 only if an &lt;xccdf:Profile&gt; was selected to guide the
3012 assessment.</xsd:documentation>
3013 </xsd:annotation>
3014 </xsd:element>
3015 <xsd:element name="target" type="xsd:string" minOccurs="1" maxOccurs="unbounded">
3016 <xsd:annotation>
3017 <xsd:documentation xml:lang="en">Name or description of the target system whose
3018 test results are recorded in the &lt;xccdf:TestResult&gt; element (the
3019 system to which an &lt;xccdf:Benchmark&gt; test was applied). Each
3020 appearance of the element supplies a name by which the target host or device
3021 was identified at the time the test was run. The name may be any string, but
3022 applications should include the fully qualified DNS name whenever possible.
3023 </xsd:documentation>
3024 </xsd:annotation>
3025 </xsd:element>
3026 <xsd:element name="target-address" type="xsd:string" minOccurs="0" maxOccurs="unbounded">
3027 <xsd:annotation>
3028 <xsd:documentation xml:lang="en">Network address of the target system to which
3029 an &lt;xccdf:Benchmark&gt; test was applied. Typical forms for the address
3030 include IP version 4 (IPv4), IP version 6 (IPv6), and Ethernet media access
3031 control (MAC).</xsd:documentation>
3032 </xsd:annotation>
3033 </xsd:element>
3034 <xsd:element name="target-facts" type="cdf:targetFactsType" minOccurs="0" maxOccurs="1">
3035 <xsd:annotation>
3036 <xsd:documentation xml:lang="en">A list of named facts about the target system
3037 or platform. </xsd:documentation>
3038 </xsd:annotation>
3039 </xsd:element>
3040 <xsd:choice minOccurs="0" maxOccurs="unbounded">
3041 <xsd:element name="target-id-ref" type="cdf:targetIdRefType">
3042 <xsd:annotation>
3043 <xsd:documentation xml:lang="en">References to external structures with
3044 identifying information about the target of this
3045 assessment.</xsd:documentation>
3046 </xsd:annotation>
3047 </xsd:element>
3048 <xsd:any namespace="##other" processContents="lax">
3049 <xsd:annotation>
3050 <xsd:documentation xml:lang="en">Identifying information expressed in other
3051 XML formats can be included here. </xsd:documentation>
3052 </xsd:annotation>
3053 </xsd:any>
3054 </xsd:choice>
3055 <xsd:element name="platform" type="cdf:CPE2idrefType" minOccurs="0"
3056 maxOccurs="unbounded">
3057 <xsd:annotation>
3058 <xsd:documentation xml:lang="en">A platform on the target system. There should
3059 be one instance of this property for every platform that the target system
3060 was found to meet. </xsd:documentation>
3061 </xsd:annotation>
3062 </xsd:element>
3063 <xsd:choice minOccurs="0" maxOccurs="unbounded">
3064 <xsd:element name="set-value" type="cdf:profileSetValueType" minOccurs="1"
3065 maxOccurs="1">
3066 <xsd:annotation>
3067 <xsd:documentation xml:lang="en">Specific setting for a single
3068 &lt;xccdf:Value&gt; element used during the test.</xsd:documentation>
3069 </xsd:annotation>
3070 </xsd:element>
3071 <xsd:element name="set-complex-value" type="cdf:profileSetComplexValueType"
3072 minOccurs="1" maxOccurs="1">
3073 <xsd:annotation>
3074 <xsd:documentation xml:lang="en">Specific setting for a single
3075 &lt;xccdf:Value&gt; element used during the test when the given value is
3076 set to a complex type, such as a list.</xsd:documentation>
3077 </xsd:annotation>
3078 </xsd:element>
3079 </xsd:choice>
3080 <xsd:element name="rule-result" type="cdf:ruleResultType" minOccurs="0"
3081 maxOccurs="unbounded">
3082 <xsd:annotation>
3083 <xsd:documentation xml:lang="en">The result of a single instance of an
3084 &lt;xccdf:Rule&gt; application against the target. The
3085 &lt;xccdf:TestResult&gt; must include at least one &lt;xccdf:rule-result&gt;
3086 record for each &lt;xccdf:Rule&gt; that was selected in the resolved
3087 &lt;xccdf:Benchmark&gt;.</xsd:documentation>
3088 </xsd:annotation>
3089 <!-- Each context name in an instance must be unique. -->
3090 <xsd:key name="instanceContextKey">
3091 <xsd:selector xpath="cdf:instance"/>
3092 <xsd:field xpath="@context"/>
3093 </xsd:key>
3094 <!-- parentContext must refer to valid sibling context -->
3095 <xsd:keyref name="parentKeyRef" refer="cdf:instanceContextKey">
3096 <xsd:selector xpath="./cdf:instance"/>
3097 <xsd:field xpath="@parentContext"/>
3098 </xsd:keyref>
3099 </xsd:element>
3100 <xsd:element name="score" type="cdf:scoreType" minOccurs="1" maxOccurs="unbounded">
3101 <xsd:annotation>
3102 <xsd:documentation xml:lang="en">An overall score for this
3103 &lt;xccdf:Benchmark&gt; test. </xsd:documentation>
3104 </xsd:annotation>
3105 </xsd:element>
3106 <xsd:element name="metadata" type="cdf:metadataType" minOccurs="0" maxOccurs="unbounded">
3107 <xsd:annotation>
3108 <xsd:documentation xml:lang="en">XML metadata associated with this
3109 &lt;xccdf:TestResult&gt;. </xsd:documentation>
3110 </xsd:annotation>
3111 </xsd:element>
3112 <xsd:element name="signature" type="cdf:signatureType" minOccurs="0" maxOccurs="1">
3113 <xsd:annotation>
3114 <xsd:documentation xml:lang="en">A digital signature asserting authorship and
3115 allowing verification of the integrity of the &lt;xccdf:TestResult&gt;.
3116 </xsd:documentation>
3117 </xsd:annotation>
3118 </xsd:element>
3119 </xsd:sequence>
3120 <xsd:attribute name="id" type="cdf:testresultIdType" use="required">
3121 <xsd:annotation>
3122 <xsd:documentation xml:lang="en">Unique identifier for this
3123 element.</xsd:documentation>
3124 </xsd:annotation>
3125 </xsd:attribute>
3126 <xsd:attribute name="start-time" type="xsd:dateTime" use="optional">
3127 <xsd:annotation>
3128 <xsd:documentation xml:lang="en">Time when testing began.</xsd:documentation>
3129 </xsd:annotation>
3130 </xsd:attribute>
3131 <xsd:attribute name="end-time" type="xsd:dateTime" use="required">
3132 <xsd:annotation>
3133 <xsd:documentation xml:lang="en">Time when testing was completed and the results
3134 recorded. </xsd:documentation>
3135 </xsd:annotation>
3136 </xsd:attribute>
3137 <xsd:attribute name="test-system" type="xsd:string" use="optional">
3138 <xsd:annotation>
3139 <xsd:documentation xml:lang="en">Name of the benchmark consumer program that
3140 generated this &lt;xccdf:TestResult&gt; element; should be either a CPE name or
3141 a CPE applicability language expression.</xsd:documentation>
3142 </xsd:annotation>
3143 </xsd:attribute>
3144 <xsd:attribute name="version" type="xsd:string" use="optional">
3145 <xsd:annotation>
3146 <xsd:documentation xml:lang="en">The version number string copied from the
3147 &lt;xccdf:Benchmark&gt; used to direct this assessment. </xsd:documentation>
3148 </xsd:annotation>
3149 </xsd:attribute>
3150 <xsd:attribute name="Id" type="xsd:ID" use="optional">
3151 <xsd:annotation>
3152 <xsd:documentation xml:lang="en">An identifier used for referencing elements
3153 included in an XML signature.</xsd:documentation>
3154 </xsd:annotation>
3155 </xsd:attribute>
3156 </xsd:complexType>
3157
3158 <xsd:complexType name="benchmarkReferenceType">
3159 <xsd:annotation>
3160 <xsd:documentation xml:lang="en">Type for a reference to the &lt;xccdf:Benchmark&gt;
3161 document. </xsd:documentation>
3162 </xsd:annotation>
3163 <xsd:attribute name="href" type="xsd:anyURI" use="required">
3164 <xsd:annotation>
3165 <xsd:documentation xml:lang="en">The URI of the &lt;xccdf:Benchmark&gt; document.
3166 </xsd:documentation>
3167 </xsd:annotation>
3168 </xsd:attribute>
3169 <xsd:attribute name="id" type="xsd:NCName" use="optional">
3170 <xsd:annotation>
3171 <xsd:documentation xml:lang="en">The value of that &lt;xccdf:Benchmark&gt; element's
3172 @id attribute. </xsd:documentation>
3173 </xsd:annotation>
3174 </xsd:attribute>
3175 </xsd:complexType>
3176
3177 <xsd:complexType name="scoreType">
3178 <xsd:annotation>
3179 <xsd:documentation xml:lang="en">Type for a score value in an &lt;xccdf:TestResult&gt;.
3180 </xsd:documentation>
3181 </xsd:annotation>
3182 <xsd:simpleContent>
3183 <xsd:extension base="xsd:decimal">
3184 <xsd:attribute name="system" type="xsd:anyURI" use="optional">
3185 <xsd:annotation>
3186 <xsd:documentation xml:lang="en">A URI indicating the scoring model used to
3187 create this score. </xsd:documentation>
3188 </xsd:annotation>
3189 </xsd:attribute>
3190 <xsd:attribute name="maximum" type="xsd:decimal" use="optional">
3191 <xsd:annotation>
3192 <xsd:documentation xml:lang="en">The maximum possible score value that could
3193 have been achieved under the named scoring system. </xsd:documentation>
3194 </xsd:annotation>
3195 </xsd:attribute>
3196 </xsd:extension>
3197 </xsd:simpleContent>
3198 </xsd:complexType>
3199
3200 <xsd:complexType name="targetFactsType">
3201 <xsd:annotation>
3202 <xsd:documentation xml:lang="en"> Data type for the &lt;xccdf:target-facts&gt; elements
3203 in &lt;xccdf:TestResult&gt; elements. A &lt;xccdf:target-facts&gt; element holds a
3204 list of named facts about the target system or platform. Each fact is an element of
3205 type factType. Each &lt;xccdf:fact&gt; must have a name, but duplicate names are
3206 allowed. (For example, if you had a fact about MAC addresses, and the target system
3207 had three NICs, then you'd need three instances of the "urn:xccdf:fact:ethernet:MAC"
3208 fact.) </xsd:documentation>
3209 </xsd:annotation>
3210 <xsd:sequence>
3211 <xsd:element name="fact" type="cdf:factType" minOccurs="0" maxOccurs="unbounded">
3212 <xsd:annotation>
3213 <xsd:documentation xml:lang="en">A named fact about the target system or
3214 platform.</xsd:documentation>
3215 </xsd:annotation>
3216 </xsd:element>
3217 </xsd:sequence>
3218 </xsd:complexType>
3219
3220 <xsd:complexType name="targetIdRefType">
3221 <xsd:annotation>
3222 <xsd:documentation xml:lang="en">Type for an &lt;xccdf:target-id-ref&gt; element in an
3223 &lt;xccdf:TestResult&gt; element. This element contains references to external
3224 structures with identifying information about the target of an
3225 assessment.</xsd:documentation>
3226 </xsd:annotation>
3227 <xsd:attribute name="system" type="xsd:anyURI" use="required">
3228 <xsd:annotation>
3229 <xsd:documentation xml:lang="en">Indicates the language in which this identifying
3230 information is expressed. If the identifying language uses XML namespaces, then
3231 the @system attribute for the language should be its
3232 namespace.</xsd:documentation>
3233 </xsd:annotation>
3234 </xsd:attribute>
3235 <xsd:attribute name="href" type="xsd:string" use="required">
3236 <xsd:annotation>
3237 <xsd:documentation xml:lang="en">Points to the external resource (e.g., a file) that
3238 contains the identifying information.</xsd:documentation>
3239 </xsd:annotation>
3240 </xsd:attribute>
3241 <xsd:attribute name="name" type="xsd:string" use="optional">
3242 <xsd:annotation>
3243 <xsd:documentation xml:lang="en">Identifies a specific structure within the
3244 referenced file. If the @name attribute is absent, the reference is to the
3245 entire resource indicated in the @href attribute.</xsd:documentation>
3246 </xsd:annotation>
3247 </xsd:attribute>
3248 </xsd:complexType>
3249
3250 <xsd:complexType name="identityType">
3251 <xsd:annotation>
3252 <xsd:documentation xml:lang="en">Type for an &lt;xccdf:identity&gt; element in an
3253 &lt;xccdf:TestResult&gt;. It contains information about the system identity or user
3254 employed during application of the &lt;xccdf:Benchmark&gt;. If used, shall specify
3255 the name of the authenticated identity. </xsd:documentation>
3256 </xsd:annotation>
3257 <xsd:simpleContent>
3258 <xsd:extension base="xsd:string">
3259 <xsd:attribute name="authenticated" type="xsd:boolean" use="required">
3260 <xsd:annotation>
3261 <xsd:documentation xml:lang="en">Whether the identity was authenticated with
3262 the target system during the application of the &lt;xccdf:Benchmark&gt;.
3263 </xsd:documentation>
3264 </xsd:annotation>
3265 </xsd:attribute>
3266 <xsd:attribute name="privileged" type="xsd:boolean" use="required">
3267 <xsd:annotation>
3268 <xsd:documentation xml:lang="en">Whether the identity was granted
3269 administrative or other special privileges beyond those of a normal
3270 user. </xsd:documentation>
3271 </xsd:annotation>
3272 </xsd:attribute>
3273 </xsd:extension>
3274 </xsd:simpleContent>
3275 </xsd:complexType>
3276
3277 <xsd:complexType name="factType">
3278 <xsd:annotation>
3279 <xsd:documentation xml:lang="en"> Data type for an &lt;xccdf:fact&gt; element, which
3280 holds information about a target system: a name-value pair with a type. The content
3281 of the element is the value, and the @name attribute indicates the name. The @name
3282 is in the form of a URI that indicates the nature of the fact. A table of defined
3283 fact URIs appears in section 6.6.3 of the XCCDF specification. Additional URIs may
3284 be defined by authors to indicate additional kinds of facts. </xsd:documentation>
3285 </xsd:annotation>
3286 <xsd:simpleContent>
3287 <xsd:extension base="xsd:string">
3288 <xsd:attribute name="name" type="xsd:anyURI" use="required">
3289 <xsd:annotation>
3290 <xsd:documentation xml:lang="en">A URI that indicates the name of the fact.
3291 </xsd:documentation>
3292 </xsd:annotation>
3293 </xsd:attribute>
3294 <xsd:attribute name="type" type="cdf:valueTypeType" default="boolean" use="optional">
3295 <xsd:annotation>
3296 <xsd:documentation xml:lang="en">The data type of the fact value.
3297 </xsd:documentation>
3298 </xsd:annotation>
3299 </xsd:attribute>
3300 </xsd:extension>
3301 </xsd:simpleContent>
3302 </xsd:complexType>
3303
3304 <xsd:complexType name="tailoringReferenceType">
3305 <xsd:annotation>
3306 <xsd:documentation xml:lang="en">Type for the &lt;xccdf:tailoring&gt; element within an
3307 &lt;xccdf:TestResult&gt;. This element is used to indicate the identity and location
3308 of an &lt;xccdf:Tailoring&gt; file that was used to create the assessment results.
3309 </xsd:documentation>
3310 </xsd:annotation>
3311 <xsd:attribute name="href" type="xsd:anyURI" use="required">
3312 <xsd:annotation>
3313 <xsd:documentation xml:lang="en">The URI of the &lt;xccdf:Tailoring&gt; file's
3314 location. </xsd:documentation>
3315 </xsd:annotation>
3316 </xsd:attribute>
3317 <xsd:attribute name="id" type="xsd:NCName" use="required">
3318 <xsd:annotation>
3319 <xsd:documentation xml:lang="en">The &lt;xccdf:Tailoring&gt; element's @id value.
3320 </xsd:documentation>
3321 </xsd:annotation>
3322 </xsd:attribute>
3323 <xsd:attribute name="version" type="xsd:string" use="required">
3324 <xsd:annotation>
3325 <xsd:documentation xml:lang="en">The value of the &lt;xccdf:Tailoring&gt; element's
3326 &lt;xccdf:version&gt; property. </xsd:documentation>
3327 </xsd:annotation>
3328 </xsd:attribute>
3329 <xsd:attribute name="time" type="xsd:dateTime" use="required">
3330 <xsd:annotation>
3331 <xsd:documentation xml:lang="en">The value of the @time attribute in the
3332 &lt;xccdf:Tailoring&gt; element's &lt;xccdf:version&gt;
3333 property.</xsd:documentation>
3334 </xsd:annotation>
3335 </xsd:attribute>
3336 </xsd:complexType>
3337
3338 <xsd:complexType name="ruleResultType">
3339 <xsd:annotation>
3340 <xsd:documentation xml:lang="en">Type for the &lt;xccdf:rule-result&gt; element within
3341 an &lt;xccdf:TestResult&gt;. An &lt;xccdf:rule-result&gt; holds the result of
3342 applying an &lt;xccdf:Rule&gt; from the &lt;xccdf:Benchmark&gt; to a target system
3343 or component of a target system. </xsd:documentation>
3344 </xsd:annotation>
3345 <xsd:sequence>
3346 <xsd:element name="result" type="cdf:resultEnumType" minOccurs="1" maxOccurs="1">
3347 <xsd:annotation>
3348 <xsd:documentation xml:lang="en">Result of applying the referenced
3349 &lt;xccdf:Rule&gt; to a target or target component. (E.g., Pass, Fail, etc.)
3350 </xsd:documentation>
3351 </xsd:annotation>
3352 </xsd:element>
3353 <xsd:element name="override" type="cdf:overrideType" minOccurs="0" maxOccurs="unbounded">
3354 <xsd:annotation>
3355 <xsd:documentation xml:lang="en">An XML block explaining how and why an auditor
3356 chose to override the result. </xsd:documentation>
3357 </xsd:annotation>
3358 </xsd:element>
3359 <xsd:element name="ident" type="cdf:identType" minOccurs="0" maxOccurs="unbounded">
3360 <xsd:annotation>
3361 <xsd:documentation xml:lang="en">A long-term globally meaningful identifier for
3362 the issue, vulnerability, platform, etc. copied from the referenced
3363 &lt;xccdf:Rule&gt;. </xsd:documentation>
3364 </xsd:annotation>
3365 </xsd:element>
3366 <xsd:element name="metadata" type="cdf:metadataType" minOccurs="0" maxOccurs="unbounded">
3367 <xsd:annotation>
3368 <xsd:documentation xml:lang="en">XML metadata associated with this
3369 &lt;xccdf:rule-result&gt;. </xsd:documentation>
3370 </xsd:annotation>
3371 </xsd:element>
3372 <xsd:element name="message" type="cdf:messageType" minOccurs="0" maxOccurs="unbounded">
3373 <xsd:annotation>
3374 <xsd:documentation xml:lang="en">Diagnostic messages from the checking engine.
3375 These elements do not affect scoring; they are present merely to convey
3376 diagnostic information from the checking engine. </xsd:documentation>
3377 </xsd:annotation>
3378 </xsd:element>
3379 <xsd:element name="instance" type="cdf:instanceResultType" minOccurs="0"
3380 maxOccurs="unbounded">
3381 <xsd:annotation>
3382 <xsd:documentation xml:lang="en">Name of the target subsystem or component to
3383 which this result applies, for a multiply instantiated &lt;xccdf:Rule&gt;.
3384 The element is important for an &lt;xccdf:Rule&gt; that applies to
3385 components of the target system, especially when a target might have several
3386 such components, and where the @multiple attribute of the &lt;xccdf:Rule&gt;
3387 is set to true.</xsd:documentation>
3388 </xsd:annotation>
3389 </xsd:element>
3390 <xsd:element name="fix" type="cdf:fixType" minOccurs="0" maxOccurs="unbounded">
3391 <xsd:annotation>
3392 <xsd:documentation xml:lang="en">Fix script for this target platform, if
3393 available (would normally appear only for result values of “fail”). It is
3394 assumed to have been ‘instantiated’ by the testing tool and any
3395 substitutions or platform selections already made.</xsd:documentation>
3396 </xsd:annotation>
3397 </xsd:element>
3398 <xsd:choice>
3399 <xsd:element name="check" type="cdf:checkType" minOccurs="0" maxOccurs="unbounded">
3400 <xsd:annotation>
3401 <xsd:documentation xml:lang="en">Encapsulated or referenced results to
3402 detailed testing output from the checking engine (if
3403 any).</xsd:documentation>
3404 </xsd:annotation>
3405 </xsd:element>
3406 <xsd:element name="complex-check" minOccurs="0" type="cdf:complexCheckType"
3407 maxOccurs="1">
3408 <xsd:annotation>
3409 <xsd:documentation xml:lang="en">A copy of the &lt;xccdf:Rule&gt; element’s
3410 &lt;xccdf:complex-check&gt; element where each component
3411 &lt;xccdf:check&gt; element of the &lt;xccdf:complex-check&gt; element
3412 is an encapsulated or referenced results to detailed testing output from
3413 the checking engine (if any) as described in the
3414 &lt;xccdf:rule-result&gt; &lt;xccdf:check&gt;
3415 property.</xsd:documentation>
3416 </xsd:annotation>
3417 </xsd:element>
3418 </xsd:choice>
3419 </xsd:sequence>
3420 <xsd:attribute name="idref" type="xsd:NCName" use="required">
3421 <xsd:annotation>
3422 <xsd:documentation xml:lang="en">The value of the @id property of an
3423 &lt;xccdf:Rule&gt;. This &lt;xccdf:rule-result&gt; reflects the result of
3424 applying this &lt;xccdf:Rule&gt; to a target or target component.
3425 </xsd:documentation>
3426 </xsd:annotation>
3427 </xsd:attribute>
3428 <xsd:attribute name="role" type="cdf:roleEnumType" use="optional">
3429 <xsd:annotation>
3430 <xsd:documentation xml:lang="en">The value of the @role property of the referenced
3431 &lt;xccdf:Rule&gt;. </xsd:documentation>
3432 </xsd:annotation>
3433 </xsd:attribute>
3434 <xsd:attribute name="severity" type="cdf:severityEnumType" use="optional">
3435 <xsd:annotation>
3436 <xsd:documentation xml:lang="en">The value of the @severity property of the
3437 referenced &lt;xccdf:Rule&gt;. </xsd:documentation>
3438 </xsd:annotation>
3439 </xsd:attribute>
3440 <xsd:attribute name="time" type="xsd:dateTime" use="optional">
3441 <xsd:annotation>
3442 <xsd:documentation xml:lang="en">Time when application of this instance of the
3443 referenced &lt;xccdf:Rule&gt; was completed. </xsd:documentation>
3444 </xsd:annotation>
3445 </xsd:attribute>
3446 <xsd:attribute name="version" type="xsd:string" use="optional">
3447 <xsd:annotation>
3448 <xsd:documentation xml:lang="en">The value of the @version property of the
3449 referenced &lt;xccdf:Rule&gt;. </xsd:documentation>
3450 </xsd:annotation>
3451 </xsd:attribute>
3452 <xsd:attribute name="weight" type="cdf:weightType" use="optional">
3453 <xsd:annotation>
3454 <xsd:documentation xml:lang="en">The value of the @weight property of the referenced
3455 &lt;xccdf:Rule&gt;. </xsd:documentation>
3456 </xsd:annotation>
3457 </xsd:attribute>
3458 </xsd:complexType>
3459
3460 <xsd:complexType name="instanceResultType">
3461 <xsd:annotation>
3462 <xsd:documentation xml:lang="en">Type for an &lt;xccdf:instance&gt; element in an
3463 &lt;xccdf:rule-result&gt;. The content is a string, but the element may also have
3464 two attributes: @context and @parentContext. Both attributes are intended to provide
3465 hints as to the nature of the substituted content. This body of this type records
3466 the details of the target system instance for multiply instantiated
3467 &lt;xccdf:Rule&gt; elements. </xsd:documentation>
3468 </xsd:annotation>
3469 <xsd:simpleContent>
3470 <xsd:extension base="xsd:string">
3471 <xsd:attribute name="context" default="undefined" type="xsd:string" use="optional">
3472 <xsd:annotation>
3473 <xsd:documentation xml:lang="en">Describes the scope or significance of the
3474 instance content. </xsd:documentation>
3475 </xsd:annotation>
3476 </xsd:attribute>
3477 <xsd:attribute name="parentContext" type="xsd:string" use="optional">
3478 <xsd:annotation>
3479 <xsd:documentation xml:lang="en">Used to express nested structure in
3480 instance context structures. </xsd:documentation>
3481 </xsd:annotation>
3482 </xsd:attribute>
3483 </xsd:extension>
3484 </xsd:simpleContent>
3485 </xsd:complexType>
3486
3487 <xsd:complexType name="overrideType">
3488 <xsd:annotation>
3489 <xsd:documentation xml:lang="en"> Type for an &lt;xccdf:override&gt; element in an
3490 &lt;xccdf:rule-result&gt;. This element is used to record manual modification or
3491 annotation of a particular &lt;xccdf:rule-result&gt;. All attributes and child
3492 elements are required. It will not always be the case that the
3493 &lt;xccdf:new-result&gt; value will differ from the &lt;xccdf:old-result&gt; value.
3494 They might match if an authority wished to make a remark on the result without
3495 changing it. If &lt;xccdf:new-result&gt; and &lt;xccdf:old-result&gt; differ, the
3496 &lt;xccdf:result&gt; element of the enclosing &lt;xccdf:rule-result&gt; must match
3497 the &lt;xccdf:new-result&gt; value.</xsd:documentation>
3498 </xsd:annotation>
3499 <xsd:sequence>
3500 <xsd:element name="old-result" type="cdf:resultEnumType" minOccurs="1" maxOccurs="1">
3501 <xsd:annotation>
3502 <xsd:documentation xml:lang="en">The &lt;xccdf:rule-result&gt; status before
3503 this override. </xsd:documentation>
3504 </xsd:annotation>
3505 </xsd:element>
3506 <xsd:element name="new-result" type="cdf:resultEnumType" minOccurs="1" maxOccurs="1">
3507 <xsd:annotation>
3508 <xsd:documentation xml:lang="en">The new, override &lt;xccdf:rule-result&gt;
3509 status. </xsd:documentation>
3510 </xsd:annotation>
3511 </xsd:element>
3512 <xsd:element name="remark" type="cdf:textType" minOccurs="1" maxOccurs="1">
3513 <xsd:annotation>
3514 <xsd:documentation xml:lang="en">Rationale or explanation text for why or how
3515 the override was applied. </xsd:documentation>
3516 </xsd:annotation>
3517 </xsd:element>
3518 </xsd:sequence>
3519 <xsd:attribute name="time" type="xsd:dateTime" use="required">
3520 <xsd:annotation>
3521 <xsd:documentation xml:lang="en">When the override was applied. </xsd:documentation>
3522 </xsd:annotation>
3523 </xsd:attribute>
3524 <xsd:attribute name="authority" type="xsd:string" use="required">
3525 <xsd:annotation>
3526 <xsd:documentation xml:lang="en">Name or other identification for the human
3527 principal authorizing the override. </xsd:documentation>
3528 </xsd:annotation>
3529 </xsd:attribute>
3530 </xsd:complexType>
3531
3532 <xsd:complexType name="messageType">
3533 <xsd:annotation>
3534 <xsd:documentation xml:lang="en"> Type for a message generated by the checking engine or
3535 XCCDF tool during &lt;xccdf:Benchmark&gt; testing. The message is contained in
3536 string format in the body of the element. </xsd:documentation>
3537 </xsd:annotation>
3538 <xsd:simpleContent>
3539 <xsd:extension base="xsd:string">
3540 <xsd:attribute name="severity" type="cdf:msgSevEnumType" use="required">
3541 <xsd:annotation>
3542 <xsd:documentation xml:lang="en">Denotes the seriousness of the
3543 message.</xsd:documentation>
3544 </xsd:annotation>
3545 </xsd:attribute>
3546 </xsd:extension>
3547 </xsd:simpleContent>
3548 </xsd:complexType>
3549
3550 <xsd:simpleType name="msgSevEnumType">
3551 <xsd:annotation>
3552 <xsd:documentation xml:lang="en"> Allowed values to indicate the severity of messages
3553 from the checking engine. These values don't affect scoring themselves but are
3554 present merely to convey diagnostic information from the checking engine. Benchmark
3555 consumers may choose to log these messages or display them to the user.
3556 </xsd:documentation>
3557 </xsd:annotation>
3558 <xsd:restriction base="xsd:string">
3559 <xsd:enumeration value="error">
3560 <xsd:annotation>
3561 <xsd:documentation xml:lang="en">Denotes a serious problem identified; test did
3562 not run. </xsd:documentation>
3563 </xsd:annotation>
3564 </xsd:enumeration>
3565 <xsd:enumeration value="warning">
3566 <xsd:annotation>
3567 <xsd:documentation xml:lang="en">Denotes a possible issue; test may not have
3568 run. </xsd:documentation>
3569 </xsd:annotation>
3570 </xsd:enumeration>
3571 <xsd:enumeration value="info">
3572 <xsd:annotation>
3573 <xsd:documentation xml:lang="en">Denotes important information about the tests.
3574 </xsd:documentation>
3575 </xsd:annotation>
3576 </xsd:enumeration>
3577 </xsd:restriction>
3578 </xsd:simpleType>
3579
3580 <xsd:simpleType name="resultEnumType">
3581 <xsd:annotation>
3582 <xsd:documentation xml:lang="en">Allowed result indicators for a
3583 test.</xsd:documentation>
3584 </xsd:annotation>
3585 <xsd:restriction base="xsd:string">
3586 <xsd:enumeration value="pass">
3587 <xsd:annotation>
3588 <xsd:documentation xml:lang="en">The target system or system component satisfied
3589 all the conditions of the &lt;xccdf:Rule&gt;. </xsd:documentation>
3590 </xsd:annotation>
3591 </xsd:enumeration>
3592 <xsd:enumeration value="fail">
3593 <xsd:annotation>
3594 <xsd:documentation xml:lang="en">The target system or system component did not
3595 satisfy all the conditions of the &lt;xccdf:Rule&gt;. </xsd:documentation>
3596 </xsd:annotation>
3597 </xsd:enumeration>
3598 <xsd:enumeration value="error">
3599 <xsd:annotation>
3600 <xsd:documentation xml:lang="en">The checking engine could not complete the
3601 evaluation; therefore the status of the target’s compliance with the
3602 &lt;xccdf:Rule&gt; is not certain. This could happen, for example, if a
3603 testing tool was run with insufficient privileges and could not gather all
3604 of the necessary information. </xsd:documentation>
3605 </xsd:annotation>
3606 </xsd:enumeration>
3607 <xsd:enumeration value="unknown">
3608 <xsd:annotation>
3609 <xsd:documentation xml:lang="en">The testing tool encountered some problem and
3610 the result is unknown. For example, a result of ‘unknown’ might be given if
3611 the testing tool was unable to interpret the output of the checking engine
3612 (the output has no meaning to the testing tool). </xsd:documentation>
3613 </xsd:annotation>
3614 </xsd:enumeration>
3615 <xsd:enumeration value="notapplicable">
3616 <xsd:annotation>
3617 <xsd:documentation xml:lang="en">The &lt;xccdf:Rule&gt; was not applicable to
3618 the target of the test. For example, the &lt;xccdf:Rule&gt; might have been
3619 specific to a different version of the target OS, or it might have been a
3620 test against a platform feature that was not installed. </xsd:documentation>
3621 </xsd:annotation>
3622 </xsd:enumeration>
3623 <xsd:enumeration value="notchecked">
3624 <xsd:annotation>
3625 <xsd:documentation xml:lang="en">The &lt;xccdf:Rule&gt; was not evaluated by the
3626 checking engine. This status is designed for &lt;xccdf:Rule&gt; elements
3627 that have no check. It may also correspond to a status returned by a
3628 checking engine if the checking engine does not support the indicated check
3629 code. </xsd:documentation>
3630 </xsd:annotation>
3631 </xsd:enumeration>
3632 <xsd:enumeration value="notselected">
3633 <xsd:annotation>
3634 <xsd:documentation xml:lang="en">The &lt;xccdf:Rule&gt; was not selected in the
3635 &lt;xccdf:Benchmark&gt;. </xsd:documentation>
3636 </xsd:annotation>
3637 </xsd:enumeration>
3638 <xsd:enumeration value="informational">
3639 <xsd:annotation>
3640 <xsd:documentation xml:lang="en">The &lt;xccdf:Rule&gt; was checked, but the
3641 output from the checking engine is simply information for auditors or
3642 administrators; it is not a compliance category. This status value is
3643 designed for &lt;xccdf:Rule&gt; elements whose main purpose is to extract
3644 information from the target rather than test the target.
3645 </xsd:documentation>
3646 </xsd:annotation>
3647 </xsd:enumeration>
3648 <xsd:enumeration value="fixed">
3649 <xsd:annotation>
3650 <xsd:documentation xml:lang="en">The &lt;xccdf:Rule&gt; had failed, but was then
3651 fixed (possibly by a tool that can automatically apply remediation, or
3652 possibly by the human auditor). </xsd:documentation>
3653 </xsd:annotation>
3654 </xsd:enumeration>
3655 </xsd:restriction>
3656 </xsd:simpleType>
3657
3658 <xsd:simpleType name="severityEnumType">
3659 <xsd:annotation>
3660 <xsd:documentation xml:lang="en">Allowed severity values for the @severity attribute of
3661 an &lt;xccdf:Rule&gt;. The value of this attribute provides an indication of the
3662 importance of the &lt;xccdf:Rule&gt; element's recommendation. This information is
3663 informative only and does not affect scoring.</xsd:documentation>
3664 </xsd:annotation>
3665 <xsd:restriction base="xsd:string">
3666 <xsd:enumeration value="unknown">
3667 <xsd:annotation>
3668 <xsd:documentation xml:lang="en">Severity not defined (default).
3669 </xsd:documentation>
3670 </xsd:annotation>
3671 </xsd:enumeration>
3672 <xsd:enumeration value="info">
3673 <xsd:annotation>
3674 <xsd:documentation xml:lang="en">&lt;xccdf:Rule&gt; is informational and failure
3675 does not represent a problem. </xsd:documentation>
3676 </xsd:annotation>
3677 </xsd:enumeration>
3678 <xsd:enumeration value="low">
3679 <xsd:annotation>
3680 <xsd:documentation xml:lang="en">Not a serious problem. </xsd:documentation>
3681 </xsd:annotation>
3682 </xsd:enumeration>
3683 <xsd:enumeration value="medium">
3684 <xsd:annotation>
3685 <xsd:documentation xml:lang="en">Fairly serious problem. </xsd:documentation>
3686 </xsd:annotation>
3687 </xsd:enumeration>
3688 <xsd:enumeration value="high">
3689 <xsd:annotation>
3690 <xsd:documentation xml:lang="en">A grave or critical problem.
3691 </xsd:documentation>
3692 </xsd:annotation>
3693 </xsd:enumeration>
3694 </xsd:restriction>
3695 </xsd:simpleType>
3696
3697 <xsd:simpleType name="roleEnumType">
3698 <xsd:annotation>
3699 <xsd:documentation xml:lang="en">Allowed checking and scoring roles for an
3700 &lt;xccdf:Rule&gt;.</xsd:documentation>
3701 </xsd:annotation>
3702 <xsd:restriction base="xsd:string">
3703 <xsd:enumeration value="full">
3704 <xsd:annotation>
3705 <xsd:documentation xml:lang="en">If the &lt;xccdf:Rule&gt; is selected, then
3706 check it and let the result contribute to the score and appear in reports
3707 (default). </xsd:documentation>
3708 </xsd:annotation>
3709 </xsd:enumeration>
3710 <xsd:enumeration value="unscored">
3711 <xsd:annotation>
3712 <xsd:documentation xml:lang="en">If the &lt;xccdf:Rule&gt; is selected, then
3713 check it and include it in the test report, but give the result a status of
3714 informational and do not use the result in score computations.
3715 </xsd:documentation>
3716 </xsd:annotation>
3717 </xsd:enumeration>
3718 <xsd:enumeration value="unchecked">
3719 <xsd:annotation>
3720 <xsd:documentation xml:lang="en">Do not check the &lt;xccdf:Rule&gt;; just force
3721 the result status to notchecked. </xsd:documentation>
3722 </xsd:annotation>
3723 </xsd:enumeration>
3724 </xsd:restriction>
3725 </xsd:simpleType>
3726
3727 <xsd:simpleType name="subUseEnumType">
3728 <xsd:annotation>
3729 <xsd:documentation xml:lang="en">This holds the possible values of the @use attribute
3730 within an &lt;xccdf:sub&gt; element. The @use attribute is only applicable with the
3731 subType's @idref attribute holds the value of the @id of an &lt;xccdf:Value&gt;
3732 element.</xsd:documentation>
3733 </xsd:annotation>
3734 <xsd:restriction base="xsd:string">
3735 <xsd:enumeration value="value">
3736 <xsd:annotation>
3737 <xsd:documentation xml:lang="en">Replace with the selected &lt;xccdf:value&gt;
3738 or &lt;xccdf:complex-value&gt; of an &lt;xccdf:Value&gt;.
3739 </xsd:documentation>
3740 </xsd:annotation>
3741 </xsd:enumeration>
3742 <xsd:enumeration value="title">
3743 <xsd:annotation>
3744 <xsd:documentation xml:lang="en">Replace with the &lt;xccdf:title&gt; of the
3745 &lt;xccdf:Value&gt;. </xsd:documentation>
3746 </xsd:annotation>
3747 </xsd:enumeration>
3748 <xsd:enumeration value="legacy">
3749 <xsd:annotation>
3750 <xsd:documentation xml:lang="en">Use the context-dependent processing of
3751 &lt;xccdf:sub&gt; elements outlined in XCCDF 1.1.4. </xsd:documentation>
3752 </xsd:annotation>
3753 </xsd:enumeration>
3754 </xsd:restriction>
3755 </xsd:simpleType>
3756
3757 <xsd:element name="Tailoring" type="cdf:tailoringType">
3758 <xsd:annotation>
3759 <xsd:documentation xml:lang="en">The &lt;xccdf:Tailoring&gt; element holds one or more
3760 &lt;xccdf:Profile&gt; elements. These &lt;xccdf:Profile&gt; elements record
3761 additional tailoring activities that apply to a given &lt;xccdf:Benchmark&gt;.
3762 &lt;xccdf:Tailoring&gt; elements are separate from &lt;xccdf:Benchmark&gt;
3763 documents, but each &lt;xccdf:Tailoring&gt; element is associated with a specific
3764 &lt;xccdf:Benchmark&gt; document. By defining these tailoring actions separately
3765 from the &lt;xccdf:Benchmark&gt; document to which they apply, these actions can be
3766 recorded without affecting the integrity of the source itself.</xsd:documentation>
3767 </xsd:annotation>
3768 </xsd:element>
3769
3770 <xsd:complexType name="tailoringType">
3771 <xsd:annotation>
3772 <xsd:documentation xml:lang="en">Data type for the &lt;xccdf:Tailoring&gt; element. The
3773 &lt;xccdf:Tailoring&gt; element allows named tailorings (i.e., &lt;xccdf:Profile&gt;
3774 elements) of an &lt;xccdf:Benchmark&gt; to be defined separately from the
3775 &lt;xccdf:Benchmark&gt; itself. The &lt;xccdf:Profile&gt; elements in an
3776 &lt;xccdf:Tailoring&gt; element can be used in two ways: First, an organization
3777 might wish to pre-define a set of tailoring actions to be applied on top of or
3778 instead of the tailoring performed by an &lt;xccdf:Benchmark&gt; element's
3779 &lt;xccdf:Profile&gt; elements. Second, an &lt;xccdf:Tailoring&gt; element can be
3780 used to record manual tailoring actions performed during the course of an
3781 assessment. </xsd:documentation>
3782 </xsd:annotation>
3783 <xsd:sequence>
3784 <xsd:element name="benchmark" minOccurs="0" maxOccurs="1"
3785 type="cdf:tailoringBenchmarkReferenceType">
3786 <xsd:annotation>
3787 <xsd:documentation xml:lang="en">Identifies the &lt;xccdf:Benchmark&gt; to which
3788 this tailoring applies. A &lt;xccdf:Tailoring&gt; document is only
3789 applicable to a single &lt;xccdf:Benchmark&gt;. Note, however, that this is
3790 a purely informative field. </xsd:documentation>
3791 </xsd:annotation>
3792 </xsd:element>
3793 <xsd:element ref="cdf:status" minOccurs="0" maxOccurs="unbounded">
3794 <xsd:annotation>
3795 <xsd:documentation xml:lang="en">Status of the tailoring and date at which it
3796 attained that status. Authors may use this element to record the maturity or
3797 consensus level of an &lt;xccdf:Tailoring&gt; element.</xsd:documentation>
3798 </xsd:annotation>
3799 </xsd:element>
3800 <xsd:element name="dc-status" minOccurs="0" maxOccurs="unbounded"
3801 type="cdf:dc-statusType">
3802 <xsd:annotation>
3803 <xsd:documentation xml:lang="en">Holds additional status information using the
3804 Dublin Core format. </xsd:documentation>
3805 </xsd:annotation>
3806 </xsd:element>
3807 <xsd:element name="version" minOccurs="1" maxOccurs="1" type="cdf:tailoringVersionType">
3808 <xsd:annotation>
3809 <xsd:documentation xml:lang="en">The version of this &lt;xccdf:Tailoring&gt;
3810 element, with a required @time attribute that records when the
3811 &lt;xccdf:Tailoring&gt; element was created. This timestamp is necessary
3812 because, under some circumstances, a copy of an &lt;xccdf:Tailoring&gt;
3813 document might be automatically generated. Without the version and
3814 timestamp, tracking of these automatically created &lt;xccdf:Tailoring&gt;
3815 documents could become problematic. </xsd:documentation>
3816 </xsd:annotation>
3817 </xsd:element>
3818 <xsd:element name="metadata" type="cdf:metadataType" minOccurs="0" maxOccurs="unbounded">
3819 <xsd:annotation>
3820 <xsd:documentation xml:lang="en">XML metadata for the &lt;xccdf:Tailoring&gt;
3821 element. </xsd:documentation>
3822 </xsd:annotation>
3823 </xsd:element>
3824 <xsd:element ref="cdf:Profile" minOccurs="1" maxOccurs="unbounded">
3825 <xsd:annotation>
3826 <xsd:documentation xml:lang="en">&lt;xccdf:Profile&gt; elements that reference
3827 and customize sets of items in an &lt;xccdf:Benchmark&gt;.
3828 </xsd:documentation>
3829 </xsd:annotation>
3830 </xsd:element>
3831 <xsd:element name="signature" type="cdf:signatureType" minOccurs="0" maxOccurs="1">
3832 <xsd:annotation>
3833 <xsd:documentation xml:lang="en">A digital signature asserting authorship and
3834 allowing verification of the integrity of the &lt;xccdf:Tailoring&gt;.
3835 </xsd:documentation>
3836 </xsd:annotation>
3837 </xsd:element>
3838 </xsd:sequence>
3839 <xsd:attribute name="id" type="cdf:tailoringIdType" use="required">
3840 <xsd:annotation>
3841 <xsd:documentation xml:lang="en">Unique identifier for this
3842 element.</xsd:documentation>
3843 </xsd:annotation>
3844 </xsd:attribute>
3845 <!-- the 'Id' attribute is needed for XML-Signature -->
3846 <xsd:attribute name="Id" type="xsd:ID" use="optional">
3847 <xsd:annotation>
3848 <xsd:documentation xml:lang="en">An identifier used for referencing elements
3849 included in an XML signature. </xsd:documentation>
3850 </xsd:annotation>
3851 </xsd:attribute>
3852 </xsd:complexType>
3853
3854 <xsd:complexType name="tailoringBenchmarkReferenceType">
3855 <xsd:annotation>
3856 <xsd:documentation xml:lang="en">Identifies the &lt;xccdf:Benchmark&gt; to which an
3857 &lt;xccdf:Tailoring&gt; element applies. </xsd:documentation>
3858 </xsd:annotation>
3859 <xsd:complexContent>
3860 <xsd:extension base="cdf:benchmarkReferenceType">
3861 <xsd:attribute name="version" type="xsd:string" use="optional">
3862 <xsd:annotation>
3863 <xsd:documentation xml:lang="en">Identifies the version of the referenced
3864 &lt;xccdf:Benchmark&gt;. </xsd:documentation>
3865 </xsd:annotation>
3866 </xsd:attribute>
3867 </xsd:extension>
3868 </xsd:complexContent>
3869 </xsd:complexType>
3870
3871 <xsd:complexType name="tailoringVersionType">
3872 <xsd:annotation>
3873 <xsd:documentation xml:lang="en">Type for version information about an
3874 &lt;xccdf:Tailoring&gt; element. </xsd:documentation>
3875 </xsd:annotation>
3876 <xsd:simpleContent>
3877 <xsd:extension base="xsd:string">
3878 <xsd:attribute name="time" type="xsd:dateTime" use="required">
3879 <xsd:annotation>
3880 <xsd:documentation xml:lang="en">The time when this version of the
3881 &lt;xccdf:Tailoring&gt; document was completed. </xsd:documentation>
3882 </xsd:annotation>
3883 </xsd:attribute>
3884 </xsd:extension>
3885 </xsd:simpleContent>
3886 </xsd:complexType>
3887
3888 </xsd:schema>
3889 <!-- CHANGELOG
3890
3891 date change remarks
3892
3893 6/20/05 added cdf:ident long-term identifiers for Rule
3894 and rule-result.
3895
3896 6/21/05 enhanced version added version attr to TestResult
3897 and rule-result, too
3898
3899 added notapplicable added new rule result value
3900
3901 added severity enum and attributes
3902
3903 6/22/05 added signatures for need for standalone Rules & such
3904 Rule,Group,Value,
3905 Profile,TestResult
3906
3907 6/22/05 added rule roles at Dave's request
3908
3909 6/23/05 added rule result at DISA request
3910 overrides
3911
3912 6/26/05 added fixtext and enums for attributes
3913 fix enhancements
3914
3915 6/29/05 added interactive run-time tailoring for Values
3916 attr on Value object
3917
3918 6/29/05 added multiple scoring was this a Dave request?
3919 model support
3920
3921 7/1/05 added support for to support text re-use
3922 named plain text blocks
3923
3924 7/7/05 added target-facts DISA suggestion
3925
3926 7/13/05 added complex-checks workshop suggestion, allow
3927 boolean combinations of
3928 checks.
3929
3930 7/29/05 added more rule some suggested by CIS
3931 result types
3932
3933 8/4/05 added override attrs suggested by Dave W.
3934 for managing inheritance
3935
3936 8/20/05 added fix strategies
3937
3938 8/20/05 revamped complex-check see OVAL schema
3939 to more closely match
3940 OVAL boolean operators
3941
3942 9/4/05 fixed some typos
3943
3944 9/8/05 Added fix/fixtext suggested by Dave W.
3945 complexity and warning
3946 categories.
3947
3948 9/18/05 Allow for XCCDF-P as see XCCDF-P document
3949 a platform type. (later deprecated)
3950
3951 9/21/05 Added profile-note suggested by Dave W.
3952 support.
3953
3954 11/10/05 Added additional features also from Dave W.
3955 for Values.
3956
3957 11/27/05 Added instance context to meet CIS req'ts
3958 support
3959
3960 11/27/05 Added multiple hint on to meet CIS req'ts
3961 Rule object
3962
3963 11/27/05 fixed role attr on old bug
3964 Rule object
3965
3966 12/5/05 fixed 1.0-incompatible reported by Nancy W
3967 order glitch in Profile
3968
3969 4/16/06 beginning work toward reports from Ian C
3970 1.1bis; fixed several
3971 small mistakes/glitches.
3972
3973 4/23/06 tweaked formatting various e-mails
3974 fixed some comments
3975 version # to 1.1.2.1
3976
3977 4/30/06 fixed plain-text id report from Dave W.
3978 key and sub key ref
3979
3980 5/5/06 fixed extends keyrefs report from Dave W.
3981
3982 5/21/06 added id attribute to request from CIS
3983 check element
3984
3985 8/27/06 changed TestResult to bug discovered myself
3986 allow target to appear
3987 multiple times
3988
3989 11/20/06 Fixed weightType report from Gary Gapinski
3990
3991 12/13/06 Changed platform support for CPE
3992 references to URIs
3993
3994 12/13/06 Changed requires element request from NIST
3995 to a token list
3996
3997 12/28/06 Changed check element to backfit to NIST
3998 allow multiple change by Linda Devlin
3999 check-content-ref
4000
4001 8/21/07 Added check-import better reporting, req.
4002 element by NIST & MITRE
4003
4004 8/26/07 Added remark element allow authors to add
4005 to Profile selectors rationale to Profiles
4006
4007 8/26/07 Added weight to rule record weight used in
4008 result element a benchmark run
4009
4010 8/30/07 Added impact-metric mechanism to include a
4011 element to Rule CVSS score in a Rule
4012
4013 8/30/07 Changed CPE support Match SCAP 1.0
4014 to CPE 2.0
4015 9/10/07 Made CPE 1.0 deprecated Match SCAP 1.0
4016
4017 10/8/07 Allow Profile selectors Part of clarifying Profile
4018 in any order semantics for 1.1.4
4019
4020 10/8/07 Added Benchmark style For NIST SCAP
4021 and style-href attrs
4022
4023 10/8/07 Added organization and For NIST SCAP
4024 identity elements for
4025 TestResult
4026
4027 6/1/10 Made platform element Fix to match spec
4028 Profile overridable
4029
4030 6/1/10 Added metadata fields Community request for
4031 to TestResults, Profiles more flexible metadata
4032 and Items. Also opened
4033 metadata fields to all
4034 content.
4035
4036 6/1/10 Updated to use CPE 2.3 Bring into line with SCAP
4037 Also changed CPE fields
4038 from URIs to strings.
4039
4040 6/1/10 Added negate field to Support inverting of SCAP
4041 check element. result mappings
4042
4043 6/1/10 Added dc-status field Allow Dublin-Core status info
4044
4045 6/1/10 Added multi-check to Allows creation of rule-results
4046 Rules for each check used
4047
4048 6/1/10 Expanded selector Enforce requirements from spec
4049 uniqueness constraints
4050 within Values
4051
4052 6/1/10 Expanded Value to Bring XCCDF more in line with
4053 allow lists and externally capabilities of checking languages
4054 defined types. Updated
4055 Profile selectors and
4056 TestResults to handle the
4057 new constructs
4058
4059 6/1/10 Added import-xpath to Expand import capabilities
4060 check-import. Also updated
4061 check-import to allow
4062 XML-structured findings
4063
4064 6/1/10 Fixed path of Benchmark's Bug fix.
4065 profileIdKeyRef restriction
4066
4067 6/1/10 Added an id field to Better reference to the XCCDF source
4068 TestResult/benchmark
4069
4070 5/27/11 Added reference to Asset More standards based target identification
4071 Identification structures
4072 in TestResults.
4073
4074 5/27/11 Added ComplexChecks in Better tracking of result structures during complex checks
4075 rule-results
4076 -->