「 网络安全常用术语解读 」SBOM主流格式SPDX详解

SPDX(System Package Data Exchange)格式是一种用于描述软件组件(如源代码)的规范,它提供了一种标准化的方法来描述软件组件的元数据,包括其许可证、依赖项和其他属性。SPDX最初由Linux基金会于2010年发起,是一个跨行业的合作项目,旨在促进软件供应链的透明度和合规性。本文将介绍SPDX格式的背景、应用现状及主要内容。

在这里插入图片描述

1. 背景

SPDX(System Package Data Exchange)格式的诞生源于对软件许可证的标准化和管理的需求。在开源和共享软件开发环境中,许可证是一个重要的元素,它规定了软件的使用和修改限制。然而,不同的开源项目可能使用不同的许可证,这导致了许可证管理的问题。为了解决这个问题,SPDX 格式应运而生,它提供了一种标准化的方法来描述软件许可证以及其他元数据,如版本控制信息、依赖项等。

2. 应用现状

SPDX格式在开源和共享软件开发环境中得到了广泛的应用。许多开源项目使用SPDX格式来描述其软件组件的许可证和其他元数据。SPDX格式还被用于自动化工具中,如代码审查工具、许可证管理工具和版本控制工具,这些工具可以自动解析SPDX描述文档,从而提高了工作效率和准确性。

SPDX规范被公认为安全性、许可证合规性和其他软件供应链工件的国际开放标准,如ISO/IEC 5962:2021

SPDX格式还被应用于教育领域。一些教育机构和开源组织将SPDX格式用于教育目的,为学生提供关于软件许可证管理和软件组件元数据的知识。通过使用SPDX格式,学生可以更好地理解开源软件的世界,并学会如何使用标准化的方法来描述和管理软件组件。

3. 版本发展历史

  • 2023/05:发布了新的安全、构建、数据和人工智能配置文件的 SPDX 3.0-rc1。
  • 2022/08:发布SPDX 2.3,以提高与其他格式的互操作性。
  • 2015/05:SPDX 2.0 规范增加了处理多个包、包和文件之间的关系以及注释的能力。
  • 2013/10:SPDX 1.2 规范–改进了与许可证列表的交互,增加了用于记录项目信息的字段。
  • 2011/08:SPDX 1.0 规范处理封装。
  • 2010/02:规范起草工作开始于Linux基金会下属的 FOSSBazaar 工作组,该工作组后来被称为“SPDX”,最初被称为Package Facts。

4. 主要内容

在SPDX格式中,每个元素都有其特定的标签和结构,以便于自动解析和解析。此外,SPDX格式还提供了一种标准化的方法来组织这些元素,使其易于理解和使用。

SPDX格式的主要内容包括许可证、版本控制、依赖项和其他元数据:

  • 软件包信息:记录软件包的基本信息,如名称、版本号、描述等。
  • 许可证信息:详细描述软件包使用的许可证类型及相关要求。这有助于组织遵守不同许可证的规定,确保合规性。
  • 文件级别信息:列出软件包中每个文件的信息,包括文件名、路径、大小等。这有助于识别和跟踪软件组件,管理依赖关系。
  • 依赖关系:记录软件包与其他软件包之间的依赖关系,包括版本要求、兼容性等。这有助于评估软件包的稳定性和安全性。
  • 补丁信息:记录软件包中的补丁信息,包括修复的漏洞、安全更新等。这有助于了解软件包的安全状况。
  • 元数据:包括创建SPDX文档的时间、作者信息等元数据,有助于跟踪和管理SPDX文档的来源和历史。
  • 其他元数据:SPDX格式还包含其他元数据,如许可协议、版权声明、技术规范和文档链接等。

SPDX JSON 格式完整样例:

