NIST IR 7698 日本語訳
英語タイトル : Common Platform Enumeration: Applicability Language Specification Version 2.3日本語タイトル : 共通プラットフォーム列挙:適用性言語仕様 バージョン 2.3
公開日 : 2011-08-19
原文URL : https://csrc.nist.gov/pubs/ir/7698/final
翻訳編集 : 自動生成(有志による非公式の日本語訳), 原文取得日 : 2026-10-31, 訳文 : 207 / 221 ブロック
[要約] NIST IR 7698 は、Common Platform Enumeration(CPE)適用性言語バージョン 2.3 の仕様を定義する報告書です。CPE 適用性言語は、IT 製品の記述と命名に関するさまざまなユースケースを支える CPE 仕様群の一部であり、そのデータモデルは、CPE のユーザーが IT プラットフォームを記述するために CPE 名の複雑なグループ化を構築できるようにします。これらのグループ化は、特定のガイダンスや方針などがどのプラットフォームに適用されるかを指定するために使用されるため、適用性ステートメントと呼ばれます。本報告書は、データモデルのセマンティクスに加えて、IT 製品および CPE 適用性言語文書が仕様に適合するために満たさなければならない要件を定義し、説明します。
[NIST のロゴ。公的な標章のため、この非公式サイトには掲載していません。原本 PDF を参照してください。]
NIST Interagency Report 7698
NIST 機関間報告書 7698
Common Platform Enumeration: Applicability Language Specification Version 2.3
Common Platform Enumeration: 適用性言語仕様 バージョン 2.3
David Waltermire
Paul Cichonski
Karen Scarfone
David Waltermire
Paul Cichonski
Karen Scarfone
NIST Interagency Report 7698
NIST 機関間報告書 7698
Common Platform Enumeration: Applicability Language Specification Version 2.3
Common Platform Enumeration: 適用性言語仕様 バージョン 2.3
David Waltermire
Paul Cichonski
Karen Scarfone
David Waltermire
Paul Cichonski
Karen Scarfone
COMPUTER SECURITY
コンピューターセキュリティ
[米国商務省の紋章。公的な標章のため、この非公式サイトには掲載していません。原本 PDF を参照してください。]
Computer Security Division
Information Technology Laboratory
National Institute of Standards and Technology
Gaithersburg, MD 20899-8930
コンピューターセキュリティ部門
情報技術研究所
米国国立標準技術研究所
Gaithersburg, MD 20899-8930
August 2011
2011 年 8 月
U.S. Department of Commerce
Rebecca M. Blank, Acting Secretary
米国商務省
Rebecca M. Blank 長官代行
National Institute of Standards and Technology
Patrick D. Gallagher, Under Secretary for Standards and Technology and Director
米国国立標準技術研究所
Patrick D. Gallagher、標準・技術担当商務次官兼所長
Reports on Computer Systems Technology
コンピューターシステム技術に関する報告書
The Information Technology Laboratory (ITL) at the National Institute of Standards and Technology (NIST) promotes the U.S. economy and public welfare by providing technical leadership for the nation’s measurement and standards infrastructure. ITL develops tests, test methods, reference data, proof of concept implementations, and technical analysis to advance the development and productive use of information technology. ITL’s responsibilities include the development of technical, physical, administrative, and management standards and guidelines for the cost-effective security and privacy of sensitive unclassified information in Federal computer systems. This Interagency Report discusses ITL’s research, guidance, and outreach efforts in computer security and its collaborative activities with industry, government, and academic organizations.
米国国立標準技術研究所(NIST)の情報技術研究所(ITL)は、国の計測・標準インフラストラクチャに技術的リーダーシップを提供することで、米国の経済と公共の福祉を促進しています。ITL は、情報技術の発展と生産的な利用を推進するため、テスト、テスト方法、参照データ、概念実証実装、技術分析を開発しています。ITL の責務には、連邦コンピューターシステムにおける機微な非機密情報の費用対効果の高いセキュリティとプライバシーを実現するための、技術的、物理的、管理的およびマネジメント上の標準とガイドラインの策定が含まれます。この機関間報告書は、コンピューターセキュリティに関する ITL の研究、ガイダンス、アウトリーチ活動、および産業界、政府、学術機関との協働活動について論じます。
National Institute of Standards and Technology Interagency Report 7698
23 pages (Aug. 2011)
米国国立標準技術研究所 機関間報告書 7698
23 ページ(2011 年 8 月)
Certain commercial entities, equipment, or materials may be identified in this document in order to describe an experimental procedure or concept adequately. Such identification is not intended to imply recommendation or endorsement by the National Institute of Standards and Technology, nor is it intended to imply that the entities, materials, or equipment are necessarily the best available for the purpose.
本書では、実験的な手順や概念を適切に説明するために、特定の商業事業者、機器、または資材を明示する場合があります。そのような明示は、米国国立標準技術研究所による推奨や支持を意味するものではなく、また、それらの事業者、資材、機器がその目的に利用可能なものの中で必ずしも最良であることを意味するものでもありません。
Acknowledgments
謝辞
The authors, David Waltermire and Paul Cichonski of the National Institute of Standards and Technology (NIST), and Karen Scarfone of Scarfone Cybersecurity wish to thank their colleagues who reviewed drafts of this document and contributed to its technical content. The authors would like to acknowledge Harold Booth of NIST, Brant A. Cheikes and Mary Parmelee of the MITRE Corporation, Adam Halbardier of Booz Allen Hamilton, Seth Hanford of Cisco Systems, Inc., Tim Keanini of nCircle, Kent Landfield of McAfee, Inc., Jim Ronayne of Varen Technologies, Shane Shaffer of G2, Inc., and Joseph L Wolfkiel of the US Department of Defense for their insights and support throughout the development of the document.
著者である米国国立標準技術研究所(NIST)の David Waltermire と Paul Cichonski、および Scarfone Cybersecurity の Karen Scarfone は、本書のドラフトをレビューし、その技術的内容に貢献してくれた同僚に感謝します。著者は、本書の策定を通じて洞察と支援を提供してくれた、NIST の Harold Booth、MITRE Corporation の Brant A. Cheikes と Mary Parmelee、Booz Allen Hamilton の Adam Halbardier、Cisco Systems, Inc. の Seth Hanford、nCircle の Tim Keanini、McAfee, Inc. の Kent Landfield、Varen Technologies の Jim Ronayne、G2, Inc. の Shane Shaffer、米国国防総省の Joseph L Wolfkiel に謝意を表します。
Abstract
概要
This report defines the Common Platform Enumeration (CPE) Applicability Language version 2.3 specification. The CPE Applicability Language specification is part of a stack of CPE specifications that support a variety of use cases relating to IT product description and naming. The CPE Applicability Language data model builds on top of other CPE specifications to provide the functionality required to allow CPE users to construct complex groupings of CPE names to describe IT platforms. These groupings are referred to as applicability statements because they are used to designate which platforms particular guidance, policies, etc. apply to. This report defines the semantics of the CPE Applicability Language data model and the requirements that IT products and CPE Applicability Language documents must meet for conformance with the CPE Applicability Language version 2.3 specification.
本報告書は、Common Platform Enumeration(CPE)適用性言語バージョン 2.3 の仕様を定義します。CPE 適用性言語仕様は、IT 製品の記述と命名に関するさまざまなユースケースを支える CPE 仕様群の一部です。CPE 適用性言語のデータモデルは、他の CPE 仕様の上に構築され、CPE のユーザーが IT プラットフォームを記述するために CPE 名の複雑なグループ化を構築できるようにするために必要な機能を提供します。これらのグループ化は、特定のガイダンスや方針などがどのプラットフォームに適用されるかを指定するために使用されるため、適用性ステートメントと呼ばれます。本報告書は、CPE 適用性言語データモデルのセマンティクスと、IT 製品および CPE 適用性言語文書が CPE 適用性言語バージョン 2.3 仕様に適合するために満たさなければならない要件を定義します。
Trademark Information
商標情報
CPE is a trademark of The MITRE Corporation.
CPE は The MITRE Corporation の商標です。
All other registered trademarks or trademarks belong to their respective organizations.
その他の登録商標または商標は、それぞれの組織に帰属します。
Table of Contents
目次
List of Tables
表一覧
1. Introduction
1. はじめに
Common Platform Enumeration (CPE) is a standardized method of describing and identifying classes of applications, operating systems, and hardware devices present in an enterprise’s computing assets. CPE can be used as a source of information for enforcing and verifying IT management policies relating to these assets, such as vulnerability, configuration, and remediation policies. IT management tools can collect information about installed products, identify products using their CPE names, and use this standardized information to help make fully or partially automated decisions regarding the assets.
Common Platform Enumeration(CPE)は、エンタープライズのコンピューティング資産に存在するアプリケーション、オペレーティングシステム、ハードウェアデバイスのクラスを記述し識別するための、標準化された方法です。CPE は、脆弱性、構成、修復に関する方針など、これらの資産に関する IT 管理方針を適用し検証するための情報源として使用できます。IT 管理ツールは、インストールされている製品に関する情報を収集し、CPE 名を使って製品を識別し、この標準化された情報を使って、資産に関する完全または部分的に自動化された判断を行うのに役立てることができます。
CPE consists of several modular specifications. Combinations of the specifications work together in layers to perform various functions. One of these specifications, CPE Applicability Language, defines a standardized way to describe IT platforms by forming complex logical expressions out of individual CPE names and references to checks. For example, CPE Applicability Language could combine the CPE name for an operating system (such as Microsoft Windows XP), the CPE name for an application running on that operating system (such as Microsoft Office 2007), and a reference to a check for a particular value of a certain configuration setting (such as the wireless network card being enabled in the operating system). These logical expressions are called applicability statements, because they are used to designate which platforms particular guidance, policies, etc. apply to. Applicability statements can be used by tools to determine whether a target system is an instance of a particular platform.
CPE は、いくつかのモジュール式の仕様で構成されています。これらの仕様の組み合わせは、層をなして連携し、さまざまな機能を実行します。これらの仕様の 1 つである CPE 適用性言語は、個々の CPE 名とチェックへの参照から複雑な論理式を作ることによって、IT プラットフォームを記述する標準化された方法を定義します。たとえば、CPE 適用性言語では、オペレーティングシステムの CPE 名(Microsoft Windows XP など)、そのオペレーティングシステム上で動作するアプリケーションの CPE 名(Microsoft Office 2007 など)、および特定の構成設定の特定の値(オペレーティングシステムでワイヤレスネットワークカードが有効になっていることなど)に対するチェックへの参照を組み合わせることができます。これらの論理式は、特定のガイダンスや方針などがどのプラットフォームに適用されるかを指定するために使用されるため、適用性ステートメントと呼ばれます。適用性ステートメントは、対象システムが特定のプラットフォームのインスタンスであるかどうかを判定するために、ツールによって使用できます。
The CPE names used by the CPE Applicability Language specification are bound forms of well-formed CPE names (WFNs), which are the abstract logical constructions for CPE names [CPE23-N:5.1]. The basic building block of the CPE Applicability Language specification is referred to as the logical test. This is a logical conjunction (AND) or disjunction (OR) of one or more CPE names and/or references to checks. Individual logical tests can also be negated (inverted). Nested logical tests allow the user to express a platform as any logical combination of individual CPE names and/or references to checks.
CPE 適用性言語仕様で使用される CPE 名は、CPE 名の抽象的な論理構成体である整形式 CPE 名(WFN)[CPE23-N:5.1] のバウンド形式です。CPE 適用性言語仕様の基本的な構成要素は、論理テストと呼ばれます。これは、1 つ以上の CPE 名やチェックへの参照の論理積(AND)または論理和(OR)です。個々の論理テストを否定(反転)することもできます。入れ子にした論理テストにより、ユーザーは、個々の CPE 名やチェックへの参照の任意の論理的な組み合わせとして、プラットフォームを表現できます。
Note that previous versions of CPE referred to the Applicability Language specification as simply the Language specification.
なお、CPE の以前のバージョンでは、適用性言語仕様を単に言語仕様と呼んでいました。
1.1 Purpose and Scope
1.1 目的と適用範囲
This report defines the specification for CPE Applicability Language version 2.3. The report also defines and explains the requirements that producers of CPE Applicability Language-supporting implementations, such as software and services, and CPE Applicability Language content must meet to claim conformance with the CPE Applicability Language version 2.3 specification.
本報告書は、CPE 適用性言語バージョン 2.3 の仕様を定義します。また、本報告書は、ソフトウェアやサービスなど、CPE 適用性言語をサポートする実装の提供者と、CPE 適用性言語のコンテンツが、CPE 適用性言語バージョン 2.3 仕様への適合を主張するために満たさなければならない要件を定義し、説明します。
This report only applies to version 2.3 of CPE Applicability Language. All other versions are out of the scope of this report, as are all CPE specifications other than CPE Applicability Language.
本報告書は、CPE 適用性言語のバージョン 2.3 にのみ適用されます。他のすべてのバージョンは、CPE 適用性言語以外のすべての CPE 仕様と同様に、本報告書の範囲外です。
1.2 Audience
1.2 対象読者
This report is intended for two main audiences: the authors and editors of CPE Applicability Language content (applicability statements), and IT management tool developers. Readers of this report should already be familiar with CPE naming and name matching concepts and conventions, as specified in [CPE23-N] and [CPE23-M].
本報告書は、主に 2 つの読者を想定しています。CPE 適用性言語のコンテンツ(適用性ステートメント)の作成者および編集者と、IT 管理ツールの開発者です。本報告書の読者は、[CPE23-N] と [CPE23-M] で規定されている CPE の命名と名前照合の概念および規約に、すでに精通しているべきです。
1.3 Document Structure
1.3 文書の構成
The remainder of this report is organized into the following major sections:
本報告書の残りの部分は、次の主要な節で構成されています。
•Section 2 defines selected terms and abbreviations used within this specification.
•第 2 節は、本仕様内で使用される特定の用語と略語を定義します。
•Section 3 provides an overview of related specifications and standards.
•第 3 節は、関連する仕様と標準の概要を示します。
•Section 4 defines the high-level conformance rules for this specification.
•第 4 節は、本仕様の高水準の適合規則を定義します。
•Section 5 describes the core CPE Applicability Language data model.
•第 5 節は、CPE 適用性言語のコアとなるデータモデルを説明します。
•Section 6 provides CPE Applicability Language content requirements and recommendations.
•第 6 節は、CPE 適用性言語のコンテンツの要件と推奨事項を示します。
•Section 7 provides CPE Applicability Language processing requirements and recommendations.
•第 7 節は、CPE 適用性言語の処理の要件と推奨事項を示します。
•Section 8 provides pseudocode that implements concepts defined in other sections of the specification.
•第 8 節は、本仕様の他の節で定義された概念を実装する擬似コードを示します。
•Appendix A lists normative and informative references.
•付録 A は、規範的参考文献と参考情報としての参考文献を列挙します。
•Appendix B provides a change log that documents significant changes to major drafts of the specification.
•付録 B は、本仕様の主要なドラフトへの重要な変更を文書化した変更履歴を示します。
1.4 Document Conventions
1.4 文書の表記規則
The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in Request for Comment (RFC) 2119.1
本書中のキーワード「MUST」、「MUST NOT」、「REQUIRED」、「SHALL」、「SHALL NOT」、「SHOULD」、「SHOULD NOT」、「RECOMMENDED」、「MAY」、「OPTIONAL」は、Request for Comment(RFC)21191 に記載されているとおりに解釈されるものとします。
Text intended to represent computing system input, output, or algorithmic processing is presented in fixed-width Courier font.
コンピューティングシステムの入力、出力、アルゴリズム処理を表すことを意図したテキストは、固定幅の Courier フォントで表示されます。
Normative references are listed in Appendix A. These references use the citation convention of a square bracket notation containing an abbreviation of the overall reference citation, followed by a colon and subsection citation where applicable (e.g., [CPE23-N:7.2] is a citation for the CPE 2.3 Naming specification, Section 7.2).
規範的参考文献は付録 A に列挙されています。これらの参考文献は、参考文献全体の引用の略称を含む角括弧表記の後に、コロンと、該当する場合は小節の引用を続ける引用規約を使用します(たとえば、[CPE23-N:7.2] は、CPE 2.3 Naming 仕様の第 7.2 節の引用です)。
This specification adheres to all rules and conventions defined lower in the CPE stack of specifications. The CPE Naming Specification defines the concept of a well-formed CPE name (WFN) that is a logical representation of a CPE name [CPE23-N:5.1]. Wherever possible, this specification uses WFN representation of CPE names to limit the dependency on any particular CPE name binding.
本仕様は、CPE 仕様スタックの下位で定義されたすべての規則と規約に従います。CPE Naming Specification は、CPE 名の論理的な表現である整形式 CPE 名(WFN)の概念を定義しています [CPE23-N:5.1]。可能な限り、本仕様は、特定の CPE 名のバインディングへの依存を制限するため、CPE 名の WFN 表現を使用します。
This document uses an abstract pseudocode programming language to specify expected computational behavior. Pseudocode is intended to be straightforwardly readable and translatable into actual programming language statements. Note, however, that pseudocode specifications are not necessarily intended to illustrate efficient or optimized programming code; rather, their purpose is to clearly define the desired behavior, leaving it to implementers to choose the best language-specific design which respects that behavior. In some cases, particularly where standardized implementations exist for a given pseudocode function, we describe the function's behavior in prose.
本書は、期待される計算動作を規定するために、抽象的な擬似コード言語を使用します。擬似コードは、容易に読み取ることができ、実際のプログラミング言語の文に変換しやすいことを意図しています。ただし、擬似コードによる仕様は、必ずしも効率的または最適化されたプログラムコードを示すことを意図したものではありません。むしろ、その目的は望ましい動作を明確に定義し、その動作に従う最適な言語固有の設計の選択を実装者に委ねることです。場合によっては、特に、ある擬似コード関数に標準化された実装が存在する場合は、その関数の動作を文章で記述します。
When reading pseudocode the following should be kept in mind:
擬似コードを読む際には、次の点に留意すべきです。
•All pseudocode functions are pass by value, meaning that any changes applied to the supplied arguments within the scope of the function do not affect the values of the variables in the caller’s scope.
•すべての擬似コード関数は値渡しです。つまり、関数のスコープ内で、渡された引数に加えられた変更は、呼び出し元のスコープの変数の値に影響しません。
•In a few cases, the pseudocode functions reference (more or less) standard library functions, particularly to support string handling. In most cases semantically equivalent functions can be found in the GNU C library, cf. http://www.gnu.org/software/libc/manual/html_node/index.html#toc_String-and-Array-Utilities.
•いくつかの場合、擬似コード関数は、特に文字列処理を支援するために、(おおむね)標準のライブラリ関数を参照します。ほとんどの場合、意味的に等価な関数は、GNU C ライブラリに見つかります。参照: http://www.gnu.org/software/libc/manual/html_node/index.html#toc_String-and-Array-Utilities。
This document uses qualified names to refer to specific XML elements. A qualified name associates a named element with a namespace. The namespace identifies the XML model, and the XML schema is a definition and implementation of that model. A qualified name declares this schema to element association using the format ‘prefix:element-name’. The association of prefix to namespace is defined in the metadata of an XML document and varies from document to document. This document uses the conventional mappings listed below.
本書は、特定の XML 要素を参照するために、修飾名を使用します。修飾名は、名前を持つ要素を名前空間に関連づけます。名前空間は XML モデルを識別し、XML スキーマはそのモデルの定義と実装です。修飾名は、‘prefix:element-name’ という形式を使って、このスキーマと要素の関連づけを宣言します。プレフィックスと名前空間の関連づけは、XML 文書のメタデータで定義され、文書ごとに異なります。本書は、以下に示す慣例的なマッピングを使用します。
| Prefix | Namespace | Schema |
|---|---|---|
| cpe | http:/ | CPE Language 2.3 schema |
| xml | http:/ | Common XML attributes |
| xsd | http:/ | XML Schema |
| プレフィックス | 名前空間 | スキーマ |
|---|---|---|
| cpe | http:/ | CPE Language 2.3 スキーマ |
| xml | http:/ | 共通の XML 属性 |
| xsd | http:/ | XML スキーマ |
2. Definitions and Abbreviations
2. 定義と略語
This section defines selected terms and abbreviations used within the document. This section builds on the terms defined in the CPE Naming specification [CPE23-N] and the CPE Name Matching specification [CPE23-M], and does not repeat them here.
この節は、本書内で使用される選定した用語と略語を定義します。この節は、CPE Naming 仕様 [CPE23-N] と CPE Name Matching 仕様 [CPE23-M] で定義された用語を土台としており、それらをここでは繰り返しません。
2.1 Definitions
2.1 定義
Applicability Statement: A complex logical expression to describe an IT platform, formed out of individual CPE names and references to checks. Applicability statements are used to designate which platforms particular guidance, policies, etc. apply to.
Applicability Statement: 個々の CPE 名とチェックへの参照から構成される、IT プラットフォームを記述するための複雑な論理式。適用性ステートメントは、特定のガイダンスや方針などがどのプラットフォームに適用されるかを指定するために使用されます。
Check Fact Reference: An expression that refers to a check (e.g., OVAL check, OCIL check).
Check Fact Reference: チェック(OVAL チェック、OCIL チェックなど)を参照する式。
Fact Reference: An expression that refers to a bound CPE name.
Fact Reference: バウンド CPE 名を参照する式。
Logical Test: An expression comprised of logical operators and one or more expressions to be evaluated. The individual expressions within a logical test may be fact references, check fact references, and/or other logical tests.
Logical Test: 論理演算子と、評価される 1 つ以上の式で構成される式。論理テスト内の個々の式は、fact reference、check fact reference、または他の論理テストのいずれでもかまいません。
Platform: In the context of the CPE Applicability Language specification only, a logical structure combining one or more bound CPE names through logical operators.
Platform: CPE 適用性言語仕様の文脈に限り、1 つ以上のバウンド CPE 名を論理演算子で組み合わせた論理構造。
2.2 Abbreviations
2.2 略語
| CPE | Common Platform Enumeration |
| IR | Interagency Report |
| IT | Information Technology |
| ITL | Information Technology Laboratory |
| NIST | National Institute of Standards and Technology |
| OCIL | Open Checklist Interactive Language |
| OVAL | Open Vulnerability and Assessment Language |
| RFC | Request for Comment |
| URI | Uniform Resource Identifier |
| WFN | Well-Formed CPE Name |
| XML | Extensible Markup Language |
| CPE | Common Platform Enumeration |
| IR | 機関間報告書(Interagency Report) |
| IT | 情報技術(Information Technology) |
| ITL | 情報技術研究所(Information Technology Laboratory) |
| NIST | 米国国立標準技術研究所(National Institute of Standards and Technology) |
| OCIL | Open Checklist Interactive Language |
| OVAL | Open Vulnerability and Assessment Language |
| RFC | Request for Comment |
| URI | Uniform Resource Identifier |
| WFN | 整形式 CPE 名(Well-Formed CPE Name) |
| XML | Extensible Markup Language |
3. Relationship to Existing Specifications and Standards
3. 既存の仕様および標準との関係
This section explains the relationships between this specification and related specifications or standards.
この節は、本仕様と、関連する仕様または標準との関係を説明します。
3.1 Other CPE Version 2.3 Specifications
3.1 その他の CPE バージョン 2.3 仕様
CPE version 2.3 was constructed using a modular, stack-based approach, with each major component defined in a separate specification. Functional capabilities are built by layering these modular specifications. This architecture opens opportunities for innovation, as novel capabilities can be defined by combining only the needed specifications, and the impacts of change can be better compartmentalized and managed.
CPE バージョン 2.3 は、モジュール式のスタックベースの方法で構築されており、各主要コンポーネントが個別の仕様で定義されています。機能的な能力は、これらのモジュール式の仕様を層状に重ねることで構築されます。このアーキテクチャは、必要な仕様だけを組み合わせて新しい能力を定義でき、変更の影響をより適切に区画化して管理できるため、イノベーションの機会を開きます。
The CPE Applicability Language version 2.3 specification builds upon the CPE Naming version 2.3 [CPE23-N] and CPE Name Matching version 2.3 [CPE23-M] specifications.
CPE 適用性言語バージョン 2.3 仕様は、CPE Naming バージョン 2.3 [CPE23-N] 仕様と CPE Name Matching バージョン 2.3 [CPE23-M] 仕様を土台としています。
3.2 CPE Version 2.2
3.2 CPE バージョン 2.2
The CPE version 2.3 specifications, including this specification, collectively replace [CPE22]. CPE version 2.3 is intended to provide all the capabilities made available by [CPE22] while adding new features suggested by the CPE user community.
本仕様を含む CPE バージョン 2.3 の仕様は、全体として [CPE22] を置き換えます。CPE バージョン 2.3 は、[CPE22] が提供するすべての能力を提供しつつ、CPE ユーザーコミュニティから提案された新しい機能を追加することを意図しています。
The primary difference between CPE Applicability Language versions 2.2 and 2.3 is the updated namePattern type in the version 2.3 schema, which allows for both formatted string and URI bindings of a WFN. Also, version 2.2 was called the CPE Language, not the CPE Applicability Language.
CPE 適用性言語のバージョン 2.2 と 2.3 の主な違いは、バージョン 2.3 のスキーマで更新された namePattern 型で、これにより WFN の書式化文字列バインディングと URI バインディングの両方が可能になります。また、バージョン 2.2 は、CPE 適用性言語ではなく、CPE Language と呼ばれていました。
4. Conformance
4. 適合性
Products and organizations may want to claim conformance with this specification for a variety of reasons. For example, vulnerability researchers may want to assert that they provide vulnerability applicability statements in the form of CPE Applicability Language statements. In relation to this, implementers may want to assert that their products have the ability to process applicability statements written using the CPE Applicability Language.
製品や組織は、さまざまな理由で、本仕様への適合を主張したいと考える場合があります。たとえば、脆弱性の研究者は、CPE 適用性言語のステートメントの形で脆弱性の適用性ステートメントを提供していると主張したい場合があります。これに関連して、実装者は、自らの製品が CPE 適用性言語を使って書かれた適用性ステートメントを処理する能力を持つと主張したい場合があります。
This section provides the high-level requirements that a product or organization must meet if they are seeking conformance with this specification. The majority of the requirements listed in this section reference other sections in this document that fully define the high-level requirement.
この節は、製品または組織が本仕様への適合を求める場合に満たさなければならない、高水準の要件を示します。この節に列挙された要件の大半は、その高水準の要件を完全に定義している、本書の他の節を参照しています。
4.1 Product Conformance
4.1 製品の適合性
All products claiming conformance with this specification MUST adhere to the following requirements:
本仕様への適合を主張するすべての製品は、次の要件に従わなければなりません(MUST)。
1.If a product is reading valid CPE 2.3 Applicability Language content, then the product MUST process the content and interpret it according to the semantics of the data model defined in Section 5 and the additional requirements detailed in Section 7.
1.製品が有効な CPE 2.3 適用性言語のコンテンツを読み取る場合、製品は、そのコンテンツを処理し、第 5 節で定義されたデータモデルのセマンティクスと第 7 節で詳述された追加の要件に従って解釈しなければなりません(MUST)。
2.If the product is generating content containing CPE Language constructs, then the product MUST output the content in the form of XML instance data that validates against the CPE Applicability Language version 2.3 schema, conforms to the semantics of the CPE Applicability Language data model defined in Section 5, and conforms to the CPE name requirements defined in [CPE23-N].
2.製品が CPE Language の構成要素を含むコンテンツを生成する場合、製品は、CPE 適用性言語バージョン 2.3 スキーマに適合し、第 5 節で定義された CPE 適用性言語データモデルのセマンティクスに従い、[CPE23-N] で定義された CPE 名の要件に適合する XML インスタンスデータの形式で、そのコンテンツを出力しなければなりません(MUST)。
3.The product MUST make an explicit claim of conformance to this specification in any documentation provided to end users.
3.製品は、エンドユーザーに提供するあらゆる文書で、本仕様への適合を明示的に主張しなければなりません(MUST)。
4.2 Organization Conformance
4.2 組織の適合性
Organizations creating or maintaining CPE 2.3 Applicability Language documents that claim conformance with this specification SHALL follow these requirements:
本仕様への適合を主張する CPE 2.3 適用性言語文書を作成または保守する組織は、次の要件に従わなければなりません(SHALL)。
1.Adhere to the official CPE Applicability Language schema. Ensure that the CPE Applicability Language documents validate against the CPE Applicability Language version 2.3 schema and that the content conforms to the semantics of the CPE Applicability Language data model as defined in Section 5.
1.公式の CPE 適用性言語スキーマに従ってください。CPE 適用性言語文書が CPE 適用性言語バージョン 2.3 スキーマに適合し、コンテンツが第 5 節で定義された CPE 適用性言語データモデルのセマンティクスに適合していることを確認してください。
2.Adhere to the syntax, structural, and other CPE Applicability Language document development requirements defined in Section 6.
2.第 6 節で定義された、CPE 適用性言語文書の開発における構文、構造、その他の要件に従ってください。
3.Adhere to the requirements for CPE names (WFNs and bound forms) as defined in [CPE23-N].
3.[CPE23-N] で定義された CPE 名(WFN とバウンド形式)の要件に従ってください。
5. Data Model Overview
5. データモデルの概要
This section provides an overview of the data model that all CPE Applicability Language implementations MUST support. The data model does not prescribe a specific binding or implementation for itself. It merely describes the data that is required to support common CPE Applicability Language use cases. This section uses the term “element” to identify the classes within the data model, and the term “property” to identify any properties of a class. This section only defines selected aspects of the data model. The CPE Applicability Language XML schema, which is the authoritative XML binding definition, can be found at http://scap.nist.gov/schema/cpe/2.3/cpe-language_2.3.xsd. The tables below use the prefix “cpe” to refer to this schema.
この節は、すべての CPE 適用性言語の実装がサポートしなければならない(MUST)データモデルの概要を示します。このデータモデルは、それ自体に特定のバインディングや実装を規定しません。一般的な CPE 適用性言語のユースケースをサポートするために必要なデータを記述するだけです。この節は、データモデル内のクラスを識別するために「要素」という用語を、クラスの任意のプロパティを識別するために「プロパティ」という用語を使用します。この節は、データモデルの選定した側面のみを定義します。権威ある XML バインディング定義である CPE 適用性言語の XML スキーマは、http://scap.nist.gov/schema/cpe/2.3/cpe-language_2.3.xsd にあります。以下の表は、このスキーマを参照するためにプレフィックス「cpe」を使用します。
5.1 The <cpe:platform-specification> Element
5.1 <cpe:platform-specification> 要素
The <cpe:platform-specification> element is the root element of a CPE Applicability Language XML document and therefore acts as a container for child platform definitions. The table below describes the platform-specification element’s properties.
<cpe:platform-specification> 要素は、CPE 適用性言語 XML 文書のルート要素であり、したがって、子のプラットフォーム定義のコンテナーとして機能します。以下の表は、platform-specification 要素のプロパティを説明します。
| Element or Attribute | Type | Count | Description |
|---|---|---|---|
| platform (element) | cpe:PlatformType | 1-n | The description or qualifications of a particular IT platform type. |
| 要素または属性 | 型 | 個数 | 説明 |
|---|---|---|---|
| platform (要素) | cpe:PlatformType | 1-n | 特定の IT プラットフォームの種類の説明または該当条件。 |
5.2 The <cpe:platform> Element
5.2 <cpe:platform> 要素
The table below describes the <cpe:platform> element’s properties.
以下の表は、<cpe:platform> 要素のプロパティを説明します。
| Element or Attribute | Type | Count | Description |
|---|---|---|---|
| id (attribute) | xsd:anyURI | 1 | A locally unique name for the platform. There is no defined format for this id; however, it MUST be unique within the containing CPE Applicability Language document. |
| title (element) | cpe:TextType | 0-n | A human-readable title for a platform. To support uses intended for multiple languages, the <cpe:title> element supports the @xml:lang attribute. At most one <cpe:title> element MAY appear for each language. |
| remark (element) | cpe:TextType | 0-n | An additional description. To support uses intended for multiple languages, the <cpe:remark> element supports the @xml:lang attribute. There MAY be multiple <cpe:remark> elements for a single language. |
| logical-test (element) | cpe:LogicalTestType | 1 | Definition of test using logical operators (AND, OR, negate). |
| 要素または属性 | 型 | 個数 | 説明 |
|---|---|---|---|
| id (属性) | xsd:anyURI | 1 | プラットフォームのローカルで一意な名前。この id には定義された形式はありませんが、それを含む CPE 適用性言語文書内で一意でなければなりません(MUST)。 |
| title (要素) | cpe:TextType | 0-n | プラットフォームの人間が読めるタイトル。複数の言語を意図した用途をサポートするため、<cpe:title> 要素は @xml:lang 属性をサポートします。<cpe:title> 要素は、各言語につき最大 1 つまで出現してもよいです(MAY)。 |
| remark (要素) | cpe:TextType | 0-n | 追加の説明。複数の言語を意図した用途をサポートするため、<cpe:remark> 要素は @xml:lang 属性をサポートします。1 つの言語に対して、複数の <cpe:remark> 要素があってもよいです(MAY)。 |
| logical-test (要素) | cpe:LogicalTestType | 1 | 論理演算子(AND、OR、否定)を使用したテストの定義。 |
5.3 The <cpe:logical-test> Element
5.3 <cpe:logical-test> 要素
The table below describes the <cpe:logical-test> element’s properties.
以下の表は、<cpe:logical-test> 要素のプロパティを説明します。
| Element or Attribute | Type | Count | Description |
|---|---|---|---|
| operator (attribute) | cpe:operatorEnumeration | 1 | The operator applied to the results of evaluating the <cpe:fact-ref>, <cpe:check-fact-ref>, and <cpe:logical-test> elements. The permitted operators are “AND” and “OR”. |
| negate (attribute) | xsd:boolean | 1 | Whether the result of applying the operator should be negated. Possible values are “TRUE” and “FALSE”. Ignored if the result of applying the operator is “ERROR”. |
| logical-test (element) | cpe:LogicalTestType | 0-n | Definition of complex logical test using AND, OR, and/or negate operators. A <cpe:logical-test> element evaluates to TRUE, FALSE, or ERROR. |
| fact-ref (element) | cpe:CPEFactRefType | 0-n | A reference to a bound form of a WFN; the reference always evaluates to TRUE or FALSE. The bindings contained within a <cpe:fact-ref> are meant to describe possible sets of products and are not meant to identify a unique product class.The <cpe:fact-ref> element has a REQUIRED @name attribute of type cpe:namePattern (defines the format for acceptable CPE names) and an OPTIONAL @description attribute of type xsd:normalizedString (contains a human-readable description of what the <cpe:fact-ref> checks). |
| check-fact-ref (element) | cpe:CheckFactRefType | 0-n | A reference to a check that evaluates to TRUE, FALSE, or ERROR. Examples of types of checks are OVAL and OCIL checks. |
| 要素または属性 | 型 | 個数 | 説明 |
|---|---|---|---|
| operator (属性) | cpe:operatorEnumeration | 1 | <cpe:fact-ref>、<cpe:check-fact-ref>、<cpe:logical-test> 要素を評価した結果に適用される演算子。許可される演算子は「AND」と「OR」です。 |
| negate (属性) | xsd:boolean | 1 | 演算子を適用した結果を否定するかどうか。取りうる値は「TRUE」と「FALSE」です。演算子を適用した結果が「ERROR」の場合は無視されます。 |
| logical-test (要素) | cpe:LogicalTestType | 0-n | AND、OR、および/<cpe:logical-test> 要素は、TRUE、FALSE、または ERROR に評価されます。 |
| fact-ref (要素) | cpe:CPEFactRefType | 0-n | WFN のバウンド形式への参照。この参照は常に TRUE または FALSE に評価されます。<cpe:fact-ref> に含まれるバインディングは、製品の可能な集合を記述することを意図したものであり、一意の製品クラスを識別することを意図したものではありません。<cpe:fact-ref> 要素には、型が cpe:namePattern(許容される CPE 名の形式を定義)の必須(REQUIRED)の @name 属性と、型が xsd:normalizedString(<cpe:fact-ref> が何をチェックするかについての人間が読める説明を含む)のオプション(OPTIONAL)の @description 属性があります。 |
| check-fact-ref (要素) | cpe:CheckFactRefType | 0-n | TRUE、FALSE、または ERROR に評価されるチェックへの参照。チェックの種類の例には、OVAL チェックと OCIL チェックがあります。 |
A <cpe:logical-test> element can be nested within another <cpe:logical-test> element.
<cpe:logical-test> 要素は、別の <cpe:logical-test> 要素の中に入れ子にできます。
Although <cpe:fact-ref>, <cpe:check-fact-ref>, and <cpe:logical-test> MAY be omitted from the body of a <cpe:logical-test> element, at least one instance of one of them MUST appear as a property of each <cpe:logical-test> element.
<cpe:fact-ref>、<cpe:check-fact-ref>、<cpe:logical-test> は、<cpe:logical-test> 要素の本体から省略してもよいですが(MAY)、各 <cpe:logical-test> 要素のプロパティとして、これらのいずれか 1 つのインスタンスが少なくとも 1 つ現れなければなりません(MUST)。
5.4 The <cpe:check-fact-ref> Element
5.4 <cpe:check-fact-ref> 要素
The table below describes the <cpe:check-fact-ref> element’s properties.
以下の表は、<cpe:check-fact-ref> 要素のプロパティを説明します。
| Element or Attribute | Type | Count | Description |
|---|---|---|---|
| description (attribute) | xsd:normalizedString | 0-1 | A human-readable description of what the <cpe:check-fact-ref> checks. |
| system (attribute) | xsd:anyURI | 1 | The system identifier for the check system, such as “http:/ |
| href (attribute) | xsd:anyURI | 1 | The location of the check content, such as the OVAL or OCIL document holding the desired check. |
| id-ref (attribute) | xsd:token | 1 | The ID for the check to be evaluated, such as a specific OVAL definition ID or an OCIL questionnaire ID. |
| 要素または属性 | 型 | 個数 | 説明 |
|---|---|---|---|
| description (属性) | xsd:normalizedString | 0-1 | <cpe:check-fact-ref> が何をチェックするかについての、人間が読める説明。 |
| system (属性) | xsd:anyURI | 1 | 「http:/ |
| href (属性) | xsd:anyURI | 1 | 目的のチェックを保持する OVAL 文書や OCIL 文書など、チェックコンテンツの場所。 |
| id-ref (属性) | xsd:token | 1 | 特定の OVAL 定義 ID や OCIL 質問票 ID など、評価するチェックの ID。 |
6. Content Design Requirements and Recommendations
6. コンテンツ設計の要件と推奨事項
This section defines content design requirements, including syntax and structural requirements, that an organization or product MUST follow to create and maintain a well-formed CPE Applicability Language version 2.3 document. This section also provides recommendations for CPE Applicability Language content. The requirements and recommendations presented in this section supplement the data model defined in Section 5.
この節は、組織または製品が、整形式の CPE 適用性言語バージョン 2.3 文書を作成し保守するために従わなければならない(MUST)、構文と構造の要件を含むコンテンツ設計の要件を定義します。この節はまた、CPE 適用性言語のコンテンツに関する推奨事項も示します。この節で示す要件と推奨事項は、第 5 節で定義されたデータモデルを補足します。
6.1 CPE Applicability Language Document Contents
6.1 CPE 適用性言語文書の内容
A CPE Applicability Language document instance SHALL hold exactly one <cpe:platform-specification> element. The <cpe:platform-specification> element SHALL be the root XML element of a CPE Applicability Language document.
CPE 適用性言語文書のインスタンスは、<cpe:platform-specification> 要素をちょうど 1 つ保持しなければなりません(SHALL)。<cpe:platform-specification> 要素は、CPE 適用性言語文書のルート XML 要素でなければなりません(SHALL)。
Each CPE Applicability Language document SHALL validate against the CPE Applicability Language schema. CPE Applicability Language elements SHALL belong to the namespace “http://cpe.mitre.org/language/2.0”.
各 CPE 適用性言語文書は、CPE 適用性言語スキーマに対して検証できなければなりません(SHALL)。CPE 適用性言語の要素は、名前空間「http://cpe.mitre.org/language/2.0」に属さなければなりません(SHALL)。
6.2 The platform element
6.2 platform 要素
Each <cpe:platform> element SHALL have an identifier, as expressed using the @id attribute, that is unique within the CPE Applicability Language document and also provides a means to uniquely reference the platform from other models besides CPE. Each <cpe:platform> element SHALL be referenced through its identifier.
各 <cpe:platform> 要素は、@id 属性を使って表現される識別子を持たなければならず(SHALL)、この識別子は、CPE 適用性言語文書内で一意であり、かつ CPE 以外の他のモデルからそのプラットフォームを一意に参照する手段にもなります。各 <cpe:platform> 要素は、その識別子を通じて参照されなければなりません(SHALL)。
Each <cpe:platform> element SHALL have a single <cpe:logical-test> element defined directly within it. One or more additional <cpe:logical-test> elements MAY be nested within any <cpe:logical-test> element.
各 <cpe:platform> 要素は、その内部に直接定義された単一の <cpe:logical-test> 要素を持たなければなりません(SHALL)。任意の <cpe:logical-test> 要素の中に、1 つ以上の追加の <cpe:logical-test> 要素を入れ子にしてもよいです(MAY)。
The following is an example of the structure of a <cpe:platform> element:
以下は、<cpe:platform> 要素の構造の例です。
<cpe:platform id="789">
<cpe:title>
Microsoft Windows XP with Internet Explorer 7.x or 8.x
</cpe:title>
<cpe:logical-test operator="AND" negate="FALSE">
<cpe:fact-ref
name="cpe:2.3:o:microsoft:windows_xp:*:*:*:*:*:*:*:*"/>
<cpe:logical-test operator="OR" negate="FALSE">
<cpe:fact-ref
name="cpe:2.3:a:microsoft:internet_explorer:7.*:*:*:*:
*:*:*:*"/>
<cpe:fact-ref
name="cpe:2.3:a:microsoft:internet_explorer:8.*:*:*:*:
*:*:*:*"/>
</cpe:logical-test>
</cpe:logical-test>
</cpe:platform>
6.3 The logical-test element
6.3 logical-test 要素
A <cpe:logical-test> element MAY contain one or more <cpe:logical-test> elements, MAY contain one or more <cpe:fact-ref> elements, and MAY contain one or more <cpe:check-fact-ref> elements. Although <cpe:fact-ref>, <cpe:check-fact-ref>, or <cpe:logical-test> MAY be omitted from a <cpe:logical-test> element, at least one instance of one of them MUST appear within the body of each <cpe:logical-test> element.
<cpe:logical-test> 要素は、1 つ以上の <cpe:logical-test> 要素を含んでもよく(MAY)、1 つ以上の <cpe:fact-ref> 要素を含んでもよく(MAY)、1 つ以上の <cpe:check-fact-ref> 要素を含んでもよいです(MAY)。<cpe:fact-ref>、<cpe:check-fact-ref>、<cpe:logical-test> は、<cpe:logical-test> 要素から省略してもよいですが(MAY)、各 <cpe:logical-test> 要素の本体内に、これらのいずれか 1 つのインスタンスが少なくとも 1 つ現れなければなりません(MUST)。
A <cpe:logical-test> element SHALL have an @operator attribute. This attribute SHALL be set to either “AND” or “OR”. The designated operation is applied to all the values of the <cpe:fact-ref>, <cpe:check-fact-ref>, and <cpe:logical-test> elements within the <cpe:logical-test> element, resulting in a TRUE, FALSE, or ERROR value. More complex tests MAY be constructed by nesting <cpe:logical-test> elements and setting their @operator and @negate attributes appropriately.
<cpe:logical-test> 要素は、@operator 属性を持たなければなりません(SHALL)。この属性は、「AND」または「OR」のいずれかに設定しなければなりません(SHALL)。指定された演算は、<cpe:logical-test> 要素内のすべての <cpe:fact-ref>、<cpe:check-fact-ref>、<cpe:logical-test> 要素の値に適用され、TRUE、FALSE、または ERROR の値になります。<cpe:logical-test> 要素を入れ子にし、それらの @operator 属性と @negate 属性を適切に設定することで、より複雑なテストを構築してもよいです(MAY)。
A <cpe:logical-test> element SHALL have a @negate attribute. This attribute SHALL be set to either “TRUE” or “FALSE”. This attribute is ignored if the value of the <cpe:logical-test> element is set to “ERROR”. Otherwise, if set to “TRUE”, the value of the <cpe:logical-test> element is inverted, and if set to “FALSE”, the value of the <cpe:logical-test> element is unaffected.
<cpe:logical-test> 要素は、@negate 属性を持たなければなりません(SHALL)。この属性は、「TRUE」または「FALSE」のいずれかに設定しなければなりません(SHALL)。<cpe:logical-test> 要素の値が「ERROR」に設定されている場合、この属性は無視されます。それ以外の場合、「TRUE」に設定されていれば、<cpe:logical-test> 要素の値は反転され、「FALSE」に設定されていれば、<cpe:logical-test> 要素の値は影響を受けません。
The following example shows the <cpe:logical-test> element’s syntax and structure. In this example, first the two <cpe:fact-ref> elements will be evaluated. Next, an OR of their values will be done. The result will become the final value of the <cpe:logical-test> element, since the negate function is not enabled.
次の例は、<cpe:logical-test> 要素の構文と構造を示します。この例では、まず 2 つの <cpe:fact-ref> 要素が評価されます。次に、それらの値の OR が取られます。否定機能が有効になっていないため、その結果が <cpe:logical-test> 要素の最終的な値になります。
<cpe:logical-test operator="OR" negate="FALSE">
<cpe:fact-ref
name="cpe:2.3:a:microsoft:internet_explorer:7.*:*:*:*:*:*:*:*"/>
<cpe:fact-ref
name="cpe:2.3:a:microsoft:internet_explorer:8.*:*:*:*:*:*:*:*"/>
</cpe:logical-test>
The truth table in Section 7.3 defines how individual results are combined by a <cpe:logical-test> element into a final result.
第 7.3 節の真理値表は、個々の結果が <cpe:logical-test> 要素によってどのように組み合わされて最終的な結果になるかを定義します。
Implementations processing CPE Applicability Language content MAY optimize their performance by skipping elements that are not necessary. For example, in the example above, if the first <cpe:fact-ref> element evaluates to TRUE, then it is known that the <cpe:logical-test> element will evaluate to TRUE, even though the value of the second <cpe:fact-ref> element is not known. To take advantage of this efficiency, authors of CPE Applicability Language content MAY choose to plan the sequence of their <cpe:fact-ref>, <cpe:check-fact-ref>, and <cpe:logical-test> elements, such as putting elements most likely to evaluate TRUE at the top of “OR” <cpe:logical-test> elements, and putting elements most likely to evaluate FALSE or ERROR at the top of “AND” <cpe:logical-test> elements.
CPE 適用性言語のコンテンツを処理する実装は、必要のない要素をスキップすることで、性能を最適化してもよいです(MAY)。たとえば、上の例で、最初の <cpe:fact-ref> 要素が TRUE に評価される場合、2 番目の <cpe:fact-ref> 要素の値が分かっていなくても、<cpe:logical-test> 要素が TRUE に評価されることが分かります。この効率を活用するため、CPE 適用性言語のコンテンツの作成者は、<cpe:fact-ref>、<cpe:check-fact-ref>、<cpe:logical-test> 要素の順序を計画することを選んでもよいです(MAY)。たとえば、「OR」の <cpe:logical-test> 要素では、最も TRUE に評価されやすい要素を先頭に置き、「AND」の <cpe:logical-test> 要素では、最も FALSE または ERROR に評価されやすい要素を先頭に置きます。
6.4 The fact-ref element
6.4 fact-ref 要素
A <cpe:fact-ref> element SHALL have a @name attribute that holds a bound form of a valid WFN, as defined in [CPE23-N:6]. This SHOULD be a formatted string binding, but it MAY be a URI binding (for backward compatibility).
<cpe:fact-ref> 要素は、[CPE23-N:6] で定義された有効な WFN のバウンド形式を保持する @name 属性を持たなければなりません(SHALL)。これは書式化文字列バインディングであるべきですが(SHOULD)、(後方互換性のために)URI バインディングでもよいです(MAY)。
6.5 The check-fact-ref element
6.5 check-fact-ref 要素
A <cpe:check-fact-ref> element SHALL have the following attributes:
<cpe:check-fact-ref> 要素は、次の属性を持たなければなりません(SHALL)。
•A @check-system attribute that holds the system identifier for the check system. Examples of commonly used check system identifiers are “http://oval.mitre.org/XMLSchema/oval-definitions-5” for the OVAL check system and “http://scap.nist.gov/schema/ocil/2” for the OCIL check system. The @check-system attribute MAY refer to any check system.
•チェックシステムのシステム識別子を保持する @check-system 属性。一般的に使用されるチェックシステム識別子の例は、OVAL チェックシステムの「http://oval.mitre.org/XMLSchema/oval-definitions-5」と、OCIL チェックシステムの「http://scap.nist.gov/schema/ocil/2」です。@check-system 属性は、任意のチェックシステムを参照してもよいです(MAY)。
•A @check-location attribute that holds the location of the check content, such as the OVAL or OCIL document that contains the desired check.
•目的のチェックを含む OVAL 文書や OCIL 文書など、チェックコンテンツの場所を保持する @check-location 属性。
•A @check-id attribute that holds the ID for the check to be evaluated, such as an OVAL definition ID or an OCIL questionnaire ID.
•OVAL 定義 ID や OCIL 質問票 ID など、評価するチェックの ID を保持する @check-id 属性。
When selecting a check for inclusion in CPE Applicability Language content, the author SHALL choose checks that only return results that can clearly be mapped to boolean values (TRUE and FALSE) and, optionally, error conditions (ERROR).
CPE 適用性言語のコンテンツに含めるチェックを選択する際、作成者は、ブール値(TRUE と FALSE)に、また任意でエラー状態(ERROR)に、明確にマッピングできる結果のみを返すチェックを選ばなければなりません(SHALL)。
7. Processing Requirements and Recommendations
7. 処理の要件と推奨事項
This section describes the processing requirements that a CPE Applicability Language implementation MUST follow to correctly process a CPE Applicability Language document.
この節は、CPE 適用性言語の実装が、CPE 適用性言語文書を正しく処理するために従わなければならない(MUST)処理の要件を説明します。
7.1 CPE Bound Name Conversions
7.1 CPE バウンド名の変換
The CPE 2.3 Applicability Language schema defines a cpe:namePattern type that supports two forms of bound names: formatted string bindings (defined in [CPE23-N:6.2]) and URI bindings (defined in [CPE23-N:6.1]). CPE 2.3 Applicability Language implementations MAY convert formatted string bindings into URI bindings and URI bindings into formatted string bindings. These conversions SHOULD comply with the appropriate function that implements this conversion process, either convert_fs_to_uri defined in [CPE23-N:7.1] or convert_uri_to_fs defined in [CPE23-N:7.1].
CPE 2.3 適用性言語スキーマは、2 つの形式のバウンド名、すなわち書式化文字列バインディング([CPE23-N:6.2] で定義)と URI バインディング([CPE23-N:6.1] で定義)をサポートする cpe:namePattern 型を定義しています。CPE 2.3 適用性言語の実装は、書式化文字列バインディングを URI バインディングに、URI バインディングを書式化文字列バインディングに変換してもよいです(MAY)。これらの変換は、この変換プロセスを実装する適切な関数、すなわち [CPE23-N:7.1] で定義された convert_fs_to_uri または [CPE23-N:7.1] で定義された convert_uri_to_fs に準拠すべきです(SHOULD)。
7.2 Graceful Error Handling
7.2 エラーの適切な処理
A CPE Language implementation SHOULD NOT suddenly terminate its execution due to an error condition. CPE Language implementations SHOULD handle all exceptional conditions gracefully by performing proper error and exception handling and producing an informative error message.
CPE Language の実装は、エラー状態のために実行を突然終了すべきではありません(SHOULD NOT)。CPE Language の実装は、適切なエラー処理と例外処理を行い、有益なエラーメッセージを生成することで、すべての例外的な状態を適切に処理すべきです(SHOULD)。
7.3 Evaluating Elements
7.3 要素の評価
The following subsections discuss the evaluation process for <cpe:logical-test>, <cpe:fact-ref>, and <cpe:check-fact-ref> elements.
以下の小節は、<cpe:logical-test>、<cpe:fact-ref>、<cpe:check-fact-ref> 要素の評価プロセスを論じます。
7.3.1 Evaluating a logical-test Element
7.3.1 logical-test 要素の評価
The results of evaluating the individual <cpe:fact-ref>, <cpe:check-fact-ref>, and nested <cpe:logical-test> elements within a <cpe:logical-test> element are combined to produce the final value for the <cpe:logical-test> element. Table 1 provides a truth table that defines how the results SHALL be combined. A “+” sign in the table denotes the specified value and any larger value. So, for example, “1+” means any value of 1 or greater.
<cpe:logical-test> 要素内の個々の <cpe:fact-ref>、<cpe:check-fact-ref>、入れ子の <cpe:logical-test> 要素を評価した結果は、組み合わされて、<cpe:logical-test> 要素の最終的な値になります。表 1 は、結果をどのように組み合わせなければならない(SHALL)かを定義する真理値表を示します。表中の「+」記号は、指定された値とそれより大きい任意の値を表します。たとえば、「1+」は、1 以上の任意の値を意味します。
Table 1. Truth Table for Logical-Test Element
表 1. Logical-Test 要素の真理値表
| Operator | Number of Individual Results (logical-test, fact-ref, check-fact-ref) | Negate | Final Result | ||
|---|---|---|---|---|---|
| TRUE | FALSE | ERROR | |||
| AND | 1+ | 0 | 0 | FALSE | TRUE |
| 1+ | 0 | 0 | TRUE | FALSE | |
| 1+ | 0 | 1+ | TRUE or FALSE | ERROR | |
| 0+ | 1+ | 0+ | FALSE | FALSE | |
| 0+ | 1+ | 0+ | TRUE | TRUE | |
| OR | 1+ | 0+ | 0+ | FALSE | TRUE |
| 1+ | 0+ | 0+ | TRUE | FALSE | |
| 0 | 1+ | 0 | FALSE | FALSE | |
| 0 | 1+ | 0 | TRUE | TRUE | |
| 0 | 1+ | 1+ | TRUE or FALSE | ERROR | |
| 演算子 | 個々の結果の数(logical-test、fact-ref、check-fact-ref) | 否定 | 最終結果 | ||
|---|---|---|---|---|---|
| TRUE | FALSE | ERROR | |||
| AND | 1+ | 0 | 0 | FALSE | TRUE |
| 1+ | 0 | 0 | TRUE | FALSE | |
| 1+ | 0 | 1+ | TRUE または FALSE | ERROR | |
| 0+ | 1+ | 0+ | FALSE | FALSE | |
| 0+ | 1+ | 0+ | TRUE | TRUE | |
| OR | 1+ | 0+ | 0+ | FALSE | TRUE |
| 1+ | 0+ | 0+ | TRUE | FALSE | |
| 0 | 1+ | 0 | FALSE | FALSE | |
| 0 | 1+ | 0 | TRUE | TRUE | |
| 0 | 1+ | 1+ | TRUE または FALSE | ERROR | |
An implementation evaluating a <cpe:logical-test> element MAY skip evaluating one or more of its components if their results are not necessary—for example, if a <cpe:logical-test> element has an OR operator, then evaluation of the element’s components MAY stop as soon as any component is found to be TRUE, since the final result for the element is already known. In other words, processing MAY stop as soon as there is only one row in Table 1 left as a possibility.
<cpe:logical-test> 要素を評価する実装は、その構成要素の 1 つ以上について、結果が必要ない場合は、評価をスキップしてもよいです(MAY)。たとえば、<cpe:logical-test> 要素に OR 演算子がある場合、その要素の最終結果はすでに分かっているため、いずれかの構成要素が TRUE であると分かった時点で、要素の構成要素の評価を止めてもよいです(MAY)。言い換えると、表 1 で可能性として残る行が 1 行だけになった時点で、処理を止めてもよいです(MAY)。
An implementation processing a <cpe:logical-test> element MAY process individual components in any order; however, the implementation SHOULD process them in sequence to take advantage of sequencing choices made by content authors to help optimize evaluation performance.
<cpe:logical-test> 要素を処理する実装は、個々の構成要素を任意の順序で処理してもよいですが(MAY)、評価性能を最適化するためにコンテンツの作成者が行った順序の選択を活用するため、実装はそれらを順番に処理すべきです(SHOULD)。
7.3.2 Evaluating a fact-ref Element
7.3.2 fact-ref 要素の評価
For a <cpe:fact-ref> element, the bound name in its @name attribute SHALL be the source matched against the target list. The target list SHALL consist of one or more bound names for valid WFNs, each of type cpe:namePattern. An implementation MAY process the target names in any sequence. The implementation SHALL perform a CPE name match, as defined in [CPE23-M], of each target name against the source name until either a match is found or all target names have been processed. A match SHALL occur only when the source name’s relation with the target name is determined to be either EQUAL or SUPERSET [CPE23-M:6.2]. A match SHALL result in a TRUE value for the <cpe:fact-ref> element, otherwise the element SHALL be given a value of FALSE.
<cpe:fact-ref> 要素については、その @name 属性のバウンド名が、ターゲットリストと照合されるソースでなければなりません(SHALL)。ターゲットリストは、それぞれ cpe:namePattern 型の、有効な WFN のバウンド名 1 つ以上で構成されなければなりません(SHALL)。実装は、ターゲット名を任意の順序で処理してもよいです(MAY)。実装は、一致が見つかるか、すべてのターゲット名が処理されるまで、各ターゲット名をソース名に対して、[CPE23-M] で定義された CPE 名の照合を実行しなければなりません(SHALL)。一致は、ソース名とターゲット名の関係が EQUAL または SUPERSET のいずれかであると判定された場合にのみ成立しなければなりません(SHALL)[CPE23-M:6.2]。一致した場合は、<cpe:fact-ref> 要素の値が TRUE にならなければならず(SHALL)、そうでない場合、その要素には FALSE の値が与えられなければなりません(SHALL)。
7.3.3 Evaluating a check-fact-ref Element
7.3.3 check-fact-ref 要素の評価
A <cpe:check-fact-ref> element MAY use any check system that meets the basic requirements specified in Section 6.5. However, CPE Language implementations are not required to support all of these check systems. Implementations SHALL support the OVAL check system. Its use in content is indicated by the <cpe:check-fact-ref> element’s @check-system attribute being set to “http://oval.mitre.org/XMLSchema/oval-definitions-5”. Implementations MAY support additional check systems, such as OCIL.
<cpe:check-fact-ref> 要素は、第 6.5 節で規定された基本要件を満たす任意のチェックシステムを使用してもよいです(MAY)。ただし、CPE Language の実装は、これらすべてのチェックシステムをサポートする必要はありません。実装は、OVAL チェックシステムをサポートしなければなりません(SHALL)。コンテンツでの OVAL の使用は、<cpe:check-fact-ref> 要素の @check-system 属性が「http://oval.mitre.org/XMLSchema/oval-definitions-5」に設定されることで示されます。実装は、OCIL など、追加のチェックシステムをサポートしてもよいです(MAY)。
For all check systems that an implementation supports, the implementation MUST be capable of referencing the check using the attributes specified for the <cpe:check-fact-ref> element and handling the result. The implementation SHALL accept results that clearly map to TRUE and FALSE. The implementation SHALL accept error condition results, such as “error” or “not applicable”, and SHALL treat them as ERROR results. Also, if an implementation does not support a check system that the <cpe:check-fact-ref> element uses, if the specified check content is not accessible, or if any other condition occurs that prevents evaluation of the check, the implementation SHALL treat it as an ERROR result. If a result from the <cpe:check-fact-ref> element is required to calculate a result for its parent <cpe:logical-test> element, then evaluation of the parent element MAY cease.
実装がサポートするすべてのチェックシステムについて、実装は、<cpe:check-fact-ref> 要素に規定された属性を使ってチェックを参照し、結果を処理できなければなりません(MUST)。実装は、TRUE と FALSE に明確にマッピングされる結果を受け付けなければなりません(SHALL)。実装は、「error」や「not applicable」などのエラー状態の結果を受け付けなければならず(SHALL)、それらを ERROR の結果として扱わなければなりません(SHALL)。また、実装が <cpe:check-fact-ref> 要素の使用するチェックシステムをサポートしていない場合、指定されたチェックコンテンツにアクセスできない場合、またはチェックの評価を妨げるその他の状態が生じた場合、実装は、それを ERROR の結果として扱わなければなりません(SHALL)。<cpe:check-fact-ref> 要素の結果が、その親の <cpe:logical-test> 要素の結果を算出するために必要な場合、親要素の評価は終了してもよいです(MAY)。
8. CPE Applicability Language Pseudocode
8. CPE 適用性言語の擬似コード
This section specifies the required common applicability language capabilities in terms of an abstract pseudocode programming language. The input/output behavior of all functions defined in pseudocode should be considered normative. The pseudocode implementations themselves should be considered informative, as the algorithms are written for clarity and simplicity rather than for efficiency. Section 8.1 defines the core function for CPE applicability language statement matching, while Section 8.2 defines supporting functions.
この節は、必要な共通の適用性言語の能力を、抽象的な擬似コードのプログラミング言語で規定します。擬似コードで定義されたすべての関数の入出力の動作は、規範的とみなすべきです。擬似コードの実装自体は、アルゴリズムが効率よりも明確さと単純さを重視して書かれているため、参考情報とみなすべきです。第 8.1 節は、CPE 適用性言語ステートメントの照合のコア関数を定義し、第 8.2 節は、サポート関数を定義します。
8.1 Core Function
8.1 コア関数
The following pseudocode defines the required core CPE_App_Lang_Match function.
以下の擬似コードは、必要なコア関数 CPE_App_Lang_Match を定義します。
;; Begin CPE_App_Lang_Match function. Input argument E is an
;; expression in the CPE Applicability Language, represented as the
;; XML infoset for the platform element (see Section 5.2).
;; Input argument K is a set of known CPE names, represented as
;; CPE 2.3 formatted string bindings and/or URI bindings.
;; Returns the result of evaluating E (TRUE, FALSE, ERROR).
function CPE_App_Lang_Match(E, K)
if (element(E) = "platform") then
;; Parse through E’s elements and ignore all but logical-test.
foreach C in children(E) do
if (element(C) = "logical-test") then
;; Call the function again, but with logical-test as the
;; root element.
return CPE_App_Lang_Match(C, K).
end.
else if (element(E) = "fact-ref") then
;; fact-ref’s name attribute is a bound name,
;; so we unbind it to a WFN before passing it.
return Fact_Ref_Eval(unbind(attribute(E, "name")), K).
else if (element(E) = "check-fact-ref") then
return Check_Fact_Ref_Eval(E).
else if (element(E) = "logical-test") then
count := 0.
len := 0.
answer := FALSE.
foreach C in children(E) do
len := len + 1.
result := CPE_App_Lang_Match(C, K).
if (result = TRUE) then
count := count + 1.
else if (result = ERROR) then
answer := ERROR.
end.
end.
if ((attribute(E, "operator") = "AND") and (count = len)) then
answer := TRUE.
else
if ((attribute(E, "operator") = "OR") and (count > 0)) then
answer := TRUE.
if (attribute(E, "negate") = TRUE and answer != ERROR) then
answer := !answer.
return answer.
else
return FALSE.
endif.
end.
8.2 Support Functions
8.2 サポート関数
The following pseudocode defines the support functions needed for the core function in Section 8.1.
以下の擬似コードは、第 8.1 節のコア関数に必要なサポート関数を定義します。
;; Begin Fact_Ref_Eval function. Input argument factrefname is WFN.
;; Input argument target is a list of CPE bound names.
;; Returns TRUE if factrefname is a non-proper superset (true superset
;; or equal to) any of the names in target, otherwise FALSE.
function Fact_Ref_Eval(factrefname, target)
foreach N in target do
;; Need to convert each N from bound form to WFN.
if (CPE_SUPERSET(factrefname, unbind(N)))
return TRUE.
end.
return FALSE.
end.
;; Begin Check_Fact_Ref_Eval function. Input argument is the XML
;; infoset for the check_fact_ref element (see Section 5.4).
;; Returns the result (TRUE, FALSE, ERROR) of performing the specified
;; check, unless the check isn’t supported, in which case it returns
;; FALSE. ERROR is a catch-all for all results other than TRUE and
;; FALSE.
;;
function Check_Fact_Ref_Eval(checkfactref)
checksystemID := attribute(checkfactref, "check-system").
if (checksystemID = "http://oval.mitre.org/XMLSchema/oval-
definitions-5")
;; Perform an OVAL check. First attribute is the URI of an OVAL
;; definitions file. Second attribute is an OVAL definition ID.
return ovalcheck(attribute(checkfactref, "check-location"),
attribute(checkfactref, "check-id")).
if (checksystemID = “http://scap.nist.gov/schema/ocil/2”)
;; Perform an OCIL check. First attribute is the URI of an OCIL
;; questionnaire file. Second attribute is OCIL questionnaire ID.
return ocilcheck(attribute(checkfactref, "check-location"),
attribute(checkfactref, "check-id")).
;; can add additional check systems here, with each returning a
;; TRUE, FALSE, or ERROR value
return FALSE.
end.
;; Unbinds a bound form to a WFN.
function unbind(boundname)
if fs(boundname)
return(unbind_fs(boundname)).
else
return(unbind_URI(boundname)).
end.
;; Pseudocode for unbind_fs function is at [CPE23-N:6.2.3.2].
function unbind_fs(fs)
;; Unbinds a formatted string fs to a WFN.
;; Input is formatted string, output is WFN.
end.
;; Pseudocode for unbind_URI function is at [CPE23-N:6.1.3.2].
function unbind_URI(uri)
;; Unbinds a URI binding uri to a WFN.
;; Input is URI binding, output is WFN.
end.
;; Pseudocode for CPE_SUPERSET is at [CPE23-M:7.2].
function CPE_SUPERSET(source,target)
;; Returns TRUE if the set relation between source and target is
;; SUPERSET, otherwise FALSE. Input arguments are WFNs.
end.
;; Makes a structure for parsing a CPE Applicability Language
;; expression.
function children(langexpr)
;; Holds the XML elements of the expression so that they can be
;; parsed one at a time.
;; Input is CPE Applicability Language expression, represented
;; as the XML infoset for the platform element.
;; Output is the structure holding the expression elements.
end.
;; Checks the element type (platform, logical-test, etc.) of a
;; CPE Applicability Language expression element.
function element(langexprelement)
;; Input is one element of a CPE Applicability Language
;; expression, from the structure created by the children function.
;; Output is the type of that element, represented as a string.
end.
;; Returns the value of a particular attribute within a
;; CPE Applicability Language expression.
function attribute(langexpr, attribtype)
;; Input is a CPE Applicability Language expression and an
;; attribute type (operator, negate, etc.)
;; Output is a string representing the value of that attribute (for
;; example, the operator type could have a value of "AND" or "OR".
end.
Appendix A—References
付録 A—参考文献
The following documents are indispensable references for understanding the application of this specification.
以下の文書は、本仕様の適用を理解するために不可欠な参考文献です。
A.1 Normative References
A.1 規範的参考文献
[CPE22] Buttner, A. and N. Ziring, Common Platform Enumeration (CPE)—Specification, Version 2.2, March 11, 2009. See http://cpe.mitre.org/specification/archive/version2.2/cpe-specification_2.2.pdf.
[CPE22] Buttner, A. and N. Ziring, Common Platform Enumeration (CPE)—Specification, Version 2.2, March 11, 2009. 参照: http://cpe.mitre.org/specification/archive/version2.2/cpe-specification_2.2.pdf。
[CPE23-D] Cichonski, P., Waltermire, D., and Scarfone, K., NIST Interagency Report 7697, Common Platform Enumeration: Dictionary Specification Version 2.3, August 2011. See http://csrc.nist.gov/publications/PubsNISTIRs.html.
[CPE23-D] Cichonski, P., Waltermire, D., and Scarfone, K., NIST Interagency Report 7697, Common Platform Enumeration: Dictionary Specification Version 2.3, August 2011. 参照: http://csrc.nist.gov/publications/PubsNISTIRs.html。
[CPE23-M] Parmelee, M., Booth, H., Waltermire, D., and Scarfone, K., NIST Interagency Report 7696, Common Platform Enumeration: Name Matching Specification Version 2.3, August 2011. See http://csrc.nist.gov/publications/PubsNISTIRs.html.
[CPE23-M] Parmelee, M., Booth, H., Waltermire, D., and Scarfone, K., NIST Interagency Report 7696, Common Platform Enumeration: Name Matching Specification Version 2.3, August 2011. 参照: http://csrc.nist.gov/publications/PubsNISTIRs.html。
[CPE23-N] Cheikes, B., Waltermire, D., and Scarfone, K., NIST Interagency Report 7695, Common Platform Enumeration: Naming Specification Version 2.3, August 2011. See http://csrc.nist.gov/publications/PubsNISTIRs.html.
[CPE23-N] Cheikes, B., Waltermire, D., and Scarfone, K., NIST Interagency Report 7695, Common Platform Enumeration: Naming Specification Version 2.3, August 2011. 参照: http://csrc.nist.gov/publications/PubsNISTIRs.html。
[RFC2119] Bradner, S., Key words for use in RFCs to Indicate Requirement Levels, March 1997. See http://www.ietf.org/rfc/rfc2119.txt.
[RFC2119] Bradner, S., Key words for use in RFCs to Indicate Requirement Levels, March 1997. 参照: http://www.ietf.org/rfc/rfc2119.txt。
A.2 Informative References
A.2 参考情報の文献
[SP800-117] Quinn, S., Scarfone, K., Barrett, M., and Johnson, C., NIST Special Publication 800-117, Guide to Adopting and Using the Security Content Automation Protocol, July 2010. See http://csrc.nist.gov/publications/PubsSPs.html#800-117.
[SP800-117] Quinn, S., Scarfone, K., Barrett, M., and Johnson, C., NIST Special Publication 800-117, Guide to Adopting and Using the Security Content Automation Protocol, July 2010. 参照: http://csrc.nist.gov/publications/PubsSPs.html#800-117。
[SP800-126] Waltermire, D., Quinn, S., Scarfone, K., and Halbardier, A., NIST Special Publication 800-126 Revision 2, The Technical Specification for the Security Content Automation Protocol (SCAP): SCAP Version 1.2, July 2011. See http://csrc.nist.gov/publications/PubsSPs.html#800-126.
[SP800-126] Waltermire, D., Quinn, S., Scarfone, K., and Halbardier, A., NIST Special Publication 800-126 Revision 2, The Technical Specification for the Security Content Automation Protocol (SCAP): SCAP Version 1.2, July 2011. 参照: http://csrc.nist.gov/publications/PubsSPs.html#800-126。
Appendix B—Change Log
付録 B—変更履歴
Release 0 – 2 June 2011
リリース 0 – 2011 年 6 月 2 日
•Initial draft specification released for public comment.
•パブリックコメント用に、最初のドラフト仕様を公開。
Release 1 – 30 August 2011
リリース 1 – 2011 年 8 月 30 日
•Final release of CPE Applicability Language 2.3 specification.
•CPE 適用性言語 2.3 仕様の最終リリース。
•Made minor editorial changes.
•軽微な編集上の変更を実施。
•Added prefix/namespace/schema mapping table to Section 1; updated prefixes for consistency with corresponding XML schemas.
•プレフィックス/名前空間/スキーマのマッピング表を第 1 節に追加。対応する XML スキーマとの一貫性のため、プレフィックスを更新。