Risks and Challenges
Business stakeholders who have heard of open source software but aren’t well-educated about what open source is or what it can do for businesses (which is most business stakeholders) tend to underestimate the risks from using open source software while overestimating the risks from contributing to and/or publishing and maintaining open source projects. When talking with business stakeholders, it’s important to be honest about the potential risks from open source software – both from using OSS anonymously as part of the software stack and from contributing to and creating projects. Business stakeholders aren’t stupid; if you don’t address these risks head-on you’ll lose credibility. It’s also important to address the risks open source software can create because you need to find ways to mitigate those risks and protect your organization. For many OSPOs, risk mitigation is a core part of the mission.
It’s also important to think critically about risks from your engagement with open source software because there will be times when the risks and downsides outweigh the benefits. In fact, one of the key elements of a mature open source strategy is having a framework for evaluating when it makes sense to use, contribute to and create open source projects, so that risk/benefit calculations aren’t based just on gut instinct.
Risks and challenges from using open source software
Open source software is everywhere, from programming languages to libraries to end-user applications. Particularly because open source is so critical at the infrastructure layer, it’s nearly impossible to find an organization that doesn’t have open source software as part of its software stack. From a superficial business perspective, this can seem like a no-brainer – someone puts code on the internet, you take it and integrate it into your stack. Your engineers are able to work much more effectively, you deliver more features more quickly. Everyone is happy.
In many organizations, stakeholders outside the engineering organization aren’t even aware that open source software is being used at all – and in some cases, even engineering leadership isn’t aware. That’s because most engineers will assume that it’s ok to use open source components unless they are told otherwise – it’s such an accepted software development practice. They won’t necessarily ask for permission to do so, nor will they report on the fact that there are open source components in the stack. To many software engineers, open source components are just the water they swim in; they assume that everyone else assumes they are using them.
In addition, many software engineers aren’t completely clear on what exactly open source software is, and they certainly aren’t necessarily experts in open source licenses or open source supply chain security.
There are three main categories of risk that can come from simply using open source. One is security; there can be vulnerabilities or even backdoors in the open source components that render the entire application vulnerable. The second is around legal compliance; just because a project is available on a code collaboration platform like GitHub does not mean the code can be used for absolutely all purposes (first of all, not all software available on code collaboration platforms actually has an open source license, and second of all, some open source licenses do not allow you to use the software to create commercial products). The third category of risk from open source components comes from projects that are no longer maintained, whether it is because the maintainers decide to change the license on all future versions, or because they are no longer willing or able to maintain the project. Like all software, open source projects, whether they are full-fledged end-user applications or niche libraries, require some kind of maintenance. All software can be abandoned, but open source projects can live on GitHub for years without being maintained. It’s a myth that all open source projects are maintained by volunteers, but nonetheless many projects are created and maintained by a single person doing the project in their spare time. Therefore, the risk of abandonment is always there, and evaluating project health before using the project is a key way to minimize this risk. When projects are abandoned, among other things they do not get security updates, which can lead to security risks if your team doesn’t manage security updates internally.
Security
Whether or not open source software is inherently more secure than closed-source software is debatable. Some people will say that because open source software is visible to all, the transparency means more eyes on the code and a greater likelihood that security vulnerabilities will be uncovered before they go into production. Others argue that closed source software is closed; therefore it’s harder for malicious actors to see the code and figure out how to exploit it. Regardless of which camp you’re in, it would be naive to think that there are never security issues with open source software, just as there are security issues with closed source software.
There have been a couple of high-profile security vulnerabilities related to open source software in the past several years. The Log4shell vulnerability is one of the more well-known vulnerabilities in open source software, and even though a patch was released there are undoubtedly still many devices that are vulnerable, even years after the vulnerability was disclosed.
There was also the XZ Utils backdoor https://en.wikipedia.org/wiki/XZ_Utils_backdoor, a backdoor that was injected into a popular Linux library. The backdoor was discovered before the update was put into production widely, but its discovery was largely thanks to chance and a particularly observant software engineer who noticed and investigated strange behavior from the utility in question. Had it gone into production, it would have given complete remote access to millions of machines. In the case of the XZ Utils backdoor, the exploit was a direct result of some of the dynamics that can make open source software vulnerable: A malicious actor spent years gaining the trust of an overwhelmed, unpaid maintainer, who then agreed to give them maintainer write access to the repository. That allowed the malicious actor to accept code that contained the backdoor, almost certainly both the malicious maintainer and the code author were sock puppet accounts.
There are also security problems in closed-source software, so it’s not like security problems are unique to open source.
Legal Compliance
Open source software is not the same as Free Software, there are still restrictions on how the software can be used, especially in the case of software published under copyleft licenses. Open source is not the same as “free software.” Copyleft licenses generally require that modified versions of the software be redistributed under the same license as the original software, which makes using copyleft-licensed projects in commercial software legally risky to impossible.
Especially in situations where individual contributors aren’t given any guidance about which licenses are or are not allowed, and under which circumstances, there’s a high likelihood that they will use open source projects as if they were completely free of legal restrictions. Most programmers are not particularly knowledgeable about open source licenses, and most assume that open source projects can be used in any circumstance. This can potentially create legal problems for the company in the future.
Abandonware / technical debt
Not all open source projects are actively maintained, and an open source project that is actively maintained right now might not continue to be maintained in the future. If you rely on a project that ceases to be maintained for one reason or another, this can create a ripple of problems for your technical team. This is one reason why it’s so important to consider the viability of the open source project and the community health before adopting an open source project (for more on evaluating risk and community health, check out the CHAOSS project’s resources on risk and community health).
Who owns and maintains the project has a big influence on risk. If it’s a single vendor with a strong contributor license agreement (CLA), they can relatively easily relicense the project. If the project is owned by a direct competitor in your space, that has other risks. In general, open source projects hosted by a foundation are generally the least risky; but the important take-away is to proactively evaluate the risk of abandonment and license changes before becoming dependent on a particular project.
The good news is that if an open source project is abandoned by the maintainers, you still have the possibility of maintaining it yourself internally. But this creates technical debt, adding to the responsibilities of your engineering team. Just like with legal issues, individual contributors will not necessarily take into consideration the community health of a project before using it unless an OSPO proactively educates them on the importance of community health for the long-term viability of the project.
Risks and challenges from contributing to open source software
Of the three ways to be involved with open source software, contributing to other projects is perhaps the least risky. However, there are still challenges that can arise, and there are also perceived risks for business stakeholders. If you’re trying to convince business leaders to allow more open source contributions, it’s important to take their perceived risks seriously.
The Time Investment
Whether you’re fixing a bug or building a new feature, the initial time investment is going to be bigger if you contribute it back to the community, particularly for the first time contribution; there is a learning curve for contributing to every project. It takes time to understand the contribution process, and it takes time to get a pull request merged. It’s often faster and easier to simply write the fix.
To be clear: It is faster and easier in the short term if you simply write the fix and don’t contribute upstream. Over the long-term, if you contribute the feature or bug fix to the main project, not only does it benefit the community immediately – others can work on fixing other bugs, for example – but the responsibility for long-term maintenance shifts from your organization to the larger community.
You could look bad
Open source contributions are made by individuals, through individual GitHub accounts. Nonetheless, they are representing your company and your brand. There are two ways this could go wrong. First of all, they could do poor-quality work, which will reflect poorly on your entire engineering organization. Even if the code quality is good but the contributor hasn’t taken the time to review contribution guidelines or to interact with the community at all, it both increases the risk that the pull request will ultimately be rejected while also reflecting poorly on the entire organization.
Perhaps even worse than poor quality code is poor behavior. Many open source projects suffer from a small percentage of community members who make life difficult for others in the community, who harass others in the community and/or the maintainers. If your team members behave like this in open source communities, people they come into contact with will assume that type of behavior is normal in your organization, and it will actively repel people from working for your company, buying from your company or partnering with your company.
Open source is about transparency. If you have something to hide, it will come out and ultimately hurt you.
Your Competitors Could Benefit
Some business people worry that their competitors could benefit if you contribute a new feature or a bug fix back to an existing project. Technically speaking, this is absolutely true. Your competitors could take your bug fix or feature, use it for themselves and use the time they saved to develop other features that then give them a competitive advantage.
If there are contributions to a project that you think will give you a competitive advantage in your ecosystem, that is a situation where you shouldn’t contribute back to the open source project. But for software that isn’t a core part of your competitive advantage, you’ll ultimately get more from being active in the community than you’ll lose from giving competitors access to bug fixes and new features that you contribute back to open source projects.
The truth is, it’s not always easy to make the distinction between these two scenarios. But a good guiding principle is to try to maximize your organization’s benefits, both from the project as a whole as well as from a particular upstream contribution, rather than trying to prevent your competitors from benefiting.
Risks and challenges from publishing and maintaining open source software
Publishing your own software projects as open source is generally the toughest sell for business stakeholders, because it feels so much like giving something away for free that you’ve invested resources in creating. The main argument against doing this for business stakeholders is that your competitors will be able to both see what you’re doing and use it themselves.
Your Competitors Get Access
If you are developing software internally that gives you a strategic advantage in your ecosystem, you probably don’t want to open source it; and if you do, you want to be very careful about the licensing that you choose.
However, most companies develop a large number of projects that aren’t directly related to their primary product and that doesn’t provide them a direct competitive advantage. A good example of this is security software. Improving your security posture doesn’t help you sell more widgets, but it can help you avoid a major reputational hit. And you might not want your competitor to have a serious security issue, either: the market’s response might be to lose trust in all of the companies in your market category. So working together on security issues that impact your entire competitive landscape can ultimately benefit everyone, allowing more people to work on innovative features of their own product while also potentially improving the reputation of your market category.
On the other hand, sometimes you will open source a project and yes, your competitors will get access. They may or may not contribute back to open source, they may just take your project and use it without ever contributing back to it. You have to accept that this might happen, and that the advantages of participating in the open source ecosystem.
You’ll Be Responsible for Ongoing Maintenance
This is a very real consideration; when you create an open source project you are making a commitment to maintain the project over the long term. Do projects get abandoned? Yes, you don’t have to maintain the project forever, but the ecosystem will expect that you’re making a commitment to maintain the project over at least a couple years unless you very clearly communicate otherwise. There’s also an expectation that you’ll be responsive if there are security issues.
This responsibility can be oppressive for hobby projects, and if a project becomes very popular, it can become a burden even for maintainers who maintain the project as part of their employment. It’s also one of the reasons it’s a best practice to take community building seriously: if you proactively take the time to cultivate a community of contributors and build a contributor ladder, you’re less likely to find yourself burdened with maintenance.
In addition, you should open source projects that are going to continue to be important for your company, and that you would continue to maintain regardless. An “open source first” approach doesn’t mean open sourcing every internal project you create. Open source is an investment over time, and you don’t want to invest that time in a project that you don’t intend to use internally for the long-term.
The Cyber Resilience Act (CRA) when publishing software
Legislative risks related to open source software
How to properly budget or allocate resources for OSPOs?
Strategies for minimizing the risks and downsides from open source
When it comes to minimizing the risks from open source, it’s important to take into consideration that the risks are different for each type of involvement with open source (user, contributor, maintainer). It’s also important to consider that if you’re a maintainer of an open source project, you’re likely also a contributor and user of open source software. So you’ll have to consider risk mitigation strategies for all the ways that you interact with open source software.
Mitigating risk from using open source software
The primary risks from using open source software are related to security, legal compliance and potential abandonment of the project. For all three types of risks, the most important first step is to create a register of all the open source projects used in your organization, which includes a complete Software Bill of Materials (SBOM) for your software. Because using open source projects is so second-nature for most software engineers, they’ll often just download and use an open source component without recording it anywhere.
There are many tools that exist to scan for open source projects and check the security and license compliance for those projects, and the same for legal compliance. The sheer number of open source projects in most organizations means that it is impossible to maintain security and compliance without tooling.
In terms of mitigating the risk from unmaintained projects, it’s important to understand which projects are under-resourced and at risk of being abandoned as well as which projects are particularly essential for your organization.
Mitigating risk from contributing to and publishing open source software
The main risks from contributing to and publishing open source comes from a potential for wasted time and intellectual property that is made accessible for others to use.
Avoid wasting your team’s time by ensuring they read contribution guidelines, building relationships in communities and understanding what kinds of contributions are and are not accepted before spending time working on a pull request. Avoid risks from losing control of your intellectual property by reviewing both contributions to other projects and projects you publish for strategic significance, before the process of preparing for an open source release begins. Avoid reputational risks from doing open source poorly by following the spirit of open source, not just the legal definition.
The best way to do all three of those is with a written open source policy that is proactively disseminated throughout the organization. It is not a technology problem, it is an internal communication problem.
When not to open source your software
Inevitably, there are times when open source is not appropriate. Just as you shouldn’t avoid open source categorically, you shouldn’t assume that open source is always the right answer, either for using or contributing.
When it comes to using open source software, many organizations have a ‘default to open’ policy, in which they will always use open source unless there is a compelling reason not to. However, crucially they also take the time to put in place frameworks to help decide whether or not there is a compelling reason – and they evaluate projects case by case.
When it comes to publishing your own internal software projects as open source projects, here are a couple situations when internal projects should remain internal projects.
flowchart LR
S([Project]) --> Q1{"Is it your
secret sauce?"}
Q1 -- No --> Q2{"Invest in
community?"}
Q2 -- Yes --> Q3{"Show up well
in public?"}
Q3 -- Yes --> R(["Release as OSS"])
Q1 -- Yes --> K1(["Keep it closed"])
Q2 -- No --> K2(["Keep it closed"])
Q3 -- No --> K3(["Keep it closed"])
It is your secret sauce
The most obvious situation is when the software in question is how you build a competitive advantage. If your crucial IP is in the software, you might want to keep it closed source.
There is an exception to this rule, however. If you have decided to build what is often called an open source company, in which a large percentage of your IP is open source, there can be strategic advantages to doing so, but you need to make a conscious, well-thought-out decision to follow this path. You’ll want to consider both what license to choose as well as how you expect the open source project to contribute to your business goals.
You’re not committed to the ‘spirit’ open source
In most cases, merely having your code publicly available isn’t going to provide business benefits (the exception is if transparency is important; still, this can be achieved with relatively restrictive licenses). The value of open source comes primarily from building a community, from getting feedback from users, and from building relationships with others who are tackling similar problems. On the other hand, it takes investment for those things to happen. If you’re not interested in community building or collaboration, you won’t get the full benefits from engaging with open source software while still exposing your organizations to the same risks.
Your code is sloppy and/or you’re not likely to be able to show up in the community in a positive way
The last reason to avoid open source is because, quite frankly, you have something to hide. Before laughing at this idea, consider that in fact it’s a very common reason that companies give for not wanting their source code in the open: they don’t think the code quality is good enough. This goes for contributing to open source as well: If your code contributions are not high-quality, you will actively hurt your reputation.
But poor code quality is not the only way to ruin your reputation in open source. Perhaps the worst way to ruin a reputation in the open source community is poor people skills. Even if it’s just asking questions in a Discord, if you aren’t reasonably respectful you can hurt your individual and your company reputation. But this goes for plenty of situations in an open source community. It’s important to read contribution guidelines, to make sure you are following AI use guidelines, and in general to show up in a way that is helpful and respectful of others. If you are building your own community, obviously you want it to be the kind of place that others want to be part of; if you can’t do that, it’s best not to try.
It is better to not do something than to do it poorly, and being involved in open source is no exception. If your code quality is not good, don’t open source it. If you can’t be a respectful member of a community, don’t join the community.
At an organizational level, it’s important to remember that the actions of individual employees reflect on the entire organization. It’s why governance is so important; you need employees to understand when and when not to get involved in open source, and you need a way to educate them about acceptable ways to show up in those communities, so that at the very least they do not harm your organization’s reputation.
In summary
It would be a mistake to always open source your code, and it would be a mistake even to say that you should always, under every circumstance, use open source projects instead of closed-source products. Some organizations have a ‘default to open source’ policy, which is that unless there is a compelling reason otherwise, they will use open source, contribute their fixes and features they develop for internal projects back to the upstream project, and release internal software projects as open source projects. However, there is still a review process in place to ensure that there aren’t compelling reasons to avoid open source. Creating a governance framework so that anyone in the organization can evaluate whether or not an open source approach is appropriate to a specific situation is one of the roles of an Open Source Program Office (OSPO), and it is essential for organizations who have a mature approach to open source.