{"SPDXID" : "SPDXRef-DOCUMENT","spdxVersion" : "SPDX-2.3","creationInfo" : {"comment" : "This package has been shipped in source and binary form.\nThe binaries were created with gcc 4.5.1 and expect to link to\ncompatible system run time libraries.","created" : "2010-01-29T18:30:22Z","creators" : [ "Tool: LicenseFind-1.0", "Organization: ExampleCodeInspect ()", "Person: Jane Doe ()" ],"licenseListVersion" : "3.17"},"name" : "SPDX-Tools-v2.0","dataLicense" : "CC0-1.0","comment" : "This document was created using SPDX 2.0 using licenses from the web site.","externalDocumentRefs" : [ {"externalDocumentId" : "DocumentRef-spdx-tool-1.2","checksum" : {"algorithm" : "SHA1","checksumValue" : "d6a770ba38583ed4bb4525bd96e50461655d2759"},"spdxDocument" : "http://spdx.org/spdxdocs/spdx-tools-v1.2-3F2504E0-4F89-41D3-9A0C-0305E82C3301"} ],"hasExtractedLicensingInfos" : [ {"licenseId" : "LicenseRef-1","extractedText" : "/*\n * (c) Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the author may not be used to endorse or promote products\n *    derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/"}, {"licenseId" : "LicenseRef-2","extractedText" : "This package includes the GRDDL parser developed by Hewlett Packard under the following license:\n© Copyright 2007 Hewlett-Packard Development Company, LP\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: \n\nRedistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. \nRedistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. \nThe name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. \nTHIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."}, {"licenseId" : "LicenseRef-4","extractedText" : "/*\n * (c) Copyright 2009 University of Bristol\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in the\n *    documentation and/or other materials provided with the distribution.\n * 3. The name of the author may not be used to endorse or promote products\n *    derived from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/"}, {"licenseId" : "LicenseRef-Beerware-4.2","comment" : "The beerware license has a couple of other standard variants.","extractedText" : "\"THE BEER-WARE LICENSE\" (Revision 42):\nphk@FreeBSD.ORG wrote this file. As long as you retain this notice you\ncan do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return Poul-Henning Kamp","name" : "Beer-Ware License (Version 42)","seeAlsos" : [ "http://people.freebsd.org/~phk/" ]}, {"licenseId" : "LicenseRef-3","comment" : "This is tye CyperNeko License","extractedText" : "The CyberNeko Software License, Version 1.0\n\n \n(C) Copyright 2002-2005, Andy Clark.  All rights reserved.\n \nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n\n1. Redistributions of source code must retain the above copyright\n   notice, this list of conditions and the following disclaimer. \n\n2. Redistributions in binary form must reproduce the above copyright\n   notice, this list of conditions and the following disclaimer in\n   the documentation and/or other materials provided with the\n   distribution.\n\n3. The end-user documentation included with the redistribution,\n   if any, must include the following acknowledgment:  \n     \"This product includes software developed by Andy Clark.\"\n   Alternately, this acknowledgment may appear in the software itself,\n   if and wherever such third-party acknowledgments normally appear.\n\n4. The names \"CyberNeko\" and \"NekoHTML\" must not be used to endorse\n   or promote products derived from this software without prior \n   written permission. For written permission, please contact \n   andyc@cyberneko.net.\n\n5. Products derived from this software may not be called \"CyberNeko\",\n   nor may \"CyberNeko\" appear in their name, without prior written\n   permission of the author.\n\nTHIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED\nWARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\nOF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR OTHER CONTRIBUTORS\nBE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, \nOR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT \nOF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR \nBUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \nWHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE \nOR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, \nEVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.","name" : "CyberNeko License","seeAlsos" : [ "http://people.apache.org/~andyc/neko/LICENSE", "http://justasample.url.com" ]} ],"annotations" : [ {"annotationDate" : "2010-01-29T18:30:22Z","annotationType" : "OTHER","annotator" : "Person: Jane Doe ()","comment" : "Document level annotation"}, {"annotationDate" : "2010-02-10T00:00:00Z","annotationType" : "REVIEW","annotator" : "Person: Joe Reviewer","comment" : "This is just an example.  Some of the non-standard licenses look like they are actually BSD 3 clause licenses"}, {"annotationDate" : "2011-03-13T00:00:00Z","annotationType" : "REVIEW","annotator" : "Person: Suzanne Reviewer","comment" : "Another example reviewer."} ],"documentDescribes" : [ "SPDXRef-File", "SPDXRef-Package" ],"documentNamespace" : "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301","packages" : [ {"SPDXID" : "SPDXRef-Package","annotations" : [ {"annotationDate" : "2011-01-29T18:30:22Z","annotationType" : "OTHER","annotator" : "Person: Package Commenter","comment" : "Package level annotation"} ],"attributionTexts" : [ "The GNU C Library is free software.  See the file COPYING.LIB for copying conditions, and LICENSES for notices about a few contributions that require these additional notices to be distributed.  License copyright years may be listed using range notation, e.g., 1996-2015, indicating that every year in the range, inclusive, is a copyrightable year that would otherwise be listed individually." ],"builtDate" : "2011-01-29T18:30:22Z","checksums" : [ {"algorithm" : "MD5","checksumValue" : "624c1abb3664f4b35547e7c73864ad24"}, {"algorithm" : "SHA1","checksumValue" : "85ed0817af83a24ad8da68c2b5094de69833983c"}, {"algorithm" : "SHA256","checksumValue" : "11b6d3ee554eedf79299905a98f9b9a04e498210b59f15094c916c91d150efcd"}, {"algorithm" : "BLAKE2b-384","checksumValue" : "aaabd89c926ab525c242e6621f2f5fa73aa4afe3d9e24aed727faaadd6af38b620bdb623dd2b4788b1c8086984af8706"} ],"copyrightText" : "Copyright 2008-2010 John Smith","description" : "The GNU C Library defines functions that are specified by the ISO C standard, as well as additional features specific to POSIX and other derivatives of the Unix operating system, and extensions specific to GNU systems.","downloadLocation" : "http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gz","externalRefs" : [ {"referenceCategory" : "SECURITY","referenceLocator" : "cpe:2.3:a:pivotal_software:spring_framework:4.1.0:*:*:*:*:*:*:*","referenceType" : "cpe23Type"}, {"comment" : "This is the external ref for Acme","referenceCategory" : "OTHER","referenceLocator" : "acmecorp/acmenator/4.1.3-alpha","referenceType" : "http://spdx.org/spdxdocs/spdx-example-444504E0-4F89-41D3-9A0C-0305E82C3301#LocationRef-acmeforge"} ],"filesAnalyzed" : true,"homepage" : "http://ftp.gnu.org/gnu/glibc","licenseComments" : "The license for this project changed with the release of version x.y.  The version of the project included here post-dates the license change.","licenseConcluded" : "(LGPL-2.0-only OR LicenseRef-3)","licenseDeclared" : "(LGPL-2.0-only AND LicenseRef-3)","licenseInfoFromFiles" : [ "GPL-2.0-only", "LicenseRef-2", "LicenseRef-1" ],"name" : "glibc","originator" : "Organization: ExampleCodeInspect (contact@example.com)","packageFileName" : "glibc-2.11.1.tar.gz","packageVerificationCode" : {"packageVerificationCodeExcludedFiles" : [ "./package.spdx" ],"packageVerificationCodeValue" : "d6a770ba38583ed4bb4525bd96e50461655d2758"},"primaryPackagePurpose" : "SOURCE","hasFiles" : [ "SPDXRef-Specification", "SPDXRef-Specification", "SPDXRef-CommonsLangSrc", "SPDXRef-Specification", "SPDXRef-CommonsLangSrc", "SPDXRef-JenaLib", "SPDXRef-Specification", "SPDXRef-CommonsLangSrc", "SPDXRef-JenaLib", "SPDXRef-DoapSource", "SPDXRef-Specification", "SPDXRef-CommonsLangSrc", "SPDXRef-JenaLib", "SPDXRef-DoapSource" ],"releaseDate" : "2012-01-29T18:30:22Z","sourceInfo" : "uses glibc-2_11-branch from git://sourceware.org/git/glibc.git.","summary" : "GNU C library.","supplier" : "Person: Jane Doe (jane.doe@example.com)","validUntilDate" : "2014-01-29T18:30:22Z","versionInfo" : "2.11.1"}, {"SPDXID" : "SPDXRef-fromDoap-1","copyrightText" : "NOASSERTION","downloadLocation" : "NOASSERTION","filesAnalyzed" : false,"homepage" : "http://commons.apache.org/proper/commons-lang/","licenseConcluded" : "NOASSERTION","licenseDeclared" : "NOASSERTION","name" : "Apache Commons Lang"}, {"SPDXID" : "SPDXRef-fromDoap-0","downloadLocation" : "https://search.maven.org/remotecontent?filepath=org/apache/jena/apache-jena/3.12.0/apache-jena-3.12.0.tar.gz","externalRefs" : [ {"referenceCategory" : "PACKAGE-MANAGER","referenceLocator" : "pkg:maven/org.apache.jena/apache-jena@3.12.0","referenceType" : "purl"} ],"filesAnalyzed" : false,"homepage" : "http://www.openjena.org/","name" : "Jena","versionInfo" : "3.12.0"}, {"SPDXID" : "SPDXRef-Saxon","checksums" : [ {"algorithm" : "SHA1","checksumValue" : "85ed0817af83a24ad8da68c2b5094de69833983c"} ],"copyrightText" : "Copyright Saxonica Ltd","description" : "The Saxon package is a collection of tools for processing XML documents.","downloadLocation" : "https://sourceforge.net/projects/saxon/files/Saxon-B/8.8.0.7/saxonb8-8-0-7j.zip/download","filesAnalyzed" : false,"homepage" : "http://saxon.sourceforge.net/","licenseComments" : "Other versions available for a commercial license","licenseConcluded" : "MPL-1.0","licenseDeclared" : "MPL-1.0","name" : "Saxon","packageFileName" : "saxonB-8.8.zip","versionInfo" : "8.8"} ],"files" : [ {"SPDXID" : "SPDXRef-DoapSource","checksums" : [ {"algorithm" : "SHA1","checksumValue" : "2fd4e1c67a2d28fced849ee1bb76e7391b93eb12"} ],"copyrightText" : "Copyright 2010, 2011 Source Auditor Inc.","fileContributors" : [ "Protecode Inc.", "SPDX Technical Team Members", "Open Logic Inc.", "Source Auditor Inc.", "Black Duck Software In.c" ],"fileName" : "./src/org/spdx/parser/DOAPProject.java","fileTypes" : [ "SOURCE" ],"licenseConcluded" : "Apache-2.0","licenseInfoInFiles" : [ "Apache-2.0" ]}, {"SPDXID" : "SPDXRef-CommonsLangSrc","checksums" : [ {"algorithm" : "SHA1","checksumValue" : "c2b4e1c67a2d28fced849ee1bb76e7391b93f125"} ],"comment" : "This file is used by Jena","copyrightText" : "Copyright 2001-2011 The Apache Software Foundation","fileContributors" : [ "Apache Software Foundation" ],"fileName" : "./lib-source/commons-lang3-3.1-sources.jar","fileTypes" : [ "ARCHIVE" ],"licenseConcluded" : "Apache-2.0","licenseInfoInFiles" : [ "Apache-2.0" ],"noticeText" : "Apache Commons Lang\nCopyright 2001-2011 The Apache Software Foundation\n\nThis product includes software developed by\nThe Apache Software Foundation (http://www.apache.org/).\n\nThis product includes software from the Spring Framework,\nunder the Apache License 2.0 (see: StringUtils.containsWhitespace())"}, {"SPDXID" : "SPDXRef-JenaLib","checksums" : [ {"algorithm" : "SHA1","checksumValue" : "3ab4e1c67a2d28fced849ee1bb76e7391b93f125"} ],"comment" : "This file belongs to Jena","copyrightText" : "(c) Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP","fileContributors" : [ "Apache Software Foundation", "Hewlett Packard Inc." ],"fileName" : "./lib-source/jena-2.6.3-sources.jar","fileTypes" : [ "ARCHIVE" ],"licenseComments" : "This license is used by Jena","licenseConcluded" : "LicenseRef-1","licenseInfoInFiles" : [ "LicenseRef-1" ]}, {"SPDXID" : "SPDXRef-Specification","checksums" : [ {"algorithm" : "SHA1","checksumValue" : "fff4e1c67a2d28fced849ee1bb76e7391b93f125"} ],"comment" : "Specification Documentation","fileName" : "./docs/myspec.pdf","fileTypes" : [ "DOCUMENTATION" ]}, {"SPDXID" : "SPDXRef-File","annotations" : [ {"annotationDate" : "2011-01-29T18:30:22Z","annotationType" : "OTHER","annotator" : "Person: File Commenter","comment" : "File level annotation"} ],"checksums" : [ {"algorithm" : "SHA1","checksumValue" : "d6a770ba38583ed4bb4525bd96e50461655d2758"}, {"algorithm" : "MD5","checksumValue" : "624c1abb3664f4b35547e7c73864ad24"} ],"comment" : "The concluded license was taken from the package level that the file was included in.\nThis information was found in the COPYING.txt file in the xyz directory.","copyrightText" : "Copyright 2008-2010 John Smith","fileContributors" : [ "The Regents of the University of California", "Modified by Paul Mundt lethal@linux-sh.org", "IBM Corporation" ],"fileName" : "./package/foo.c","fileTypes" : [ "SOURCE" ],"licenseComments" : "The concluded license was taken from the package level that the file was included in.","licenseConcluded" : "(LGPL-2.0-only OR LicenseRef-2)","licenseInfoInFiles" : [ "GPL-2.0-only", "LicenseRef-2" ],"noticeText" : "Copyright (c) 2001 Aaron Lehmann aaroni@vitelus.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: \nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."} ],"snippets" : [ {"SPDXID" : "SPDXRef-Snippet","comment" : "This snippet was identified as significant and highlighted in this Apache-2.0 file, when a commercial scanner identified it as being derived from file foo.c in package xyz which is licensed under GPL-2.0.","copyrightText" : "Copyright 2008-2010 John Smith","licenseComments" : "The concluded license was taken from package xyz, from which the snippet was copied into the current file. The concluded license information was found in the COPYING.txt file in package xyz.","licenseConcluded" : "GPL-2.0-only","licenseInfoInSnippets" : [ "GPL-2.0-only" ],"name" : "from linux kernel","ranges" : [ {"endPointer" : {"offset" : 420,"reference" : "SPDXRef-DoapSource"},"startPointer" : {"offset" : 310,"reference" : "SPDXRef-DoapSource"}}, {"endPointer" : {"lineNumber" : 23,"reference" : "SPDXRef-DoapSource"},"startPointer" : {"lineNumber" : 5,"reference" : "SPDXRef-DoapSource"}} ],"snippetFromFile" : "SPDXRef-DoapSource"} ],"relationships" : [ {"spdxElementId" : "SPDXRef-DOCUMENT","relationshipType" : "CONTAINS","relatedSpdxElement" : "SPDXRef-Package"}, {"spdxElementId" : "SPDXRef-DOCUMENT","relationshipType" : "COPY_OF","relatedSpdxElement" : "DocumentRef-spdx-tool-1.2:SPDXRef-ToolsElement"}, {"spdxElementId" : "SPDXRef-Package","relationshipType" : "DYNAMIC_LINK","relatedSpdxElement" : "SPDXRef-Saxon"}, {"spdxElementId" : "SPDXRef-CommonsLangSrc","relationshipType" : "GENERATED_FROM","relatedSpdxElement" : "NOASSERTION"}, {"spdxElementId" : "SPDXRef-JenaLib","relationshipType" : "CONTAINS","relatedSpdxElement" : "SPDXRef-Package"}, {"spdxElementId" : "SPDXRef-Specification","relationshipType" : "SPECIFICATION_FOR","relatedSpdxElement" : "SPDXRef-fromDoap-0"}, {"spdxElementId" : "SPDXRef-File","relationshipType" : "GENERATED_FROM","relatedSpdxElement" : "SPDXRef-fromDoap-0"} ]
}

