Specifies attributes of the text
Field | Type | Label | Description |
content_type | string | optional | Specifies the content type of the text. Defaults to text/plain if not specified. |
encoding | string | optional | Specifies the optional encoding the text is represented in |
value | string | SimpleContent value of element |
Field | Type | Label | Description |
spec_version | string | The version of the CycloneDX specification a BOM is written to (starting at version 1.3) | |
version | int32 | optional | The version allows component publishers/authors to make changes to existing BOMs to update various aspects of the document such as description or licenses. When a system is presented with multiple BOMs for the same component, the system should use the most recent version of the BOM. The default version is '1' and should be incremented for each version of the BOM that is published. Each version of a component should have a unique BOM and if no changes are made to the BOMs, then each BOM will have a version of '1'. |
serial_number | string | optional | Every BOM generated should have a unique serial number, even if the contents of the BOM being generated have not changed over time. The process or tool responsible for creating the BOM should create random UUID's for every BOM generated. |
metadata | Metadata | optional | Provides additional information about a BOM. |
components | Component | repeated | Provides the ability to document a list of components. |
services | Service | repeated | Provides the ability to document a list of external services. |
external_references | ExternalReference | repeated | Provides the ability to document external references related to the BOM or to the project the BOM describes. |
dependencies | Dependency | repeated | Provides the ability to document dependency relationships. |
compositions | Composition | repeated | Provides the ability to document aggregate completeness |
Field | Type | Label | Description |
uid | string | optional | A unique identifier of the commit. This may be version control specific. For example, Subversion uses revision numbers whereas git uses commit hashes. |
url | string | optional | The URL to the commit. This URL will typically point to a commit in a version control system. |
author | IdentifiableAction | optional | The author who created the changes in the commit |
committer | IdentifiableAction | optional | The person who committed or pushed the commit |
message | string | optional | The text description of the contents of the commit |
Field | Type | Label | Description |
type | Classification | Specifies the type of component. For software components, classify as application if no more specific appropriate classification is available or cannot be determined for the component. | |
mime_type | string | optional | The optional mime-type of the component. When used on file components, the mime-type can provide additional context about the kind of file being represented such as an image, font, or executable. Some library or framework components may also have an associated mime-type. |
bom_ref | string | optional | An optional identifier which can be used to reference the component elsewhere in the BOM. Uniqueness is enforced within all elements and children of the root-level bom element. |
supplier | OrganizationalEntity | optional | The organization that supplied the component. The supplier may often be the manufacture, but may also be a distributor or repackager. |
author | string | optional | The person(s) or organization(s) that authored the component |
publisher | string | optional | The person(s) or organization(s) that published the component |
group | string | optional | The grouping name or identifier. This will often be a shortened, single name of the company or project that produced the component, or the source package or domain name. Whitespace and special characters should be avoided. Examples include: apache, org.apache.commons, and apache.org. |
name | string | The name of the component. This will often be a shortened, single name of the component. Examples: commons-lang3 and jquery | |
version | string | The component version. The version should ideally comply with semantic versioning but is not enforced. | |
description | string | optional | Specifies a description for the component |
scope | Scope | optional | Specifies the scope of the component. If scope is not specified, 'runtime' scope should be assumed by the consumer of the BOM |
hashes | Hash | repeated | |
licenses | LicenseChoice | repeated | |
copyright | string | optional | An optional copyright notice informing users of the underlying claims to copyright ownership in a published work. |
cpe | string | optional | DEPRECATED - DO NOT USE. This will be removed in a future version. Specifies a well-formed CPE name. See https://nvd.nist.gov/products/cpe |
purl | string | optional | Specifies the package-url (PURL). The purl, if specified, must be valid and conform to the specification defined at: https://github.com/package-url/purl-spec |
swid | Swid | optional | Specifies metadata and content for ISO-IEC 19770-2 Software Identification (SWID) Tags. |
modified | bool | optional | DEPRECATED - DO NOT USE. This will be removed in a future version. Use the pedigree element instead to supply information on exactly how the component was modified. A boolean value indicating is the component has been modified from the original. A value of true indicates the component is a derivative of the original. A value of false indicates the component has not been modified from the original. |
pedigree | Pedigree | optional | Component pedigree is a way to document complex supply chain scenarios where components are created, distributed, modified, redistributed, combined with other components, etc. |
external_references | ExternalReference | repeated | Provides the ability to document external references related to the component or to the project the component describes. |
components | Component | repeated | Specifies optional sub-components. This is not a dependency tree. It provides a way to specify a hierarchical representation of component assemblies, similar to system -> subsystem -> parts assembly in physical supply chains. |
properties | Property | repeated | Specifies optional, custom, properties |
evidence | Evidence | repeated | Specifies optional license and copyright evidence |
Field | Type | Label | Description |
aggregate | Aggregate | Indicates the aggregate completeness | |
assemblies | string | repeated | The assemblies the aggregate completeness applies to |
dependencies | string | repeated | The dependencies the aggregate completeness applies to |
Specifies the data classification.
Field | Type | Label | Description |
flow | DataFlow | Specifies the flow direction of the data. | |
value | string | SimpleContent value of element |
Field | Type | Label | Description |
ref | string | References a component or service by the its bom-ref attribute | |
dependencies | Dependency | repeated |
Field | Type | Label | Description |
text | AttachedText | optional | Specifies the optional text of the diff |
url | string | optional | Specifies the URL to the diff |
Field | Type | Label | Description |
licenses | LicenseChoice | repeated | |
copyright | EvidenceCopyright | repeated |
Field | Type | Label | Description |
text | string | Copyright text |
Field | Type | Label | Description |
type | ExternalReferenceType | Specifies the type of external reference. There are built-in types to describe common references. If a type does not exist for the reference being referred to, use the "other" type. | |
url | string | The URL to the external reference | |
comment | string | optional | An optional comment describing the external reference |
hashes | Hash | repeated | Optional integrity hashes for the external resource content |
Specifies the file hash of the component
Field | Type | Label | Description |
alg | HashAlg | Specifies the algorithm used to create the hash | |
value | string | SimpleContent value of element |
Field | Type | Label | Description |
timestamp | google.protobuf.Timestamp | optional | The timestamp in which the action occurred |
name | string | optional | The name of the individual who performed the action |
string | optional | The email address of the individual who performed the action |
Field | Type | Label | Description |
type | IssueClassification | Specifies the type of issue | |
id | string | optional | The identifier of the issue assigned by the source of the issue |
name | string | optional | The name of the issue |
description | string | optional | A description of the issue |
source | Source | optional | |
references | string | repeated |
Field | Type | Label | Description |
id | string | A valid SPDX license ID | |
name | string | If SPDX does not define the license used, this field may be used to provide the license name | |
text | AttachedText | optional | Specifies the optional full text of the attachment |
url | string | optional | The URL to the attachment file. If the attachment is a license or BOM, an externalReference should also be specified for completeness. |
Field | Type | Label | Description |
license | License | ||
expression | string |
Field | Type | Label | Description |
timestamp | google.protobuf.Timestamp | optional | The date and time (timestamp) when the document was created. |
tools | Tool | repeated | The tool(s) used in the creation of the BOM. |
authors | OrganizationalContact | repeated | The person(s) who created the BOM. Authors are common in BOMs created through manual processes. BOMs created through automated means may not have authors. |
component | Component | optional | The component that the BOM describes. |
manufacture | OrganizationalEntity | optional | The organization that manufactured the component that the BOM describes. |
supplier | OrganizationalEntity | optional | The organization that supplied the component that the BOM describes. The supplier may often be the manufacture, but may also be a distributor or repackager. |
licenses | LicenseChoice | optional | The license information for the BOM document |
properties | Property | repeated | Specifies optional, custom, properties |
Field | Type | Label | Description |
name | string | optional | The name of the contact |
string | optional | The email address of the contact. | |
phone | string | optional | The phone number of the contact. |
Field | Type | Label | Description |
name | string | optional | The name of the organization |
url | string | repeated | The URL of the organization. Multiple URLs are allowed. |
contact | OrganizationalContact | repeated | A contact person at the organization. Multiple contacts are allowed. |
Field | Type | Label | Description |
type | PatchClassification | Specifies the purpose for the patch including the resolution of defects, security issues, or new behavior or functionality | |
diff | Diff | optional | The patch file (or diff) that show changes. Refer to https://en.wikipedia.org/wiki/Diff |
resolves | Issue | repeated |
Component pedigree is a way to document complex supply chain scenarios where components are created, distributed, modified, redistributed, combined with other components, etc. Pedigree supports viewing this complex chain from the beginning, the end, or anywhere in the middle. It also provides a way to document variants where the exact relation may not be known.
Field | Type | Label | Description |
ancestors | Component | repeated | Describes zero or more components in which a component is derived from. This is commonly used to describe forks from existing projects where the forked version contains a ancestor node containing the original component it was forked from. For example, Component A is the original component. Component B is the component being used and documented in the BOM. However, Component B contains a pedigree node with a single ancestor documenting Component A - the original component from which Component B is derived from. |
descendants | Component | repeated | Descendants are the exact opposite of ancestors. This provides a way to document all forks (and their forks) of an original or root component. |
variants | Component | repeated | Variants describe relations where the relationship between the components are not known. For example, if Component A contains nearly identical code to Component B. They are both related, but it is unclear if one is derived from the other, or if they share a common ancestor. |
commits | Commit | repeated | A list of zero or more commits which provide a trail describing how the component deviates from an ancestor, descendant, or variant. |
patches | Patch | repeated | A list of zero or more patches describing how the component deviates from an ancestor, descendant, or variant. Patches may be complimentary to commits or may be used in place of commits. |
notes | string | optional | Notes, observations, and other non-structured commentary describing the components pedigree. |
Specifies a property
Field | Type | Label | Description |
name | string | ||
value | string | optional |
Field | Type | Label | Description |
bom_ref | string | optional | An optional identifier which can be used to reference the service elsewhere in the BOM. Uniqueness is enforced within all elements and children of the root-level bom element. |
provider | OrganizationalEntity | optional | The organization that provides the service. |
group | string | optional | The grouping name, namespace, or identifier. This will often be a shortened, single name of the company or project that produced the service or domain name. Whitespace and special characters should be avoided. |
name | string | The name of the service. This will often be a shortened, single name of the service. | |
version | string | optional | The service version. |
description | string | optional | Specifies a description for the service. |
endpoints | string | repeated | |
authenticated | bool | optional | A boolean value indicating if the service requires authentication. A value of true indicates the service requires authentication prior to use. A value of false indicates the service does not require authentication. |
x_trust_boundary | bool | optional | A boolean value indicating if use of the service crosses a trust zone or boundary. A value of true indicates that by using the service, a trust boundary is crossed. A value of false indicates that by using the service, a trust boundary is not crossed. |
data | DataClassification | repeated | |
licenses | LicenseChoice | repeated | |
external_references | ExternalReference | repeated | Provides the ability to document external references related to the service. |
services | Service | repeated | Specifies optional sub-service. This is not a dependency tree. It provides a way to specify a hierarchical representation of service assemblies, similar to system -> subsystem -> parts assembly in physical supply chains. |
properties | Property | repeated | Specifies optional, custom, properties |
The source of the issue where it is documented.
Field | Type | Label | Description |
name | string | optional | The name of the source. For example "National Vulnerability Database", "NVD", and "Apache" |
url | string | optional | The url of the issue documentation as provided by the source |
Field | Type | Label | Description |
tag_id | string | Maps to the tagId of a SoftwareIdentity. | |
name | string | Maps to the name of a SoftwareIdentity. | |
version | string | optional | Maps to the version of a SoftwareIdentity. |
tag_version | int32 | optional | Maps to the tagVersion of a SoftwareIdentity. |
patch | bool | optional | Maps to the patch of a SoftwareIdentity. |
text | AttachedText | optional | Specifies the full content of the SWID tag. |
url | string | optional | The URL to the SWID file. |
Specifies a tool (manual or automated).
Field | Type | Label | Description |
vendor | string | optional | The vendor of the tool used to create the BOM. |
name | string | optional | The name of the tool used to create the BOM. |
version | string | optional | The version of the tool used to create the BOM. |
hashes | Hash | repeated |
Name | Number | Description |
AGGREGATE_NOT_SPECIFIED | 0 | Default, no statement about the aggregate completeness is being made |
AGGREGATE_COMPLETE | 1 | The aggregate composition is complete |
AGGREGATE_INCOMPLETE | 2 | The aggregate composition is incomplete |
AGGREGATE_INCOMPLETE_FIRST_PARTY_ONLY | 3 | The aggregate composition is incomplete for first party components, complete for third party components |
AGGREGATE_INCOMPLETE_THIRD_PARTY_ONLY | 4 | The aggregate composition is incomplete for third party components, complete for first party components |
AGGREGATE_UNKNOWN | 5 | The aggregate composition completeness is unknown |
Name | Number | Description |
CLASSIFICATION_NULL | 0 | |
CLASSIFICATION_APPLICATION | 1 | A software application. Refer to https://en.wikipedia.org/wiki/Application_software for information about applications. |
CLASSIFICATION_FRAMEWORK | 2 | A software framework. Refer to https://en.wikipedia.org/wiki/Software_framework for information on how frameworks vary slightly from libraries. |
CLASSIFICATION_LIBRARY | 3 | A software library. Refer to https://en.wikipedia.org/wiki/Library_(computing) for information about libraries. All third-party and open source reusable components will likely be a library. If the library also has key features of a framework, then it should be classified as a framework. If not, or is unknown, then specifying library is recommended. |
CLASSIFICATION_OPERATING_SYSTEM | 4 | A software operating system without regard to deployment model (i.e. installed on physical hardware, virtual machine, image, etc) Refer to https://en.wikipedia.org/wiki/Operating_system |
CLASSIFICATION_DEVICE | 5 | A hardware device such as a processor, or chip-set. A hardware device containing firmware should include a component for the physical hardware itself, and another component of type 'firmware' or 'operating-system' (whichever is relevant), describing information about the software running on the device. See also the list of known device properties: https://github.com/CycloneDX/cyclonedx-property-taxonomy/blob/main/cdx/device.md |
CLASSIFICATION_FILE | 6 | A computer file. Refer to https://en.wikipedia.org/wiki/Computer_file for information about files. |
CLASSIFICATION_CONTAINER | 7 | A packaging and/or runtime format, not specific to any particular technology, which isolates software inside the container from software outside of a container through virtualization technology. Refer to https://en.wikipedia.org/wiki/OS-level_virtualization |
CLASSIFICATION_FIRMWARE | 8 | A special type of software that provides low-level control over a devices hardware. Refer to https://en.wikipedia.org/wiki/Firmware |
Specifies the flow direction of the data. Valid values are: inbound, outbound, bi-directional, and unknown. Direction is relative to the service. Inbound flow states that data enters the service. Outbound flow states that data leaves the service. Bi-directional states that data flows both ways, and unknown states that the direction is not known.
Name | Number | Description |
DATA_FLOW_NULL | 0 | |
DATA_FLOW_INBOUND | 1 | |
DATA_FLOW_OUTBOUND | 2 | |
DATA_FLOW_BI_DIRECTIONAL | 3 | |
DATA_FLOW_UNKNOWN | 4 |
Name | Number | Description |
EXTERNAL_REFERENCE_TYPE_OTHER | 0 | Use this if no other types accurately describe the purpose of the external reference |
EXTERNAL_REFERENCE_TYPE_VCS | 1 | Version Control System |
EXTERNAL_REFERENCE_TYPE_ISSUE_TRACKER | 2 | Issue or defect tracking system, or an Application Lifecycle Management (ALM) system |
EXTERNAL_REFERENCE_TYPE_WEBSITE | 3 | Website |
EXTERNAL_REFERENCE_TYPE_ADVISORIES | 4 | Security advisories |
EXTERNAL_REFERENCE_TYPE_BOM | 5 | Bill-of-material document (CycloneDX, SPDX, SWID, etc) |
EXTERNAL_REFERENCE_TYPE_MAILING_LIST | 6 | Mailing list or discussion group |
EXTERNAL_REFERENCE_TYPE_SOCIAL | 7 | Social media account |
EXTERNAL_REFERENCE_TYPE_CHAT | 8 | Real-time chat platform |
EXTERNAL_REFERENCE_TYPE_DOCUMENTATION | 9 | Documentation, guides, or how-to instructions |
EXTERNAL_REFERENCE_TYPE_SUPPORT | 10 | Community or commercial support |
EXTERNAL_REFERENCE_TYPE_DISTRIBUTION | 11 | Direct or repository download location |
EXTERNAL_REFERENCE_TYPE_LICENSE | 12 | The URL to the license file. If a license URL has been defined in the license node, it should also be defined as an external reference for completeness |
EXTERNAL_REFERENCE_TYPE_BUILD_META | 13 | Build-system specific meta file (i.e. pom.xml, package.json, .nuspec, etc) |
EXTERNAL_REFERENCE_TYPE_BUILD_SYSTEM | 14 | URL to an automated build system |
Name | Number | Description |
HASH_ALG_NULL | 0 | |
HASH_ALG_MD_5 | 1 | |
HASH_ALG_SHA_1 | 2 | |
HASH_ALG_SHA_256 | 3 | |
HASH_ALG_SHA_384 | 4 | |
HASH_ALG_SHA_512 | 5 | |
HASH_ALG_SHA_3_256 | 6 | |
HASH_ALG_SHA_3_384 | 7 | |
HASH_ALG_SHA_3_512 | 8 | |
HASH_ALG_BLAKE_2_B_256 | 9 | |
HASH_ALG_BLAKE_2_B_384 | 10 | |
HASH_ALG_BLAKE_2_B_512 | 11 | |
HASH_ALG_BLAKE_3 | 12 |
Name | Number | Description |
ISSUE_CLASSIFICATION_NULL | 0 | |
ISSUE_CLASSIFICATION_DEFECT | 1 | A fault, flaw, or bug in software |
ISSUE_CLASSIFICATION_ENHANCEMENT | 2 | A new feature or behavior in software |
ISSUE_CLASSIFICATION_SECURITY | 3 | A special type of defect which impacts security |
Name | Number | Description |
PATCH_CLASSIFICATION_NULL | 0 | |
PATCH_CLASSIFICATION_UNOFFICIAL | 1 | A patch which is not developed by the creators or maintainers of the software being patched. Refer to https://en.wikipedia.org/wiki/Unofficial_patch |
PATCH_CLASSIFICATION_MONKEY | 2 | A patch which dynamically modifies runtime behavior. Refer to https://en.wikipedia.org/wiki/Monkey_patch |
PATCH_CLASSIFICATION_BACKPORT | 3 | A patch which takes code from a newer version of software and applies it to older versions of the same software. Refer to https://en.wikipedia.org/wiki/Backporting |
PATCH_CLASSIFICATION_CHERRY_PICK | 4 | A patch created by selectively applying commits from other versions or branches of the same software. |
Name | Number | Description |
SCOPE_UNSPECIFIED | 0 | Default |
SCOPE_REQUIRED | 1 | The component is required for runtime |
SCOPE_OPTIONAL | 2 | The component is optional at runtime. Optional components are components that are not capable of being called due to them not be installed or otherwise accessible by any means. Components that are installed but due to configuration or other restrictions are prohibited from being called must be scoped as 'required'. |
SCOPE_EXCLUDED | 3 | Components that are excluded provide the ability to document component usage for test and other non-runtime purposes. Excluded components are not reachable within a call graph at runtime. |
.proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby |
double | double | double | float | float64 | double | float | Float | |
float | float | float | float | float32 | float | float | Float | |
int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum |
uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) |
uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) |
sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum |
fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) |
fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum |
sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum |
bool | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass | |
string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) |
bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) |