@cyclonedx/cdxgen
Version:
Creates CycloneDX Software Bill of Materials (SBOM) from source or container image
971 lines • 251 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://cyclonedx.org/schema/bom-1.6.schema.json",
"type": "object",
"title": "CycloneDX Bill of Materials Standard",
"$comment": "CycloneDX JSON schema is published under the terms of the Apache License 2.0.",
"required": ["bomFormat", "specVersion"],
"additionalProperties": false,
"properties": {
"$schema": {
"type": "string"
},
"bomFormat": {
"type": "string",
"title": "BOM Format",
"description": "Specifies the format of the BOM. This helps to identify the file as CycloneDX since BOMs do not have a filename convention, nor does JSON schema support namespaces. This value MUST be \"CycloneDX\".",
"enum": ["CycloneDX"]
},
"specVersion": {
"type": "string",
"title": "CycloneDX Specification Version",
"description": "The version of the CycloneDX specification the BOM conforms to.",
"examples": ["1.6"]
},
"serialNumber": {
"type": "string",
"title": "BOM Serial Number",
"description": "Every BOM generated SHOULD have a unique serial number, even if the contents of the BOM have not changed over time. If specified, the serial number MUST conform to RFC-4122. Use of serial numbers is RECOMMENDED.",
"examples": ["urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79"],
"pattern": "^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
},
"version": {
"type": "integer",
"title": "BOM Version",
"description": "Whenever an existing BOM is modified, either manually or through automated processes, the version of the BOM SHOULD be incremented by 1. When a system is presented with multiple BOMs with identical serial numbers, the system SHOULD use the most recent version of the BOM. The default version is '1'.",
"minimum": 1,
"default": 1,
"examples": [1]
},
"metadata": {
"$ref": "#/definitions/metadata",
"title": "BOM Metadata",
"description": "Provides additional information about a BOM."
},
"components": {
"type": "array",
"items": { "$ref": "#/definitions/component" },
"uniqueItems": true,
"title": "Components",
"description": "A list of software and hardware components."
},
"services": {
"type": "array",
"items": { "$ref": "#/definitions/service" },
"uniqueItems": true,
"title": "Services",
"description": "A list of services. This may include microservices, function-as-a-service, and other types of network or intra-process services."
},
"externalReferences": {
"type": "array",
"items": { "$ref": "#/definitions/externalReference" },
"title": "External References",
"description": "External references provide a way to document systems, sites, and information that may be relevant but are not included with the BOM. They may also establish specific relationships within or external to the BOM."
},
"dependencies": {
"type": "array",
"items": { "$ref": "#/definitions/dependency" },
"uniqueItems": true,
"title": "Dependencies",
"description": "Provides the ability to document dependency relationships including provided & implemented components."
},
"compositions": {
"type": "array",
"items": { "$ref": "#/definitions/compositions" },
"uniqueItems": true,
"title": "Compositions",
"description": "Compositions describe constituent parts (including components, services, and dependency relationships) and their completeness. The completeness of vulnerabilities expressed in a BOM may also be described."
},
"vulnerabilities": {
"type": "array",
"items": { "$ref": "#/definitions/vulnerability" },
"uniqueItems": true,
"title": "Vulnerabilities",
"description": "Vulnerabilities identified in components or services."
},
"annotations": {
"type": "array",
"items": { "$ref": "#/definitions/annotations" },
"uniqueItems": true,
"title": "Annotations",
"description": "Comments made by people, organizations, or tools about any object with a bom-ref, such as components, services, vulnerabilities, or the BOM itself. Unlike inventory information, annotations may contain opinions or commentary from various stakeholders. Annotations may be inline (with inventory) or externalized via BOM-Link and may optionally be signed."
},
"formulation": {
"type": "array",
"items": { "$ref": "#/definitions/formula" },
"uniqueItems": true,
"title": "Formulation",
"description": "Describes how a component or service was manufactured or deployed. This is achieved through the use of formulas, workflows, tasks, and steps, which declare the precise steps to reproduce along with the observed formulas describing the steps which transpired in the manufacturing process."
},
"declarations": {
"type": "object",
"title": "Declarations",
"description": "The list of declarations which describe the conformance to standards. Each declaration may include attestations, claims, and evidence.",
"additionalProperties": false,
"properties": {
"assessors": {
"type": "array",
"title": "Assessors",
"description": "The list of assessors evaluating claims and determining conformance to requirements and confidence in that assessment.",
"items": {
"type": "object",
"title": "Assessor",
"description": "The assessor who evaluates claims and determines conformance to requirements and confidence in that assessment.",
"additionalProperties": false,
"properties": {
"bom-ref": {
"$ref": "#/definitions/refType",
"title": "BOM Reference",
"description": "An optional identifier which can be used to reference the object elsewhere in the BOM. Every bom-ref MUST be unique within the BOM."
},
"thirdParty": {
"type": "boolean",
"title": "Third Party",
"description": "The boolean indicating if the assessor is outside the organization generating claims. A value of false indicates a self assessor."
},
"organization": {
"$ref": "#/definitions/organizationalEntity",
"title": "Organization",
"description": "The entity issuing the assessment."
}
}
}
},
"attestations": {
"type": "array",
"title": "Attestations",
"description": "The list of attestations asserted by an assessor that maps requirements to claims.",
"items": {
"type": "object",
"title": "Attestation",
"additionalProperties": false,
"properties": {
"summary": {
"type": "string",
"title": "Summary",
"description": "The short description explaining the main points of the attestation."
},
"assessor": {
"$ref": "#/definitions/refLinkType",
"title": "Assessor",
"description": "The `bom-ref` to the assessor asserting the attestation."
},
"map": {
"type": "array",
"title": "Map",
"description": "The grouping of requirements to claims and the attestors declared conformance and confidence thereof.",
"items": {
"type": "object",
"title": "Map",
"additionalProperties": false,
"properties": {
"requirement": {
"$ref": "#/definitions/refLinkType",
"title": "Requirement",
"description": "The `bom-ref` to the requirement being attested to."
},
"claims": {
"type": "array",
"title": "Claims",
"description": "The list of `bom-ref` to the claims being attested to.",
"items": { "$ref": "#/definitions/refLinkType" }
},
"counterClaims": {
"type": "array",
"title": "Counter Claims",
"description": "The list of `bom-ref` to the counter claims being attested to.",
"items": { "$ref": "#/definitions/refLinkType" }
},
"conformance": {
"type": "object",
"title": "Conformance",
"description": "The conformance of the claim meeting a requirement.",
"additionalProperties": false,
"properties": {
"score": {
"type": "number",
"minimum": 0,
"maximum": 1,
"title": "Score",
"description": "The conformance of the claim between and inclusive of 0 and 1, where 1 is 100% conformance."
},
"rationale": {
"type": "string",
"title": "Rationale",
"description": "The rationale for the conformance score."
},
"mitigationStrategies": {
"type": "array",
"title": "Mitigation Strategies",
"description": "The list of `bom-ref` to the evidence provided describing the mitigation strategies.",
"items": { "$ref": "#/definitions/refLinkType" }
}
}
},
"confidence": {
"type": "object",
"title": "Confidence",
"description": "The confidence of the claim meeting the requirement.",
"additionalProperties": false,
"properties": {
"score": {
"type": "number",
"minimum": 0,
"maximum": 1,
"title": "Score",
"description": "The confidence of the claim between and inclusive of 0 and 1, where 1 is 100% confidence."
},
"rationale": {
"type": "string",
"title": "Rationale",
"description": "The rationale for the confidence score."
}
}
}
}
}
},
"signature": {
"$ref": "#/definitions/signature",
"title": "Signature",
"description": "Enveloped signature in [JSON Signature Format (JSF)](https://cyberphone.github.io/doc/security/jsf.html)."
}
}
}
},
"claims": {
"type": "array",
"title": "Claims",
"description": "The list of claims.",
"items": {
"type": "object",
"title": "Claim",
"additionalProperties": false,
"properties": {
"bom-ref": {
"$ref": "#/definitions/refType",
"title": "BOM Reference",
"description": "An optional identifier which can be used to reference the object elsewhere in the BOM. Every bom-ref MUST be unique within the BOM."
},
"target": {
"$ref": "#/definitions/refLinkType",
"title": "Target",
"description": "The `bom-ref` to a target representing a specific system, application, API, module, team, person, process, business unit, company, etc... that this claim is being applied to."
},
"predicate": {
"type": "string",
"title": "Predicate",
"description": "The specific statement or assertion about the target."
},
"mitigationStrategies": {
"type": "array",
"title": "Mitigation Strategies",
"description": "The list of `bom-ref` to the evidence provided describing the mitigation strategies. Each mitigation strategy should include an explanation of how any weaknesses in the evidence will be mitigated.",
"items": { "$ref": "#/definitions/refLinkType" }
},
"reasoning": {
"type": "string",
"title": "Reasoning",
"description": "The written explanation of why the evidence provided substantiates the claim."
},
"evidence": {
"type": "array",
"title": "Evidence",
"description": "The list of `bom-ref` to evidence that supports this claim.",
"items": { "$ref": "#/definitions/refLinkType" }
},
"counterEvidence": {
"type": "array",
"title": "Counter Evidence",
"description": "The list of `bom-ref` to counterEvidence that supports this claim.",
"items": { "$ref": "#/definitions/refLinkType" }
},
"externalReferences": {
"type": "array",
"items": { "$ref": "#/definitions/externalReference" },
"title": "External References",
"description": "External references provide a way to document systems, sites, and information that may be relevant but are not included with the BOM. They may also establish specific relationships within or external to the BOM."
},
"signature": {
"$ref": "#/definitions/signature",
"title": "Signature",
"description": "Enveloped signature in [JSON Signature Format (JSF)](https://cyberphone.github.io/doc/security/jsf.html)."
}
}
}
},
"evidence": {
"type": "array",
"title": "Evidence",
"description": "The list of evidence",
"items": {
"type": "object",
"title": "Evidence",
"additionalProperties": false,
"properties": {
"bom-ref": {
"$ref": "#/definitions/refType",
"title": "BOM Reference",
"description": "An optional identifier which can be used to reference the object elsewhere in the BOM. Every bom-ref MUST be unique within the BOM."
},
"propertyName": {
"type": "string",
"title": "Property Name",
"description": "The reference to the property name as defined in the [CycloneDX Property Taxonomy](https://github.com/CycloneDX/cyclonedx-property-taxonomy/)."
},
"description": {
"type": "string",
"title": "Description",
"description": "The written description of what this evidence is and how it was created."
},
"data": {
"type": "array",
"title": "Data",
"description": "The output or analysis that supports claims.",
"items": {
"type": "object",
"title": "Data",
"additionalProperties": false,
"properties": {
"name": {
"title": "Data Name",
"description": "The name of the data.",
"type": "string"
},
"contents": {
"type": "object",
"title": "Data Contents",
"description": "The contents or references to the contents of the data being described.",
"additionalProperties": false,
"properties": {
"attachment": {
"title": "Data Attachment",
"description": "An optional way to include textual or encoded data.",
"$ref": "#/definitions/attachment"
},
"url": {
"type": "string",
"title": "Data URL",
"description": "The URL to where the data can be retrieved.",
"format": "iri-reference"
}
}
},
"classification": {
"$ref": "#/definitions/dataClassification"
},
"sensitiveData": {
"type": "array",
"title": "Sensitive Data",
"description": "A description of any sensitive data included.",
"items": {
"type": "string"
}
},
"governance": {
"title": "Data Governance",
"$ref": "#/definitions/dataGovernance"
}
}
}
},
"created": {
"type": "string",
"format": "date-time",
"title": "Created",
"description": "The date and time (timestamp) when the evidence was created."
},
"expires": {
"type": "string",
"format": "date-time",
"title": "Expires",
"description": "The optional date and time (timestamp) when the evidence is no longer valid."
},
"author": {
"$ref": "#/definitions/organizationalContact",
"title": "Author",
"description": "The author of the evidence."
},
"reviewer": {
"$ref": "#/definitions/organizationalContact",
"title": "Reviewer",
"description": "The reviewer of the evidence."
},
"signature": {
"$ref": "#/definitions/signature",
"title": "Signature",
"description": "Enveloped signature in [JSON Signature Format (JSF)](https://cyberphone.github.io/doc/security/jsf.html)."
}
}
}
},
"targets": {
"type": "object",
"title": "Targets",
"description": "The list of targets which claims are made against.",
"additionalProperties": false,
"properties": {
"organizations": {
"type": "array",
"title": "Organizations",
"description": "The list of organizations which claims are made against.",
"items": { "$ref": "#/definitions/organizationalEntity" }
},
"components": {
"type": "array",
"title": "Components",
"description": "The list of components which claims are made against.",
"items": { "$ref": "#/definitions/component" }
},
"services": {
"type": "array",
"title": "Services",
"description": "The list of services which claims are made against.",
"items": { "$ref": "#/definitions/service" }
}
}
},
"affirmation": {
"type": "object",
"title": "Affirmation",
"additionalProperties": false,
"properties": {
"statement": {
"type": "string",
"title": "Statement",
"description": "The brief statement affirmed by an individual regarding all declarations.\n*- Notes This could be an affirmation of acceptance by a third-party auditor or receiving individual of a file.",
"examples": [
"I certify, to the best of my knowledge, that all information is correct."
]
},
"signatories": {
"type": "array",
"title": "Signatories",
"description": "The list of signatories authorized on behalf of an organization to assert validity of this document.",
"items": {
"type": "object",
"title": "Signatory",
"additionalProperties": false,
"oneOf": [
{
"required": ["signature"]
},
{
"required": ["externalReference", "organization"]
}
],
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "The signatory's name."
},
"role": {
"type": "string",
"title": "Role",
"description": "The signatory's role within an organization."
},
"signature": {
"$ref": "#/definitions/signature",
"title": "Signature",
"description": "Enveloped signature in [JSON Signature Format (JSF)](https://cyberphone.github.io/doc/security/jsf.html)."
},
"organization": {
"$ref": "#/definitions/organizationalEntity",
"title": "Organization",
"description": "The signatory's organization."
},
"externalReference": {
"$ref": "#/definitions/externalReference",
"title": "External Reference",
"description": "External references provide a way to document systems, sites, and information that may be relevant but are not included with the BOM. They may also establish specific relationships within or external to the BOM."
}
}
}
},
"signature": {
"$ref": "#/definitions/signature",
"title": "Signature",
"description": "Enveloped signature in [JSON Signature Format (JSF)](https://cyberphone.github.io/doc/security/jsf.html)."
}
}
},
"signature": {
"$ref": "#/definitions/signature",
"title": "Signature",
"description": "Enveloped signature in [JSON Signature Format (JSF)](https://cyberphone.github.io/doc/security/jsf.html)."
}
}
},
"definitions": {
"type": "object",
"title": "Definitions",
"description": "A collection of reusable objects that are defined and may be used elsewhere in the BOM.",
"additionalProperties": false,
"properties": {
"standards": {
"type": "array",
"title": "Standards",
"description": "The list of standards which may consist of regulations, industry or organizational-specific standards, maturity models, best practices, or any other requirements which can be evaluated against or attested to.",
"items": {
"$ref": "#/definitions/standard"
}
}
}
},
"properties": {
"type": "array",
"title": "Properties",
"description": "Provides the ability to document properties in a name-value store. This provides flexibility to include data not officially supported in the standard without having to use additional namespaces or create extensions. Unlike key-value stores, properties support duplicate names, each potentially having different values. Property names of interest to the general public are encouraged to be registered in the [CycloneDX Property Taxonomy](https://github.com/CycloneDX/cyclonedx-property-taxonomy). Formal registration is OPTIONAL.",
"items": {
"$ref": "#/definitions/property"
}
},
"signature": {
"$ref": "#/definitions/signature",
"title": "Signature",
"description": "Enveloped signature in [JSON Signature Format (JSF)](https://cyberphone.github.io/doc/security/jsf.html)."
}
},
"definitions": {
"refType": {
"description": "Identifier for referable and therefore interlinkable elements.\nValue SHOULD not start with the BOM-Link intro 'urn:cdx:' to avoid conflicts with BOM-Links.",
"type": "string",
"minLength": 1,
"$comment": "TODO (breaking change): add a format constraint that prevents the value from staring with 'urn:cdx:'"
},
"refLinkType": {
"description": "Descriptor for an element identified by the attribute 'bom-ref' in the same BOM document.\nIn contrast to `bomLinkElementType`.",
"$ref": "#/definitions/refType"
},
"bomLinkDocumentType": {
"title": "BOM-Link Document",
"description": "Descriptor for another BOM document. See https://cyclonedx.org/capabilities/bomlink/",
"type": "string",
"format": "iri-reference",
"pattern": "^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/[1-9][0-9]*$",
"$comment": "part of the pattern is based on `bom.serialNumber`'s pattern"
},
"bomLinkElementType": {
"title": "BOM-Link Element",
"description": "Descriptor for an element in a BOM document. See https://cyclonedx.org/capabilities/bomlink/",
"type": "string",
"format": "iri-reference",
"pattern": "^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/[1-9][0-9]*#.+$",
"$comment": "part of the pattern is based on `bom.serialNumber`'s pattern"
},
"bomLink": {
"title": "BOM-Link",
"anyOf": [
{
"title": "BOM-Link Document",
"$ref": "#/definitions/bomLinkDocumentType"
},
{
"title": "BOM-Link Element",
"$ref": "#/definitions/bomLinkElementType"
}
]
},
"metadata": {
"type": "object",
"title": "BOM Metadata",
"additionalProperties": false,
"properties": {
"timestamp": {
"type": "string",
"format": "date-time",
"title": "Timestamp",
"description": "The date and time (timestamp) when the BOM was created."
},
"lifecycles": {
"type": "array",
"title": "Lifecycles",
"description": "Lifecycles communicate the stage(s) in which data in the BOM was captured. Different types of data may be available at various phases of a lifecycle, such as the Software Development Lifecycle (SDLC), IT Asset Management (ITAM), and Software Asset Management (SAM). Thus, a BOM may include data specific to or only obtainable in a given lifecycle.",
"items": {
"type": "object",
"title": "Lifecycle",
"description": "The product lifecycle(s) that this BOM represents.",
"oneOf": [
{
"title": "Pre-Defined Phase",
"required": ["phase"],
"additionalProperties": false,
"properties": {
"phase": {
"type": "string",
"title": "Phase",
"description": "A pre-defined phase in the product lifecycle.",
"enum": [
"design",
"pre-build",
"build",
"post-build",
"operations",
"discovery",
"decommission"
],
"meta:enum": {
"design": "BOM produced early in the development lifecycle containing an inventory of components and services that are proposed or planned to be used. The inventory may need to be procured, retrieved, or resourced prior to use.",
"pre-build": "BOM consisting of information obtained prior to a build process and may contain source files and development artifacts and manifests. The inventory may need to be resolved and retrieved prior to use.",
"build": "BOM consisting of information obtained during a build process where component inventory is available for use. The precise versions of resolved components are usually available at this time as well as the provenance of where the components were retrieved from.",
"post-build": "BOM consisting of information obtained after a build process has completed and the resulting components(s) are available for further analysis. Built components may exist as the result of a CI/CD process, may have been installed or deployed to a system or device, and may need to be retrieved or extracted from the system or device.",
"operations": "BOM produced that represents inventory that is running and operational. This may include staging or production environments and will generally encompass multiple SBOMs describing the applications and operating system, along with HBOMs describing the hardware that makes up the system. Operations Bill of Materials (OBOM) can provide full-stack inventory of runtime environments, configurations, and additional dependencies.",
"discovery": "BOM consisting of information observed through network discovery providing point-in-time enumeration of embedded, on-premise, and cloud-native services such as server applications, connected devices, microservices, and serverless functions.",
"decommission": "BOM containing inventory that will be, or has been retired from operations."
}
}
}
},
{
"title": "Custom Phase",
"required": ["name"],
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "The name of the lifecycle phase"
},
"description": {
"type": "string",
"title": "Description",
"description": "The description of the lifecycle phase"
}
}
}
]
}
},
"tools": {
"title": "Tools",
"description": "The tool(s) used in the creation, enrichment, and validation of the BOM.",
"oneOf": [
{
"type": "object",
"title": "Tools",
"description": "The tool(s) used in the creation, enrichment, and validation of the BOM.",
"additionalProperties": false,
"properties": {
"components": {
"type": "array",
"items": { "$ref": "#/definitions/component" },
"uniqueItems": true,
"title": "Components",
"description": "A list of software and hardware components used as tools."
},
"services": {
"type": "array",
"items": { "$ref": "#/definitions/service" },
"uniqueItems": true,
"title": "Services",
"description": "A list of services used as tools. This may include microservices, function-as-a-service, and other types of network or intra-process services."
}
}
},
{
"type": "array",
"title": "Tools (legacy)",
"description": "[Deprecated] The tool(s) used in the creation, enrichment, and validation of the BOM.",
"items": { "$ref": "#/definitions/tool" }
}
]
},
"manufacturer": {
"title": "BOM Manufacturer",
"description": "The organization that created the BOM.\nManufacturer is common in BOMs created through automated processes. BOMs created through manual means may have `@.authors` instead.",
"$ref": "#/definitions/organizationalEntity"
},
"authors": {
"type": "array",
"title": "BOM Authors",
"description": "The person(s) who created the BOM.\nAuthors are common in BOMs created through manual processes. BOMs created through automated means may have `@.manufacturer` instead.",
"items": { "$ref": "#/definitions/organizationalContact" }
},
"component": {
"title": "Component",
"description": "The component that the BOM describes.",
"$ref": "#/definitions/component"
},
"manufacture": {
"deprecated": true,
"title": "Component Manufacture (legacy)",
"description": "[Deprecated] This will be removed in a future version. Use the `@.component.manufacturer` instead.\nThe organization that manufactured the component that the BOM describes.",
"$ref": "#/definitions/organizationalEntity"
},
"supplier": {
"title": "Supplier",
"description": " The organization that supplied the component that the BOM describes. The supplier may often be the manufacturer, but may also be a distributor or repackager.",
"$ref": "#/definitions/organizationalEntity"
},
"licenses": {
"title": "BOM License(s)",
"description": "The license information for the BOM document.\nThis may be different from the license(s) of the component(s) that the BOM describes.",
"$ref": "#/definitions/licenseChoice"
},
"properties": {
"type": "array",
"title": "Properties",
"description": "Provides the ability to document properties in a name-value store. This provides flexibility to include data not officially supported in the standard without having to use additional namespaces or create extensions. Unlike key-value stores, properties support duplicate names, each potentially having different values. Property names of interest to the general public are encouraged to be registered in the [CycloneDX Property Taxonomy](https://github.com/CycloneDX/cyclonedx-property-taxonomy). Formal registration is OPTIONAL.",
"items": { "$ref": "#/definitions/property" }
}
}
},
"tool": {
"type": "object",
"title": "Tool",
"description": "[Deprecated] This will be removed in a future version. Use component or service instead. Information about the automated or manual tool used",
"additionalProperties": false,
"properties": {
"vendor": {
"type": "string",
"title": "Tool Vendor",
"description": "The name of the vendor who created the tool"
},
"name": {
"type": "string",
"title": "Tool Name",
"description": "The name of the tool"
},
"version": {
"$ref": "#/definitions/version",
"title": "Tool Version",
"description": "The version of the tool"
},
"hashes": {
"type": "array",
"items": { "$ref": "#/definitions/hash" },
"title": "Hashes",
"description": "The hashes of the tool (if applicable)."
},
"externalReferences": {
"type": "array",
"items": { "$ref": "#/definitions/externalReference" },
"title": "External References",
"description": "External references provide a way to document systems, sites, and information that may be relevant, but are not included with the BOM. They may also establish specific relationships within or external to the BOM."
}
}
},
"organizationalEntity": {
"type": "object",
"title": "Organizational Entity",
"description": "",
"additionalProperties": false,
"properties": {
"bom-ref": {
"$ref": "#/definitions/refType",
"title": "BOM Reference",
"description": "An optional identifier which can be used to reference the object elsewhere in the BOM. Every bom-ref MUST be unique within the BOM.\nValue SHOULD not start with the BOM-Link intro 'urn:cdx:' to avoid conflicts with BOM-Links."
},
"name": {
"type": "string",
"title": "Organization Name",
"description": "The name of the organization",
"examples": ["Example Inc."]
},
"address": {
"$ref": "#/definitions/postalAddress",
"title": "Organization Address",
"description": "The physical address (location) of the organization"
},
"url": {
"type": "array",
"items": {
"type": "string",
"format": "iri-reference"
},
"title": "Organization URL(s)",
"description": "The URL of the organization. Multiple URLs are allowed.",
"examples": ["https://example.com"]
},
"contact": {
"type": "array",
"title": "Organizational Contact",
"description": "A contact at the organization. Multiple contacts are allowed.",
"items": { "$ref": "#/definitions/organizationalContact" }
}
}
},
"organizationalContact": {
"type": "object",
"title": "Organizational Contact",
"description": "",
"additionalProperties": false,
"properties": {
"bom-ref": {
"$ref": "#/definitions/refType",
"title": "BOM Reference",
"description": "An optional identifier which can be used to reference the object elsewhere in the BOM. Every bom-ref MUST be unique within the BOM.\nValue SHOULD not start with the BOM-Link intro 'urn:cdx:' to avoid conflicts with BOM-Links."
},
"name": {
"type": "string",
"title": "Name",
"description": "The name of a contact",
"examples": ["Contact name"]
},
"email": {
"type": "string",
"format": "idn-email",
"title": "Email Address",
"description": "The email address of the contact.",
"examples": ["firstname.lastname@example.com"]
},
"phone": {
"type": "string",
"title": "Phone",
"description": "The phone number of the contact.",
"examples": ["800-555-1212"]
}
}
},
"component": {
"type": "object",
"title": "Component",
"required": ["type", "name"],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"application",
"framework",
"library",
"container",
"platform",
"operating-system",
"device",
"device-driver",
"firmware",
"file",
"machine-learning-model",
"data",
"cryptographic-asset"
],
"meta:enum": {
"application": "A software application. Refer to [https://en.wikipedia.org/wiki/Application_software](https://en.wikipedia.org/wiki/Application_software) for information about applications.",
"framework": "A software framework. Refer to [https://en.wikipedia.org/wiki/Software_framework](https://en.wikipedia.org/wiki/Software_framework) for information on how frameworks vary slightly from libraries.",
"library": "A software library. Refer to [https://en.wikipedia.org/wiki/Library_(computing)](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.",
"container": "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](https://en.wikipedia.org/wiki/OS-level_virtualization).",
"platform": "A runtime environment which interprets or executes software. This may include runtimes such as those that execute bytecode or low-code/no-code application platforms.",
"operating-system": "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](https://en.wikipedia.org/wiki/Operating_system).",
"device": "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).",
"device-driver": "A special type of software that operates or controls a particular type of device. Refer to [https://en.wikipedia.org/wiki/Device_driver](https://en.wikipedia.org/wiki/Device_driver).",
"firmware": "A special type of software that provides low-level control over a device's hardware. Refer to [https://en.wikipedia.org/wiki/Firmware](https://en.wikipedia.org/wiki/Firmware).",
"file": "A computer file. Refer to [https://en.wikipedia.org/wiki/Computer_file](https://en.wikipedia.org/wiki/Computer_file) for information about files.",
"machine-learning-model": "A model based on training data that can make predictions or decisions without being explicitly programmed to do so.",
"data": "A collection of discrete values that convey information.",
"cryptographic-asset": "A cryptographic asset including algorithms, protocols, certificates, keys, tokens, and secrets."
},
"title": "Component Type",
"description": "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.",
"examples": ["library"]
},
"mime-type": {
"type": "string",
"title": "Mime-Type",
"description": "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.",
"examples": ["image/jpeg"],
"pattern": "^[-+a-z0-9.]+/[-+a-z0-9.]+$"
},
"bom-ref": {
"$ref": "#/definitions/refType",
"title": "BOM Reference",
"description": "An optional identifier which can be used to reference the component elsewhere in the BOM. Every bom-ref MUST be unique within the BOM.\nValue SHOULD not start with the BOM-Link intro 'urn:cdx:' to avoid conflicts with BOM-Links."
},
"supplier": {
"title": "Component Supplier",
"description": " The organization that supplied the component. The supplier may often be the manufacturer, but may also be a distributor or repackager.",
"$ref": "#/definitions/organizationalEntity"
},
"manufacturer": {
"title": "Component Manufacturer",
"description": "The organization that created the component.\nManufacturer is common in components created through automated processes. Components created through manual means may have `@.authors` instead.",
"$ref": "#/definitions/organizationalEntity"
},
"authors": {
"type": "array",
"title": "Component Authors",
"description": "The person(s) who created the component.\nAuthors are common in components created through manual processes. Components created through automated means may have `@.manufacturer` instead.",
"items": { "$ref": "#/definitions/organizationalContact" }
},
"author": {
"deprecated": true,
"type": "string",
"title": "Component Author (legacy)",
"description": "[Deprecated] This will be removed in a future version. Use `@.authors` or `@.manufacturer` instead.\nThe person(s) or organization(s) that authored the component",
"examples": ["Acme Inc"]
},
"publisher": {
"type": "string",
"title": "Component Publisher",
"description": "The person(s) or organization(s) that published the component",
"examples": ["Acme Inc"]
},
"group": {
"type": "string",
"title": "Component Group",
"description": "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.",
"examples": ["com.acme"]
},
"name": {
"type": "string",
"title": "Component Name",
"description": "The name of the component. This will often be a shortened, single name of the component. Examples: commons-lang3 and jquery",
"examples": ["tomcat-catalina"]
},
"version": {
"$ref": "#/definitions/version",
"title": "Component Version",
"description": "The component version. The version should ideally comply with semantic versioning but is not enforced."
},
"description": {
"type": "string",
"title": "Component Description",
"description": "Specifies a description for the component"
},
"scope": {
"type": "string",
"enum": ["required", "optional", "excluded"],
"meta:enum": {
"required": "The component is required for runtime",
"optional": "The component is optional at runtime. Optional components are components that are not capable of being called due to them not being 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'.",
"excluded": "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."
},
"title": "Component Scope",
"description": "Specifies the scope of the component. If scope is not specified, 'required' scope SHOULD be assumed by the consumer of the BOM.",
"default": "required"
},
"hashes": {
"type": "array",
"title": "Component Hashes",
"description": "The hashes of the component.",
"items": { "$ref": "#/definitions/hash" }
},
"licenses": {
"$ref": "#/definitions/licenseChoice",
"title": "Component License(s)"
},
"copyright": {
"type": "string",
"title": "Component Copyright",
"description": "A copyright notice informing users of the underlying claims to copyright ownership in a published work.",
"examples": ["Acme Inc"]
},
"cpe": {
"type": "string",
"title": "Common Platform Enumeration (CPE)",
"description": "Asserts the identity of the component using CPE. The CPE must conform to the CPE 2.2 or 2.3 specification. See [https://nvd.nist.gov/products/cpe](https://nvd.nist.gov/products/cpe). Refer to `@.evidence.identity` to optionally provide evidence that substantiates the assertion of the component's identity.",
"examples": ["cpe:2.3:a:acme:component_framework:-:*:*:*:*:*:*:*"]
},
"purl": {
"type": "string",
"title": "Package URL (purl)",
"description": "Asserts the identity of the component using package-url (purl). The purl, if specified, MUST be valid and conform to the specification defined at: [https://github.com/package-url/purl-spec](https://github.com/package-url/purl-spec). Refer to `@.evidence.identity` to optionally provide evidence that substantiates the assertion of the component's identity.",
"examples": [
"pkg:maven/com.acme/tomcat-catalina@9.0.14?packaging=jar"
]
},
"omniborId": {
"type": "array",
"title": "OmniBOR Artifact Identifier (gitoid)",
"description": "Asserts the identity of the component using the OmniBOR Artifact ID. The OmniBOR, if specified, MUST be valid and conform to the specification defined at: [https://www.iana.org/assignments/uri-schemes/prov/gitoid](https://www.iana.org/assignments/uri-schemes/prov/gitoid). Refer to `@.evidence.identity` to optionally provide evidence that substantiates the ass