若想了解更多 SPDX 格式的规范细节,可参阅官方最新文档 The System Package Data Exchange® (SPDX®) Specification Version 3.0.pdf (访问密码: 6277)。

5. 辅助工具

SPDX 官方提供了一些辅助工具,包含在线工具、开源工具及商用工具,可以提供 SPDX 格式文档的校验、转换、对比、生成及解析等功能。
在这里插入图片描述

6. 总结

SPDX格式是一种用于描述软件组件的规范,提供了一种标准化的方法来描述软件组件的元数据,包括其许可证、依赖项和其他属性。随着开源和共享软件开发环境的普及,SPDX格式得到了广泛的应用。

通过SPDX格式,组织可以更好地了解和管理软件供应链,降低合规风险,提高软件质量,加强安全性。SPDX作为一个开放的标准格式,为软件行业的合作和创新提供了重要的基础。

7. 参考

[1] https://spdx.dev/
[2] SPDXJSONExample-v2.3.spdx.json
[3] https://spdx.dev/use/specifications/


推荐阅读:

  • 「 网络安全常用术语解读 」漏洞利用交换VEX详解
  • 「 网络安全常用术语解读 」软件成分分析SCA详解:从发展背景到技术原理再到业界常用检测工具推荐
  • 「 网络安全常用术语解读 」什么是0day、1day、nday漏洞
  • 「 网络安全常用术语解读 」软件物料清单SBOM详解
  • 「 网络安全常用术语解读 」杀链Kill Chain详解
  • 「 网络安全术语解读 」点击劫持Clickjacking详解
  • 「 网络安全术语解读 」悬空标记注入详解
  • 「 网络安全术语解读 」内容安全策略CSP详解
  • 「 网络安全常用术语解读 」同源策略SOP详解
  • 「 网络安全术语解读 」静态分析结果交换格式SARIF详解
  • 「 网络安全常用术语解读 」安全自动化协议SCAP详解
  • 「 网络安全术语解读 」通用平台枚举CPE详解
  • 「 网络安全常用术语解读 」通用缺陷枚举CWE详解
  • 「 网络安全常用术语解读 」通用漏洞披露CVE详解
  • 「 网络安全常用术语解读 」通用漏洞评分系统CVSS详解
  • 「 网络安全常用术语解读 」漏洞利用交换VEX详解
  • 「 网络安全常用术语解读 」软件成分分析SCA详解:从发展背景到技术原理再到业界常用检测工具推荐
  • 「 网络安全术语解读 」通用攻击模式枚举和分类CAPEC详解
  • 「 网络安全常用术语解读 」网络攻击者的战术、技术和常识知识库ATT&CK详解

