Software composition analysis explained
Software composition analysis (SCA) is a practice in the fields of Information technology and software engineering for analyzing custom-built software applications to detect embedded open-source software and detect if they are up-to-date, contain security flaws, or have licensing requirements.[1]
Background
It is a common software engineering practice to develop software by using different components.[2] Using software components segments the complexity of larger elements into smaller pieces of code and increases flexibility by enabling easier reuse of components to address new requirements.[3] The practice has widely expanded since the late 1990s with the popularization of open-source software (OSS) to help speed up the software development process and reduce time to market.[4]
However, using open-source software introduces many risks for the software applications being developed. These risks can be organized into 5 categories:[5]
- OSS Version Control: risks of changes introduced by new versions
- Security: risks of vulnerabilities in components - Common Vulnerabilities & Exposures (or CVEs)
- License: risks of Intellectual property (IP) legal requirements
- Development: risks of compatibility between existing codebase and open-source software
Shortly after the foundation of the Open Source Initiative in February 1998,[6] the risks associated with OSS were raised[7] and organizations tried to manage this using spreadsheets and documents to track all the open source components used by their developers.[8]
For organizations using open-source components extensively, there was a need to help automate the analysis and management of open source risk. This resulted in a new category of software products called Software Composition Analysis (SCA) which helps organizations manage open source risk.SCA strives to detect all the 3rd party components in use within a software application to help reduce risks associated with security vulnerabilities, IP licensing requirements, and obsolescence of components being used.
Principle of operation
SCA products typically work as follows:[9]
- An engine scans the software source code, and the associated artifacts used to compile a software application.
- The engine identifies the OSS components and their versions and usually stores this information in a database creating a catalog of OSS in use in the scanned application.
- This catalog is then compared to databases referencing known security vulnerabilities for each component, the licensing requirements for using the component, and the historical versions of the component. For security vulnerability detection, this comparison is typically made against known security vulnerabilities (CVEs) that are tracked in the National Vulnerability Database (NVD). Some products use an additional proprietary database of vulnerabilities. For IP / Legal Compliance, SCA products will extract and evaluate the type of licensing used for the OSS component.[10] Versions of components are extracted from popular open source repositories such as GitHub, Maven, PyPi, NuGet, and many others.
- The results are then made available to end users using different digital formats. The content and format depend on the SCA product and may include guidance to evaluate and interpret the risk, and recommendations especially when it concerns the legal requirements of open source components such as strong or weak copyleft licensing. The output may also contain a Software Bill of Materials (SBOM) detailing all the open source components and associated attributes used in a software application[11]
Usage
As SCA impacts different functions in organizations, different teams may use the data depending on the organization's corporation size and structure. The IT department will often use SCA for implementing and operationalizing the technology with common stakeholders including the chief information officer (CIO), the Chief Technology Officer (CTO), and the Chief Enterprise Architects (EA).[12] Security and license data are often used by roles such as Chief Information Security Officers (CISO) for security risks, and Chief IP / Compliance officer for Intellectual Property risk management.[13]
Depending on the SCA product capabilities, it can be implemented directly within a developer's Integrated Development Environment (IDE) who uses and integrates OSS components, or it can be implemented as a dedicated step in the software quality control process.[14] [15]
SCA products, and particularly their capacity to generate an SBOM is required in some countries such as the United States to enforce the security of software delivered to one of their agencies by a vendor.[16]
Another common use case for SCA is for Technology Due diligence. Prior to a Merger & Acquisition (M&A) transaction, Advisory firms review the risks associated with the software of the target firm.[17]
SCA Strengths
The automatic nature of SCA products is their primary strength. Developers don't have to manually do an extra work when using and integrating OSS components.[18] The automation also applies to indirect references to other OSS components within code and artifacts[19]
SCA Weaknesses
Conversely, some key weaknesses of current SCA products may include:
- Complex and labor-intensive deployment that can take months to get fully operational [20]
- Each product uses its own proprietary database of OSS components that can vary dramatically in terms of size and coverage [21]
- Limiting vulnerability data to reporting only on vulnerabilities officially reported in the NVD (which can be months after the vulnerability was originally discovered)[22]
- Lack of automated guidance on actions to take based on SCA reports and data[23]
- Lack of guidance on the legal requirements of OSS licenses that are detected [24]
See also
Notes and References
- Prana. Gede Artha Azriadi. Sharma. Abhishek. Shar. Lwin Khin. Foo. Darius. Santosa. Andrew E. Sharma. Asankhaya. Lo. David. July 2021. Out of sight, out of mind? How vulnerable dependencies affect open-source projects. Empirical Software Engineering. 26. 4. 1–34. Springer. 10.1007/s10664-021-09959-3. 197679660.
- Nierstrasz. Oscar. Meijler. Theo Dirk. 1995. Research directions in software composition. ACM Computing Surveys . 27. 2. 262–264. ACM. 10.1145/210376.210389. 17612128. free.
- Book: Nierstrasz. Oscar. Dami. Laurent. January 1995. Object-oriented software composition. 3–28. Prentice Hall International (UK) Ltd.. 10.1.1.90.8174.
- De Hoon. Michiel JL. Imoto. Seiya. Nolan. John. Miyano. Satoru. February 2004. Open source clustering software. Bioinformatics. 1453–1454. Oxford University Press. 10.1.1.114.3335.
- Book: Duc Linh. Nguyen. Duy Hung. Phan. Dipe. Vu Thu. Proceedings of the 2019 8th International Conference on Software and Computer Applications. Risk Management in Projects Based on Open-Source Software. 2019. 178–183. 10.1145/3316615.3316648. 9781450365734. 153314145. https://dl.acm.org/doi/pdf/10.1145/3316615.3316648.
- Web site: History of the OSI . 19 September 2006 . Opensource.org.
- Payne. Christian. 2002. On the security of open source software. Information Systems Journal. 12. 61–78. 10.1046/j.1365-2575.2002.00118.x. 8123076.
- Kaur. Sumandeep. April 2020. Security Issues in Open-Source Software. International Journal of Computer Science & Communication. 47–51.
- Ombredanne. Philippe. October 2020. Free and Open Source Software License Compliance: Tools for Software Composition Analysis. Computer. 53. 10. 262–264. IEEE. 10.1109/MC.2020.3011082. 222232127. free.
- Book: Duan. Ruian. Bijlani. Ashish. Xu. Meng. Kim. Taesoo. Lee. Wenke. Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security. Identifying Open-Source License Violation and 1-day Security Risk at Large Scale. 2017. 2169–2185. ACM. 10.1145/3133956.3134048. 9781450349468. 7402387. https://dl.acm.org/doi/pdf/10.1145/3133956.3134048.
- Arora. Arushi. Wright. Virginia . Garman. Christina. 2022. Strengthening the Security of Operational Technology: Understanding Contemporary Bill of Materials. JCIP the Journal of Critical Infrastructure Policy. 111.
- Web site: Software bill of materials: Managing software cybersecurity risks. Bailey, T.. Greis, J.. Watters, M.. Welle, J.. McKinsey & Company. 19 September 2022. 6 January 2024.
- Book: Popp, Karl Michael . 30 October 2019. Best Practices for commercial use of open source software. BoD – Books on Demand, 2019 . 10 . 9783750403093.
- Book: Imtiaz. Nasif. Thorn. Seaver. Williams. Laurie. Proceedings of the 15th ACM / IEEE International Symposium on Empirical Software Engineering and Measurement (ESEM). A comparative study of vulnerability reporting by software composition analysis tools. October 2021. 1–11. ACM. 10.1145/3475716.3475769. 2108.12078. 9781450386654. 237346987. https://dl.acm.org/doi/abs/10.1145/3475716.3475769.
- Book: Sun. Xiaohan. Cheng. Yunchang. Qu. Xiaojie. Li. Hang. 2021 IEEE 4th Advanced Information Management, Communicates, Electronic and Automation Control Conference (IMCEC). Design and Implementation of Security Test Pipeline based on DevSecOps. June 2021. 4. 532–535. IEEE. 10.1109/IMCEC51613.2021.9482270. 978-1-7281-8535-4. 236193144. https://ieeexplore.ieee.org/document/9482270.
- Software Bill of Materials Elements and Considerations. Federal Register. 6 February 2021. 6 January 2024.
- Book: Serafini. Daniele. Zacchiroli. Stefano. The 18th International Symposium on Open Collaboration. Efficient Prior Publication Identification for Open Source Code. September 2022. 4. 1–8. ACM. 10.1145/3555051.3555068. 2207.11057. 9781450398459. 251018650. https://dl.acm.org/doi/abs/10.1145/3555051.3555068.
- Book: Chen. Yang. Santosa. Andrew E. Sharma. Asankhaya. Lo. David. Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering: Software Engineering in Practice. Automated identification of libraries from vulnerability data. September 2020. 90–99. 10.1145/3377813.3381360. 9781450371230. 211167417. https://dl.acm.org/doi/pdf/10.1145/3377813.3381360.
- Kengo Oka. Dennis. 2021. Software Composition Analysis in the Automotive Industry. Building Secure Cars: Assuring the Automotive Software Development Lifecycle. 91–110. Wiley. 10.1002/9781119710783. 9781119710783. 233582862.
- Book: Rajapakse. Roshan Namal. Zahedi. Mansooreh. Babar. Muhammad Ali. Proceedings of the 15th ACM / IEEE International Symposium on Empirical Software Engineering and Measurement (ESEM). An Empirical Analysis of Practitioners' Perspectives on Security Tool Integration into DevOps. 2021. 1–12. 10.1145/3475716.3475776. 2107.02096. 9781450386654. 235731939. https://dl.acm.org/doi/pdf/10.1145/3475716.3475776.
- Book: Imtiaz. Nasif. Thorn. Seaver. Williams. Laurie. Proceedings of the 15th ACM / IEEE International Symposium on Empirical Software Engineering and Measurement (ESEM). A comparative study of vulnerability reporting by software composition analysis tools. 2021. 1–11. 10.1145/3475716.3475769. 2108.12078. 9781450386654. 237346987. https://dl.acm.org/doi/pdf/10.1145/3475716.3475769.
- Web site: Component Analysis. owasp.org.
- Book: Foo. Darius. Chua. Hendy. Yeo. Jason. Ang. Ming Yi. Sharma. Asankhaya. Proceedings of the 2018 26th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering. Efficient static checking of library updates. 2018. 791–796. 10.1145/3236024.3275535. 9781450355735. 53079466. https://dl.acm.org/doi/pdf/10.1145/3236024.3275535.
- Millar. Stuart. November 2017. Vulnerability Detection in Open Source Software: The Cure and the Cause. Queen's University Belfast.