在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/bicheng/5615.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

复旦微JFM7VX690计算后IO接口模块,用于雷达信号处理、数据处理等需要高速密集计算的应用场景

计算后IO接口模块 1 介绍 1.1 产品概述 计算后IO接口模块主要由复旦微JFM7VX690型FPGA、国产以太网收发器YT8521、国产BMC芯片GD32F450、国产CPLD芯片EF2L45BG256B、国产内存颗粒等主要芯片组成,采用标准6U VPX尺寸设计。 本计算后IO接口模块主要用于雷达信号处…

Java面试八股之Java中数组有没有length()方法?String呢?为什么?

Java中数组有没有length()方法?String呢?为什么? 数组: 数组没有名为length()的方法,但有一个属性叫做length。可以通过数组名直接访问这个属性来获取数组的长度(即元素个数)。这是一个整数值&…

【redis】Redis数据类型(三)List类型

目录 List类型介绍特点 List数据结构附:3.2以前的版本(介绍一下压缩列表和双向链表)压缩列表ZipList双向链表LinkedList 常用命令lpush示例 lpushx示例 rpush示例 rpushx示例 LPOP示例 RPOP示例 BLPOP非阻塞行为阻塞行为相同的 key 被多个客户端同时阻塞在 MULTI/EX…

[笔试强训day06]

文章目录 NC10 大数乘法NC1 大数加法NC40 链表相加(二) NC10 大数乘法 NC10 大数乘法 #include <string> #include <vector> class Solution {public:string solve(string s, string t) {int m s.size(), n t.size();reverse(s.begin(), s.end());reverse(t.beg…

Matlab图像处理——基于BP神经网络的车牌标识识别系统

1. 数据集介绍 中国交通标志数据集&#xff1a; https://nlpr.ia.ac.cn/pal/trafficdata/detection.html 该数据集包含58类交通标志。 2. 数据处理 按照文件标签&#xff0c;将数据集划分了58类&#xff0c;如下&#xff1a; 对应的类别信息记录如下&#xff1a; 限速5km/…

企业计算机服务器中了rmallox勒索病毒怎么处理,rmallox勒索病毒处理建议

在网络技术不断发展的时代&#xff0c;网络在企业中的应用广泛&#xff0c;可以为企业带来更多的便利&#xff0c;大大提升了企业的生产效率&#xff0c;但网络作为虚拟世界&#xff0c;在为企业提供便利的同时&#xff0c;也为企业数据安全带来严重威胁。近期&#xff0c;云天…

【YOLO改进】换遍IoU损失函数之EIoU Loss(基于MMYOLO)

EIoU损失函数 设计原理 一、IoU的局限性 IoU&#xff08;Intersection over Union&#xff09;是一种常用于评估目标检测模型性能的指标&#xff0c;特别是在计算预测边界框与真实边界框之间的重叠程度时。然而&#xff0c;IoU存在一些局限性&#xff0c;尤其是当两个边界框…

[python趣味实战]----基于python代码实现浪漫爱心 დ

正文 01-效果演示 下图是代码运行之后的爱心显示结果&#xff1a; 下面的视频该爱心是动态效果&#xff0c;较为简洁&#xff0c;如果需要使用&#xff0c;可以进行完善&#xff0c;这里只是一个趣味实战&#xff0c;下面将对代码实现进行非常详细地描述&#xff1a; 浪漫爱心…

Java数据结构-模拟实现ArrayList

MyArrayList顺序结构&#xff1a; 接口和MyArrayList重写接口 接口 接口中的方法是很多类通用的&#xff0c;所以可以写到接口中 public interface IList {public void add(int data) ;// 在 pos 位置新增元素public void add(int pos, int data);// 判定是否包含某个元素p…

踏上R语言之旅:解锁数据世界的神秘密码(三)

多元相关与回归分析及R使用 文章目录 多元相关与回归分析及R使用一.变量间的关系分析1.两变量线性相关系数的计算2.相关系数的假设检验 二.一元线性回归分析的R计算三、回归系数的假设检验总结 一.变量间的关系分析 变量间的关系及分析方法如下&#xff1a; 1.两变量线性相关…

【C++程序员的自我修炼】string 库中常见的用法 (一)

唤起一天明月照我满怀冰雪浩荡百川流鲸饮未吞海 剑气已横秋 目录 string 库的简介 string 的一些小操作 构造函数的使用 拷贝构造的常规使用 指定拷贝内容的拷贝构造 拷贝字符串开始的前 n 个字符 用 n 个字符初始化 计算字符串的长度 string 的三种遍历方式 常规的for循环 op…

利用大型语言模型提升数字产品创新:提示,微调,检索增强生成和代理的应用

每周跟踪AI热点新闻动向和震撼发展 想要探索生成式人工智能的前沿进展吗&#xff1f;订阅我们的简报&#xff0c;深入解析最新的技术突破、实际应用案例和未来的趋势。与全球数同行一同&#xff0c;从行业内部的深度分析和实用指南中受益。不要错过这个机会&#xff0c;成为AI领…

「笔试刷题」:字母收集

一、题目 描述 有一个 &#x1d45b;∗&#x1d45a; 的矩形方阵&#xff0c;每个格子上面写了一个小写字母。 小红站在矩形的左上角&#xff0c;她每次可以向右或者向下走&#xff0c;走到某个格子上就可以收集这个格子的字母。 小红非常喜欢 "love" 这四个字母。…

FFmpeg开发笔记(二十三)使用OBS Studio开启RTMP直播推流

OBS是一个开源的直播录制软件&#xff0c;英文全称叫做Open Broadcaster Software&#xff0c;广泛用于视频录制、实时直播等领域。OBS不但开源&#xff0c;而且跨平台&#xff0c;兼容Windows、Mac OS、Linux等操作系统。 OBS的官网是https://obsproject.com/&#xff0c;录制…

【报错处理】ib_write_bw执行遇到Couldn‘t listen to port 18515原因与解决办法?

要点 要点&#xff1a; ib默认使用18515端口 相关命令&#xff1a; netstat -tuln | grep 18515 ib_write_bw --help |grep port# server ib_write_bw --ib-devmlx5_1 --port88990 # client ib_write_bw --ib-devmlx5_0 1.1.1.1 --port88990现象&#xff1a; 根因&#xff…

为什么公共事业机构会偏爱 TiDB :TiDB 数据库在某省妇幼健康管理系统的应用

本文介绍了某省妇幼健康管理系统的建设和数据库架构优化的过程。原有的数据库架构使用了 StarRocks 作为分析层&#xff0c;但随着业务的发展&#xff0c;这套架构暴露出诸多痛点&#xff0c;不再适应妇幼业务的需求。为解决这些问题&#xff0c;该系统选择了将原有架构中的 St…

OBSERVER(观察者)-- 对象行为模式

意图&#xff1a; 定义对象间地一种一对多地依赖关系&#xff0c;当一个对象地状态发生改变时&#xff0c;所有对于依赖于它的对象都得到通知并被自动更新。 别名&#xff1a; 依赖(Dependents), 发布-订阅(Publish-Subsribe) 动机&#xff1a; 将一个系统分割成一系列相互协…

使用Python及R语言绘制简易数据分析报告

Pytohn实现 在python中有很多包可以实现绘制数据分析报告的功能&#xff0c;推荐两个较为方便的包&#xff1a;pandas-profiling 和 sweetviz 。 使用 pandas-profiling 包&#xff08;功能全面&#xff09; 这个包的个别依赖包与机器学习的 sklearn 包的依赖包存在版本冲突&a…

【C++中的模板】

和你有关&#xff0c;观后无感................................................................................................................. 目录 前言 一、【模板的引入和介绍】 1、泛型编程 2、【模板的介绍】 二、【 函数模板】 2.1【模函数板的介绍】 1.…

修改word文件的创作者方法有哪些?如何修改文档的作者 这两个方法你一定要知道

在数字化时代&#xff0c;文件创作者的信息往往嵌入在文件的元数据中&#xff0c;这些元数据包括创作者的姓名、创建日期以及其他相关信息。然而&#xff0c;有时候我们可能需要修改这些创作者信息&#xff0c;出于隐私保护、版权调整或者其他实际需求。那么&#xff0c;有没有…